/* App shell in the Arc look: header + auth / account / consent dialogs.
   Tokens mirror the React pages (frontend/src/ui/ui.module.css). */
:root{--sh-surface:#171d1f;--sh-raised:#1c2427;--sh-muted:#20292c;--sh-border:#2b3337;--sh-border-soft:#222a2d;--sh-accent:#a78bfa;--sh-accent-soft:rgba(167,139,250,.14)}

/* ---- Header ---- */
.header{background:rgba(11,14,15,.82);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--sh-border-soft)}
.brand-beta{border-radius:999px;border-color:var(--sh-border);padding:2px 7px;font-weight:700;color:var(--muted)}
.header-search{background:var(--sh-surface);border-color:var(--sh-border);border-radius:10px}
.header-search:focus-within{background:var(--sh-surface);border-color:var(--sh-accent);box-shadow:0 0 0 3px var(--sh-accent-soft)}
.header-search-kbd kbd{background:var(--sh-muted);border-color:var(--sh-border);border-radius:6px}
.header-search-dropdown{background:var(--sh-surface);border-color:var(--sh-border);border-radius:14px;box-shadow:0 18px 44px rgba(0,0,0,.55)}
.nav-segmented{gap:2px;padding:3px;background:var(--sh-surface);border:1px solid var(--sh-border);border-radius:12px}
.nav-seg-btn{border-radius:9px;padding:7px 14px;color:var(--muted)}
.nav-seg-btn:hover{background:var(--sh-muted);color:var(--ink)}
.nav-seg-btn.active{background:var(--sh-muted);color:var(--ink);box-shadow:inset 0 0 0 1px var(--sh-border)}
.nav-seg-btn.active svg{color:var(--sh-accent)}
.header-club-level{padding:5px 12px 5px 8px;border:1px solid var(--sh-border);border-radius:12px;background:var(--sh-surface);transition:background .15s,border-color .15s}
.header-club-level:hover{background:var(--sh-muted);border-color:#38424a}
.header-club-level:focus-visible{outline:2px solid var(--sh-accent);outline-offset:2px;border-radius:12px}
.header-club-level-placeholder{color:var(--sh-accent)}
.header-avatar{background:var(--sh-surface);border-color:var(--sh-border);transition:background .15s,border-color .15s}
.header-avatar:hover{background:var(--sh-muted)}
.header-avatar:focus-visible{outline:2px solid var(--sh-accent);outline-offset:2px}
@media(max-width:720px){
  .nav-segmented{background:rgba(11,14,15,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:0;border-top:1px solid var(--sh-border-soft);border-radius:0;padding:0 12px calc(env(safe-area-inset-bottom,0px))}
  .nav-seg-btn.active{background:var(--sh-accent-soft);box-shadow:none}
}

/* ---- Auth / account / consent dialogs ---- */
#auth-modal,#account-modal,#consent-modal{background:rgba(5,7,8,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.auth-sheet{position:relative;max-width:440px;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:28px;background:var(--sh-surface);border:1px solid var(--sh-border);border-radius:20px;box-shadow:0 28px 70px rgba(0,0,0,.6);text-align:left}
.auth-sheet h2{margin:0 0 8px;font-size:22px;line-height:1.2;letter-spacing:-.02em;font-weight:700;color:var(--ink)}
.auth-sheet>p{margin:0 0 16px;font-size:13.5px;line-height:1.6;color:var(--muted)}
.auth-sheet .btn-close{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:transparent;border:1px solid transparent;color:var(--muted);cursor:pointer;transition:background .15s,color .15s}
.auth-sheet .btn-close:hover{background:var(--sh-muted);color:var(--ink)}
.auth-sheet .btn-close:focus-visible,.auth-sheet a:focus-visible,.auth-sheet button:focus-visible,.auth-sheet input:focus-visible{outline:2px solid var(--sh-accent);outline-offset:2px}
.auth-sheet .auth-note{text-align:left;margin-top:12px;color:var(--muted);font-size:12px;line-height:1.55}
.auth-sheet span.auth-note{margin-top:0;font-size:11px;font-weight:700;letter-spacing:.08em}
.auth-sheet a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--sh-border);text-underline-offset:3px}
.auth-sheet a:hover{text-decoration-color:var(--sh-accent)}
.auth-benefits{display:grid;gap:8px;margin:0 0 16px;padding:14px;background:var(--sh-raised);border:1px solid var(--sh-border-soft);border-radius:14px}
.auth-benefit-item{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;color:var(--ink)}
.auth-benefit-item svg{flex:none;width:16px;height:16px;margin-top:2px;padding:2px;border-radius:50%;background:var(--sh-accent-soft);color:var(--sh-accent)}
.auth-consent{display:grid;gap:10px;margin:16px 0 12px}
.auth-check{display:flex;gap:10px;align-items:flex-start;font-size:12.5px;line-height:1.5;color:var(--ink);cursor:pointer}
.auth-check input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--sh-accent);cursor:pointer}
.auth-error{display:none;margin:0 0 12px;padding:10px 12px;border:1px solid rgba(255,133,133,.35);background:rgba(255,133,133,.08);border-radius:10px;color:#ffb0b0;font-size:12.5px;line-height:1.45}
.auth-error:not(:empty){display:block}
.auth-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--sh-border);background:var(--ink);color:#0b0e0f;font:inherit;font-size:14px;font-weight:650;cursor:pointer;transition:opacity .15s,transform .1s}
.auth-google:hover:not(:disabled){opacity:.92}.auth-google:active:not(:disabled){transform:translateY(1px)}
.auth-google:disabled{opacity:.45;cursor:not-allowed}
.auth-sheet .sq-button{display:flex;align-items:center;justify-content:center;gap:8px;height:42px;border-radius:12px;background:var(--sh-surface);border:1px solid var(--sh-border);color:var(--ink);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.auth-sheet .sq-button:hover{background:var(--sh-muted)}
.auth-sheet .sq-button svg{width:16px;height:16px}
.auth-sheet .auth-danger{border-color:rgba(255,133,133,.35);color:#ffb0b0}
.auth-sheet .auth-danger:hover{background:rgba(255,133,133,.08)}
.auth-field label{display:block;margin-bottom:7px;font-size:12px;font-weight:650;color:var(--ink)}
.auth-field input{width:100%;height:44px;padding:0 13px;border-radius:12px;font:inherit;font-size:14px;background:var(--sh-raised)!important;border:1px solid var(--sh-border)!important;color:var(--ink)!important}
.auth-field input:focus{border-color:var(--sh-accent)!important;box-shadow:0 0 0 3px var(--sh-accent-soft)}
.auth-sheet hr{border:0;border-top:1px solid var(--sh-border-soft);margin:16px 0}
@media(max-width:540px){.auth-sheet{padding:22px 18px;border-radius:20px 20px 0 0;align-self:end}}
@media(prefers-reduced-motion:reduce){.auth-google,.auth-sheet .sq-button,.header-club-level{transition:none}}
@media(max-width:1180px){.header-club-points{display:none}.header-search{flex-basis:200px}}
@media(max-width:1100px){.header-club-level-copy small{display:none}.nav-seg-btn{padding:7px 10px}.header-inner{gap:14px}.header-right{gap:10px}.header-search{flex-basis:160px;max-width:200px}.brand-beta{display:none}}
