
/* Layout: single-column phone app; screens swap in place: login → plans → home → quiz → result */
:root{
  --bg:#EAF1FA; --surface:#FFFFFF; --ink:#0F1E33; --muted:#566A85; --line:#D2DEEC;
  --accent:#1554A8; --accent-soft:#DCE8F8; --on-accent:#FFFFFF; --amber:#B97812; --amber-soft:#FBEBCF;
  --ok:#1F8A4C; --ok-soft:#DDF2E5; --bad:#C2413A; --bad-soft:#F8E0DE;
  --display:"Rubik","IBM Plex Sans Hebrew",system-ui,sans-serif;
  --body:"Rubik","IBM Plex Sans Hebrew",system-ui,sans-serif;
  --shadow:0 1px 2px rgba(16,35,63,.06),0 8px 24px rgba(16,35,63,.06); --cardline:transparent;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0C1626; --surface:#142238; --ink:#E5EDF8; --muted:#93A5BE; --line:#23365A;
  --accent:#5B9CF0; --accent-soft:#16305A; --on-accent:#08162B; --amber:#E7AE4C; --amber-soft:#3A2D16;
  --ok:#4CC27E; --ok-soft:#173326; --bad:#EF7A72; --bad-soft:#3B1E1D; --shadow:none; --cardline:#23365A; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0C1626; --surface:#142238; --ink:#E5EDF8; --muted:#93A5BE; --line:#23365A;
  --accent:#5B9CF0; --accent-soft:#16305A; --on-accent:#08162B; --amber:#E7AE4C; --amber-soft:#3A2D16;
  --ok:#4CC27E; --ok-soft:#173326; --bad:#EF7A72; --bad-soft:#3B1E1D; --shadow:none; --cardline:#23365A; color-scheme:dark}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.6}
.app{max-width:480px;margin:0 auto;padding-inline:16px;padding-block:18px 40px;display:flex;flex-direction:column;gap:16px}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance}
p{margin:0}
button{font:inherit;color:inherit}
button:focus-visible,input:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.mark{flex:none;width:40px;height:40px;border-radius:12px;background:var(--accent);display:grid;place-items:center;color:var(--on-accent);font-family:var(--display);font-weight:700;font-size:20px}
.brand h1{font-size:22px;line-height:1.2}
.brand small{display:block;color:var(--muted);font-size:12px;line-height:1.3}
.lang{display:flex;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:3px;flex:none}
.lang button{border:0;background:transparent;padding:4px 10px;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer;color:var(--muted)}
.lang button.on{background:var(--accent);color:var(--on-accent)}
.demo{font-size:12px;color:var(--muted);background:var(--surface);border:1px dashed var(--line);border-radius:10px;padding:8px 12px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:14px;font-weight:500}
.field input{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:10px;padding:12px;font:inherit;width:100%}
.err{color:var(--bad);font-size:14px}
.primary{background:var(--accent);color:var(--on-accent);border:0;border-radius:12px;padding:14px;font:600 16px var(--display);cursor:pointer;width:100%}
.ghost{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font:600 15px var(--display);cursor:pointer}
.link{background:none;border:0;color:var(--accent);font-weight:600;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:3px}
.muted{color:var(--muted);font-size:14px}
.plans{display:flex;flex-direction:column;gap:10px}
.plan{display:flex;gap:12px;align-items:flex-start;text-align:start;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:14px;cursor:pointer;width:100%}
.plan.on{border-color:var(--accent);background:var(--accent-soft)}
.plan .dot{flex:none;width:20px;height:20px;border-radius:50%;border:2px solid var(--line);margin-top:3px}
.plan.on .dot{border:6px solid var(--accent)}
.plan .info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.plan b{font-family:var(--display);font-size:16px}
.plan .price{font-family:var(--display);font-weight:700;font-size:18px;white-space:nowrap;font-variant-numeric:tabular-nums}
.badge{align-self:flex-start;font-size:11px;background:var(--amber-soft);color:var(--amber);padding:2px 8px;border-radius:999px;font-weight:600}
.row2{display:flex;gap:8px}
.row2 input{flex:1;min-width:0}
.ok-msg{background:var(--ok-soft);color:var(--ok);border-radius:10px;padding:10px 12px;font-size:14px;font-weight:500}
.hero{background:var(--accent);color:var(--on-accent);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:10px}
.hero .eyebrow{font-size:12px;letter-spacing:.04em;opacity:.85}
.hero h2{font-size:20px}
.pbar{height:8px;background:rgba(255,255,255,.3);border-radius:99px;overflow:hidden}
.pbar i{display:block;height:100%;background:var(--on-accent)}
.hero .primary{background:var(--on-accent);color:var(--accent);align-self:flex-start;width:auto;padding:10px 18px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px;text-align:start;cursor:pointer;display:flex;flex-direction:column;gap:4px;min-width:0}
.tile b{font-family:var(--display);font-size:15px}
.tile span{font-size:13px;color:var(--muted)}
.tile .n{font-family:var(--display);font-size:22px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.section-title{font-size:15px;color:var(--muted);font-weight:500}
.list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;cursor:pointer;text-align:start;width:100%}
.li:last-child{border-bottom:0}
.li .sub{font-size:12px;color:var(--muted)}
.li .count{font-size:13px;color:var(--accent);font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.acct{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.acct .who{min-width:0;overflow-wrap:anywhere}
/* quiz */
.qbar{display:flex;align-items:center;gap:12px}
.back{flex:none;background:var(--surface);border:1px solid var(--line);border-radius:10px;width:40px;height:40px;font-size:18px;cursor:pointer}
.progress{flex:1;height:8px;background:var(--line);border-radius:99px;overflow:hidden}
.progress i{display:block;height:100%;background:var(--accent);transition:width .3s}
.timer{font-variant-numeric:tabular-nums;font-weight:600;color:var(--muted);font-size:14px;direction:ltr}
.qmeta{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.tag{background:var(--accent-soft);color:var(--accent);padding:2px 10px;border-radius:999px;font-weight:600}
.qtext{font-size:18px;font-weight:600;font-family:var(--display);line-height:1.6}
.terms{display:flex;flex-wrap:wrap;gap:6px}
.term{font-size:12px;border:1px solid var(--line);border-radius:8px;padding:3px 8px;color:var(--muted)}
.term bdi{color:var(--ink);font-weight:500}
.opts{display:flex;flex-direction:column;gap:10px}
.opt{display:flex;gap:12px;align-items:flex-start;text-align:start;width:100%;background:var(--bg);border:2px solid transparent;border-radius:12px;padding:12px 14px;cursor:pointer}
.opt .l{flex:none;width:26px;height:26px;border-radius:8px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;font-weight:600;font-size:14px}
.opt.right{background:var(--ok-soft);border-color:var(--ok)}
.opt.right .l{background:var(--ok);color:var(--surface);border-color:var(--ok)}
.opt.wrong{background:var(--bad-soft);border-color:var(--bad)}
.opt.wrong .l{background:var(--bad);color:var(--surface);border-color:var(--bad)}
.opt[disabled]{cursor:default}
.explain{border-radius:12px;padding:14px;background:var(--amber-soft);font-size:15px;display:flex;flex-direction:column;gap:8px}
.explain b{font-family:var(--display)}
.ref{font-size:13px;color:var(--muted);border-top:1px solid var(--line);padding-top:8px}
.ref strong{color:var(--ink);font-weight:600}
/* result */
.score{align-items:center;text-align:center;gap:6px}
.ring{width:140px;height:140px}
.score h2{font-size:22px}
.bars{display:flex;flex-direction:column;gap:12px}
.bar-row{display:flex;flex-direction:column;gap:4px}
.bar-row .lbl{display:flex;justify-content:space-between;font-size:14px}
.bar-row .lbl span:last-child{font-variant-numeric:tabular-nums;color:var(--muted)}
.bar{height:8px;background:var(--line);border-radius:99px;overflow:hidden}
.bar i{display:block;height:100%}
.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (prefers-reduced-motion: reduce){*{transition:none!important}}
/* v2 additions */
select,textarea{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:10px;padding:12px;font:inherit;width:100%}
textarea{min-height:84px;resize:vertical}
select:focus-visible,textarea:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600}
.chip.warm{background:var(--amber-soft);color:var(--amber);border-color:transparent}
.chip.cool{background:var(--accent-soft);color:var(--accent);border-color:transparent}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.tile.small{padding:12px;align-items:flex-start}
.tile .ic{font-size:20px;line-height:1}
.tile.lock-t{position:relative}
.qtools{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.tool{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:4px 12px;font-size:13px;cursor:pointer}
.tool.on{background:var(--amber-soft);color:var(--amber);border-color:transparent;font-weight:600}
.opt.sel{border-color:var(--accent);background:var(--accent-soft)}
.mocknav{display:flex;gap:10px}
.mocknav button{flex:1}
.bitbox{display:flex;flex-direction:column;gap:14px;align-items:stretch}
.bitsum{display:flex;justify-content:space-between;align-items:baseline;gap:10px;border-bottom:1px solid var(--line);padding-bottom:12px}
.bitsum .amt{font-family:var(--display);font-size:28px;font-weight:700;font-variant-numeric:tabular-nums}
.bitbtn{background:var(--ink);color:var(--bg);border:0;border-radius:12px;padding:14px;font:600 16px var(--display);cursor:pointer;width:100%}
.wait{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding-block:10px}
.spin{width:44px;height:44px;border-radius:50%;border:4px solid var(--line);border-top-color:var(--accent);animation:sp 0.9s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.steps{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:4px;font-size:14px;color:var(--muted)}
.flash{min-height:220px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:10px;cursor:pointer;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;width:100%}
.flash .big{font-family:var(--display);font-size:26px;font-weight:700}
.flash .hint{font-size:13px;color:var(--muted)}
.flash.back{background:var(--accent-soft)}
.review{display:flex;flex-direction:column;gap:10px}
.rv{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px;font-size:14px}
.rv .st{font-weight:600}
.rv .st.okc{color:var(--ok)}.rv .st.badc{color:var(--bad)}
.out{font-family:ui-monospace,Menlo,monospace;font-size:12px;direction:ltr;min-height:140px}
.big-stat{display:flex;gap:10px}
.big-stat .tile{flex:1;cursor:default}
@media (prefers-reduced-motion: reduce){.spin{animation:none}}

/* app additions */
html,body{height:100%}
body{-webkit-tap-highlight-color:transparent}
.app{padding-top:max(18px, env(safe-area-inset-top));padding-bottom:max(40px, env(safe-area-inset-bottom))}
.protect{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.wm{position:fixed;inset:0;pointer-events:none;z-index:50;overflow:hidden;opacity:.09}
.wm div{position:absolute;inset:-50%;display:flex;flex-wrap:wrap;gap:48px 64px;align-content:flex-start;transform:rotate(-24deg);font:600 14px var(--body);color:var(--ink);white-space:nowrap}
.loading{display:flex;flex-direction:column;align-items:center;gap:12px;padding-block:64px;color:var(--muted)}
.banner{border-radius:12px;padding:10px 12px;font-size:14px;background:var(--amber-soft);color:var(--ink)}
.banner.bad{background:var(--bad-soft)}
.danger{background:var(--bad-soft);color:var(--bad);border:0;border-radius:12px;padding:12px 14px;font:600 15px var(--display);cursor:pointer}
.small-links{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;font-size:13px}

/* design 1: clean & clinical */
.app{gap:18px}
.mark{width:44px;height:44px;border-radius:14px;font-size:22px}
.brand h1{font-size:20px;font-weight:700}
.card{border-color:var(--cardline);border-radius:22px;padding:20px;box-shadow:var(--shadow)}
.primary{border-radius:14px;min-height:52px}
.ghost{border-radius:14px;min-height:48px}
.hero{background:var(--surface);color:var(--ink);border-radius:22px;padding:20px;gap:16px;box-shadow:var(--shadow);border:1px solid var(--cardline)}
.hero-row{display:flex;align-items:center;gap:16px}
.ring2{--p:0;flex:none;width:76px;height:76px;border-radius:50%;background:conic-gradient(var(--accent) calc(var(--p)*1%),var(--accent-soft) 0);display:grid;place-items:center}
.ring2 span{width:60px;height:60px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font:700 18px var(--display);font-variant-numeric:tabular-nums}
.hero-txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.hero .eyebrow{font-size:13px;color:var(--muted);letter-spacing:0;opacity:1}
.hero h2{font-size:20px;font-weight:700}
.okline{font-size:13px;color:var(--ok)}
.hero .primary{background:var(--accent);color:var(--on-accent);align-self:stretch;width:100%;padding:14px}
.grid{gap:12px}
.tile{border-color:var(--cardline);border-radius:18px;padding:16px;gap:6px;box-shadow:var(--shadow)}
.tile b{font-size:15px;font-weight:600}
.list{border-color:var(--cardline);border-radius:18px;box-shadow:var(--shadow)}
.li{padding:14px 16px;border-bottom-color:var(--bg)}
.li > span:first-child{font-weight:500}
.section-title{font-size:14px;font-weight:600}
.chip{border-color:var(--line)}
.chip.cool{background:var(--accent-soft);color:var(--accent)}
.lang{border-radius:12px}
.opt{border-radius:14px}
.flash,.rv{border-color:var(--cardline);box-shadow:var(--shadow)}
.back{border-radius:12px;width:44px;height:44px}

/* desktop / tablet web: use the width instead of a phone column */
@media (min-width: 900px){
  body{font-size:17px}
  .app{max-width:760px;padding-inline:32px;padding-block:32px 48px;gap:22px}
  .app.wide{max-width:1120px}
  .home-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:20px;align-items:stretch}
  .home-main .hero{justify-content:space-between;padding:28px}
  .home-main .ring2{width:120px;height:120px}
  .home-main .ring2 span{width:96px;height:96px;font-size:26px}
  .home-main .hero h2{font-size:26px}
  .home-main .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .app.wide .list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:0}
  .app.wide .li{border-bottom:1px solid var(--bg)}
  .app.wide .li:nth-child(odd){border-inline-end:1px solid var(--bg)}
  .tile{min-height:120px;justify-content:space-between}
  .tile:hover,.li:hover{background:var(--accent-soft)}
  .opt:hover:not([disabled]){border-color:var(--accent-soft)}
  .qtext{font-size:21px}
  form.card,.card{padding:28px}
}
@media (min-width: 900px){
  .app:not(.wide) > form.card:first-of-type{max-width:460px;width:100%;align-self:center}
}

.explain span{white-space:pre-line}

.newbox{background:var(--surface);border:2px solid var(--accent);border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow)}
.newbox-h{display:flex;justify-content:space-between;align-items:center;gap:10px}
.newbox-h b{font-family:var(--display);font-size:16px}
.newbox-l{display:flex;flex-wrap:wrap;gap:6px}
.newtag{display:inline-block;background:var(--ok-soft);color:var(--ok);border-radius:999px;padding:1px 8px;font-size:12px;font-weight:600;margin-inline-end:6px}

.opt > span:last-child{display:flex;flex-direction:column;gap:6px}
.opt .why{display:block;font-size:13.5px;line-height:1.45;color:var(--muted);font-weight:400}
.opt.right .why{color:var(--ok)}
.opt.wrong .why{color:var(--bad)}
.explain .rans{font-size:15px}
.check{display:flex;gap:10px;align-items:center;margin:14px 0 4px;cursor:pointer;font-size:15px}
.check input{width:20px;height:20px;accent-color:var(--accent);flex:none}

/* ---- sections: tab bar + pages ---- */
.tabs{position:fixed;inset-inline:0;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(6,1fr);background:var(--surface);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -4px 18px rgba(16,35,63,.06)}
.tab{display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;padding:4px 2px;border-radius:10px;cursor:pointer;color:var(--muted);font-size:10.5px;font-weight:600;line-height:1.2;text-align:center;min-height:48px}
.tab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tab.on{color:var(--accent)}
.tab.on svg{stroke-width:2.2}
.app.has-nav{padding-bottom:96px}
.page-h{font-size:24px}
.page-hrow{display:flex;align-items:center;justify-content:space-between;gap:12px}
.slim{width:auto;min-height:40px;padding:8px 14px;font-size:14px;border-radius:12px}
.card-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.card-h h3{font-size:17px}
.spin.sm{width:26px;height:26px;border-width:3px;margin:8px auto}
.pkgline{display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding-bottom:10px}
.pkgline h2{font-size:20px;color:var(--accent)}
.pkgline span{font-size:15px;font-weight:600}
.bignum{display:flex;align-items:baseline;gap:8px;font-family:var(--display);font-variant-numeric:tabular-nums}
.bignum b{font-size:34px;line-height:1.1}
.bignum b:first-child{color:var(--accent)}
.bignum span{font-size:28px;color:var(--muted)}
.act{width:100%;height:auto;display:block}
/* exam builder */
.exb h3{font-size:18px}
.exgrid{display:grid;gap:14px}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.segb{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:start;background:var(--bg);border:2px solid transparent;border-radius:14px;padding:10px 12px;cursor:pointer;min-height:56px}
.segb b{font-size:15px}
.segb small{font-size:12px;color:var(--muted);line-height:1.35}
.segb.on{border-color:var(--accent);background:var(--accent-soft)}
.segb.on b{color:var(--accent)}
.chip.pick{cursor:pointer;min-height:40px;padding-inline:14px;font-size:14px}
.exb input[type=number]{max-width:140px}
/* my exams */
.xlist{display:flex;flex-direction:column;gap:10px}
.xrow{background:var(--surface);border:1px solid var(--cardline);box-shadow:var(--shadow);border-radius:16px;padding:14px;display:grid;gap:10px}
.xmain{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.xmain b{font-family:var(--display);font-size:17px}
.xtags{display:flex;gap:6px;flex-wrap:wrap;width:100%}
.xtags .tag{font-size:12px;font-weight:600;background:var(--bg);color:var(--muted)}
.xstat{font-size:15px}
.xact{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.danger-l{color:var(--bad);font-size:13px;margin-inline-start:auto}
/* my questions */
.qlist{display:flex;flex-direction:column;gap:10px}
.qrow{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;text-align:start;background:var(--surface);border:1px solid var(--cardline);box-shadow:var(--shadow);border-radius:16px;padding:14px;cursor:pointer;width:100%}
.qrow .qn{font-weight:700;grid-row:span 2}
.qrow .qn small{display:block;font-weight:400;color:var(--muted);font-size:12px}
.qrow .qq{font-weight:600;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.qrow .qk{font-size:14px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.qrow .qk small{display:block;font-weight:700;color:var(--amber);font-size:12px}
.qrow .qv{grid-column:2;color:var(--accent);font-weight:600;font-size:14px}
.okc{color:var(--ok)} .badc{color:var(--bad)}
/* statistics */
.stat-top{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.st-main{grid-column:1/-1;flex-direction:row;align-items:center;gap:16px}
.st-box{gap:4px;padding:14px}
.st-box .pct{font:700 30px var(--display);color:var(--accent);font-variant-numeric:tabular-nums}
.st-box .pct small{font-size:16px;color:var(--muted)}
.st-box span:last-child{font-size:13px}
.lvl{direction:ltr;position:relative;height:10px;border-radius:5px;background:linear-gradient(90deg,var(--bad),var(--amber),var(--ok));margin:6px 0}
.lvl i{position:absolute;top:50%;width:16px;height:16px;border-radius:50%;background:var(--surface);border:3px solid var(--ink);transform:translate(-50%,-50%)}
.tools-grid{display:grid;gap:12px}
.tools-grid .card{justify-content:space-between}
.tools-grid h3{font-size:18px;color:var(--accent)}
@media (min-width: 900px){
  .tabs{position:static;display:flex;padding:0;border:1px solid var(--cardline);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
  .tab{flex:1;flex-direction:row;justify-content:center;gap:10px;font-size:15px;padding:16px 10px;border-radius:0;border-inline-end:1px solid var(--line)}
  .tab:last-child{border-inline-end:0}
  .tab.on{background:var(--accent);color:var(--on-accent)}
  .app.has-nav{padding-bottom:48px}
  .page-h{font-size:30px}
  .exgrid{grid-template-columns:1fr 1fr;gap:24px}
  .xrow{grid-template-columns:2fr 1.3fr auto;align-items:center}
  .qrow{grid-template-columns:90px 1.2fr 1.5fr auto;align-items:center}
  .qrow .qn{grid-row:auto}
  .qrow .qv{grid-column:auto}
  .stat-top{grid-template-columns:1.6fr 1fr 1fr 1fr}
  .st-main{grid-column:auto}
  .tools-grid{grid-template-columns:repeat(2,1fr)}
}
.hero .row2 .ghost{flex:none;white-space:nowrap}
.act{max-width:640px;margin-inline:auto}
/* daily goal */
.goalc{display:flex;flex-direction:column;gap:10px}
.goal-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.streak{display:flex;flex-direction:column;align-items:center;background:var(--amber-soft);color:var(--amber);border-radius:16px;padding:8px 14px;min-width:84px}
.streak .fire{font-size:22px;line-height:1}
.streak b{font:700 24px var(--display)}
.streak span:last-child{font-size:12px;font-weight:600}
.gbar{height:10px;border-radius:5px;background:var(--accent-soft);overflow:hidden}
.gbar i{display:block;height:100%;background:var(--accent);border-radius:5px}
.exq{border:2px dashed var(--accent)}
.exq input[type=date]{flex:1}
/* reference */
.reft{width:100%;border-collapse:collapse;font-size:15px}
.reft th,.reft td{padding:9px 6px;border-bottom:1px solid var(--line);text-align:start;vertical-align:top}
.reft th{font-weight:500}
.reft td{font-weight:700;white-space:nowrap;color:var(--accent)}
.sheet{position:fixed;inset:0;z-index:50;background:rgba(10,20,35,.45);display:flex;align-items:flex-end;justify-content:center}
.sheet-in{background:var(--surface);color:var(--ink);width:100%;max-width:640px;max-height:85vh;overflow:auto;border-radius:22px 22px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}
.sheet-h{display:flex;justify-content:space-between;align-items:center;gap:10px}
@media (min-width: 900px){.sheet{align-items:center}.sheet-in{border-radius:22px}}
.grid .tile span:not(.n){font-size:13px;color:var(--muted);line-height:1.35}
/* daily mission */
.mission{background:var(--accent);background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 70%,#0B2A55));color:var(--on-accent);border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow);animation:rise .35s ease-out}
.mission .eyebrow{color:inherit;opacity:.85}
.mission h2{font-size:26px}
.mission .muted{color:inherit;opacity:.85}
.mission .gbar{background:rgba(255,255,255,.25)}
.mission .gbar i{background:#fff}
.mission .primary{background:#fff;color:var(--accent)}
.mission .ghost{background:transparent;color:inherit;border-color:rgba(255,255,255,.5)}
.mission-h{display:flex;justify-content:space-between;align-items:center;gap:12px}
.mission-h > div{display:flex;flex-direction:column;gap:2px}
.mleft{background:rgba(255,255,255,.18);border-radius:12px;padding:6px 12px;font-size:14px;white-space:nowrap}
.mleft b{font-size:18px}
.mkinds{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;opacity:.95}
.mission.done{background:var(--ok-soft);color:var(--ink);flex-direction:row;align-items:center;justify-content:space-between}
.mission.done .ghost{color:var(--ok);border-color:var(--ok)}
.mission.done .muted{color:var(--muted);opacity:1;font-size:13px}
.badge-ok{flex:none;width:40px;height:40px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;font-weight:700;font-size:20px}
.mission.done .mission-h{justify-content:flex-start}
.mission.sk{min-height:120px;justify-content:center}
.tag.kind{background:var(--bg);color:var(--muted);font-size:12px}
.celebrate{text-align:center;align-items:center}
.big-emoji{font-size:54px;line-height:1;animation:pop .5s ease-out}
.rw{display:flex;gap:10px;width:100%;justify-content:center}
.rw > div{flex:1;max-width:120px;background:var(--bg);border-radius:14px;padding:10px;display:flex;flex-direction:column;align-items:center}
.rw b{font:700 24px var(--display)}
.rw span{font-size:13px;color:var(--muted)}
input[type=time]{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:10px;padding:10px;font:inherit;flex:1}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes pop{0%{transform:scale(.4)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
@media (prefers-reduced-motion: reduce){.mission,.big-emoji{animation:none}}
/* road to the exam */
.jcta{display:flex;align-items:center;gap:14px;width:100%;text-align:start;background:var(--surface);border:1px solid var(--cardline);box-shadow:var(--shadow);border-radius:18px;padding:14px 16px;cursor:pointer;animation:rise .35s ease-out}
.jcta > span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.jcta small{color:var(--muted);font-size:13px}
.jcta .gbar{height:6px}
.jicon{font-size:28px}
.jdays{display:flex;flex-direction:column;align-items:center;background:var(--accent-soft);color:var(--accent);border-radius:14px;padding:6px 12px;min-width:64px}
.jdays b{font:700 24px var(--display);line-height:1.1}
.jdays small{color:inherit;font-size:11px}
.jhero{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jcount,.jprog{background:var(--surface);border:1px solid var(--cardline);box-shadow:var(--shadow);border-radius:18px;padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center}
.jcount b{font:700 48px var(--display);color:var(--accent);line-height:1}
.jcount span{font-weight:600}
.jcount small{color:var(--muted);font-size:13px}
.jprog span{font-weight:600;font-size:14px}
.jphase{background:var(--accent-soft);color:var(--ink);border:0}
.jtoday{gap:10px}
.jtask{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--bg)}
.jtask.ok{background:var(--ok-soft)}
.jtask span{font-weight:600}
.jweek{padding:8px 12px;gap:0}
.wrow{display:grid;grid-template-columns:62px 1fr 20px;align-items:center;gap:10px;padding:9px 4px;border-bottom:1px solid var(--line)}
.wrow:last-child{border-bottom:0}
.wrow.now{background:var(--accent-soft);border-radius:12px;border-bottom-color:transparent}
.wd{display:flex;flex-direction:column;line-height:1.2}
.wd small{color:var(--muted);font-size:12px}
.wc{display:flex;flex-wrap:wrap;gap:6px}
.wk{font-size:13px;background:var(--bg);border-radius:999px;padding:3px 10px;font-weight:600}
.wrow.now .wk{background:var(--surface)}
.wk.rest{color:var(--muted)}
.wk.mock{color:var(--amber);background:var(--amber-soft)}
.wk.exam{color:var(--accent)}
.wst{color:var(--ok);font-weight:700}
.jtopics{display:grid;gap:12px}
.jtopics h3{font-size:16px}
.chip.ok{background:var(--ok-soft);color:var(--ok);border-color:transparent}
.chip.warm.pick{cursor:pointer}
.trend{width:100%;height:auto;max-width:640px;margin-inline:auto;display:block}
@media (min-width: 900px){.jhero{grid-template-columns:1fr 1fr}.jtopics{grid-template-columns:1fr 1fr}}
.jtask .slim{white-space:nowrap;flex:none}
/* league */
.jdays.lg{background:var(--amber-soft);color:var(--amber)}
.lg-hero{background:var(--surface);border:1px solid var(--cardline);box-shadow:var(--shadow);border-radius:22px;padding:18px;display:grid;grid-template-columns:auto 1fr;gap:12px 16px;align-items:center;animation:rise .35s ease-out}
.lg-tier{display:flex;flex-direction:column;align-items:center;gap:2px;background:var(--amber-soft);border-radius:18px;padding:12px 16px;min-width:96px}
.lg-emoji{font-size:40px;line-height:1}
.lg-tier b{font:700 18px var(--display)}
.lg-tier small{color:var(--muted);font-size:12px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lg-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lg-stats > div{display:flex;flex-direction:column;align-items:center;background:var(--bg);border-radius:14px;padding:10px 6px}
.lg-stats b{font:700 26px var(--display);color:var(--accent);font-variant-numeric:tabular-nums}
.lg-stats span{font-size:12px;color:var(--muted)}
.lg-timer,.lg-today{grid-column:1/-1;font-size:14px}
.lg-today{display:flex;flex-direction:column;gap:6px}
.lg-today .gbar{height:8px}
.board{gap:0;padding:6px 10px}
.brow{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;padding:10px 6px;border-bottom:1px solid var(--line)}
.brow:last-of-type{border-bottom:0}
.brow.up .brk{background:var(--ok-soft);color:var(--ok)}
.brow.down .brk{background:var(--bad-soft);color:var(--bad)}
.brk{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px;background:var(--bg)}
.bnk{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bnk small{color:var(--muted);font-weight:400}
.bxp{font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums;font-size:14px}
.brow.me{background:var(--accent-soft);border-radius:12px;border-bottom-color:transparent}
.rules{margin:0;padding-inline-start:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:15px}
.lg-intro{text-align:center;align-items:stretch}
.lg-intro .rules,.lg-intro .field{text-align:start}
.ch-card{border:2px solid var(--amber)}
.bigcode{font:700 40px var(--display);letter-spacing:6px;color:var(--accent);text-align:center;background:var(--accent-soft);border-radius:16px;padding:12px}
.lg-res{font-size:18px}
.xptoast{position:fixed;top:calc(16px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:60;background:var(--ok);color:#fff;font:700 18px var(--display);padding:10px 20px;border-radius:999px;box-shadow:0 8px 24px rgba(0,0,0,.18);animation:pop .4s ease-out}
@media (prefers-reduced-motion: reduce){.xptoast,.lg-hero{animation:none}}
.card .row2 input:not([type=checkbox]){border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:10px;padding:10px 12px;font:inherit;flex:1;min-width:0}
/* polish */
.welcome{display:flex;flex-direction:column;gap:8px}
.welcome h2{font-size:24px}
.examcta{display:flex;align-items:center;gap:14px;width:100%;text-align:start;background:var(--accent);color:var(--on-accent);border:0;border-radius:18px;padding:16px 18px;cursor:pointer;box-shadow:var(--shadow);min-height:64px}
.examcta > span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:2px}
.examcta b{font:700 18px var(--display)}
.examcta small{opacity:.85;font-size:13px}
.topics-d{background:var(--surface);border:1px solid var(--cardline);box-shadow:var(--shadow);border-radius:18px;padding:4px 8px}
.topics-d summary{cursor:pointer;padding:12px 8px;font-weight:600;list-style-position:inside}
.topics-d .list{box-shadow:none;border:0}
.qtext{font-size:19px;line-height:1.65;overflow-wrap:anywhere}
.opt{min-height:52px;align-items:center}
.opts{gap:10px}
.opt.right::after{content:"✓";margin-inline-start:auto;font-weight:700;color:var(--ok);font-size:18px}
.opt.wrong::after{content:"✗";margin-inline-start:auto;font-weight:700;color:var(--bad);font-size:18px}
.opt.sel{box-shadow:0 0 0 2px var(--accent) inset}
.explain .verdict{font-size:17px}
.exsec{display:flex;flex-direction:column;gap:4px;padding-top:8px;border-top:1px solid var(--line);border-top:1px solid color-mix(in srgb,var(--amber) 25%,transparent)}
.exsec h4{margin:0;font:700 14px var(--display);color:var(--amber)}
.exsec p{margin:0;white-space:pre-line;line-height:1.6}
.exsec ul{margin:0;padding-inline-start:18px;display:flex;flex-direction:column;gap:6px;line-height:1.55}
.exsec li.picked{font-weight:600}
mark.term-hl{background:var(--accent-soft);color:inherit;border-radius:4px;padding:0 3px}
#fb #nx,.stickynav{position:sticky;bottom:calc(10px + env(safe-area-inset-bottom));z-index:5}
.stickynav{background:var(--surface);padding-block:8px;margin-inline:-4px;padding-inline:4px;border-radius:14px}
.exfoot{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px}
.res-actions{flex-wrap:wrap}
.availbox{display:flex;align-items:center;gap:8px;background:var(--accent-soft);border-radius:12px;padding:10px 12px;font-size:15px}
.availbox b{font:700 20px var(--display);color:var(--accent)}
.availbox.bad{background:var(--bad-soft)}
.availbox .spin.sm{margin:0;width:18px;height:18px;border-width:2px}
.sumlist{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:0}
.sumlist dt{color:var(--muted)}
.sumlist dd{margin:0;font-weight:600}
.intro{text-align:center;align-items:center;min-height:60vh;justify-content:center}
.intro .primary{max-width:320px}
.dots{display:flex;gap:6px}
.dots i{width:8px;height:8px;border-radius:50%;background:var(--line)}
.dots i.on{background:var(--accent);width:22px;border-radius:4px}
.chip.ok{background:var(--ok-soft);color:var(--ok);border-color:transparent}
button,.chip.pick,.tab,.tile{-webkit-tap-highlight-color:transparent}
/* question bank + offline */
.bankf{gap:10px}
.bankf select{flex:1}
.sb{display:inline-block;font-size:12px;font-weight:700;border-radius:999px;padding:1px 8px;margin-inline-end:4px;background:var(--bg)}
.sb.ok{color:var(--ok);background:var(--ok-soft)}
.sb.bad{color:var(--bad);background:var(--bad-soft)}
.sb.new{color:var(--accent);background:var(--accent-soft)}
.empty{text-align:center;align-items:center}
#netbar{position:fixed;top:0;inset-inline:0;z-index:70;background:var(--amber);color:#fff;font-size:13px;font-weight:600;text-align:center;padding:calc(6px + env(safe-area-inset-top)) 12px 6px}

/* admin announcement on home */
.newbox.ann .ann-b{margin:6px 0 0;white-space:pre-line;line-height:1.6}

/* coming-soon tracks */
.plan.soon{opacity:.72;cursor:default;border-style:dashed;align-items:center}
.plan.soon .soonicon{font-size:22px;flex:none;width:28px;text-align:center}
.soontag{margin-inline-start:auto;flex:none;font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--amber-soft,#FBEBCF);color:#8a5a0a}
.soonbox{gap:8px}.soonbox .chips{display:flex;flex-wrap:wrap;gap:6px}

/* no text selection / copying anywhere except typing fields */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,select,[contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
img{-webkit-user-drag:none;user-drag:none}
.xtags .tag.cool{background:var(--accent-soft);color:var(--accent)}

/* track chooser */
.trk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.trk-card{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:20px 12px 16px;border-radius:22px;border:2px solid var(--c1);background:linear-gradient(160deg,var(--c3),var(--c2));color:#0F1E33;cursor:pointer;transition:transform .15s,box-shadow .15s}
.trk-card::before{content:"";position:absolute;width:110px;height:110px;border-radius:50%;background:var(--c1);opacity:.12;top:-35px;inset-inline-end:-35px}
.trk-card::after{content:"";position:absolute;width:70px;height:70px;border-radius:24px;background:var(--c1);opacity:.1;bottom:-22px;inset-inline-start:-18px;transform:rotate(25deg)}
.trk-card:active{transform:scale(.97)}
.trk-card.soon{cursor:default;opacity:.55;filter:grayscale(.6)}
.trk-card.soon:active{transform:none}
.trk-card.on{box-shadow:0 6px 18px color-mix(in srgb,var(--c1) 35%,transparent);border-width:3px}
.trk-ico{font-size:38px;width:68px;height:68px;display:grid;place-items:center;border-radius:20px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.08);position:relative;z-index:1}
.trk-card b{font-family:var(--display);font-size:17px;color:var(--c1);position:relative;z-index:1}
.trk-d{font-size:12px;color:#4A5A6E;line-height:1.35;position:relative;z-index:1}
.trk-ok{position:absolute;top:8px;inset-inline-start:8px;width:24px;height:24px;border-radius:50%;background:var(--c1);color:#fff;display:grid;place-items:center;font-size:14px;z-index:1}

.adcard{border:2px solid var(--accent);background:var(--accent-soft)}.adcard h3{font-family:var(--display);margin:0 0 4px}

/* social sign-in buttons */
.social{display:flex;flex-direction:column;gap:10px;margin-top:2px}
.social .or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px}
.social .or::before,.social .or::after{content:"";flex:1;height:1px;background:var(--line)}
.sbtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;border-radius:14px;font:600 16px var(--display);cursor:pointer;border:1px solid var(--line)}
.sbtn svg{flex:none}
.sbtn.apple{background:#000;color:#fff;border-color:#000}
.sbtn.google{background:#fff;color:#1F1F1F;border-color:#DADCE0}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .sbtn.apple{background:#fff;color:#000;border-color:#fff}}
.sbtn:active{transform:scale(.98)}
.sbtn:disabled{opacity:.6}

/* login brand: "Musmach" signature (Great Vibes, subset to the letters of the word) */
@font-face{font-family:"MusmachSig";src:url(data:font/woff2;base64,d09GMgABAAAAABLQABEAAAAAIiQAABJ1AAEAAAAAAAAAA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GqQqcr2/gik5FgYPVnd3VMSaG8oqXd3sm2wZSd5JJHduHeSCYgQhUiXEt5FgSUhOXFIeJDiJG2DgkvHQIiEQKJsBCWQIC3N+T0d7a7SqIuIpiTjFta7ykwW9J2scTcQMcWKpeuNoWqFS5vbN0QBinIXlBWX7wpI4R6Dy+unqk4XYnqzpAjHJSIqjIGWpdxqy755pF8SIPQaS9JiMyJ1DkxNTg/1WmhtLi20LczTnGJj4JDGiFCeixrShW0QgFQOakCGMDvd2R5tqqjwHCUpYVpX//8ug7gHn6mejDxYn/reL+b+v0nG/vPXJzNTm735w5m7lndvW3+LWXzfBimYsf7gqWPbdyjufWX97qNk7X4cVISYnUEaraCILHbRn83u6U5/X3fyPllEdiHf0lIJDDBb+IS/DNtzCcz7Si7yn+TTAxmrFVehEfEtDy5mEKmqYyVBERTM5pnB7pkAn3p8pcQD3zFRox5hWVDkfYB3ncA6ncBZT6Ec/TpK6ghNYpfwJnMMxhFjaONlZrKAPJ3EGa9iOM9XSAc7hEEIsFlPPIo59HGkN53EMAc7gUFU7UxWhlomiGEQfBjGAYUwjajD3KgKcx7lK+DpCQ+lRdOOC0q+dQB9G0IdxxDGKZYxiET0mW0arS4rWMpJ/O3ZjN7bPGxncOlwNMCTm7BN6GWeKYs12oVEMFWEsNYoDWC90LBpIbQ++J6fpR7CCJbGYsYJYty1U2u5OlfA1hEJb57GIPizhJI7vqH4SJ7GGY1hJL3G27WF6UhwXRM/fV3N9i5tvoA09+8nP8d2+7AbR87kC/agzOLUBa/bTezDT3yrRu3Ia4+2xtotR3aVqLems2zgsk2yLiouodE7uzX5bYcoQyTtQeUi4ZVKaDwYG+THgX/jG2vxGOz25N1swT2bdZJl1R3xuo5wH87n6ja5qwJf21SzJPLl0YCt6N268fXInm1A9ol7Kot7PafOxgnhug2H+I7msMD8PAA==) format("woff2");font-display:block}
.app.nobrand .top{justify-content:flex-end}
.app.nobrand .top .brand{display:none}
.hero-brand{text-align:center;margin:18px 0 22px}
.hero-brand .hb-he{font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:2px;color:var(--ink);margin-bottom:10px}
.hero-brand .hb-sig{font-family:"MusmachSig",cursive;font-size:86px;line-height:1;color:var(--accent);direction:ltr;white-space:nowrap}
.hero-brand .hb-tag{font-size:15px;color:var(--muted);margin-top:8px}
@media (max-width:360px){.hero-brand .hb-sig{font-size:70px}}

/* ===== v2 look: gradients, 3D characters, soft cards, floating tab bar ===== */
:root{--shadow:0 10px 28px rgba(31,41,90,.10);--cardline:transparent;--line:#E3E8F2}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--shadow:none;--cardline:#23365A}}
.card,.newbox,.hero{border-radius:24px}
.card{border-color:var(--line)}
.h-hero{position:relative;overflow:hidden;border-radius:28px;padding:22px 20px 64px;min-height:220px;background:linear-gradient(145deg,var(--g1),var(--g2));color:#fff;display:flex;isolation:isolate}
.h-hero::before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;background:rgba(255,255,255,.14);top:-70px;inset-inline-start:-60px;z-index:-1}
.h-hero::after{content:"";position:absolute;width:130px;height:130px;border-radius:40px;background:rgba(255,255,255,.1);bottom:10px;inset-inline-start:30%;transform:rotate(22deg);z-index:-1}
.h-txt{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;gap:14px;max-width:60%}
.h-hero h2{font-size:26px;line-height:1.25;color:#fff;font-weight:700}
.h-hero .chips{gap:6px}
.h-hero .chip,.h-hero .chip.cool,.h-hero .chip.ok{background:rgba(255,255,255,.2);border:0;color:#fff;font-size:12.5px;padding:5px 11px}
.h-char{position:absolute;bottom:0;inset-inline-end:-4px;height:104%;width:auto;max-width:58%;object-fit:contain;object-position:bottom;z-index:1;pointer-events:none;filter:drop-shadow(0 8px 14px rgba(0,0,0,.18))}
.h-hero + .hero{margin-top:-46px;position:relative;z-index:3;box-shadow:var(--shadow)}
.examcta{background:linear-gradient(135deg,var(--g1),var(--g2));border-radius:24px}
.tile{border:0;border-radius:22px;padding:14px;gap:8px;box-shadow:var(--shadow)}
.ti{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--tc) 14%,var(--surface));color:var(--tc);margin-bottom:2px}
.ti svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tile:active{transform:scale(.98)}
/* tab bar: 5 tabs, rounded and lifted */
.tabs{grid-template-columns:repeat(5,1fr);border:0;border-radius:26px 26px 0 0;box-shadow:0 -10px 30px rgba(31,41,90,.12);padding:8px 8px calc(8px + env(safe-area-inset-bottom))}
.tab{border-radius:16px;gap:4px;font-size:11px;min-height:52px}
.tab.on{background:var(--accent-soft);color:var(--accent)}
/* track chooser */
.trk-grid{gap:14px}
.trk-card{border:0;min-height:196px;padding:14px;align-items:flex-start;justify-content:flex-end;border-radius:26px;background:linear-gradient(150deg,var(--g1),var(--g2));color:#fff;box-shadow:0 10px 22px color-mix(in srgb,var(--g2) 28%,transparent);isolation:isolate}
.trk-card::before{width:150px;height:150px;background:#fff;opacity:.14;top:-50px;inset-inline-start:-40px;inset-inline-end:auto}
.trk-card::after{display:none}
.trk-card b{color:#fff;font-size:19px;position:relative;z-index:2;text-shadow:0 1px 6px rgba(0,0,0,.25)}
.trk-img{position:absolute;top:8px;inset-inline:0;margin-inline:auto;height:76%;width:auto;max-width:96%;object-fit:contain;z-index:1;filter:drop-shadow(0 8px 12px rgba(0,0,0,.2))}
.trk-card .trk-ico{background:rgba(255,255,255,.9);color:var(--c1)}
.trk-card.on{border:0;box-shadow:0 0 0 4px #fff,0 0 0 7px var(--g1),0 12px 24px color-mix(in srgb,var(--g2) 35%,transparent)}
.trk-ok{position:absolute;top:10px;inset-inline-end:10px;z-index:3;width:30px;height:30px;border-radius:50%;background:#fff;color:var(--g2);display:grid;place-items:center;font-weight:800}
.trk-card.soon{background:linear-gradient(150deg,#C9CED8,#8D95A6);filter:none;opacity:.9;box-shadow:none;align-items:center;justify-content:center;gap:8px;min-height:196px}
.trk-card.soon .trk-ico{width:72px;height:72px}
.trk-card.soon .trk-ico svg{width:34px;height:34px;fill:none;stroke:#7B8497;stroke-width:1.8;stroke-linecap:round}
.trk-card.soon b{text-shadow:none}
.trk-card.soon .trk-d{color:#fff;opacity:.9;font-size:13px;display:block}
.trk-card .trk-d{display:none}
/* ===== v2.1: home per final reference ===== */
.h-hero{flex-direction:column;padding:16px 18px 74px;min-height:300px;gap:10px}
.h-top{display:flex;gap:6px;position:relative;z-index:2;flex-wrap:wrap}
.h-hero .chip{background:rgba(255,255,255,.22)}
.h-hero h2{font-size:30px;line-height:1.15}
.h-hero .h-txt p{font-size:15px;opacity:.92;margin:0;line-height:1.4}
.h-hero .h-txt{max-width:58%;gap:8px}
.h-hero.ph{min-height:150px;padding:20px 18px 24px;flex-direction:row;margin-bottom:6px}
.h-hero.ph .h-txt{max-width:56%;justify-content:center}
.h-hero.ph h2{font-size:25px}
.h-hero.ph .primary{width:auto;align-self:flex-start;background:#fff;color:var(--g2);padding:8px 16px}
.h-hero.ph .h-char{height:100%}
/* mission pill inside the hero (spans full width, under the character) */
#missionw{margin-top:auto;position:relative;z-index:3}
.mpill{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:20px;padding:11px 14px;background:rgba(255,255,255,.2);color:#fff;text-align:start;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.mpill .mp-i{font-size:24px}
.mpill .mp-t{flex:1;display:flex;flex-direction:column;min-width:0}
.mpill b{font-size:15px;color:#fff}
.mpill small{font-size:12.5px;color:#fff;opacity:.92}
.mpill.ok{background:rgba(22,163,74,.85)}
.mpill .spin{border-color:rgba(255,255,255,.4);border-top-color:#fff}
/* progress card overlaps the hero */
.h-hero + .hero{margin-top:-58px}
.hero .hero-row{justify-content:space-between}
.hero .hero-txt{flex:1}
.hero .ring2{width:78px;height:78px}
.hero .gbar.hb{height:9px;background:var(--accent-soft);border-radius:9px;overflow:hidden}
.hero .gbar.hb i{display:block;height:100%;background:linear-gradient(90deg,var(--g1),var(--g2));border-radius:9px}
.stats4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.s4{display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 4px;border-radius:16px;background:var(--bg);text-align:center}
.s4 b{font-size:18px;font-family:var(--display);font-variant-numeric:tabular-nums}
.s4 small{font-size:11px;color:var(--muted);line-height:1.2}
.s4i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--tc) 16%,var(--surface));color:var(--tc)}
.s4i svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
/* four colourful action cards */
.acts4{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.act-c{position:relative;border:0;border-radius:24px;padding:14px;min-height:132px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:2px;text-align:start;cursor:pointer;box-shadow:var(--shadow);color:#fff;overflow:hidden}
.act-c .ai{position:absolute;top:10px;inset-inline-end:12px;font-size:44px;filter:drop-shadow(0 6px 8px rgba(0,0,0,.2))}
.act-c b{font-size:16.5px;color:inherit}
.act-c small{font-size:12.5px;opacity:.92;line-height:1.3}
.act-c i{font-style:normal;margin-top:4px;opacity:.9}
.act-c i svg{width:18px;height:18px}
.act-c:active{transform:scale(.98)}
.act-c.c1{background:linear-gradient(145deg,var(--g1),var(--g2))}
.act-c.c2{background:linear-gradient(145deg,#8B6CF0,#5B3FD1)}
.act-c.c3{background:linear-gradient(145deg,#FF9A7A,#F0566A)}
.act-c.c4{background:linear-gradient(145deg,#5BC98A,#16A34A)}
/* practice page shortcuts */
.sc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.sc{border:0;border-radius:20px;background:var(--surface);box-shadow:var(--shadow);padding:12px 6px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;text-align:center}
.sc b{font-size:13px;line-height:1.25}
.sc:active{transform:scale(.97)}
@media (min-width:700px){.h-hero .h-txt{max-width:50%}}
.h-hero{min-height:340px}
.h-hero:not(.ph) .h-char{height:84%;bottom:44px;inset-inline-end:-6px;max-width:62%}
.h-hero.ph{min-height:160px}
.bignum{direction:ltr;justify-content:flex-end}
[dir="rtl"] .bignum{justify-content:flex-start}
.hero .gbar.hb i{margin-inline-start:0}
/* ===== v2.2: phase B (practice, exams, stats) ===== */
.xrow{border:0;border-radius:22px;padding:16px 16px 16px 16px;position:relative;overflow:hidden}
.xrow::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:6px;background:linear-gradient(180deg,var(--g1),var(--g2))}
.xrow.done::before{background:linear-gradient(180deg,#5BC98A,#16A34A)}
.xrow .xmain{padding-inline-start:8px}
.xrow .xstat{font-weight:600}
.xrow .tag{background:var(--accent-soft);color:var(--accent);border-radius:99px;padding:3px 10px;font-size:12px}
.qrow{border:0;border-radius:20px;padding:16px}
.qrow .qn.okc{color:var(--ok)}.qrow .qn.badc{color:var(--bad)}
.qrow .qk{background:var(--bg);border-radius:12px;padding:8px 10px}
.stat-top{gap:12px}
.st-main{background:linear-gradient(145deg,var(--g1),var(--g2));color:#fff;border:0}
.st-main .muted,.st-main .bignum span{color:rgba(255,255,255,.85)}
.st-main .bignum b,.st-main .bignum b:first-child{color:#fff}
.st-main .ring circle:first-child{stroke:rgba(255,255,255,.28)}
.st-main .ring circle:nth-child(2){stroke:#fff}
.st-main .ring text{fill:#fff}
.st-box{border:0;border-radius:22px;box-shadow:var(--shadow)}
.st-box .pct{background:linear-gradient(135deg,var(--g1),var(--g2));-webkit-background-clip:text;background-clip:text;color:transparent}
.bar{height:10px;background:var(--accent-soft)}
.defs .tile,.big-stat .tile{border-radius:20px}
/* question screen */
.opt{border-radius:18px;padding:14px 16px;background:var(--surface);border:2px solid var(--line);box-shadow:0 4px 12px rgba(31,41,90,.05)}
.opt .l{border-radius:50%;background:var(--accent-soft);color:var(--accent);border:0;width:30px;height:30px}
.opt.sel{background:var(--accent-soft);border-color:var(--accent)}
.opt.right{background:var(--ok-soft);border-color:var(--ok)}
.opt.wrong{background:var(--bad-soft);border-color:var(--bad)}
.opt.right .l{background:var(--ok);color:#fff}.opt.wrong .l{background:var(--bad);color:#fff}
.pbar{background:var(--accent-soft)}
.pbar i{background:linear-gradient(90deg,var(--g1),var(--g2))}
.chip.pick{border-radius:99px}
.chip.pick.cool{background:linear-gradient(135deg,var(--g1),var(--g2));color:#fff;border-color:transparent}
.tools-grid .card{border:0;border-radius:24px}
/* ===== v3: full-bleed hero + 3D icons (final home reference) ===== */
.app.hv{padding-top:0}
.app.hv > .top{display:none}
.app.hv .h-hero{margin:0 -16px;border-radius:26px;padding:calc(env(safe-area-inset-top) + 14px) 18px 82px;min-height:392px;background:radial-gradient(120% 90% at 85% 0%,color-mix(in srgb,var(--g1) 55%,#fff) 0%,transparent 60%),linear-gradient(165deg,color-mix(in srgb,var(--g1) 80%,#fff) 0%,var(--g1) 38%,var(--g2) 100%);box-shadow:0 18px 40px color-mix(in srgb,var(--g2) 28%,transparent)}
.app.hv .h-hero.ph{min-height:238px;padding-bottom:30px;flex-direction:column;margin-bottom:4px}
.hv-top{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:4;gap:10px}
.hv-top .lang{background:rgba(255,255,255,.9);border:0;box-shadow:0 6px 16px rgba(20,20,60,.15)}
.hv-brand{display:flex;align-items:center;gap:10px}
.hv-brand > span{display:flex;flex-direction:column;text-align:end}
.hv-brand b{color:#fff;font-size:22px;font-family:var(--display);line-height:1}
.hv-brand small{color:#fff;opacity:.9;font-size:13px;margin-top:3px}
.hv-brand .mark{width:46px;height:46px;border-radius:15px;background:#fff;color:var(--g2);box-shadow:0 6px 16px rgba(20,20,60,.18);display:grid;place-items:center;font-weight:800;font-size:22px}
.app.hv .h-txt{max-width:56%;margin-top:6px}
.app.hv .h-hero h2{font-size:34px;line-height:1.12;font-weight:800}
.app.hv .h-hero .h-txt p{font-size:16px;line-height:1.45}
.app.hv .h-hero.ph h2{font-size:28px}
.app.hv .h-char{height:auto;width:62%;max-width:290px;bottom:0;inset-inline-end:-10px;object-position:bottom;max-height:78%}
.app.hv .h-hero:not(.ph) .h-char{max-height:76%;bottom:56px}
.app.hv .h-hero.ph .h-char{max-height:74%;bottom:0;width:48%}
.h-deco{position:absolute;z-index:1;pointer-events:none;filter:drop-shadow(0 10px 14px rgba(20,20,80,.25));opacity:.95}
.h-deco.d1{width:78px;top:78px;inset-inline-end:14px;transform:rotate(-10deg)}
.h-deco.d2{width:52px;top:112px;inset-inline-end:46%;transform:rotate(12deg)}
.app.hv .h-hero.ph .h-deco.d1{width:54px;top:66px}
.app.hv .h-hero.ph .h-deco.d2{display:none}
.mpill{background:rgba(255,255,255,.2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35),0 8px 18px rgba(20,20,80,.18);border-radius:22px;padding:12px 16px}
.mpill .mp-i{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.25))}
#missionw{margin-top:auto}
.app.hv .h-hero + .hero{margin-top:-62px;border-radius:26px}
.hero .hero-row{align-items:center}
.stats4{gap:8px}
.s4{flex-direction:row;align-items:center;justify-content:center;gap:6px;padding:8px 6px;border-radius:18px;background:var(--surface);box-shadow:0 4px 14px rgba(31,41,90,.09);border:1px solid var(--line)}
.s4 img{width:30px;height:30px;object-fit:contain;flex:none}
.s4 span{display:flex;flex-direction:column;align-items:flex-start;text-align:start;min-width:0}
.s4 b{font-size:16px;line-height:1.1}
.s4 small{font-size:10.5px;white-space:nowrap}
.acts4{grid-template-columns:repeat(4,1fr);gap:8px}
.act-c{min-height:150px;padding:10px 8px 10px;align-items:center;text-align:center;justify-content:flex-start;gap:3px;border-radius:22px;box-shadow:0 8px 20px rgba(31,41,90,.12)}
.act-c img{width:62px;height:62px;object-fit:contain;margin-bottom:2px;filter:drop-shadow(0 6px 8px rgba(30,30,80,.25))}
.act-c b{font-size:13.5px;line-height:1.2}
.act-c small{font-size:11px;line-height:1.25}
.act-c i{margin-top:auto;font-size:16px}
.act-c.c1{background:linear-gradient(160deg,#8B6CF0,#5B3FD1);color:#fff}
.act-c.c2{background:linear-gradient(160deg,#FFE3D6,#FFC2A6);color:#7A2E12}
.act-c.c3{background:linear-gradient(160deg,#D8E9FF,#A9CCFF);color:#14407E}
.act-c.c4{background:linear-gradient(160deg,#D8F5E2,#A8E6BE);color:#13602F}
.sc .ti{background:transparent}
.app.hv .h-hero{min-height:430px}
.app.hv .h-char{width:74%;max-width:340px;max-height:none}
.app.hv .h-hero:not(.ph) .h-char{max-height:none;height:330px;width:auto;max-width:72%;bottom:50px;inset-inline-end:-14px}
.app.hv .h-hero.ph .h-char{height:190px;width:auto;max-height:none}
.hv-brand > span{text-align:start}
.app.hv .h-txt{max-width:52%}
.h-deco.d2{inset-inline-end:auto;inset-inline-start:48%}
.app.hv .h-hero:not(.ph) .h-char{max-width:60%;inset-inline-end:-6px}
.stats4{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.s4{min-width:0;padding:8px 4px;gap:4px;flex-direction:column;text-align:center}
.s4 img{width:28px;height:28px}
.s4 span{align-items:center;text-align:center}
.s4 small{white-space:normal;font-size:10.5px;line-height:1.15}
/* boot splash */
.app.sp{padding:0;max-width:none;gap:0}
.app.sp > .top{display:none}
.splash{position:relative;overflow:hidden;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;color:#fff;background:radial-gradient(120% 80% at 80% 0%,#8DBBFF 0%,transparent 60%),linear-gradient(165deg,#5B9BFF 0%,#2F6FD6 45%,#1554A8 100%)}
.splash::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:rgba(255,255,255,.12);top:-140px;inset-inline-end:-120px}
.splash::after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;background:rgba(255,255,255,.1);bottom:-90px;inset-inline-start:-90px}
.splash > *{position:relative;z-index:1}
.splash .sp-mark{width:104px;height:104px;border-radius:32px;background:#fff;color:#1554A8;display:grid;place-items:center;font:800 56px var(--display);box-shadow:0 18px 40px rgba(8,30,80,.35)}
.splash h1{font-size:40px;font-weight:800;color:#fff;margin-top:10px}
.splash p{color:#fff;opacity:.92;font-size:16px;margin:0}
.splash .spin{margin-top:26px;border-color:rgba(255,255,255,.35);border-top-color:#fff}
.splash .h-deco{position:absolute;z-index:0}
.splash .h-deco.d1{width:84px;top:16%;inset-inline-end:12%;transform:rotate(-12deg)}
.splash .h-deco.d2{width:60px;bottom:18%;inset-inline-start:14%;transform:rotate(10deg)}

/* question image (tap to enlarge) */
.qimg{display:block;max-width:100%;max-height:300px;margin:10px auto;border-radius:12px;background:#fff;object-fit:contain;cursor:zoom-in}
.qimg.zoom{position:fixed;inset:0;z-index:999;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;border-radius:0;background:rgba(0,0,0,.92);cursor:zoom-out;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}

/* website only (wide screens): question on top, explanation as tidy sections; the app is untouched */
.qtop{display:contents}
@media (min-width: 900px){
  .qtop.hasimg{display:grid;grid-template-columns:1fr 1.2fr;gap:20px;align-items:center}
  .qtop .qimg{max-height:300px;margin:0}
  .ex{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px 26px;display:flex;flex-direction:column;gap:20px;margin-top:6px}
  .ex h3{margin:0 0 6px;font-size:15px;color:var(--muted);font-weight:600}
  .ex p{margin:0;line-height:1.9;font-size:16px}
  .ex .sum{background:var(--bg);border-radius:12px;padding:14px 16px}
  .ex .why{display:flex;flex-direction:column;gap:10px}
  .ex .why div{display:flex;gap:10px;line-height:1.8}
  .ex .why b{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:13px}
  .ex .why .y b{background:var(--ok)}.ex .why .n b{background:var(--bad)}
  .ex .why .picked{font-weight:600}
  .ex ul{margin:0;padding-inline-start:20px;line-height:1.9}
}

/* More tab: grouped rows */
.tsec{margin:20px 4px 8px}
.trow{display:flex;align-items:center;gap:12px;min-width:0}
.tico{flex:none;width:38px;height:38px;border-radius:12px;background:var(--bg);display:flex;align-items:center;justify-content:center;font-size:20px}
.ttxt{display:flex;flex-direction:column;gap:2px;min-width:0}
.ttxt b{font-weight:600;font-size:15px}
.ttxt small{font-size:12.5px;line-height:1.35}
.li.dng .ttxt b{color:var(--bad)}
.li.dng .tico{background:var(--bad-soft)}
.li > i{opacity:.45;flex:none}

/* hero flows down from the very top of the screen (under the status bar), square top, round bottom */
@media (max-width:699px){
  .app.hv{padding-top:0}
  .app.hv .h-hero{margin-top:0;border-radius:0 0 34px 34px}
}

/* splash: cover the whole screen, no light edges */
.splash{position:fixed !important;inset:0;width:100%;height:100%;min-height:0;z-index:60;border-radius:0}
.app.sp{background:transparent}

.trk-card.soon.pic{background:linear-gradient(150deg,var(--g1),var(--g2));opacity:1;filter:saturate(.75);align-items:flex-start;justify-content:flex-end;gap:6px;box-shadow:0 10px 22px color-mix(in srgb,var(--g2) 28%,transparent)}
.trk-card.soon.pic .trk-d{display:inline-block;position:absolute;top:10px;inset-inline-end:10px;z-index:3;background:rgba(255,255,255,.92);color:var(--g2);font-weight:700;font-size:12px;padding:3px 10px;border-radius:20px}

/* a message above the colourful home header must not slide under the phone status bar */
.app.hv #annw:not(:empty){padding-top:max(14px, env(safe-area-inset-top));margin-bottom:12px}
