:root {
  color-scheme: light only;
  --ink: #17231d; --accent: #176b4d; --canvas: #f7f3eb; --surface: #ffffff;
  --border: #727b74; --muted: #5f645f; --selected-soft: #ddefe6; --on-accent: #ffffff;
}
:root[data-theme="ocean"] { --ink:#132a31; --accent:#0f6175; --canvas:#eef6f7; --surface:#fff; --border:#6d858b; --muted:#5b6568; --selected-soft:#d8eef2; }
:root[data-theme="plum"] { --ink:#2d1e27; --accent:#7a315a; --canvas:#f8f1f4; --surface:#fff; --border:#87737e; --muted:#665e63; --selected-soft:#f1dae6; }
* { box-sizing: border-box; }
html, body { max-width:100%; overflow-x:hidden; background:var(--canvas); }
body { margin:0; background:var(--canvas); color:var(--ink); font:16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,sans-serif; }
button,input,select { -webkit-tap-highlight-color:transparent; }
.shell { width:100%; max-width:680px; min-height:100vh; margin:auto; padding:calc(28px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); }
header { min-width:0; display:flex; justify-content:space-between; align-items:start; gap:20px; margin-bottom:28px; }
header>div { min-width:0; }
.header-actions { display:flex; align-items:center; gap:10px; }
.header-link { border:0; background:transparent; color:var(--accent); font:inherit; font-size:.76rem; font-weight:850; cursor:pointer; }
.brand,.eyebrow { color:var(--accent); font-size:.74rem; font-weight:900; letter-spacing:.16em; }
.secure { font-size:.75rem; font-weight:800; border:1px solid var(--accent); border-radius:999px; padding:6px 10px; color:var(--accent); }
h1 { font-size:1.25rem; margin:2px 0; }
h2 { font-size:2rem; line-height:1.1; margin:8px 0; }
.intro { color:var(--muted); margin:0 0 22px; }
.progress { display:flex; gap:7px; margin-bottom:42px; }
.progress span { height:5px; flex:1; border-radius:5px; background:var(--border); opacity:.42; }
.progress .on { background:var(--accent); opacity:1; }
.card,.option,.summary { background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.card { padding:28px; }
.auth-card { margin-top:32px; }
.centered { text-align:center; margin-top:50px; }
.options { display:grid; gap:12px; }
.option { width:100%; min-height:92px; padding:17px; text-align:left; color:var(--ink); display:flex; justify-content:space-between; align-items:center; gap:16px; font:inherit; cursor:pointer; transition:background-color .16s ease,border-color .16s ease,transform .16s ease; }
.option>span:first-child { min-width:0; }
.option strong { display:block; font-size:1.02rem; }
.option small { color:var(--muted); }
.option-state { flex:0 0 auto; min-width:74px; padding:7px 10px; border:1px solid var(--border); border-radius:999px; color:var(--accent); background:var(--selected-soft); text-align:center; white-space:nowrap; font-size:.72rem; font-weight:900; }
.option.selected { border-color:var(--accent); background:var(--accent); color:var(--on-accent); box-shadow:0 0 0 3px var(--selected-soft),0 8px 22px rgba(15,35,27,.12); transform:translateY(-1px); }
.option.selected small { color:var(--on-accent); }
.option.selected .option-state { border-color:var(--on-accent); background:rgba(255,255,255,.16); color:var(--on-accent); }
.primary,.secondary,.danger { min-height:54px; border-radius:12px; border:0; padding:0 18px; font:inherit; font-weight:900; cursor:pointer; }
.primary { background:var(--accent); color:var(--on-accent); display:flex; justify-content:space-between; align-items:center; }
.primary:disabled { opacity:.42; cursor:not-allowed; }
.secondary { background:var(--surface); color:var(--accent); border:1px solid var(--accent); }
.danger { background:var(--surface); color:#8b2f35; border:1px solid #8b2f35; }
.button-link { display:inline-grid; place-items:center; text-decoration:none; margin-top:16px; }
.next { width:100%; margin-top:22px; }
.actions { display:grid; grid-template-columns:1fr 2fr; gap:10px; margin-top:22px; }
.actions.three { grid-template-columns:repeat(3,1fr); }
.actions .primary { width:100%; }
label { display:block; font-size:.75rem; font-weight:900; letter-spacing:.08em; margin:16px 0; }
input,select { display:block; width:100%; height:56px; margin-top:7px; padding:0 14px; border:1px solid var(--border); border-radius:11px; background:var(--surface); color:var(--ink); font:inherit; letter-spacing:normal; }
textarea { display:block; width:100%; min-height:88px; margin-top:7px; padding:12px 14px; border:1px solid var(--border); border-radius:11px; background:var(--surface); color:var(--ink); font:inherit; letter-spacing:normal; resize:vertical; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
.note { padding:12px; background:var(--selected-soft); border-radius:10px; color:var(--accent); font-size:.88rem; margin-top:16px; }
.rules { margin-top:16px; padding:14px 16px; border:1px solid var(--border); border-radius:12px; background:var(--surface); font-size:.9rem; line-height:1.5; }
.rules strong { display:block; font-size:.72rem; letter-spacing:.08em; margin-bottom:6px; }
.rules p { margin:0; white-space:pre-line; }
.notice { margin-top:16px; padding:12px 14px; border-left:4px solid var(--accent); background:var(--selected-soft); border-radius:8px; font-size:.9rem; }
.notice p { margin:0; }
.notice p + p { margin-top:6px; }
.warning { margin-top:16px; padding:12px 14px; border-radius:10px; background:#f7e9e7; color:#6d2a2f; font-size:.9rem; }
.cancel-fields { margin-top:12px; padding-top:4px; border-top:1px solid var(--border); }
.summary { padding:16px; margin-top:20px; }
.client-identity { display:flex; align-items:center; gap:14px; padding:16px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.client-identity p { margin:3px 0 0; color:var(--muted); font-size:.88rem; }
.identity-avatar { width:48px; height:48px; flex:0 0 48px; border-radius:50%; display:grid; place-items:center; background:var(--selected-soft); color:var(--accent); font-weight:950; }
.privacy,footer { font-size:.74rem; color:var(--muted); text-align:center; }
.success-icon { margin:0 auto 20px; width:64px; height:64px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:var(--on-accent); font-size:2rem; font-weight:900; }
.spinner { width:30px; height:30px; margin:auto; border:3px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
footer { margin-top:50px; }
.hidden { display:none!important; }
@media (max-width:480px) {
  h2 { font-size:1.75rem; }
  .shell { padding-left:18px; padding-right:18px; }
  header { flex-wrap:wrap; gap:12px; }
  header>div:first-child { flex:1 1 220px; }
  .header-actions { width:100%; justify-content:space-between; }
  .secure { font-size:.66rem; }
  .actions,.actions.three { grid-template-columns:1fr; }
  .actions .secondary { order:2; }
  .option { min-height:98px; padding:16px 14px; gap:10px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation-duration:.01ms!important; } }
