:root{color-scheme:dark;--bg: #14131a;--surface: #1d1b25;--surface-2: #272432;--border: #322e3f;--text: #eceaf3;--muted: #a29db2;--faint: #6f6a80;--accent: #a78bfa;--accent-strong: #8b5cf6;--accent-ink: #17121f;--accent-wash: rgba(167, 139, 250, .14);--radius: 20px;--radius-sm: 14px;--tap: 52px;--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Greek", "Helvetica Neue", sans-serif;--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;--pad: 20px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}:root[data-theme=light]{color-scheme:light;--bg: #faf8fc;--surface: #ffffff;--surface-2: #f2eef8;--border: #e3dcee;--text: #1b1826;--muted: #5f5970;--faint: #8b8499;--accent: #7c3aed;--accent-strong: #6d28d9;--accent-ink: #ffffff;--accent-wash: rgba(124, 58, 237, .1)}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:17px;line-height:1.5;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}body{min-height:100dvh}button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}input,textarea{font:inherit;color:inherit}a{color:var(--accent)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}.app{min-height:100dvh;display:flex;flex-direction:column}.screen{flex:1;padding:calc(var(--safe-top) + 12px) var(--pad) 0;max-width:640px;width:100%;margin:0 auto;padding-bottom:calc(96px + var(--safe-bottom))}.nav{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:center;gap:4px;padding:8px 8px calc(8px + var(--safe-bottom));background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(12px);border-top:1px solid var(--border);z-index:20}.nav-item{flex:1;max-width:140px;min-height:var(--tap);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:var(--radius-sm);color:var(--muted);font-size:12px;letter-spacing:.02em}.nav-item[aria-current=page]{color:var(--text);background:var(--surface)}.nav-item svg{width:22px;height:22px}.eyebrow{color:var(--muted);font-size:14px;letter-spacing:.06em;text-transform:uppercase;margin:0 0 10px}.headline{font-size:30px;line-height:1.2;font-weight:620;letter-spacing:-.02em;margin:0}.sub{color:var(--muted);margin:8px 0 0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px}.stack{display:flex;flex-direction:column;gap:12px}.section{margin-top:32px}.section h2{font-size:15px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}.primary{width:100%;min-height:60px;border-radius:var(--radius);background:var(--accent);color:var(--accent-ink);font-size:18px;font-weight:620;display:flex;align-items:center;justify-content:center;transition:transform .12s ease}.primary:active{transform:scale(.985)}.primary[disabled]{opacity:.45;cursor:default}.secondary{min-height:var(--tap);padding:0 18px;border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);font-weight:560}.quiet{color:var(--muted);font-size:14px}.centred{text-align:center}.due-count{font-size:34px;line-height:1.15;font-weight:660;letter-spacing:-.025em;margin:18px 0 0}.due-estimate{color:var(--muted);margin:10px 0 26px}.order-line{color:var(--muted);font-size:14px;text-align:center;margin:12px 0 0}.tray-banner{width:100%;display:flex;align-items:center;gap:12px;min-height:var(--tap);padding:12px 16px;border-radius:var(--radius-sm);background:var(--accent-wash);border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);color:var(--text);text-align:left;margin-top:20px}.teacher-row{display:flex;align-items:center;gap:14px;width:100%;min-height:76px;padding:14px 16px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);text-align:left}.teacher-row.idle{opacity:.62}.teacher-body{flex:1;min-width:0}.teacher-name{font-weight:600;font-size:17px}.teacher-context{color:var(--muted);font-size:14px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.due-badge{flex:none;min-width:38px;height:30px;padding:0 10px;border-radius:15px;background:var(--accent);color:var(--accent-ink);font-size:14px;font-weight:640;display:flex;align-items:center;justify-content:center}.next-up{flex:none;color:var(--faint);font-size:13px}.invitation{width:100%;min-height:var(--tap);padding:16px;border-radius:var(--radius);border:1px dashed var(--border);color:var(--muted);text-align:left}.mark{flex:none;width:44px;height:44px;border-radius:13px;display:flex;align-items:center;justify-content:center}.mark.small{width:32px;height:32px;border-radius:10px}.conversation{position:fixed;inset:0;display:flex;flex-direction:column;background:var(--bg)}.conversation-header{flex:none;display:flex;align-items:center;gap:12px;padding:calc(var(--safe-top) + 8px) 12px 8px;border-bottom:1px solid var(--border);background:var(--bg)}.icon-button{flex:none;width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--muted)}.icon-button:active{background:var(--surface-2)}.icon-button svg{width:22px;height:22px}.conversation-title{flex:1;min-width:0}.conversation-title .name{font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-title .position{color:var(--muted);font-size:13px}.thread{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px var(--pad) 8px;display:flex;flex-direction:column;gap:18px;-webkit-overflow-scrolling:touch}.turn{max-width:660px;width:100%;margin:0 auto}.turn.from-learner{display:flex;justify-content:flex-end}.bubble{max-width:86%;padding:12px 16px;border-radius:var(--radius);border-bottom-right-radius:6px;background:var(--surface-2);border:1px solid var(--border)}.from-teacher .prose{max-width:100%}.prose>*:first-child{margin-top:0}.prose>*:last-child{margin-bottom:0}.prose p{margin:0 0 14px}.prose ul,.prose ol{margin:0 0 14px;padding-left:22px}.prose li{margin-bottom:4px}.prose h1,.prose h2,.prose h3{font-size:17px;font-weight:640;margin:20px 0 8px}.prose code{font-family:var(--font-mono);font-size:.92em;background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:1px 5px}.prose pre{margin:0 0 14px;padding:14px 16px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border);overflow-x:auto}.prose pre code{background:none;border:none;padding:0;font-size:14px;line-height:1.55;white-space:pre}.prose blockquote{margin:0 0 14px;padding-left:14px;border-left:3px solid var(--border);color:var(--muted)}.table-scroll{overflow-x:auto;margin:0 0 14px}.prose table{border-collapse:collapse;font-size:15px;min-width:100%}.prose th,.prose td{text-align:left;padding:7px 14px 7px 0;border-bottom:1px solid var(--border);white-space:nowrap}.prose th{color:var(--muted);font-weight:560;font-size:13px;letter-spacing:.03em;text-transform:uppercase}.attached{display:block;max-width:100%;border-radius:var(--radius-sm);border:1px solid var(--border);margin-bottom:8px}.schedule-note{max-width:660px;width:100%;margin:0 auto;color:var(--faint);font-size:13px;display:flex;align-items:center;gap:8px}.schedule-note:before{content:"";flex:none;width:5px;height:5px;border-radius:50%;background:var(--faint)}.system-line{max-width:660px;width:100%;margin:0 auto;text-align:center;color:var(--muted);font-size:13px}.thinking{display:flex;gap:5px;align-items:center;height:20px}.thinking span{width:6px;height:6px;border-radius:50%;background:var(--faint);animation:pulse 1.3s ease-in-out infinite}.thinking span:nth-child(2){animation-delay:.18s}.thinking span:nth-child(3){animation-delay:.36s}@keyframes pulse{0%,60%,to{opacity:.25}30%{opacity:.9}}@media(prefers-reduced-motion:reduce){.thinking span{animation:none;opacity:.5}.primary:active{transform:none}}.composer{flex:none;border-top:1px solid var(--border);background:var(--bg);padding:10px 12px calc(10px + var(--safe-bottom))}.composer-row{display:flex;align-items:flex-end;gap:10px}.composer textarea{flex:1;min-height:var(--tap);max-height:40vh;padding:14px 16px;border-radius:26px;background:var(--surface);border:1px solid var(--border);resize:none;line-height:1.4}.composer textarea::placeholder{color:var(--faint)}.mic{flex:none;width:56px;height:56px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:flex;align-items:center;justify-content:center}.mic svg{width:26px;height:26px}.mic.listening{background:var(--accent-strong);box-shadow:0 0 0 6px var(--accent-wash)}.mic[disabled]{opacity:.4}.send{flex:none;width:56px;height:56px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:flex;align-items:center;justify-content:center}.send svg{width:24px;height:24px}.attachments{display:flex;gap:8px;padding-bottom:10px}.attachment{position:relative}.attachment img{width:64px;height:64px;object-fit:cover;border-radius:12px;border:1px solid var(--border)}.attachment button{position:absolute;top:-6px;right:-6px;width:26px;height:26px;border-radius:50%;background:var(--surface-2);border:1px solid var(--border);color:var(--text);font-size:14px;line-height:1}.composer-note{color:var(--muted);font-size:13px;padding:0 4px 8px}.composer-note.warning{color:var(--accent)}.grid-scroll{overflow-x:auto;padding-bottom:6px}.activity-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,12px);gap:3px;width:max-content}.day{width:12px;height:12px;border-radius:3px;background:var(--surface-2)}.day.l1{background:color-mix(in srgb,var(--accent) 28%,var(--surface-2))}.day.l2{background:color-mix(in srgb,var(--accent) 55%,var(--surface-2))}.day.l3{background:color-mix(in srgb,var(--accent) 78%,var(--surface-2))}.day.l4{background:var(--accent)}.numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.number{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px;text-align:center}.number .value{font-size:28px;font-weight:640;letter-spacing:-.02em}.number .label{color:var(--muted);font-size:13px;margin-top:2px}.breakdown-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.breakdown-row:last-child{border-bottom:none}.breakdown-row .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.breakdown-row .counts{color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums}.slipping-row{display:flex;align-items:baseline;gap:12px;padding:13px 0;border-bottom:1px solid var(--border)}.slipping-row:last-child{border-bottom:none}.slipping-row .name{flex:1}.slipping-row .teacher{display:block;color:var(--faint);font-size:13px}.slipping-row .count{flex:none;color:var(--accent);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.avatar{width:72px;height:72px;border-radius:50%;background:var(--accent-wash);border:1px solid color-mix(in srgb,var(--accent) 34%,transparent);color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:620;letter-spacing:.02em}.facts{display:flex;gap:28px;margin-top:20px}.fact .value{font-size:20px;font-weight:620}.fact .label{color:var(--muted);font-size:13px}.setting-row{display:flex;align-items:center;gap:14px;width:100%;min-height:var(--tap);padding:14px 0;border-bottom:1px solid var(--border);text-align:left}.setting-row:last-of-type{border-bottom:none}.setting-row .label{flex:1}.setting-row .value{color:var(--muted);font-size:14px}.toggle{flex:none;width:50px;height:30px;border-radius:15px;background:var(--surface-2);border:1px solid var(--border);position:relative;transition:background .15s ease}.toggle:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--muted);transition:transform .15s ease}.toggle[aria-checked=true]{background:var(--accent);border-color:var(--accent)}.toggle[aria-checked=true]:after{transform:translate(20px);background:var(--accent-ink)}.segmented{display:flex;gap:4px;background:var(--surface-2);border-radius:12px;padding:3px}.segmented button{padding:7px 12px;border-radius:9px;font-size:14px;color:var(--muted)}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text)}.danger{color:#f87171}.signin{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;gap:18px;padding:calc(var(--safe-top) + 32px) 28px calc(var(--safe-bottom) + 32px);max-width:460px;margin:0 auto}.signin .wordmark{font-size:38px;font-weight:660;letter-spacing:-.03em}.google-button{width:100%;min-height:58px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;gap:12px;font-weight:560}.token-field{width:100%;min-height:56px;padding:16px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);font-family:var(--font-mono);font-size:15px}.offline-banner{position:sticky;top:0;z-index:30;margin:0 calc(var(--pad) * -1) 12px;padding:10px var(--pad);background:var(--surface-2);border-bottom:1px solid var(--border);color:var(--muted);font-size:14px;text-align:center}.error-note{padding:14px 16px;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);color:var(--muted);font-size:14px}.sheet-backdrop{position:fixed;inset:0;z-index:40;background:#06050a99;display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:640px;max-height:82dvh;overflow-y:auto;background:var(--bg);border:1px solid var(--border);border-bottom:none;border-radius:var(--radius) var(--radius) 0 0;padding:8px var(--pad) calc(24px + var(--safe-bottom))}.sheet-handle{width:42px;height:4px;border-radius:2px;background:var(--border);margin:8px auto 16px}.proposal{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.proposal:last-child{border-bottom:none}.proposal .body{flex:1;min-width:0}.proposal .why{color:var(--muted);font-size:13px;margin-top:2px}.decide{flex:none;width:46px;height:46px;border-radius:14px;background:var(--surface-2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center}.decide.keep{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.decide svg{width:20px;height:20px}.skeleton{background:var(--surface-2);border-radius:var(--radius-sm);height:76px;animation:fade 1.4s ease-in-out infinite}@keyframes fade{0%,to{opacity:.5}50%{opacity:.8}}
