@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;700;800&family=Onest:wght@400;500;600;700&display=swap");:root{--bg:#FAF8F2;--surface:#FFFFFF;--surface-2:#F2EFE5;--ink:#0E0E10;--ink-2:#2A2A2E;--muted:#6B6862;--border:#E8E4D8;--border-strong:#D4D0C0;--yellow:#FFD23F;--yellow-deep:#F0B400;--yellow-soft:#FFF1B8;--ok:#16A34A;--err:#DC2626;--shadow-lg:0 30px 80px -30px rgba(20,20,14,0.18);--shadow-md:0 12px 30px -12px rgba(20,20,14,0.10);--shadow-sm:0 4px 12px -6px rgba(20,20,14,0.08);--r-sm:12px;--r-md:18px;--r-lg:26px;--r-xl:36px;--font-display:"Unbounded",system-ui,sans-serif;--font-body:"Onest",system-ui,sans-serif}[data-theme=dark]{--bg:#0A0A0C;--surface:#14141A;--surface-2:#1B1B22;--ink:#F5F0E1;--ink-2:#D4CFC0;--muted:#8A8780;--border:#232328;--border-strong:#2E2E36;--yellow-soft:#3A2F00;--shadow-lg:0 30px 80px -30px rgba(0,0,0,0.6);--shadow-md:0 12px 30px -12px rgba(0,0,0,0.5);--shadow-sm:0 4px 12px -6px rgba(0,0,0,0.4)}*{box-sizing:border-box}body,html{margin:0;padding:0;height:100vh;height:100dvh;overflow:hidden;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;transition:background-color .3s ease,color .3s ease}a{color:inherit;text-decoration:none}button,input,textarea{font-family:inherit}::selection{background:var(--yellow);color:#0E0E10}.login-screen{position:relative;height:100vh;height:100dvh;display:flex;align-items:center;justify-content:center;background:radial-gradient(800px 400px at 20% 20%,var(--yellow-soft),transparent 60%),radial-gradient(600px 400px at 80% 80%,var(--yellow-soft),transparent 60%)}.login-screen:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 1px 1px,color-mix(in oklab,var(--ink) 7%,transparent) 1px,transparent 0);background-size:28px 28px;pointer-events:none}.login-card{position:relative;z-index:1;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);padding:48px 56px;width:min(440px,90vw);box-shadow:var(--shadow-lg);text-align:center}.login-card .badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:var(--yellow);color:#0E0E10;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:24px}.login-card h1{font-family:var(--font-display);font-weight:700;font-size:38px;letter-spacing:-.025em;margin:0 0 10px;line-height:1}.login-card .sub{color:var(--muted);margin:0 0 32px;font-size:15px}.code-input{width:100%;padding:22px 16px;font-family:var(--font-display);font-size:36px;font-weight:700;text-align:center;letter-spacing:.4em;background:var(--bg);border:2px solid var(--border-strong);border-radius:var(--r-lg);color:var(--ink);transition:border-color .2s,box-shadow .2s}.code-input:focus{outline:none;border-color:var(--yellow);box-shadow:0 0 0 6px var(--yellow-soft)}.code-input::placeholder{color:var(--border-strong)}.login-card .btn{width:100%;justify-content:center;margin-top:18px}.login-card .help{margin-top:22px;font-size:13px;color:var(--muted)}.shell{display:flex;flex-direction:column;height:100vh;height:100dvh}.topbar{display:flex;justify-content:space-between;align-items:center;padding:18px 32px;border-bottom:1px solid var(--border);background:var(--bg);flex-shrink:0}.topbar .brand{font-family:var(--font-display);font-size:20px;font-weight:700;display:inline-flex;align-items:center;gap:10px}.topbar .brand .dot{width:12px;height:12px;border-radius:50%;background:var(--yellow)}.topbar .brand .grey{color:var(--muted);font-weight:400}.topbar nav{display:flex;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:999px}.topbar nav a{padding:8px 18px;border-radius:999px;font-size:14px;font-weight:500;color:var(--muted);transition:background .15s,color .15s}.topbar nav a:hover{color:var(--ink)}.topbar nav a.active{background:var(--ink);color:var(--bg)}.topbar .right{display:flex;align-items:center;gap:12px}.theme-toggle{width:36px;height:36px;border:1px solid var(--border-strong);background:var(--surface);border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.theme-toggle svg{width:16px;height:16px}.theme-toggle:hover{border-color:var(--yellow)}.who{gap:8px;font-size:14px}.who,.who .av{display:flex;align-items:center}.who .av{width:32px;height:32px;border-radius:50%;background:var(--yellow);color:#0E0E10;justify-content:center;font-family:var(--font-display);font-weight:700;font-size:12px}.main{flex:1 1;min-height:0;padding:28px 32px;display:flex;flex-direction:column;gap:20px;overflow:hidden}.home-head{display:flex;justify-content:space-between;align-items:flex-end;flex-shrink:0}.home-head h1{font-family:var(--font-display);font-size:clamp(36px,4vw,56px);font-weight:800;letter-spacing:-.025em;margin:0;line-height:1}.home-head h1 .accent{background:var(--yellow);color:#0E0E10;padding:0 .18em;border-radius:12px;display:inline-block;transform:rotate(-1deg)}.home-head .meta{font-size:14px;color:var(--muted)}.subject-grid{flex:1 1;display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:1fr;grid-gap:20px;gap:20px;min-height:0}@media (max-width:1100px){.subject-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:700px){.subject-grid{grid-template-columns:1fr}}.subject-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);padding:28px;display:flex;flex-direction:column;position:relative;overflow:hidden;transition:transform .25s,border-color .25s,box-shadow .25s;cursor:pointer;text-decoration:none;color:inherit}.subject-card:before{content:"";position:absolute;top:-50px;right:-50px;width:180px;height:180px;border-radius:50%;background:var(--yellow-soft);transition:transform .3s}.subject-card:hover{transform:translateY(-4px);border-color:var(--ink);box-shadow:var(--shadow-md)}.subject-card:hover:before{transform:scale(1.2)}.subject-card .sym{font-size:64px;font-weight:800;line-height:1;color:var(--ink)}.subject-card .num,.subject-card .sym{font-family:var(--font-display);position:relative;z-index:1}.subject-card .num{font-size:12px;font-weight:600;letter-spacing:.1em;color:var(--muted);margin-bottom:8px}.subject-card .name{font-family:var(--font-display);font-size:24px;font-weight:700;letter-spacing:-.01em;margin-top:auto;position:relative;z-index:1}.subject-card .actions{display:flex;gap:8px;margin-top:16px;position:relative;z-index:1}.subject-card .pill{padding:6px 12px;border-radius:999px;background:var(--bg);border:1px solid var(--border);font-size:12px;font-weight:500;color:var(--ink-2)}.subject-card .pill.primary{background:var(--ink);color:var(--bg);border-color:var(--ink)}.diag{flex:1 1;display:grid;grid-template-columns:1.4fr 1fr;grid-gap:20px;gap:20px;min-height:0}@media (max-width:1000px){.diag{grid-template-columns:1fr}}.diag-question{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);padding:40px 44px;display:flex;flex-direction:column;min-height:0}.diag-question .qhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.diag-question .qnum{font-family:var(--font-display);font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.1em;text-transform:uppercase}.diag-question .qnum .y{color:var(--yellow-deep);font-size:16px}.progress-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;background:var(--surface-2);border-radius:999px;font-size:13px;font-weight:600}.progress-pill .bar{width:90px;height:6px;background:var(--border);border-radius:999px;overflow:hidden}.progress-pill .bar>span{display:block;height:100%;background:var(--yellow-deep);border-radius:999px;transition:width .4s ease}.qbody{font-family:var(--font-display);font-size:clamp(22px,2.4vw,30px);font-weight:600;letter-spacing:-.015em;line-height:1.35;margin-bottom:28px;flex:1 1}.qfooter{display:flex;gap:12px;align-items:center}.diag-stats{background:var(--ink);color:var(--bg);border-radius:var(--r-xl);padding:32px;display:flex;flex-direction:column;gap:24px;position:relative;overflow:hidden}.diag-stats:before{content:"";position:absolute;top:-100px;right:-100px;width:280px;height:280px;border-radius:50%;background:color-mix(in oklab,var(--yellow) 30%,transparent)}.diag-stats>*{position:relative;z-index:1}.diag-stats .label{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:color-mix(in oklab,var(--bg) 60%,transparent);margin-bottom:8px}.diag-stats .big{font-family:var(--font-display);font-size:64px;font-weight:800;letter-spacing:-.025em;line-height:1}.diag-stats .big .y{color:var(--yellow)}.diag-stats .stat-row{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px}.diag-stats .stat{background:rgba(255,255,255,.05);border-radius:var(--r-md);padding:16px 18px}.diag-stats .stat .num{font-family:var(--font-display);font-size:28px;font-weight:700;letter-spacing:-.02em}.diag-stats .stat .lbl{font-size:11px;text-transform:uppercase;color:color-mix(in oklab,var(--bg) 55%,transparent);margin-top:4px}.completed{flex:1 1;flex-direction:column;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);padding:48px;gap:16px}.completed,.completed .check{display:flex;align-items:center;justify-content:center}.completed .check{width:96px;height:96px;border-radius:50%;background:var(--yellow);color:#0E0E10}.completed h2{font-family:var(--font-display);font-size:36px;font-weight:700;letter-spacing:-.02em;margin:0}.completed p{color:var(--muted);margin:0;max-width:420px}.plan-list{flex:1 1;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));grid-gap:14px;gap:14px;overflow-y:auto;align-content:start;padding-right:4px}.plan-list::-webkit-scrollbar{width:6px}.plan-list::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:3px}.plan-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:18px 20px;position:relative;display:flex;align-items:center;gap:14px;transition:border-color .2s,transform .2s}.plan-item:hover{border-color:var(--yellow);transform:translateY(-2px)}.plan-item .n{width:36px;height:36px;border-radius:50%;background:var(--yellow-soft);color:var(--yellow-deep);display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:700;font-size:13px;flex-shrink:0}.plan-item.done .n{background:var(--yellow);color:#0E0E10}.plan-item .title{font-weight:600;font-size:14px;margin-bottom:4px}.plan-item .meta{font-size:12px;color:var(--muted)}.chat-shell{flex:1 1;display:grid;grid-template-rows:auto 1fr auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);overflow:hidden;min-height:0}.chat-head{padding:20px 28px;border-bottom:1px solid var(--border);justify-content:space-between;background:var(--bg)}.chat-head,.chat-head .title{display:flex;align-items:center}.chat-head .title{font-family:var(--font-display);font-size:20px;font-weight:700;letter-spacing:-.01em;gap:10px}.chat-head .title:before{content:"";width:10px;height:10px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 4px var(--yellow-soft)}.chat-head .meta{font-size:13px;color:var(--muted)}.chat-msgs{padding:24px 28px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.chat-msgs::-webkit-scrollbar{width:6px}.chat-msgs::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:3px}.bubble{max-width:78%;padding:14px 18px;border-radius:var(--r-lg);font-size:15px;line-height:1.55;white-space:pre-wrap;word-wrap:break-word}.bubble.user{background:var(--ink);color:var(--bg);align-self:flex-end;border-bottom-right-radius:6px}.bubble.bot{background:var(--surface-2);color:var(--ink);align-self:flex-start;border-bottom-left-radius:6px;border:1px solid var(--border)}.bubble.bot.empty{display:inline-flex;gap:4px}.bubble.bot.empty .d{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:bounce 1.2s infinite}.bubble.bot.empty .d:nth-child(2){animation-delay:.15s}.bubble.bot.empty .d:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,80%,to{transform:translateY(0);opacity:.4}40%{transform:translateY(-4px);opacity:1}}.chat-input{padding:20px 28px;border-top:1px solid var(--border);display:flex;gap:12px;align-items:center;background:var(--bg)}.chat-input input{flex:1 1;padding:14px 18px;background:var(--surface);border:1px solid var(--border-strong);border-radius:999px;color:var(--ink);font-size:15px;transition:border-color .2s,box-shadow .2s}.chat-input input:focus{outline:none;border-color:var(--yellow);box-shadow:0 0 0 4px var(--yellow-soft)}.chat-input .send{width:48px;height:48px;border:none;border-radius:50%;background:var(--yellow);color:#0E0E10;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .15s,background .15s;flex-shrink:0}.chat-input .send:hover{background:var(--yellow-deep);transform:scale(1.05)}.chat-input .send:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 24px;font-size:15px;font-weight:600;border:none;border-radius:999px;cursor:pointer;background:var(--ink);color:var(--bg);transition:transform .15s,box-shadow .15s,background .15s}.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn-yellow{background:var(--yellow);color:#0E0E10}.btn-yellow:hover{background:var(--yellow-deep)}.btn-ghost{background:transparent;color:var(--ink);border:1px solid var(--border-strong)}.btn-ghost:hover{background:var(--surface-2);border-color:var(--ink)}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-lg{padding:18px 32px;font-size:16px}.field-input{width:100%;padding:14px 18px;background:var(--bg);border:1px solid var(--border-strong);border-radius:var(--r-md);color:var(--ink);font-size:16px;transition:border-color .2s,box-shadow .2s}.field-input:focus{outline:none;border-color:var(--yellow);box-shadow:0 0 0 4px var(--yellow-soft)}.alert-err{padding:12px 16px;background:color-mix(in oklab,var(--err) 12%,transparent);color:var(--err);border:1px solid color-mix(in oklab,var(--err) 30%,transparent);border-radius:var(--r-md);font-size:14px;margin-bottom:12px}.spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--yellow);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.loading-screen{display:flex;align-items:center;justify-content:center;height:100vh}