/* Warsha v8 polish layer: tokens, surfaces, motion. Loads after styles.css */
:root{
  --brown:#5b50e6; --brown-d:#4338ca; --cream:#f4f5fb; --cream-d:#e4e7f6;
  --green:#0ea5e9; --green-d:#0b7fb8; --ink:#1b1f3b; --muted:#6a7090; --red:#e0405a;
  --surface:#fff; --field:#f4f5fb; --h1:#6a5ff0; --h2:#4338ca; --on:#fff;
  --sh:0 1px 2px rgba(var(--shc),.05),0 8px 22px -10px rgba(var(--shc),.16);
  --sh-up:0 -4px 24px -8px rgba(var(--shc),.18),0 8px 24px -6px rgba(var(--shc),.18);
  --ok-bg:#dcf3ea; --ok-fg:#0b7a55; --late-bg:#fde3e8; --late-fg:#c72845; --due-bg:#fff0cc; --due-fg:#8a6410;
  --ease:cubic-bezier(.22,.9,.3,1); --radius:18px;
}
html[data-theme="blue"]{--brown:#2563eb; --brown-d:#1d4ed8; --cream:#f1f6fe; --cream-d:#dbe7fb; --green:#06b6d4; --green-d:#0e7490; --ink:#14233f; --muted:#64748f; --field:#f1f6fe; --h1:#3b82f6; --h2:#1d4ed8}
html[data-theme="green"]{--brown:#0f9d74; --brown-d:#047857; --cream:#f0f8f4; --cream-d:#d7eee2; --green:#14b8a6; --green-d:#0f766e; --ink:#12302a; --muted:#5f7a71; --field:#f0f8f4; --h1:#13b184; --h2:#047857}
html[data-theme="rose"]{--brown:#e11d48; --brown-d:#be123c; --cream:#fdf2f4; --cream-d:#f9dde3; --green:#f97316; --green-d:#c2410c; --ink:#3a1520; --muted:#85616b; --field:#fdf2f4; --h1:#f0476a; --h2:#be123c}
html[data-theme="dark"]{
  --brown:#7c6cf2; --brown-d:#b9b0ff; --cream:#0e1126; --cream-d:#2a2f55; --green:#38bdf8; --green-d:#7dd3fc;
  --ink:#eceefb; --muted:#9aa1c6; --red:#ff7a92; --surface:#181c38; --field:#12162f; --h1:#7c6cf2; --h2:#4f3fcf;
  --sh:0 1px 2px rgba(0,0,0,.3),0 8px 22px -10px rgba(0,0,0,.5); --sh-up:0 -4px 24px -8px rgba(0,0,0,.5),0 8px 24px -6px rgba(0,0,0,.5);
  --ok-bg:#12382d; --ok-fg:#6ee7b7; --late-bg:#3d1a26; --late-fg:#ff9aae; --due-bg:#3b3012; --due-fg:#f5d27a;
}
html{-webkit-text-size-adjust:100%}
body{background:var(--cream); color:var(--ink); padding-bottom:104px; transition:background-color .3s}
html[data-theme="dark"] body{background:var(--cream)}

/* header */
.appbar{background:linear-gradient(135deg,var(--h1),var(--h2)); color:#fff; border-radius:0 0 26px 26px;
  padding:calc(10px + env(safe-area-inset-top)) 18px 14px; box-shadow:0 10px 26px -12px rgba(var(--shc),.55)}
.appbar-title{font-size:1.15rem; letter-spacing:.2px}
.appbar-logo{width:32px; height:32px; border-radius:10px; box-shadow:0 2px 8px rgba(0,0,0,.25)}
.optbtn{background:rgba(255,255,255,.18); border-radius:12px; transition:transform .15s var(--ease),background .2s}
.optbtn:active{transform:scale(.92); background:rgba(255,255,255,.3)}
main{padding:6px 14px 14px}
.page-h{margin:16px 4px 12px; font-size:1.55rem; font-weight:900; letter-spacing:-.2px; color:var(--ink); line-height:1.25}
.page-h small{display:block; font-size:.82rem; color:var(--muted); font-weight:600; margin-top:2px; letter-spacing:0}

/* tab transition */
.tab.active{animation:tabin .26s var(--ease)}
@keyframes tabin{from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none}}

/* floating tab bar */
.tabbar{left:12px; right:12px; bottom:calc(10px + env(safe-area-inset-bottom)); max-width:616px; margin:0 auto;
  background:var(--surface); border-radius:24px; padding:6px; box-shadow:var(--sh-up); border:1px solid var(--cream-d); gap:2px}
.tabbtn{color:var(--muted); border-radius:18px; padding:7px 2px; gap:3px; transition:color .2s,background .25s var(--ease),transform .15s var(--ease)}
.tabbtn svg{transition:transform .25s var(--ease)}
.tabbtn:active{transform:scale(.94)}
.tabbtn.active{background:var(--cream-d); color:var(--brown); background:color-mix(in srgb,var(--brown) 14%,transparent)}
.tabbtn.active svg{transform:translateY(-1px) scale(1.08)}
.tabbtn.active span{font-weight:900}
html[data-theme="dark"] .tabbtn{color:var(--muted)}
html[data-theme="dark"] .tabbtn.active{color:#cfc8ff}

/* surfaces */
.card,.size-row,.stat,.saved-row,.lib-item,.viewer-in{background:var(--surface); border:1px solid var(--cream-d); box-shadow:var(--sh); border-radius:var(--radius)}
.card{padding:16px; margin-bottom:14px}
.size-row,.saved-row{border-radius:16px}
.stat{padding:12px 8px}
.stat .v{font-size:1.35rem}
.section-title{color:var(--muted); font-size:.82rem; letter-spacing:.3px; margin:20px 6px 8px}
.tool-title{color:var(--ink); font-size:1.1rem}
label{color:var(--muted); font-size:.8rem}
.hint{color:var(--muted)}
.sub{color:var(--brown)}
html[data-theme="dark"] .sub,html[data-theme="dark"] .brief-field .k,html[data-theme="dark"] .ac-syncrow .k{color:var(--brown-d)}
.brief-field .k,.ac-syncrow .k{color:var(--brown)}
.total-row{background:color-mix(in srgb,var(--brown) 10%,var(--surface)); color:var(--ink); border-radius:14px}
.score,.timer-clock,.stat .v{color:var(--brown)}
html[data-theme="dark"] .score,html[data-theme="dark"] .timer-clock,html[data-theme="dark"] .stat .v{color:#c8c0ff}
.timer-clock{font-size:2.9rem; letter-spacing:1px}

/* controls */
.btn{border-radius:14px; padding:12px 18px; transition:transform .15s var(--ease),box-shadow .2s,filter .2s}
.btn:active{transform:scale(.97)}
.btn.primary{background:linear-gradient(135deg,var(--h1),var(--h2)); color:#fff; box-shadow:0 8px 16px -8px var(--brown)}
.btn.primary:disabled{opacity:.45; box-shadow:none}
.btn.ghost{background:color-mix(in srgb,var(--brown) 11%,var(--surface)); color:var(--brown)}
html[data-theme="dark"] .btn.ghost{color:#cfc8ff}
.btn.danger{background:var(--late-bg); color:var(--late-fg)}
.iconbtn{background:var(--field); border-color:var(--cream-d); color:var(--brown); border-radius:11px; transition:transform .15s var(--ease)}
html[data-theme="dark"] .iconbtn{color:#cfc8ff; background:var(--field)}
.iconbtn:active{transform:scale(.92)}
.chip{background:var(--surface); border:1px solid var(--cream-d); color:var(--ink); padding:7px 15px; transition:background .2s,color .2s,transform .15s var(--ease)}
.chip:active{transform:scale(.95)}
.chip.active{background:var(--brown); color:#fff; border-color:var(--brown); box-shadow:0 6px 12px -6px var(--brown)}
input,select,textarea{background:var(--field); border:1.5px solid transparent; color:var(--ink); border-radius:13px; padding:12px 14px; transition:border-color .2s,box-shadow .2s,background .2s}
input:focus,select:focus,textarea:focus{outline:none; border-color:var(--brown); box-shadow:0 0 0 4px color-mix(in srgb,var(--brown) 16%,transparent); background:var(--surface)}
input::placeholder,textarea::placeholder{color:var(--muted); opacity:.8}
input[type=color]{background:var(--field); border-color:var(--cream-d)}
.filebtn{background:var(--field); border:1.5px dashed color-mix(in srgb,var(--brown) 50%,transparent); color:var(--brown); border-radius:14px; transition:transform .15s var(--ease)}
html[data-theme="dark"] .filebtn{color:#cfc8ff}
.filebtn:active{transform:scale(.97)}
.badge.ok{background:var(--ok-bg); color:var(--ok-fg)} .badge.late{background:var(--late-bg); color:var(--late-fg)} .badge.due{background:var(--due-bg); color:var(--due-fg)}
.note-warn{background:var(--due-bg); color:var(--due-fg)}
.err{background:var(--late-bg); color:var(--late-fg)}
.pair{background:var(--field)}
.dot{background:var(--cream-d)} .dot.on{background:var(--brown)}
.lib-link{background:var(--field); color:var(--brown)}
.btn.google{background:var(--surface); color:var(--ink); border-color:var(--cream-d)}
.ac-pair{background:var(--field)}
.preview,.font-sample,.swatch,.harm-sw{border-color:var(--cream-d)}
.size-row:active,.saved-row:active,.lib-item:active{transform:scale(.99)}
.size-row,.saved-row,.lib-item{transition:transform .15s var(--ease)}
#platformChips{padding-bottom:12px}

/* sheets */
.sheet-panel{background:var(--surface); border-radius:26px 26px 0 0}
.opt-row{background:var(--field); border:0; border-radius:16px}
.opt-ic{color:var(--brown)}
html[data-theme="dark"] .opt-ic{color:#cfc8ff}
.sheet-backbtn{color:var(--brown)}
.theme-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.theme-card{position:relative; display:flex; flex-direction:column; align-items:stretch; gap:10px; padding:10px; border-radius:18px; border:2px solid transparent; background:var(--field); color:var(--ink); font-family:inherit; font-weight:800; cursor:pointer; transition:transform .18s var(--ease),border-color .2s}
.theme-card:active{transform:scale(.97)}
.theme-card.sel{border-color:var(--brown)}
.theme-dots{display:flex; height:64px; border-radius:12px; overflow:hidden; box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.theme-dots i{flex:1}
.theme-name{font-size:.9rem; text-align:center}
.theme-check{position:absolute; top:16px; inset-inline-start:16px; width:24px; height:24px; border-radius:50%; background:var(--brown); color:#fff; display:flex; align-items:center; justify-content:center; opacity:0; transform:scale(.4); transition:opacity .2s,transform .25s var(--ease)}
.theme-card.sel .theme-check{opacity:1; transform:none}
.theme-check svg{width:14px; height:14px}
.theme-card{background:var(--cream)}
html[data-theme="dark"] .theme-card,html[data-theme="dark"] .opt-row,html[data-theme="dark"] .sheet-panel{background:var(--surface)}
html[data-theme="dark"] .opt-row,html[data-theme="dark"] .theme-card{background:var(--field)}

/* tools launcher */
.tg{margin:4px 2px 4px; font-size:.78rem; font-weight:900; color:var(--muted); letter-spacing:.4px; margin-top:18px}
.tg:first-child{margin-top:4px}
.tgrid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px}
.tile{display:flex; flex-direction:column; align-items:flex-start; gap:10px; text-align:start; padding:14px; border-radius:var(--radius);
  background:var(--surface); border:1px solid var(--cream-d); box-shadow:var(--sh); font-family:inherit; color:var(--ink); cursor:pointer;
  opacity:0; animation:tilein .34s var(--ease) forwards; transition:transform .15s var(--ease),box-shadow .2s}
.tile:active{transform:scale(.96)}
@keyframes tilein{from{opacity:0; transform:translateY(12px) scale(.98)} to{opacity:1; transform:none}}
.tile-ic{width:42px; height:42px; border-radius:14px; display:flex; align-items:center; justify-content:center; color:#fff; background:linear-gradient(135deg,var(--h1),var(--h2)); box-shadow:0 6px 12px -6px var(--brown)}
.tile-ic svg{width:22px; height:22px}
.tile b{font-size:.95rem; font-weight:900; line-height:1.3}
.tile small{font-size:.74rem; color:var(--muted); font-weight:600; line-height:1.55; margin-top:-6px}
.toolbar{display:flex; align-items:center; gap:10px; margin:14px 0 -4px}
.tb-back{width:40px; height:40px; border-radius:13px; border:1px solid var(--cream-d); background:var(--surface); color:var(--brown); display:flex; align-items:center; justify-content:center; box-shadow:var(--sh); cursor:pointer; transition:transform .15s var(--ease)}
html[data-theme="dark"] .tb-back{color:#cfc8ff}
.tb-back:active{transform:scale(.9)}
.tb-title{font-weight:900; font-size:1.15rem}
.tool:not([hidden]){animation:toolin .3s var(--ease)}
@keyframes toolin{from{opacity:0; transform:translateX(-14px)} to{opacity:1; transform:none}}
.tool-title{display:none}
.viewer-in{border:0}
.viewer{backdrop-filter:none}

@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms !important; transition-duration:.01ms !important}}
@media print{.page-h,.tabbar{display:none !important}}

#toolBar:not([hidden]) ~ * {}
#toolBar:not([hidden]) + .tool{margin-top:0}
.toolbar:not([hidden]) ~ .page-h{}

/* sign-in screen */
body.auth-gated .appbar{display:none}
body.auth-gated{background:linear-gradient(180deg,var(--h1) 0,var(--h2) 260px,var(--cream) 261px); background-repeat:no-repeat; min-height:100vh; padding-bottom:24px}
body.auth-gated #tab-account{max-width:440px; margin:0 auto; padding:calc(64px + env(safe-area-inset-top)) 16px 24px}
body.auth-gated #tab-account.tab{display:block !important}
#acOut.card{border-radius:26px; padding:0 20px 22px; box-shadow:var(--sh-up); border:0; overflow:visible}
.ac-head{padding-top:0; margin-bottom:6px}
.ac-hero{width:76px; height:76px; margin:-38px auto 8px; border-radius:24px; background:var(--surface); display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px -8px rgba(var(--shc),.45)}
.ac-hero img{border-radius:16px; display:block}
.ac-brand{margin:0; font-size:1.6rem; font-weight:900; color:var(--ink)}
.ac-tag{margin:4px 0 14px; color:var(--muted); font-size:.85rem; font-weight:600; line-height:1.7}
.seg{position:relative; display:grid; grid-template-columns:1fr 1fr; background:var(--field); border-radius:14px; padding:4px; isolation:isolate}
.seg-b{border:0; background:none; font-family:inherit; font-weight:800; font-size:.92rem; color:var(--muted); padding:10px 0; border-radius:11px; cursor:pointer; transition:color .2s; z-index:1}
.seg-b.on{color:var(--brown)}
html[data-theme="dark"] .seg-b.on{color:#fff}
.seg-thumb{position:absolute; top:4px; bottom:4px; inset-inline-start:4px; width:calc(50% - 4px); background:var(--surface); border-radius:11px; box-shadow:0 2px 8px rgba(var(--shc),.14); transition:transform .3s var(--ease); z-index:0}
html[dir=rtl] .seg.reg .seg-thumb{transform:translateX(-100%)}
html[dir=ltr] .seg.reg .seg-thumb{transform:translateX(100%)}
.ac-eye{position:absolute; top:50%; transform:translateY(-50%); right:6px; border:0; background:none; color:var(--muted); width:36px; height:36px; display:flex; align-items:center; justify-content:center; cursor:pointer}
.ac-mailwrap input{padding-left:14px; padding-right:46px}
#acMsg .note-warn{margin:0; font-size:.85rem}
#acMsg .empty-note{padding:6px; font-size:.85rem}
#acSubmit{padding:14px; font-size:1rem}
#acSubmit.busy{opacity:.7}

/* wide screens: same phone layout as the app, centred */
@media (min-width:600px){
  html{background:var(--cream-d)}
  body{max-width:480px; margin:0 auto; min-height:100vh; background:var(--cream); box-shadow:0 0 0 1px color-mix(in srgb,var(--ink) 8%,transparent),0 20px 60px -20px rgba(var(--shc),.35)}
  .tabbar{max-width:456px}
}
.appbar-title{color:#fff}
html[data-theme="dark"] .appbar{background:linear-gradient(135deg,#5b4be0,#3a2fa8)}

.ac-gbadge{left:8px; right:auto}
.is-app .dl-apk, .is-app .ac-or:has(+ .dl-apk){display:none}
#acEmail{padding-left:46px}

.ac-pair{display:none !important}
#acOut .seg{margin-bottom:6px}

/* colour wheel */
.cp-sw{width:52px;height:46px;border-radius:14px;border:2px solid var(--cream-d);background:var(--c,#7c6cf2);box-shadow:var(--sh);cursor:pointer;flex:none;transition:transform .15s var(--ease)}
.cp-sw:active{transform:scale(.94)}
label .cp-sw{display:block;margin-top:6px;width:100%}
.cp-back{position:fixed;inset:0;z-index:9999;background:rgba(10,12,30,0);display:flex;align-items:flex-end;justify-content:center;transition:background .22s}
.cp-back.on{background:rgba(10,12,30,.5)}
.cp-sheet{background:var(--surface);color:var(--ink);width:100%;max-width:440px;border-radius:26px 26px 0 0;padding:18px 20px calc(18px + env(safe-area-inset-bottom));
  box-shadow:var(--sh-up);transform:translateY(100%);transition:transform .26s var(--ease)}
.cp-back.on .cp-sheet{transform:none}
.cp-title{font-weight:800;font-size:1.05rem;margin-bottom:14px;text-align:center}
.cp-wheel{position:relative;width:min(78vw,300px);aspect-ratio:1;margin:0 auto 16px;touch-action:none}
.cp-ring{position:absolute;inset:0;border-radius:50%;touch-action:none;
  background:conic-gradient(from 0deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);
  -webkit-mask:radial-gradient(circle,transparent 0 68%,#000 69%);mask:radial-gradient(circle,transparent 0 68%,#000 69%)}
.cp-ringk,.cp-svk{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1.5px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.35);pointer-events:none}
.cp-sv{position:absolute;left:22%;top:22%;width:56%;height:56%;border-radius:10px;touch-action:none;
  background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,var(--hue,red))}
.cp-svk{width:22px;height:22px;margin:-11px 0 0 -11px}
.cp-row{display:flex;gap:12px;align-items:center;margin-bottom:16px}
.cp-prev{display:flex;width:84px;height:46px;border-radius:14px;overflow:hidden;border:2px solid var(--cream-d);flex:none}
.cp-prev i{flex:1}
.cp-hex{flex:1;min-width:0;text-align:center;font-family:ui-monospace,monospace;font-size:1.05rem;font-weight:700;letter-spacing:.5px;text-transform:lowercase;padding:12px;border-radius:14px;border:2px solid var(--cream-d);background:var(--field);color:var(--ink)}
.cp-act{display:flex;gap:10px}.cp-act .btn{flex:1}

/* theme sheet v2 */
.tsheet{display:flex; flex-direction:column; max-height:88vh; max-height:88dvh; padding-bottom:calc(22px + env(safe-area-inset-bottom)); overflow:hidden}
.tsheet .sheet-grab{flex:none; width:44px; height:5px; margin:0 auto 14px; padding:0; touch-action:none; position:relative}
.tsheet .sheet-grab::after{content:""; position:absolute; inset:-14px -30px}
.tsheet .sheet-head{flex:none; position:relative; margin-bottom:14px}
.tsheet .sheet-head .sheet-title{font-size:1.1rem}
.sheet-x{position:absolute; inset-inline-end:0; top:50%; transform:translateY(-50%); width:36px; height:36px; border:0; border-radius:50%; background:var(--field); color:var(--ink); display:flex; align-items:center; justify-content:center; cursor:pointer}
.tsheet .theme-grid{display:flex; flex-direction:column; gap:10px; overflow-y:auto; overscroll-behavior:contain; padding:3px 3px 4px; margin:0 -3px; -webkit-overflow-scrolling:touch}
.tsheet .theme-card{flex:none; flex-direction:row; align-items:center; gap:14px; padding:10px 14px 10px 10px; border-radius:18px; border:2px solid transparent; background:var(--field); text-align:start}
.tsheet .theme-card.sel{border-color:var(--brown); background:var(--surface); box-shadow:0 0 0 3px color-mix(in srgb,var(--brown) 16%,transparent)}
.tp{flex:none; width:132px; height:80px; border-radius:12px; overflow:hidden; display:flex; flex-direction:column; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.tp-h{flex:none; height:20px; display:flex; align-items:center; justify-content:space-between; padding:0 7px; direction:ltr}
.tp-h i{width:9px; height:9px; border-radius:3px; background:rgba(255,255,255,.85)}
.tp-h b{width:34px; height:5px; border-radius:3px; background:rgba(255,255,255,.7)}
.tp-c{flex:1; margin:7px 8px 8px; border-radius:8px; padding:7px 8px; display:flex; flex-direction:column; gap:4px; justify-content:center}
.tp-c u{display:block; height:5px; border-radius:3px; width:70%; opacity:.85}
.tp-c u+u{width:48%; opacity:.6}
.tp-c em{display:block; height:12px; width:46px; border-radius:6px; margin-top:2px}
.tsheet .theme-name{flex:1; font-size:1rem; font-weight:900; text-align:start}
.tsheet .theme-check{position:static; flex:none; width:26px; height:26px; opacity:0; transform:scale(.4)}
.tsheet .theme-card.sel .theme-check{opacity:1; transform:none}
.tsheet .theme-check svg{width:15px; height:15px}
.tsheet .theme-card:not(.sel) .theme-check{background:transparent; box-shadow:inset 0 0 0 2px var(--cream-d); opacity:1; transform:none; color:transparent}

/* settings page */
.spage{position:fixed; inset:0; z-index:70; background:var(--cream); display:flex; flex-direction:column; transform:translateX(-100%); transition:transform .32s cubic-bezier(.22,.9,.3,1)}
.spage.open{transform:none}
.spage-bar{flex:none; display:flex; align-items:center; gap:8px; padding:calc(10px + env(safe-area-inset-top)) 12px 12px; background:linear-gradient(135deg,var(--h1),var(--h2)); color:#fff; border-radius:0 0 26px 26px; box-shadow:0 10px 26px -12px rgba(var(--shc),.55)}
html[data-theme="dark"] .spage-bar{background:linear-gradient(135deg,#5b4be0,#3a2fa8)}
.spage-title{flex:1; text-align:center; font-weight:900; font-size:1.1rem}
.spage-back,.spage-gap{width:40px; height:40px; flex:none}
.spage-back{border:0; border-radius:50%; background:rgba(255,255,255,.16); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer}
.spage-body{flex:1; overflow-y:auto; overscroll-behavior:contain; padding:18px 16px calc(28px + env(safe-area-inset-bottom)); max-width:640px; width:100%; margin:0 auto}
.spage-sec{font-size:.8rem; font-weight:900; color:var(--muted); margin:2px 4px 10px}
.spage-sec:not(:first-child){margin-top:24px}
.spage-row{display:flex; align-items:center; gap:12px; background:var(--field,#fff); border-radius:16px; padding:14px; font-weight:800; color:var(--ink)}
.spage .theme-grid{display:flex; flex-direction:column; gap:10px; padding:3px; margin:0 -3px}
.spage .theme-card{flex:none; flex-direction:row; align-items:center; gap:14px; padding:10px 14px 10px 10px; border-radius:18px; border:2px solid transparent; background:var(--surface,#fff); text-align:start}
.spage .theme-card.sel{border-color:var(--brown); box-shadow:0 0 0 3px color-mix(in srgb,var(--brown) 16%,transparent)}
.spage .theme-name{flex:1; font-size:1rem; font-weight:900; text-align:start}
.spage .theme-check{position:static; flex:none; width:26px; height:26px; opacity:1; transform:none; background:transparent; color:transparent; box-shadow:inset 0 0 0 2px var(--cream-d)}
.spage .theme-card.sel .theme-check{background:var(--brown); color:#fff; box-shadow:none}
.spage .theme-check svg{width:15px; height:15px}
body.sp-open{overflow:hidden}

/* theme-driven shadows and brand tile */
:root{--shc:24,28,70}
html[data-theme="blue"]{--shc:20,35,63}
html[data-theme="green"]{--shc:18,48,42}
html[data-theme="rose"]{--shc:58,21,32}
html[data-theme="dark"]{--shc:0,0,0}
.brand-tile{display:inline-block; flex:none; border-radius:22%; background:url(icons/glyph-192.png) center/100% 100% no-repeat, linear-gradient(135deg,var(--green),var(--h1)); box-shadow:0 2px 8px rgba(var(--shc),.3)}
.appbar-logo.brand-tile{width:32px; height:32px; border-radius:10px}
.ac-hero .brand-tile{width:56px; height:56px; border-radius:16px}
