*{box-sizing:border-box}
html,body{margin:0}
body.sp{min-height:100vh;background:#EEF1F5;font:15px/1.5 Inter,system-ui,sans-serif;color:#0F172A;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom))}
.sp-card{width:100%;max-width:400px;background:#fff;border:1px solid #E2E8F0;border-radius:18px;padding:28px 24px;box-shadow:0 20px 40px rgba(15,23,42,.08)}
.sp-brand{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.sp-mark{width:44px;height:44px;border-radius:12px;background:#0F1E3A;display:flex;align-items:center;justify-content:center}
.sp-word{font-size:22px;font-weight:600;letter-spacing:-.03em;color:#0F1E3A}
.sp-word span{color:#9A7F3F}
.sp h1{margin:0 0 6px;font-size:24px;letter-spacing:-.02em}
.sp p{margin:0 0 16px;color:#475569}
.sp label{display:block;font-size:13px;font-weight:600;margin:0 0 12px;color:#1E293B}
.sp input{display:block;width:100%;margin-top:6px;height:46px;border:1px solid #CBD5E1;border-radius:10px;padding:0 12px;font:inherit;color:#0F172A;background:#fff}
.sp input:focus{outline:2px solid #0F1E3A;outline-offset:1px}
.btn{display:flex;align-items:center;justify-content:center;width:100%;height:48px;border:0;border-radius:12px;background:#0F1E3A;color:#fff;font:600 15px Inter,sans-serif;cursor:pointer;text-decoration:none;margin-top:6px}
.btn.ghost{background:#fff;color:#0F1E3A;border:1px solid #CBD5E1}
.err{background:#FEF2F2;color:#991B1B;border-radius:10px;padding:10px 12px;font-size:14px;margin-bottom:14px}
.ok{background:#ECFDF5;color:#065F46;border-radius:10px;padding:10px 12px;font-size:14px;margin-bottom:14px}
.alt{text-align:center;font-size:14px;margin-top:16px;color:#475569}
.alt a,.sp-foot a{color:#1E3A8A;font-weight:600}
.code{font:600 13px ui-monospace,Menlo,monospace;background:#EEF1F5;border-radius:6px;padding:2px 8px;letter-spacing:.06em}
.big{font-size:54px;font-weight:300;letter-spacing:-.03em;line-height:1;margin:6px 0 4px}
.sp-foot{font-size:12px;color:#64748B;margin-top:18px}.tpl{border:0;padding:0;margin:4px 0 6px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tpl legend{font-size:13px;font-weight:600;color:#1E293B;margin-bottom:6px;padding:0}
.tpl label{margin:0;position:relative;font-weight:600}
.tpl input{position:absolute;opacity:0;width:1px;height:1px}
.tpl span{display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:1px solid #CBD5E1;border-radius:12px;padding:12px;cursor:pointer;font-size:14px;color:#0F172A}
.tpl small{font-weight:400;font-size:12px;color:#475569}
.tpl input:checked+span{border-color:#0F1E3A;box-shadow:inset 0 0 0 1.5px #0F1E3A}
.tpl input:focus-visible+span{outline:2px solid #0F1E3A;outline-offset:2px}
.sw{display:block;width:34px;height:44px;border-radius:3px 8px 8px 3px;margin-bottom:6px}
.sw-classic{background:linear-gradient(to right,#08132A 0 4px,#0F1E3A 4px);box-shadow:inset -6px 0 0 #C9B37E}
.sw-blush{background:linear-gradient(to right,#D9A0B2 0 4px,#EBC1CD 4px);box-shadow:inset -6px 0 0 #B8466F}