/* Local preview presentation; authentication state remains server controlled. */
:root{color-scheme:light;--purple:#715484;--ink:#302a39;--muted:#675575;--line:#d7c9df;--soft:#f3eef4}
*{box-sizing:border-box}body{font-family:system-ui,sans-serif;background:#fcfaf7;color:var(--ink);margin:0;line-height:1.75}main{max-width:760px;margin:32px auto;padding:24px}h1{font-size:clamp(1.45rem,5vw,2rem);line-height:1.5}h2{font-size:clamp(1.2rem,4vw,1.5rem);line-height:1.5}section{background:#fff;border:2px solid var(--line);border-radius:20px;padding:24px;margin:24px 0;box-shadow:0 8px 24px #56317b08}button{display:block;width:100%;border:2px solid transparent;border-radius:12px;padding:14px 18px;background:var(--purple);color:#fff;font:inherit;font-weight:700;cursor:pointer;margin:14px 0;min-height:52px;line-height:1.5;overflow-wrap:anywhere}button:hover:not(:disabled){background:#582c96}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a976db;outline-offset:4px}button:disabled{background:#e1dae8;color:#6e6279;border-color:#d4c9de;cursor:default}.secondary{background:var(--soft);border-color:var(--line);color:#593382}.secondary:hover:not(:disabled){background:#e9dcf4}.notice{background:#eee3f8;border-left:5px solid var(--purple);padding:14px 16px;border-radius:10px;font-weight:700}.step{font-size:.9rem;font-weight:700;color:#715484}.guide{color:var(--muted)}code{display:block;word-break:break-all;overflow-wrap:anywhere;padding:18px;border:2px solid var(--line);border-radius:12px;font-size:1.1rem;background:#f7f1fc}label{display:block;padding:16px 0;line-height:1.8}input[type=checkbox]{width:22px;height:22px;vertical-align:middle;margin-right:10px;accent-color:var(--purple)}#status{white-space:pre-wrap;overflow-wrap:anywhere;min-height:3em;line-height:1.7}.small{font-size:.85rem;color:var(--muted)}[hidden]{display:none!important}@media(max-width:480px){main{margin:12px auto;padding:16px}section{padding:18px;margin:18px 0}}

#common-entry{text-align:center}.divider{border-top:1px solid var(--line);padding-top:24px;margin-top:28px}details{text-align:left;border-top:1px solid var(--line);margin-top:28px;padding-top:20px}summary{cursor:pointer;color:var(--purple);font-weight:700;padding:8px 0;overflow-wrap:anywhere}summary:focus-visible{outline:3px solid #a976db;outline-offset:4px}#registration-entry h2:focus{outline:none}

/* Press feedback is visual only; disabled controls never receive it. */
button:active:not(:disabled){background:#4d385c;transform:translateY(1px)}
button.secondary:active:not(:disabled){background:#dfd0ea;color:#42245f}
.step-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.step-header .step{flex:1;min-width:0}
#back{width:auto;flex:0 0 auto;margin:0;padding:8px 16px;min-height:44px}
@media(prefers-reduced-motion:reduce){button:active:not(:disabled){transform:none}}

/* 070: entry follows the saved application white/black mode and approved A surface. */
html[data-theme="dark"]{color-scheme:dark;--ink:#ffffff;--muted:#c6becd;--line:#a899b4;--soft:#1c1c1e}
html[data-theme="dark"] body{background:#000000}
html[data-theme="dark"] section,html[data-theme="dark"] code,html[data-theme="dark"] .notice{background:#1c1c1e;color:#ffffff}
html[data-theme="dark"] button{background:#f1edf5;color:#2a2233;border-color:#c2a7d3;font-weight:800}
html[data-theme="dark"] button:hover:not(:disabled),html[data-theme="dark"] button:active:not(:disabled){background:#f1edf5;color:#2a2233}
html[data-theme="dark"] button:disabled{background:#302a39;color:#c6becd}
html[data-theme="dark"] :is(.step,summary){color:#c2a7d3}
html[data-theme="dark"] :is(#register,#existing,#login,#next):not(:disabled){background:#c2a7d3;color:#232322;border-color:#c2a7d3}
