:root{--bg:oklch(1 0 0);--fg:oklch(.129 .042 264.695);--card:#fff;--primary:oklch(.55 .20 260);--muted:oklch(.554 .046 257.417);--border:oklch(.929 .013 255.508);--side:oklch(.984 .003 247.858);--soft:oklch(.968 .007 247.896);--good:#087d61;color-scheme:light}.dark{--bg:oklch(.14 .028 260);--fg:oklch(.97 .008 255);--card:oklch(.20 .032 260);--primary:oklch(.63 .194 259);--muted:oklch(.72 .028 258);--border:oklch(.30 .03 260 / 70%);--side:oklch(.19 .03 260);--soft:oklch(.25 .033 260);--good:#70dbb6;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);font:15px/1.6 'DM Sans',system-ui,sans-serif}h1,h2,h3{font-family:'Sora',system-ui,sans-serif;letter-spacing:-.035em;line-height:1.25;margin:0 0 .6rem}h1{font-size:clamp(1.9rem,5vw,2.8rem)}h2{font-size:1.35rem}h3{font-size:1.05rem}p{margin:.3rem 0 1rem}a{color:var(--fg)}header{height:64px;position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:14px;padding:0 20px;background:var(--side);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:19px;font-weight:750;line-height:1.1}.brand small{display:block;font-size:12px;color:var(--muted);font-weight:500}.logo{width:39px;height:39px;border-radius:10px;background:var(--primary);color:white;display:grid;place-items:center;font-size:27px;font-weight:800}.beta{margin-left:auto;font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--muted);border:1px solid var(--border);padding:4px 9px;border-radius:20px}.layout{display:flex;min-height:calc(100vh - 64px)}aside{width:245px;flex:none;background:var(--side);border-right:1px solid var(--border);padding:20px 12px;position:sticky;top:64px;height:calc(100vh - 64px);overflow:auto;display:flex;flex-direction:column}aside.hidden{display:none}nav{display:grid;gap:4px}nav a{display:flex;gap:12px;align-items:center;text-decoration:none;padding:10px 12px;border-radius:9px;color:var(--muted);font-weight:600}nav a[aria-current=page]{color:var(--fg);background:var(--soft);box-shadow:inset 3px 0 var(--primary)}nav a:hover{background:var(--soft)}.navhead{font-size:10px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.12em;padding:16px 12px 4px}.aside-foot{font-size:12px;color:var(--muted);padding:12px;margin-top:auto}main{width:100%;min-width:0;max-width:1150px;margin:0 auto;padding:34px 30px 65px}.eyebrow{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.16em;color:var(--muted);margin-bottom:8px}.muted,small{color:var(--muted)}.hero{border:1px solid var(--border);background:linear-gradient(125deg,var(--card),var(--soft));border-radius:18px;padding:clamp(20px,4vw,35px);margin-bottom:20px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:15px;margin:16px 0}.card{border:1px solid var(--border);border-radius:12px;background:var(--card);padding:20px;margin-bottom:15px;min-width:0}.grid .card{margin:0}.metric{font-size:28px;font-weight:750}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.chip{background:var(--soft);padding:4px 10px;border-radius:20px;font-size:12px;color:var(--muted)}button,.btn{font:inherit;cursor:pointer;border:1px solid var(--border);color:var(--fg);background:var(--soft);border-radius:9px;padding:10px 15px;font-weight:650;text-decoration:none;display:inline-block}button:hover,.btn:hover{filter:brightness(1.12)}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--primary);color:white;border-color:transparent}.danger{color:#f28e92}.link{background:transparent;border:0;padding:0;color:var(--muted);text-decoration:underline}header button{padding:5px 11px}label{display:block;font-weight:600;margin:12px 0 4px}input,textarea,select{display:block;width:100%;border:1px solid var(--border);border-radius:8px;padding:12px;background:var(--bg);color:var(--fg);font:inherit}textarea{min-height:90px;resize:vertical}fieldset{border:0;padding:0;margin:0}legend{font-weight:700;margin:10px 0}input[type=radio],input[type=checkbox]{width:auto;display:inline;margin-right:9px;accent-color:var(--primary)}.choice{display:flex;align-items:center;padding:11px;border:1px solid var(--border);border-radius:9px;margin:7px 0;cursor:pointer}.choice:has(:checked){border-color:var(--primary);background:var(--soft)}.progress{height:7px;background:var(--soft);border-radius:9px;overflow:hidden;margin:10px 0}.progress span{display:block;height:100%;background:var(--primary)}.line{border-top:1px solid var(--border);padding:12px 0}.good{color:var(--good)}.callout{border-left:3px solid var(--primary);padding:12px 15px;background:var(--soft);border-radius:6px;margin:15px 0}.callout p:last-child{margin:0}.help{font-size:13px}.wrap{overflow-wrap:anywhere}#toast{position:fixed;bottom:20px;right:20px;background:var(--card);border:1px solid var(--border);padding:12px 18px;border-radius:10px;max-width:90%;z-index:30}#toast:empty{display:none}:focus-visible{outline:3px solid var(--primary);outline-offset:3px}@media(max-width:700px){header{padding:0 12px;gap:9px}.beta{font-size:9px;padding:3px 6px}aside{position:fixed;left:0;z-index:9;width:245px;box-shadow:12px 0 32px #0005}main{padding:24px 15px 50px}.brand{font-size:17px}.brand small{font-size:11px}.card{padding:17px}}
/* Exact light palette and typography from Study in Your Pocket production. */
:root{--bg:#f5f7fc;--fg:#132038;--muted:#66748c;--border:#e3e8f2;--card:#fff;--primary:#2563eb;--soft:#e8f0ff;--side:#0d1a30;--good:#12845c;--shadow:0 12px 35px rgba(15,34,68,.045);--navtext:#a6b9d5;--navactive:#fff;--navhover:#1b2d49;--field:#fff;color-scheme:light}
.dark{--bg:#0d1320;--fg:#f5f7fb;--muted:#a6b9d5;--border:#33435b;--card:#151d2c;--primary:#6f95ff;--soft:#233553;--side:#0d1a30;--good:#70dbb6;--field:#151d2c;color-scheme:dark}
body{font:15px/1.48 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}h1,h2,h3{font-family:inherit}h1{font-size:clamp(25px,3vw,35px);letter-spacing:-.045em;line-height:1.16}h2{font-size:20px;letter-spacing:-.03em}h3{font-size:15px;letter-spacing:normal}small,.small{font-size:12px}header{background:var(--card);border-color:var(--border);height:64px}aside{width:268px;padding:27px 18px 76px;color:white;border-color:transparent}aside .navhead,aside .aside-foot{color:var(--navtext)}nav a{color:var(--navtext);font-weight:600}nav a[aria-current=page],nav a:hover{background:var(--navhover);color:var(--navactive)}.brand{font-size:16px;font-weight:800}.logo{border-radius:13px;width:46px;height:46px;background:#2563eb}.card{border-radius:16px;box-shadow:var(--shadow)}.hero{background:var(--card);border-radius:16px;box-shadow:var(--shadow)}button,.btn{border-radius:10px;filter:none}button:hover,.btn:hover{filter:brightness(.98)}.primary{background:#2563eb;color:white}.danger{color:#b42318}.dark .danger{color:#fca5a5}input,textarea,select{background:var(--field)}:focus-visible{outline:3px solid #a8c5ff;outline-offset:2px}.chip{color:var(--fg)}.callout{background:var(--soft)}
#floating-help{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:16px;z-index:11;background:#2563eb;color:#fff;display:flex;align-items:center;gap:8px;border:0;box-shadow:0 8px 20px #0d1a3033;min-height:44px}#floating-help span{display:grid;place-items:center;border:1px solid #fff;border-radius:50%;height:20px;width:20px}.context-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 16px}.context-bar button{font-size:12px;padding:7px 11px}.hint-wrap{position:relative;display:inline-flex;vertical-align:middle;margin-left:6px}.hint{width:24px;height:24px;padding:0;border-radius:50%;font-size:12px;line-height:1;color:var(--primary);background:var(--soft);border:1px solid var(--border)}.hint-text{position:absolute;z-index:7;top:calc(100% + 6px);left:0;width:min(250px,75vw);padding:10px 12px;background:var(--card);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px #0d1a3026;color:var(--fg);font:13px/1.48 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:normal;text-transform:none;white-space:normal;font-weight:400}.hint-text[hidden]{display:none}#help-dialog{width:min(580px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:0;color:var(--fg);background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:0 24px 90px #0d1a3050}#help-dialog::backdrop{background:#0d1a3077}.help-dialog-inner{padding:24px}.help-dialog-inner h2{margin:8px 0 12px}.help-dialog-inner h3{margin:18px 0 5px}.help-dialog-inner p{margin:6px 0 14px}.help-dialog-inner ol{padding-left:22px}.help-dialog-inner li{padding:3px 0}.help-dialog-inner .progress{margin:15px 0}.help-dialog-inner .close-help{margin-left:auto}.help-dialog-inner .help-example{background:var(--soft);padding:14px;border-radius:10px;margin:14px 0}.help-dialog-inner .help-nav{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;margin-top:16px}.tutorial-target{outline:3px solid #2563eb;outline-offset:3px}.tutorial-target:focus{outline:3px solid #2563eb}main{padding-bottom:85px}@media(max-width:700px){aside{width:268px;padding:20px 12px 78px}header .logo{width:36px;height:36px;font-size:23px}.brand{font-size:15px}#floating-help{bottom:12px;left:12px}.hint-text{left:auto;right:-20px}.help-dialog-inner{padding:18px}main{padding-bottom:85px}}
