/* SCMP 备考 — warm paper design system */
:root{
  --bg:#FAF9F5; --bg2:#F5F4EE; --surface:#FFFEFB; --card:#F3EFE6; --line:#E4DED1; --line2:#D6CEBD;
  --text:#1F1E1D; --text2:#57534B; --text3:#6E695F;
  --accent:#C6613F; --accent-strong:#A0492A; --accent-soft:#F4E3DA; --on-accent:#FFFFFF;
  --ok:#4F7344; --ok-bg:#E6EDDD; --ok-line:#A9C19A;
  --bad:#A8432B; --bad-bg:#F7E3DB; --bad-line:#E3AC98;
  --warn:#8A6417; --warn-bg:#F6ECD3;
  --m0:#E4DED1; --m1:#E9C9A0; --m2:#D98F6B; --m3:#7E9C6C; --mweak:#C9563A;
  --shadow:0 1px 2px rgba(60,45,30,.06),0 4px 16px rgba(60,45,30,.06);
  --r:16px; --r-sm:10px; --r-lg:24px;
  --serif:"Songti SC","Noto Serif CJK SC","Source Han Serif SC","STSong",Georgia,"Times New Roman",serif;
  --display:Georgia,"Songti SC","Noto Serif CJK SC","Source Han Serif SC",serif;
  --sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei","Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --sat:env(safe-area-inset-top,0px); --sab:env(safe-area-inset-bottom,0px); --sal:env(safe-area-inset-left,0px); --sar:env(safe-area-inset-right,0px);
  --nav-h:64px; --ease:cubic-bezier(.2,.7,.2,1);
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#1E1D1B; --bg2:#262522; --surface:#2B2A27; --card:#302E2A; --line:#3D3B36; --line2:#4A4740;
  --text:#EEEAE2; --text2:#C2BCB0; --text3:#ABA498;
  --accent:#E0896A; --accent-strong:#EE9F82; --accent-soft:#45322A; --on-accent:#1E1D1B;
  --ok:#A9C79A; --ok-bg:#2E3A29; --ok-line:#5C7651;
  --bad:#F0A48C; --bad-bg:#46302A; --bad-line:#86513F;
  --warn:#E5C47E; --warn-bg:#3E3523;
  --m0:#3D3B36; --m1:#7A6347; --m2:#B8735A; --m3:#7E9C6C; --mweak:#D9694C;
  --shadow:0 1px 2px rgba(0,0,0,.25),0 6px 20px rgba(0,0,0,.25);
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.65 var(--sans);-webkit-font-smoothing:antialiased;min-height:100vh;min-height:100dvh;
  padding-left:var(--sal);padding-right:var(--sar);overscroll-behavior-y:none}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--accent-strong)}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:8px}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
h1,h2,h3{font-family:var(--display);font-weight:600;letter-spacing:.01em;line-height:1.3;margin:0}
h1{font-size:1.75rem} h2{font-size:1.3rem} h3{font-size:1.08rem}
.serif{font-family:var(--serif)}
.muted{color:var(--text2)} .faint{color:var(--text3)} .small{font-size:.875rem} .tiny{font-size:.78rem}
.app{max-width:1080px;margin:0 auto;padding:calc(12px + var(--sat)) 16px calc(var(--nav-h) + 24px + var(--sab));}
.view{animation:fadeIn .28s var(--ease)}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* top header */
.top{display:flex;align-items:center;gap:12px;margin:4px 0 18px}
.top .brand{display:flex;align-items:center;gap:10px;font-family:var(--display);font-size:1.15rem;font-weight:600}
.logo{width:30px;height:30px;border-radius:9px;background:var(--accent);display:grid;place-items:center;color:var(--on-accent);font-family:var(--display);font-weight:700}
.top .sp{flex:1}
.iconbtn{min-width:44px;min-height:44px;border-radius:12px;border:1px solid transparent;background:transparent;display:inline-grid;place-items:center;cursor:pointer;color:var(--text2)}
.iconbtn:active{background:var(--bg2)}
.iconbtn svg{width:22px;height:22px}
/* nav */
.nav{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--bg);background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:saturate(1.2) blur(14px);-webkit-backdrop-filter:saturate(1.2) blur(14px);
  border-top:1px solid var(--line);padding:6px calc(8px + var(--sar)) calc(6px + var(--sab)) calc(8px + var(--sal));display:flex;justify-content:space-around}
.nav a{flex:1;max-width:120px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:var(--text3);font-size:.75rem;border-radius:12px}
.nav a svg{width:24px;height:24px}
.nav a[aria-current="page"]{color:var(--accent-strong);font-weight:600}
.nav a[aria-current="page"] svg{stroke-width:2.2}
@media (min-width:900px){
  .nav{top:0;bottom:0;right:auto;width:96px;flex-direction:column;justify-content:flex-start;padding:calc(24px + var(--sat)) 8px;border-top:0;border-right:1px solid var(--line);gap:6px}
  .nav a{max-width:none;flex:0 0 auto;min-height:64px}
  .app{padding-left:120px;padding-bottom:40px;max-width:1180px}
}
/* surfaces */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;box-shadow:var(--shadow)}
.card.soft{background:var(--card);box-shadow:none}
.card + .card{margin-top:14px}
.grid{display:grid;gap:14px}
@media (min-width:720px){.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}}
.row{display:flex;align-items:center;gap:12px}
.row.wrap{flex-wrap:wrap}
.stack>*+*{margin-top:10px}
.sec-title{display:flex;align-items:baseline;justify-content:space-between;margin:26px 2px 10px}
.sec-title h2{font-size:1.15rem}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:var(--bg2);border:1px solid var(--line);font-size:.78rem;color:var(--text2);white-space:nowrap}
.pill.accent{background:var(--accent-soft);border-color:transparent;color:var(--accent-strong)}
.pill.ok{background:var(--ok-bg);color:var(--ok);border-color:transparent}
.pill.bad{background:var(--bad-bg);color:var(--bad);border-color:transparent}
.pill.warn{background:var(--warn-bg);color:var(--warn);border-color:transparent}
/* buttons */
.btn{appearance:none;border:1px solid var(--line2);background:var(--surface);color:var(--text);min-height:48px;padding:10px 18px;border-radius:14px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:transform .12s var(--ease),background .2s}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--on-accent)}
:root[data-theme="dark"] .btn.primary{background:var(--accent);border-color:var(--accent)}
.btn.ghost{background:transparent;border-color:transparent;color:var(--text2)}
.btn.soft{background:var(--bg2);border-color:var(--line)}
.btn.block{width:100%}
.btn.lg{min-height:56px;font-size:1.05rem;border-radius:16px}
.btn[disabled]{opacity:.5;pointer-events:none}
.seg{display:inline-flex;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:3px;gap:2px}
.seg button{min-height:40px;min-width:48px;padding:6px 12px;border:0;background:transparent;border-radius:9px;cursor:pointer;color:var(--text2);font-weight:600}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
/* home */
.hello{margin:8px 2px 18px}
.hello h1{font-size:1.9rem}
.hero{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}
.ring{position:relative;width:118px;height:118px}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .track{stroke:var(--bg2)} .ring .bar{stroke:var(--accent);transition:stroke-dashoffset .8s var(--ease)}
.ring .lbl{position:absolute;inset:0;display:grid;place-items:center;text-align:center;line-height:1.15}
.ring .lbl b{font-family:var(--display);font-size:1.6rem;display:block}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stat{background:var(--bg2);border-radius:12px;padding:10px 12px}
.stat b{display:block;font-family:var(--display);font-size:1.35rem;line-height:1.2}
.stat span{font-size:.78rem;color:var(--text2)}
.countdown b{color:var(--accent-strong)}
.action{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);text-decoration:none;color:inherit;min-height:72px;cursor:pointer;width:100%;text-align:left;box-shadow:var(--shadow)}
.action:active{transform:scale(.99)}
.action .ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-strong);flex:none}
.action .ic svg{width:22px;height:22px}
.action .t{flex:1;min-width:0}
.action .t b{display:block;font-weight:600}
.action .t span{font-size:.85rem;color:var(--text2)}
.action .n{font-family:var(--display);font-size:1.4rem;color:var(--accent-strong)}
.bars .b{margin:10px 0}
.bars .b .lab{display:flex;justify-content:space-between;font-size:.88rem;margin-bottom:4px}
.meter{position:relative;height:10px;background:var(--bg2);border-radius:999px;overflow:visible;border:1px solid var(--line)}
.meter i{display:block;height:100%;border-radius:999px;background:var(--accent);transition:width .6s var(--ease)}
.meter i.ok{background:var(--m3)}
.meter .target{position:absolute;top:-4px;bottom:-4px;width:2px;background:var(--text);opacity:.55;border-radius:2px}
/* question */
.qtop{position:sticky;top:0;z-index:20;margin:0 -16px 12px;padding:calc(8px + var(--sat)) 16px 10px;background:var(--bg);box-shadow:0 1px 0 var(--line)}
.qtop .row{gap:8px}
.progress{flex:1;height:8px;border-radius:999px;background:var(--bg2);overflow:hidden;border:1px solid var(--line)}
.progress i{display:block;height:100%;background:var(--accent);border-radius:999px;transition:width .45s var(--ease)}
.qcount{font-variant-numeric:tabular-nums;font-size:.85rem;color:var(--text2);min-width:48px;text-align:right}
.qcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px 18px;box-shadow:var(--shadow)}
.crumbs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.stem{font-family:var(--serif);font-size:1.16rem;line-height:1.75;white-space:pre-wrap;margin:0}
.opts{display:grid;gap:10px;margin-top:18px}
.opt{display:flex;gap:12px;align-items:flex-start;text-align:left;width:100%;min-height:56px;padding:13px 14px;border-radius:14px;border:1.5px solid var(--line);background:var(--bg);cursor:pointer;line-height:1.55;transition:border-color .2s,background .2s,transform .12s;position:relative}
.opt:active{transform:scale(.99)}
.opt .k{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-weight:700;font-size:.9rem;background:var(--bg2);color:var(--text2);border:1px solid var(--line)}
.opt .tx{flex:1;padding-top:2px}
.opt.sel{border-color:var(--accent)}
.opt.right{border-color:var(--ok-line);background:var(--ok-bg)}
.opt.right .k{background:var(--ok);color:#fff;border-color:transparent}
:root[data-theme="dark"] .opt.right .k{color:#1E1D1B}
.opt.wrong{border-color:var(--bad-line);background:var(--bad-bg)}
.opt.wrong .k{background:var(--bad);color:#fff;border-color:transparent}
:root[data-theme="dark"] .opt.wrong .k{color:#1E1D1B}
.opt.dim{opacity:.62}
.opt[disabled]{cursor:default}
.opt.marked{border-color:var(--accent);background:var(--accent-soft)}
.feedback{display:flex;align-items:center;gap:10px;margin:16px 2px 4px;font-family:var(--display);font-size:1.12rem}
.feedback .dot{width:12px;height:12px;border-radius:50%}
.feedback.ok{color:var(--ok)} .feedback.ok .dot{background:var(--ok)}
.feedback.bad{color:var(--bad)} .feedback.bad .dot{background:var(--bad)}
.expl{margin-top:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px}
.expl h3{font-size:.95rem;margin-bottom:6px;color:var(--text2);font-family:var(--sans);font-weight:700;letter-spacing:.04em}
.expl p{margin:0}
.loc{margin-top:12px;border-left:3px solid var(--accent);background:var(--surface);border-radius:0 12px 12px 0;padding:10px 14px;font-size:.88rem}
.loc .lt{font-weight:700;font-size:.78rem;letter-spacing:.08em;color:var(--accent-strong);margin-bottom:2px}
.loc ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:2px 0}
.loc li{color:var(--text2)}
.loc li+li::before{content:"›";margin:0 6px;color:var(--text3)}
.loc li:last-child{color:var(--text);font-weight:600}
.tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.tool{min-height:44px;padding:8px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);cursor:pointer;display:inline-flex;gap:6px;align-items:center;font-size:.88rem;color:var(--text2)}
.tool[aria-pressed="true"]{background:var(--accent-soft);border-color:transparent;color:var(--accent-strong);font-weight:600}
.tool svg{width:18px;height:18px}
.nextbar{position:sticky;bottom:0;margin:16px -16px 0;padding:12px 16px calc(12px + var(--sab));background:linear-gradient(to top,var(--bg) 70%,transparent);z-index:15}
.kbd{font-family:var(--mono);font-size:.72rem;border:1px solid var(--line2);border-bottom-width:2px;border-radius:5px;padding:0 5px;color:var(--text3)}
.hide-touch{display:none}
@media (hover:hover) and (pointer:fine){.hide-touch{display:inline}}
/* celebrate */
.burst{position:absolute;pointer-events:none;inset:0;overflow:visible}
.burst i{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--accent);left:var(--x);top:50%;opacity:0;animation:burst .7s var(--ease) forwards}
.burst i:nth-child(3n){background:var(--m3)} .burst i:nth-child(3n+1){background:var(--m1)}
@keyframes burst{0%{opacity:1;transform:translate(0,0) scale(.6)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(1)}}
.pop{animation:pop .35s var(--ease)}
@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.025)}100%{transform:scale(1)}}
.shake{animation:shake .32s ease}
@keyframes shake{20%{transform:translateX(-4px)}40%{transform:translateX(4px)}60%{transform:translateX(-2px)}80%{transform:translateX(2px)}}
/* summary */
.big{font-family:var(--display);font-size:3rem;line-height:1}
.center{text-align:center}
/* tree */
.tree-head{display:flex;gap:16px;align-items:center}
.sprout{width:84px;height:84px;flex:none}
.tabs{display:flex;gap:6px;overflow-x:auto;padding:2px;margin:12px 0;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:none;min-height:44px;padding:8px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:600;color:var(--text2)}
.tabs button[aria-selected="true"]{background:var(--text);color:var(--bg);border-color:var(--text)}
.node{border:1px solid var(--line);border-radius:14px;background:var(--surface);margin:8px 0;overflow:hidden}
.node>summary{list-style:none;cursor:pointer;padding:12px 14px;display:flex;align-items:center;gap:10px;min-height:52px}
.node>summary::-webkit-details-marker{display:none}
.node>summary .chev{transition:transform .2s;color:var(--text3);flex:none}
.node[open]>summary .chev{transform:rotate(90deg)}
.node .nt{flex:1;min-width:0}
.node .nt b{font-weight:600}
.node .inner{padding:0 10px 10px 18px}
.node.sec{background:var(--bg);border-style:dashed}
.kp{padding:10px 6px;border-top:1px solid var(--line)}
.kp:first-child{border-top:0}
.kp .kt{font-size:.92rem;display:flex;justify-content:space-between;gap:8px}
.dots{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.dotb{width:30px;height:30px;border-radius:9px;border:1px solid var(--line);background:var(--m0);cursor:pointer;display:grid;place-items:center;padding:0}
.dotb[data-m="1"]{background:var(--m1);border-color:transparent}
.dotb[data-m="2"]{background:var(--m2);border-color:transparent}
.dotb[data-m="3"]{background:var(--m3);border-color:transparent}
.dotb[data-m="w"]{background:var(--mweak);border-color:transparent}
.mini{height:6px;border-radius:99px;background:var(--bg2);overflow:hidden;width:72px;flex:none;border:1px solid var(--line)}
.mini i{display:block;height:100%;background:var(--m3)}
.legend{display:flex;flex-wrap:wrap;gap:10px;font-size:.78rem;color:var(--text2)}
.legend span{display:inline-flex;align-items:center;gap:5px}
.legend i{width:12px;height:12px;border-radius:4px;display:inline-block;background:var(--m0);border:1px solid var(--line)}
.heat{display:flex;flex-wrap:wrap;gap:3px}
.heat i{width:11px;height:11px;border-radius:3px;background:var(--m0)}
.heat i[data-m="1"]{background:var(--m1)} .heat i[data-m="2"]{background:var(--m2)} .heat i[data-m="3"]{background:var(--m3)} .heat i[data-m="w"]{background:var(--mweak)}
/* sheet */
.scrim{position:fixed;inset:0;background:rgba(30,25,20,.36);z-index:60;animation:fadeIn .2s}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:61;background:var(--surface);border-radius:22px 22px 0 0;padding:10px 18px calc(18px + var(--sab));max-height:86vh;overflow:auto;box-shadow:0 -10px 40px rgba(0,0,0,.15);animation:up .28s var(--ease)}
.sheet .grab{width:40px;height:5px;border-radius:9px;background:var(--line2);margin:4px auto 12px}
@keyframes up{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}
@media (min-width:720px){.sheet{left:50%;right:auto;width:560px;transform:translateX(-50%);bottom:auto;top:12vh;border-radius:22px;animation:fadeIn .2s}}
textarea{width:100%;min-height:110px;border-radius:12px;border:1px solid var(--line2);background:var(--bg);padding:12px;resize:vertical}
input[type="date"],input[type="number"],select{min-height:44px;border-radius:12px;border:1px solid var(--line2);background:var(--bg);padding:6px 12px}
/* cards */
.flip{perspective:1400px;margin-top:6px}
.flip .inner3d{position:relative;transition:transform .55s var(--ease);transform-style:preserve-3d;min-height:360px}
.flip.flipped .inner3d{transform:rotateY(180deg)}
.face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);padding:22px 20px;overflow:auto}
.face.back{transform:rotateY(180deg);background:var(--surface)}
.face.front{display:flex;flex-direction:column;justify-content:center;background:radial-gradient(120% 80% at 100% 0%,var(--accent-soft),transparent 60%),var(--surface)}
.face .prompt{font-family:var(--serif);font-size:1.45rem;line-height:1.5;margin:14px 0}
.face ul{margin:6px 0 0;padding-left:1.1em}
.face li{margin:6px 0}
.quote{margin:12px 0 0;padding:10px 14px;border-left:3px solid var(--line2);font-family:var(--serif);color:var(--text2);background:var(--bg);border-radius:0 10px 10px 0;font-size:.95rem}
.quote cite{display:block;font-style:normal;font-family:var(--sans);font-size:.75rem;color:var(--text3);margin-top:4px}
.rate{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}
.rate button{min-height:60px;border-radius:14px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.rate button small{font-weight:400;color:var(--text3);font-size:.72rem}
.rate .r1{color:var(--bad)} .rate .r4{color:var(--ok)}
.swipe-hint{font-size:.78rem;color:var(--text3);text-align:center;margin-top:8px}
/* mock */
.timer{font-variant-numeric:tabular-nums;font-weight:700}
.qgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:6px}
.qgrid button{min-height:40px;border-radius:9px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-size:.8rem}
.qgrid button.ans{background:var(--accent-soft);border-color:transparent}
.qgrid button.cur{outline:2px solid var(--accent)}
.qgrid button.flag{box-shadow:inset 0 -3px 0 var(--warn)}
.qgrid button.r{background:var(--ok-bg)} .qgrid button.w{background:var(--bad-bg)}
table{border-collapse:collapse;width:100%;font-size:.9rem}
th,td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--line)}
th{font-weight:600;color:var(--text2);font-size:.8rem}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
/* misc */
.banner{background:var(--warn-bg);color:var(--warn);border-radius:12px;padding:10px 14px;font-size:.88rem;margin-bottom:12px}
.toast{position:fixed;left:50%;bottom:calc(var(--nav-h) + 20px + var(--sab));transform:translateX(-50%);background:var(--text);color:var(--bg);padding:10px 16px;border-radius:12px;z-index:80;font-size:.9rem;animation:fadeIn .2s;max-width:90vw}
.field{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);min-height:56px}
.field:last-child{border-bottom:0}
.field label{flex:1}
.switch{position:relative;width:52px;height:32px;flex:none}
.switch input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;z-index:1}
.switch span{position:absolute;inset:0;border-radius:99px;background:var(--line2);transition:.2s}
.switch span::after{content:"";position:absolute;width:26px;height:26px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.2s}
.switch input:checked+span{background:var(--accent-strong)}
.switch input:checked+span::after{transform:translateX(20px)}
.switch input:focus-visible+span{outline:3px solid var(--accent);outline-offset:2px}
.badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.badge{text-align:center;padding:12px 6px;border-radius:14px;border:1px solid var(--line);background:var(--surface);font-size:.78rem}
.badge .em{width:40px;height:40px;margin:0 auto 6px;border-radius:50%;display:grid;place-items:center;background:var(--bg2);font-family:var(--display);font-weight:700;color:var(--text3)}
.badge.on .em{background:var(--accent-soft);color:var(--accent-strong)}
.badge.off{opacity:.6}
.empty{padding:28px 10px;text-align:center;color:var(--text2)}
.modes{display:grid;gap:10px}
@media (min-width:720px){.modes{grid-template-columns:1fr 1fr}}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:40px;padding:6px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-size:.88rem}
.chip[aria-pressed="true"]{background:var(--text);color:var(--bg);border-color:var(--text)}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .flip .inner3d{transition:none}
}
:root[data-motion="reduce"] *{animation-duration:.001ms!important;transition-duration:.001ms!important}

.btn.primary .kbd{color:inherit;border-color:currentColor;opacity:.75}
.hero h2{font-size:1.15rem}
@media (max-width:360px){.ring{width:96px;height:96px}.ring .lbl b{font-size:1.3rem}}
.expl h3+p{margin-bottom:10px}.expl h3:not(:first-child){margin-top:12px}
.expl ul.whyw{margin:0 0 4px;padding-left:1.1em}.expl ul.whyw li{margin:4px 0;line-height:1.6}.expl ul.whyw b{font-weight:600;color:var(--text2);margin-right:2px}

/* ---- accounts / sync (server mode) ---- */
.login{max-width:420px;margin:0 auto;padding:clamp(28px,8vh,72px) 4px 32px}
.login .card{padding:20px}
.login input{width:100%}
.big-logo{width:58px;height:58px;border-radius:17px;font-size:1.7rem;margin:0 auto}
.login .center .big-logo{display:grid}
.field.col{flex-direction:column;align-items:stretch;gap:6px}
.field.col input{font:inherit;padding:11px 12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--text)}
.field.col input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.btn.lg{padding:13px 16px;font-size:1.02rem;margin-top:8px}
.pill.sync{gap:6px;margin-right:4px}
.pill.sync i{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}
.pill.sync.s-ok{background:var(--ok-bg);color:var(--ok);border-color:transparent}
.pill.sync.s-busy i,.pill.sync.s-dirty i{animation:syncp 1s ease-in-out infinite alternate}
.pill.sync.s-off{background:var(--warn-bg);color:var(--warn);border-color:transparent}
.pill.sync.s-err,.pill.sync.s-auth{background:var(--bad-bg);color:var(--bad);border-color:transparent}
@keyframes syncp{from{opacity:.25}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.pill.sync i{animation:none!important}}
@media (max-width:380px){.pill.sync{font-size:0;padding:6px}.pill.sync i{width:9px;height:9px}}
