/* Web-only layout: the app is a phone-width column, centred on larger screens. */
html,body{background:#191625}
#clat-prototype{max-width:560px!important;margin:0 auto}
#clat-prototype .cs-question-actions,#clat-prototype .cs-tabbar{max-width:560px!important}
@media(min-width:600px){
 #clat-prototype .cs-phone{border-left:1px solid #2c2540!important;border-right:1px solid #2c2540!important;min-height:100dvh}
}
.web-loading{color:#b9b1cc;font:16px/1.6 Inter,ui-sans-serif,system-ui,sans-serif;padding:32px 0;text-align:center}

/* Account dialog */
.wa-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #443a54;border-radius:22px;background:#221c30;color:#f5f1ff;font:16px/1.6 Inter,ui-sans-serif,system-ui,sans-serif;box-shadow:0 24px 60px #0008}
.wa-dialog::backdrop{background:#0d0b14cc}
.wa-dialog h2{margin:0 36px 8px 0;font-size:24px;line-height:1.25;letter-spacing:-.4px}
.wa-dialog p{margin:0 0 14px;color:#d6cfe6}
.wa-dialog form{display:grid;gap:10px;margin:8px 0 14px}
.wa-dialog label{font-size:14px;color:#b9b1cc}
.wa-dialog input{font:inherit;font-size:18px;padding:13px 14px;border-radius:12px;border:1px solid #5a4d70;background:#191625;color:#f5f1ff;min-height:52px}
.wa-dialog input:focus-visible{outline:2px solid #b9a5ff;outline-offset:2px}
.wa-dialog .cs-primary{width:100%;min-height:52px;border:0;border-radius:14px;background:#6241db;color:#fff;font:inherit;font-weight:600;cursor:pointer}
.wa-dialog .cs-primary:disabled{opacity:.6;cursor:default}
.wa-dialog .cs-text-button{display:block;width:100%;min-height:46px;border:0;background:transparent;color:#d6c4ff;font:inherit;text-align:left;cursor:pointer;padding:0}
.wa-dialog .pm-active{padding:6px 0;color:#a3e9cc;font-weight:600}
.wa-close{position:absolute;top:16px;right:16px;width:40px;height:40px;border:0;border-radius:999px;background:#35294d;color:#f5f1ff;font-size:16px;cursor:pointer}
.wa-error{color:#ffb4b4!important;font-size:15px}
.wa-note{color:#b8f1df!important}
.wa-small{font-size:13px;color:#b9b1cc!important;margin-top:10px!important}
.wa-small a,.wa-dialog a{color:#d6c4ff}
.wa-email{font-weight:600;overflow-wrap:anywhere}
.wa-signed{font-size:14px;color:#b9b1cc;overflow-wrap:anywhere}
.wa-dialog h3{margin:18px 0 6px;font-size:15px;color:#f5f1ff}
.wa-consent{display:flex!important;gap:10px;align-items:flex-start;margin:4px 0 14px;font-size:14px!important;line-height:1.5;color:#d6cfe6!important;cursor:pointer}
.wa-consent input{flex:none;width:20px;height:20px;min-height:0;margin:2px 0 0;padding:0;accent-color:#6241db}
.wa-google{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;border:0;border-radius:14px;background:#fff;color:#1f1f1f;font:inherit;font-weight:600;cursor:pointer}
.wa-google:disabled{opacity:.6;cursor:default}
.wa-google:focus-visible,.wa-header:focus-visible,.wa-inline:focus-visible{outline:2px solid #b9a5ff;outline-offset:2px}
.wa-or{display:flex;align-items:center;gap:12px;margin:16px 0 4px!important;font-size:13px;color:#b9b1cc!important}
.wa-or::before,.wa-or::after{content:"";flex:1;height:1px;background:#443a54}
.wa-sync{font-size:14px;color:#b8f1df!important}
.wa-sync-local,.wa-sync-offline,.wa-sync-stale{color:#ffd9a8!important}
.wa-dialog .wa-danger{color:#ffb4b4}
.wa-actions{display:grid;gap:8px}
.wa-dialog .wa-danger-button{background:#b3261e}
.wa-header{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid #443a54;border-radius:999px;background:#221c30;color:#f5f1ff;font:600 14px/1 Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer;position:relative;flex:none}
.wa-header:hover{background:#2c2540}
.wa-avatar{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;margin-left:-8px;border-radius:50%;background:#6241db;color:#fff;font-size:13px}
.wa-dot{position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:50%;background:#ffb86b}
.wa-inline{border:0;padding:0;background:none;color:#d6c4ff;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.wa-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:50;max-width:calc(100vw - 32px);margin:0;padding:12px 18px;border-radius:14px;background:#2c2540;border:1px solid #5a4d70;color:#f5f1ff;font:15px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;box-shadow:0 12px 30px #0008}

/* =====================================================================
   Laptop and desktop layout (≥1024px): the portal is designed for computers.
   Sidebar navigation, a dashboard home, split passage/question screens and
   a three-column mock. Phones and tablets keep the single-column layout.
   #cs-screen (an id) is used so these rules beat the app's own stylesheets.
   ===================================================================== */
@media (min-width:1024px){
 #clat-prototype{max-width:none!important;margin:0}
 #clat-prototype .cs-phone{border:0!important;min-height:100dvh}
 #clat-prototype #cs-screen{min-height:100dvh;padding:40px clamp(32px,4vw,64px) 72px;box-sizing:border-box}
 /* One readable column by default; blocks fill it, buttons stay compact */
 #clat-prototype #cs-screen>*:not(.cs-tabbar){width:100%;max-width:760px;margin-left:auto;margin-right:auto;box-sizing:border-box}
 #clat-prototype #cs-screen>:is(button,.cs-primary,.cs-text-button){width:auto;min-width:220px;padding-left:28px;padding-right:28px;
  margin-left:max(0px,calc((100% - 760px) / 2))}
 #clat-prototype #cs-screen .cs-action-stack{display:flex;flex-wrap:wrap;gap:12px}
 #clat-prototype #cs-screen .cs-action-stack>*{width:auto;min-width:220px;padding-left:28px;padding-right:28px;margin:0}
 #clat-prototype .cs-tab-spacer{display:none!important}
 #clat-prototype #cs-screen>.cs-complete-icon{width:60px;margin-left:max(0px,calc((100% - 760px) / 2))}

 /* Sidebar: brand + main navigation */
 #clat-prototype:has(.cs-tabbar) .cs-top{position:fixed;left:0;top:0;width:248px;padding:28px 26px;z-index:14;background:transparent;box-sizing:border-box}
 #clat-prototype:has(.cs-tabbar) #cs-screen{margin-left:248px}
 #clat-prototype #cs-screen .cs-tabbar{position:fixed;left:0;top:0;bottom:0;transform:none;width:248px;max-width:none;
  display:flex;flex-direction:column;gap:4px;padding:100px 16px 24px;border-top:0;border-right:1px solid #2c2540;background:#15121e;z-index:13;margin:0}
 #clat-prototype #cs-screen .cs-tabbar button{flex-direction:row;justify-content:flex-start;gap:14px;min-height:48px;padding:0 16px;font-size:15px;font-weight:600;border-radius:12px;cursor:pointer}
 #clat-prototype #cs-screen .cs-tabbar button:hover{background:#221c30;color:#f5f1ff}
 /* Account button sits at the foot of the sidebar */
 #clat-prototype:has(.cs-tabbar) .wa-header{position:fixed;left:16px;bottom:24px;width:216px;justify-content:flex-start;padding:0 16px;z-index:15}
 /* Focus mode inside a set or mock: no sidebar, brand stays at the top */
 #clat-prototype:not(:has(.cs-tabbar)) .cs-top{padding:20px clamp(32px,4vw,64px);border-bottom:1px solid #2c2540}

 /* Home: dashboard grid */
 #clat-prototype #cs-screen>.home-premium-layout{max-width:1120px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  grid-template-areas:"intro intro" "hero head" "hero grid" "up note";column-gap:32px;align-items:start}
 .home-premium-layout>.dash-intro{grid-area:intro}
 .home-premium-layout>.dash-hero{grid-area:hero;margin-bottom:0!important}
 .home-premium-layout>.dash-heading{grid-area:head}
 .home-premium-layout>.dash-grid{grid-area:grid}
 .home-premium-layout>.pm-home-upgrade{grid-area:up;justify-self:start;width:auto!important;padding:0 28px}
 .home-premium-layout>.dash-bank-note{grid-area:note;align-self:center;justify-self:end;margin:0}

 /* Practice subject chooser: cards in a grid */
 #clat-prototype #cs-screen>.practice-chooser{max-width:1000px}
 #clat-prototype #cs-screen .cs-subject-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
 #clat-prototype #cs-screen .cs-subject-list .cs-option{margin:0;min-height:76px}
 #clat-prototype #cs-screen .practice-chooser .practice-premium{width:auto;padding:0 28px;margin-top:20px}

 /* Progress: use the width */
 #clat-prototype #cs-screen:has(.dash-overview,.pr-chart,[class*="progress"])>*:not(.cs-tabbar){max-width:1000px}

 /* Questions: passage stays open on the left, question on the right */
 #clat-prototype #cs-screen:has(>details>.cs-reading){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);
  column-gap:48px;align-content:start}
 #clat-prototype #cs-screen:has(>details>.cs-reading)>*:not(.cs-tabbar){grid-column:2;max-width:none;width:auto;margin-left:0;margin-right:0}
 #clat-prototype #cs-screen:has(>details>.cs-reading)>details:has(>.cs-reading){grid-column:1;grid-row:1 / span 30;position:sticky;top:24px;
  max-height:calc(100dvh - 120px);overflow:auto;padding-right:8px;scrollbar-width:thin}
 #clat-prototype #cs-screen>details>summary:has(+.cs-reading){display:none}
 #clat-prototype #cs-screen>details>.cs-reading{margin:0}
 #clat-prototype #cs-screen .cs-question-actions{position:static;transform:none;max-width:none;width:auto;padding:16px 0 0;border-top:0;background:transparent}

 /* Mock: passage | question | navigator */
 #clat-prototype #cs-screen>.mock-screen:has(>.mock-navigator){max-width:1400px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr) 300px;column-gap:32px;align-items:start}
 #clat-prototype .mock-screen:has(>.mock-navigator)>*{grid-column:2}
 #clat-prototype .mock-screen:has(>.mock-navigator)>:is(.mock-toolbar,.mock-status){grid-column:1 / -1}
 #clat-prototype .mock-screen>.mock-navigator{grid-column:3;grid-row:3 / span 20;position:sticky;top:84px;max-height:calc(100dvh - 110px);overflow:auto;
  padding:16px;border:1px solid #2c2540;border-radius:18px;background:#1c1729;scrollbar-width:thin;margin:0}
 #clat-prototype .mock-screen>.mock-passage{grid-column:1;grid-row:3 / span 20;position:sticky;top:84px;max-height:calc(100dvh - 110px);overflow:auto;scrollbar-width:thin;margin:0}
 #clat-prototype .mock-screen>:is(.mock-navigator,.mock-passage)>summary{pointer-events:none;list-style:none;font-weight:700;color:#f5f1ff}
 #clat-prototype .mock-screen>:is(.mock-navigator,.mock-passage)>summary::-webkit-details-marker{display:none}
 #clat-prototype .mock-screen .mock-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:6px}
 #clat-prototype .mock-screen .mock-grid{gap:5px}
 #clat-prototype .mock-screen .mock-grid button{min-height:26px;padding:0;font-size:12px;border-radius:7px}
 #clat-prototype .mock-screen>.mock-navigator h3{margin:8px 0 5px;font-size:13px}
 #clat-prototype .mock-screen>.mock-navigator>summary{padding:0 0 2px;min-height:0}
 #clat-prototype .cs-option{cursor:pointer}
}
@media (min-width:1024px) and (max-width:1279px){
 #clat-prototype #cs-screen>.mock-screen:has(>.mock-navigator){grid-template-columns:minmax(0,1fr) minmax(320px,1fr)}
 /* two columns: passage | question, with the navigator under the question */
 #clat-prototype .mock-screen>.mock-navigator{grid-column:2;grid-row:auto;order:99;position:static;max-height:none;margin-top:20px}
 #clat-prototype .mock-screen .mock-grid{grid-template-columns:repeat(10,minmax(0,1fr))!important}
}

/* Google's own sign-in button (rendered by Google Identity Services) */
.wa-gsi{display:flex;justify-content:center;min-height:44px;margin:14px 0 4px}

/* ---------------------------------------------------------------- sign-up gate (web-signup.js) */
.su-page{position:fixed;inset:0;z-index:50;overflow:auto;background:#191625;color:#f5f1ff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;line-height:1.5}
.su-bar{display:flex;align-items:center;padding:16px 28px;border-bottom:1px solid #2e2740}
.su-brand{display:flex;align-items:center;gap:10px;color:#f5f1ff;text-decoration:none;font-weight:600;letter-spacing:.08em;font-size:14px}
.su-brand img{border-radius:8px}
.su-main{max-width:1120px;margin:0 auto;padding:64px 28px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:64px;align-items:center}
.su-copy h1{margin:0;font-size:clamp(32px,4vw,50px);line-height:1.08;font-weight:700;letter-spacing:-.03em}
.su-copy h1 em{font-style:normal;color:#b9a5ff}
.su-lede{margin:16px 0 0;font-size:18px;color:#b9b1cc;max-width:30em}
.su-gets{margin:28px 0 0;padding:0;list-style:none;display:grid;gap:12px;color:#b9b1cc}
.su-gets li{display:flex;gap:12px}
.su-gets li::before{content:"";flex:none;width:12px;height:7px;margin-top:7px;border-left:2px solid #7ee6c4;border-bottom:2px solid #7ee6c4;transform:rotate(-45deg)}
.su-gets b{color:#f5f1ff;font-weight:600}
.su-card{background:#221c30;border:1px solid #3a3252;border-radius:22px;padding:30px}
.su-card h2{margin:0;font-size:24px}
.su-sub{margin:6px 0 0;color:#b9b1cc;font-size:15px}
.su-card label{display:block;margin:20px 0 8px;font-weight:500;font-size:15px}
.su-input,.su-code{width:100%;box-sizing:border-box;background:#191625;border:1px solid #3a3252;border-radius:12px;padding:13px 14px;font:inherit;color:#f5f1ff}
.su-input:focus,.su-code:focus{outline:none;border-color:#b9a5ff}
.su-code{font-size:24px;letter-spacing:.5em;text-align:center}
.su-hint{margin:6px 0 0;font-size:13px;color:#b9b1cc}
.su-card label.su-consent{display:flex;gap:10px;align-items:flex-start;margin:18px 0 0;font-size:13.5px;font-weight:400;color:#b9b1cc}
.su-consent input{margin-top:3px;width:16px;height:16px;flex:none;accent-color:#6a4cf0}
.su-consent a,.su-link{color:#b9a5ff}
.su-gsi{display:flex;justify-content:center;min-height:44px;margin-top:22px}
.su-google{margin-top:22px;width:100%;display:flex;align-items:center;justify-content:center;gap:12px;background:#fff;color:#1f1f1f;border:0;border-radius:999px;padding:13px 20px;font:inherit;font-weight:600;cursor:pointer}
.su-or{display:flex;align-items:center;gap:14px;margin:22px 0 0;color:#b9b1cc;font-size:13px}
.su-or::before,.su-or::after{content:"";flex:1;height:1px;background:#3a3252}
.su-primary{margin-top:14px;width:100%;background:#6a4cf0;color:#fff;border:0;border-radius:999px;padding:14px 20px;font:inherit;font-weight:600;cursor:pointer}
.su-primary:hover{background:#7b60f7}.su-primary:disabled,.su-google:disabled{opacity:.6;cursor:default}
.su-secondary{margin-top:12px;background:transparent;color:#f5f1ff;border:1px solid #3a3252;border-radius:999px;padding:11px 18px;font:inherit;font-weight:600;cursor:pointer}
.su-error{margin:10px 0 0;color:#f2a36b;font-size:14px}
.su-swap,.su-small{margin:20px 0 0;padding-top:16px;border-top:1px solid #3a3252;text-align:center;font-size:14.5px;color:#b9b1cc}
.su-small{border-top:0;padding-top:0;margin-top:14px}
.su-link{background:none;border:0;padding:0;font:inherit;font-weight:600;cursor:pointer}
.su-offline{max-width:1120px;margin:-32px auto 48px;padding:0 28px}
.su-offline p{margin:0;padding:16px 18px;border:1px solid #6b4e2a;border-radius:14px;background:#2a2118;color:#f5d9b8;font-size:14.5px}
.su-page :focus-visible{outline:2px solid #b9a5ff;outline-offset:2px}
@media (max-width:900px){.su-main{grid-template-columns:1fr;gap:32px;padding:32px 16px}.su-gets{display:none}.su-bar{padding:14px 16px}.su-card{padding:22px}}

/* the dashboard uses the laptop width, and its chart is not an icon */
#clat-prototype #cs-screen>.wh{max-width:1140px}
#clat-prototype .cs-phone svg.wh-chart{display:block;width:100%!important;height:auto!important;overflow:visible}
#clat-prototype .wh-icon svg{width:19px!important;height:19px!important}

.wh-head-right{display:flex;align-items:center;gap:12px}
.wh-account{display:flex;align-items:center;gap:8px;background:none;border:1px solid #3a3252;border-radius:999px;padding:6px 14px 6px 6px;color:#f5f1ff;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.wh-account span{width:28px;height:28px;border-radius:50%;background:#6a4cf0;color:#fff;display:grid;place-items:center;font-weight:600}
.wh-account:hover{border-color:#5a5190}
@media (max-width:900px){.wh-head-right{width:100%;justify-content:space-between}}

/* ---------------------------------------------------------------- dashboard details */
.wh-sec{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.wh-count-edit{gap:8px;cursor:default}
.wh-count-edit button{background:#191625;border:1px solid #3a3252;border-radius:999px;padding:6px 14px;color:#f5f1ff;font:inherit;font-size:14px;cursor:pointer}
.wh-count-edit button[aria-pressed="true"]{border-color:#b9a5ff;color:#c4b4ff}
.wh-count-edit .wh-x{border:0;background:none;color:#b9b1cc;padding:6px 8px}
/* sidebar count for the revision list */
#clat-prototype .cs-tabbar .cs-tab-count{font-style:normal;margin-left:auto;font-size:12px;font-weight:600;background:#f2a36b;color:#2b1408;border-radius:999px;padding:1px 8px}

/* ---------------------------------------------------------------- dashboard (web-home.js) */
.wh{--wh-card:#201b2e;--wh-line:#332c4a;--wh-muted:#a9a1c0;display:grid;gap:20px;color:#f5f1ff}
.wh h1,.wh h2,.wh h3{margin:0;letter-spacing:-.02em}
.wh-head{display:flex;justify-content:space-between;align-items:center;gap:24px}
.wh-date{margin:0 0 6px;color:var(--wh-muted);font-size:14px}
.wh-head h1{font-size:34px;font-weight:700;line-height:1.1}
.wh-head-right{display:flex;align-items:center;gap:12px}
.wh-count{display:flex;align-items:center;gap:14px;background:var(--wh-card);border:1px solid var(--wh-line);border-radius:16px;padding:10px 16px;color:var(--wh-muted);font:inherit;font-size:13.5px;text-align:left;line-height:1.35;cursor:pointer}
.wh-count b{font-size:30px;color:#c4b4ff;line-height:1;font-variant-numeric:tabular-nums}
.wh-count small{font-size:12.5px}
.wh-count em{font-style:normal;color:#c4b4ff;font-weight:500;margin-left:4px}
.wh-count:hover,.wh-account:hover{border-color:#4f4673}
.wh-account{display:flex;align-items:center;gap:8px;background:var(--wh-card);border:1px solid var(--wh-line);border-radius:999px;padding:6px 16px 6px 6px;color:#f5f1ff;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.wh-account span{width:30px;height:30px;border-radius:50%;background:#6a4cf0;color:#fff;display:grid;place-items:center;font-weight:600}

/* row 1: progress (wide) beside today's question, equal heights */
.wh-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:20px;align-items:stretch}
.wh-panel,.wh-card,.wh-subject{background:var(--wh-card);border:1px solid var(--wh-line);border-radius:20px}
.wh-hero{padding:28px 30px;display:flex;flex-direction:column}
.wh-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.wh-hero h2{font-size:19px;font-weight:600}
.wh-link{background:none;border:0;padding:0;color:#c4b4ff;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.wh-link:hover{color:#ddd3ff}
.wh-stats{display:grid;grid-template-columns:1fr 1fr;margin-top:22px}
.wh-stats>div+div{border-left:1px solid var(--wh-line);padding-left:28px}
.wh-stats b{display:block;font-size:46px;font-weight:700;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums}
.wh-stats b small{font-size:17px;color:#c4b4ff;font-weight:600;letter-spacing:0;margin-left:4px}
.wh-stats p{margin:8px 0 0;color:var(--wh-muted);font-size:14.5px}
.wh-blank b{color:#5d557f;font-weight:500}
.wh-blank b small{color:#5d557f}
.wh-delta{color:#7ee6c4!important;font-size:13.5px!important;margin-top:4px!important}
.wh-delta.down{color:#f2a36b!important}
.wh-empty-chart{position:relative;margin-top:22px;height:120px}
.wh-empty-chart svg{display:block;width:100%!important;height:120px!important}
.wh-empty-chart path{fill:none;stroke:#2f2846;stroke-width:1}
.wh-empty-chart path.d{stroke:#4b4473;stroke-width:2;stroke-dasharray:6 8}
.wh-empty-chart span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:var(--wh-card);padding:4px 12px;border-radius:999px;font-size:13px;color:var(--wh-muted);white-space:nowrap}
.wh-foot{margin-top:auto;padding-top:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.wh-lead{margin:0;color:var(--wh-muted);font-size:14.5px;max-width:34em}
.wh-lead strong{color:#f5f1ff}
.wh-hero>.wh-lead{margin-top:16px}
.wh-mint{flex:none;background:#b8edda;color:#123528;border:0;border-radius:999px;padding:13px 24px;font:inherit;font-weight:600;cursor:pointer}
.wh-mint:hover{background:#a6e6cf}
.wh-chart{display:block;width:100%;height:auto;margin-top:18px}
.wh-chart text{fill:var(--wh-muted);font-size:12px;font-family:inherit}
.wh-chart .g{stroke:#2f2846;stroke-width:1}
.wh-chart .a{fill:#7ee6c4;opacity:.12}
.wh-chart .l{fill:none;stroke:#7ee6c4;stroke-width:2.5;stroke-linejoin:round}
.wh-chart circle{fill:var(--wh-card);stroke:#7ee6c4;stroke-width:2}
.wh-chart circle.last{fill:#7ee6c4}

/* Question of the Day: the app's card, restyled to match */
.wh-today{display:flex}
#clat-prototype .wh-today .dash-hero{flex:1;display:flex;flex-direction:column;margin:0;padding:26px;background:var(--wh-card)!important;border:1px solid var(--wh-line);border-radius:20px;box-shadow:none}
#clat-prototype .wh-today .dash-hero .cs-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}
#clat-prototype .wh-today .dash-hero .cs-kicker{text-transform:none;letter-spacing:0;font-size:17px;font-weight:600;color:#f5f1ff}
#clat-prototype .wh-today .dash-hero .dash-streak{font-size:12.5px;color:#7ee6c4;border:1px solid #2c5a4b;border-radius:999px;padding:3px 10px}
#clat-prototype .wh-today .dash-hero .dash-subject-feature{margin-top:18px}
#clat-prototype .wh-today .dash-hero .dash-subject-feature h2{font-size:13.5px;font-weight:500;color:var(--wh-muted);margin:0}
#clat-prototype .wh-today .dash-hero .dash-study-art{display:none}
#clat-prototype .wh-today .dash-hero .dash-set-detail p{margin:6px 0 0;font-size:18px;line-height:1.35;font-weight:600;color:#f5f1ff}
#clat-prototype .wh-today .dash-hero .cs-workout-meta{margin-top:8px;font-size:13.5px;color:var(--wh-muted)}
#clat-prototype .wh-today .dash-hero .cs-primary,#clat-prototype .wh-today .dash-hero .dash-workout-footer{margin-top:auto}
#clat-prototype .wh-today .dash-hero .cs-primary{background:#6a4cf0;color:#fff;border-radius:999px;min-height:48px}
#clat-prototype .wh-today .dash-hero .cs-workout-meta+.cs-primary,#clat-prototype .wh-today .dash-hero .cs-workout-meta+.dash-workout-footer{margin-top:auto;padding-top:20px}

/* row 2: subjects */
.wh-sec{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:12px}
.wh-sec h2{font-size:20px;font-weight:600}
.wh-subjects{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.wh-subject{text-align:left;padding:20px;display:flex;flex-direction:column;gap:6px;min-height:150px;color:#f5f1ff;font:inherit;cursor:pointer}
.wh-subject:hover,.wh-card:hover{border-color:#4f4673}
.wh-subject b{margin-top:auto;font-size:15.5px;line-height:1.3;font-weight:600}
.wh-subject small{font-size:13px;color:var(--wh-muted)}
.wh-subject small.wh-weak{color:#f2a36b;font-weight:600}
.wh-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;margin-bottom:10px}
.wh-en{background:#23305a;color:#9ec0ff}.wh-gk{background:#1d3a33;color:#7ee6c4}.wh-lr{background:#3d2f1c;color:#f5c37a}.wh-lg{background:#31295a;color:#c4b2ff}.wh-qt{background:#3f2230;color:#ff9db1}

/* row 3: equal cards, buttons on one baseline */
.wh-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.wh-card{padding:24px;display:flex;flex-direction:column;align-items:flex-start}
.wh-card .wh-icon{margin-bottom:16px}
.wh-card h3{font-size:16.5px;font-weight:600}
.wh-card p{margin:8px 0 0;color:var(--wh-muted);font-size:14px;line-height:1.55}
.wh-card .wh-ghost,.wh-card .wh-violet{margin-top:auto;align-self:flex-start}
.wh-card p+.wh-ghost,.wh-card p+.wh-violet{margin-top:auto}
.wh-card>:is(.wh-ghost,.wh-violet){position:relative;top:0}
.wh-card>p:last-of-type{margin-bottom:18px}
.wh-ghost{background:transparent;color:#f5f1ff;border:1px solid var(--wh-line);border-radius:999px;padding:9px 18px;font:inherit;font-weight:600;font-size:14px;cursor:pointer}
.wh-ghost:hover{border-color:#6a5aa8}
.wh-violet{background:#6a4cf0;color:#fff;border:0;border-radius:999px;padding:10px 18px;font:inherit;font-weight:600;font-size:14px;cursor:pointer}
.wh-violet:hover{background:#7b60f7}
.wh-band{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 28px;background:#251f3c;border:1px solid #463b6e;border-radius:20px}
.wh-band h3{font-size:16.5px;font-weight:600}
.wh-band p{margin:4px 0 0;color:var(--wh-muted);font-size:14px}
.wh-band-end{display:flex;align-items:center;gap:20px;color:var(--wh-muted);font-size:14px}
.wh-band-end b{color:#f5f1ff;font-size:20px}
.wh-price{color:#f5f1ff!important}
.wh-price b{font-size:20px}
.wh :focus-visible{outline:2px solid #b9a5ff;outline-offset:2px}
.wh .dash-bank-note{margin:4px 0 0;color:var(--wh-muted)}

@media (max-width:1180px){.wh-subjects{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:980px){.wh-grid{grid-template-columns:1fr}.wh-foot{flex-direction:column;align-items:flex-start}}
@media (max-width:900px){.wh-head{flex-direction:column;align-items:flex-start}.wh-cards{grid-template-columns:1fr}.wh-band,.wh-band-end{flex-direction:column;align-items:flex-start}.wh-subjects{grid-template-columns:repeat(2,minmax(0,1fr))}.wh-stats b{font-size:38px}.wh-stats>div+div{padding-left:16px}}

/* phones and tablets: six tabs share one row */
@media (max-width:1023px){
 #clat-prototype .cs-tabbar{display:flex!important;flex-wrap:nowrap!important}
 #clat-prototype .cs-tabbar button{flex:1 1 0!important;min-width:0!important;padding-left:2px!important;padding-right:2px!important}
 #clat-prototype .cs-tabbar button span{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 #clat-prototype .cs-tabbar .cs-tab-count{display:none}
}

/* ---------------------------------------------------------------- revision home (mistake-revision.js) */
#clat-prototype .rv-empty p{margin-bottom:18px}
#clat-prototype .rv-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
#clat-prototype .rv-actions .cs-primary{width:auto;min-height:46px;padding:0 24px;border-radius:999px}
#clat-prototype .rv-secondary{min-height:46px;padding:0 22px;border-radius:999px;border:1px solid #5a4d78;background:transparent;color:#f5f1ff;font:inherit;font-weight:600;cursor:pointer}
#clat-prototype .rv-secondary:hover{background:#2b2340}
#clat-prototype .rv-note{margin-top:18px;font-size:14px}

.wa-signout{display:inline-flex;align-items:center;min-height:40px;margin-left:8px;padding:0 14px;border:1px solid #443a54;border-radius:999px;background:transparent;color:#cfc6e6;font:600 14px/1 Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer;flex:none}
.wa-signout:hover{background:#221c30;color:#f5f1ff}
.wa-signout:focus-visible{outline:2px solid #b9a5ff;outline-offset:2px}
/* Wide windows: Sign out sits at the bottom of the sidebar, above Account. Narrow: beside Account in the header. */
@media (min-width:1024px){#clat-prototype:has(.cs-tabbar) .wa-signout{position:fixed;left:16px;bottom:72px;width:216px;margin:0;justify-content:flex-start;padding:0 16px;z-index:15}}
/* Dashboard "Add to home screen" band (phones only): keep its two buttons side by side. */
#clat-prototype .wh-install .wh-band-end{flex-direction:row;align-items:center;gap:12px}
/* Phones: a smaller question heading so the answers stay in view. */
@media (max-width:600px){#clat-prototype #cs-screen>h2{font-size:24px;line-height:1.3;letter-spacing:-.3px}}

/* ---------------------------------------------------------------- first set + rewards (web-home.js) */
.wh-first{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 30px;background:#2a2147;border:1px solid #5a4a92;border-radius:20px}
.wh-first-k{margin:0 0 6px;color:#b6ecd6;font-size:13px;font-weight:600}
.wh-first h2{margin:0 0 8px;font-size:24px;line-height:1.25;letter-spacing:-.3px}
.wh-first p{margin:0;color:var(--wh-muted);font-size:15px;max-width:36em}
.wh-first-go{flex:none;min-height:50px;padding:0 26px;border:0;border-radius:999px;background:#6a4cf0;color:#fff;font:inherit;font-weight:600;font-size:15.5px;cursor:pointer}
.wh-first-go:hover{background:#7a5ff5}
@media (max-width:900px){.wh-first{flex-direction:column;align-items:stretch;padding:22px}.wh-first-go{width:100%}}
#clat-prototype .wr-reward{margin:18px 0 22px;padding:22px 24px;background:#1f2b2a;border:1px solid #3c6b5c;border-radius:18px;color:#e9fff6}
#clat-prototype .wr-reward.wr-quiet{background:transparent;border-color:#443a54;color:inherit}
#clat-prototype .wr-reward h2{margin:4px 0 12px;font-size:22px;line-height:1.3;letter-spacing:-.3px;color:#f5fffa}
#clat-prototype .wr-reward p{margin:0 0 8px;color:#cfe9df;font-size:15.5px;line-height:1.55}
#clat-prototype .wr-reward b{color:#fff}
#clat-prototype .wr-badge{display:inline-block;margin:0 0 4px!important;padding:4px 12px;border-radius:999px;background:#b6ecd6;color:#123b2e!important;font-size:13px!important;font-weight:700}
#clat-prototype .wr-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:14px}
#clat-prototype .wr-next{min-height:46px;padding:0 22px;border:0;border-radius:999px;background:#6a4cf0;color:#fff;font:inherit;font-weight:600;cursor:pointer}
#clat-prototype .wr-prem{margin:0!important;color:#b9b1cc!important;font-size:14px!important}
#clat-prototype .wr-link{padding:0;border:0;background:none;color:#c4b4ff;font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}

/* first visit after sign-up: one focused step before the dashboard (web-home.js welcome) */
.wh-welcome{min-height:min(640px,calc(100vh - 120px));align-content:center}
.ww{max-width:620px;margin:0 auto;padding:40px;background:var(--wh-card);border:1px solid var(--wh-line);border-radius:24px}
.ww h1{margin:0 0 12px;font-size:32px;line-height:1.2;letter-spacing:-.5px}
.ww-lead{margin:0 0 28px;color:var(--wh-muted);font-size:16.5px;line-height:1.55}
.ww-set{display:flex;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--wh-line);border-radius:16px}
.ww-set .wh-icon{margin:0;flex:none}
.ww-set b{display:block;font-size:17px;font-weight:600}
.ww-set small{display:block;margin-top:4px;color:var(--wh-muted);font-size:14px}
.ww-steps{margin:24px 0 32px;padding-left:22px;color:#d9d3ea;font-size:15px;line-height:1.6}
.ww-steps li+li{margin-top:6px}
.ww-go{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.ww-skip{background:none;border:0;padding:8px 4px;color:var(--wh-muted);font:inherit;font-size:14.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ww-skip:hover{color:#f5f1ff}
@media (max-width:600px){.ww{padding:24px 20px}.ww h1{font-size:26px}.ww-go{flex-direction:column;align-items:stretch}.ww-go .wh-first-go{width:100%}}
/* mocks list and intro, before the first set */
.ww-nudge{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:16px 20px;background:#2a2147;border:1px solid #5a4a92;border-radius:16px}
.ww-nudge p{margin:0;color:#d9d3ea;font-size:15px;line-height:1.5}
.ww-nudge button{flex:none;min-height:42px;padding:0 18px;border:0;border-radius:999px;background:#6a4cf0;color:#fff;font:inherit;font-weight:600;font-size:14.5px;cursor:pointer}
.ww-nudge button:hover{background:#7a5ff5}
@media (max-width:700px){.ww-nudge{flex-direction:column;align-items:stretch}}

/* sign-up inside an in-app browser (YouTube, Instagram, Reddit): email first, way out to Chrome */
.su-inapp{margin-top:22px;padding:16px;border:1px solid #3a3252;border-radius:16px;background:#1d182b}
.su-inapp p{margin:0 0 12px;color:#d9d3ea;font-size:14.5px;line-height:1.5}
.su-inapp-go{display:flex;gap:10px;flex-wrap:wrap}
.su-inapp-go .su-secondary{flex:1;min-width:140px;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.su-inapp .su-input{margin-top:12px}
.su-inapp-go .su-secondary{margin-top:0}
