@import 'tailwindcss';
@import 'tw-animate-css';
@import 'shadcn/tailwind.css';

@custom-variant dark (&:is(.dark *));

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, monospace;
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-destructive: var(--destructive);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --radius-sm: calc(var(--radius) * .65);
  --radius-md: calc(var(--radius) * .8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.3);
  --radius-2xl: calc(var(--radius) * 1.7);
}

/* Cosmo pilot workspace */
.pilot-shell{min-height:100vh;background:#f4f7fc;color:#17203b;font-family:Inter,'Avenir Next',Avenir,'Segoe UI',sans-serif}.pilot-topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:#17203b;color:#fff;border-bottom:1px solid #2b3656}.pilot-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}.pilot-brand strong{font-size:17px;letter-spacing:-.02em}.pilot-brand small{padding:5px 8px;border-radius:999px;background:#2a3557;color:#cbd3e8;font-size:11px;font-weight:800}.pilot-person{display:flex;align-items:center;gap:12px}.pilot-person>div{display:grid}.pilot-person strong{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.pilot-person small{color:#aeb7d1;font-size:11px}.pilot-person>a{padding:8px 10px;border:1px solid #465171;border-radius:9px;color:#e6eaf5;text-decoration:none;font-size:12px;font-weight:750}.role-badge{padding:5px 8px;border-radius:999px;background:#d9f971;color:#17203b;font-size:10px;font-weight:900;text-transform:uppercase}.pilot-layout{min-height:calc(100vh - 72px);display:grid;grid-template-columns:238px minmax(0,1fr)}.pilot-course-nav{position:sticky;top:0;align-self:start;min-height:calc(100vh - 72px);padding:28px 18px;background:#fff;border-right:1px solid #dfe5ee}.pilot-kicker{margin:0 0 7px;color:#6f7890;font-size:11px;font-weight:900;letter-spacing:.12em}.pilot-course-nav>.pilot-kicker{margin:0 10px 14px}.pilot-family{margin-top:32px;padding-top:24px;border-top:1px solid #e4e8f0}.pilot-workspace{width:100%;max-width:1280px;margin:0 auto;padding:38px 42px 56px}.pilot-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.pilot-heading h1{margin:0;font-size:38px;letter-spacing:-.045em}.pilot-heading>div>p:last-child{margin:7px 0 0;color:#68748b;font-size:15px}.pilot-save-state{display:flex;gap:7px;align-items:center;padding:8px 11px;border:1px solid #dfe5ee;border-radius:10px;background:#fff;color:#627087;font-size:12px}.pilot-save-state span{color:#35b877}.pilot-error{margin-bottom:18px;padding:12px 14px;border:1px solid #f0b8c2;border-radius:11px;background:#fff1f3;color:#a52c45;font-size:14px}.pilot-tutor-card{padding:26px;border-radius:22px;background:#17203b;color:#fff;box-shadow:0 16px 40px rgba(25,36,66,.13)}.pilot-tutor-title{display:flex;align-items:center;gap:12px}.pilot-tutor-title>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#5146e5;font-size:21px;box-shadow:3px 3px 0 #d9f971}.pilot-tutor-title .pilot-kicker{color:#aeb7d1;margin-bottom:2px}.pilot-tutor-title h2{margin:0;font-size:21px}.pilot-tutor-card textarea{width:100%;min-height:100px;margin:22px 0 12px;padding:15px 16px;border:1px solid #465171;border-radius:14px;outline:0;resize:vertical;background:#222d4d;color:#fff;font:inherit;font-size:16px;line-height:1.5}.pilot-tutor-card textarea::placeholder{color:#a8b1c9}.pilot-tutor-card textarea:focus{border-color:#928aff;box-shadow:0 0 0 3px rgba(146,138,255,.2)}.pilot-question-controls{display:flex;justify-content:flex-end;gap:10px}.pilot-question-controls select,.pilot-question-controls button{min-height:40px;padding:0 13px;border-radius:10px;font:inherit;font-size:13px;font-weight:750}.pilot-question-controls select{border:1px solid #465171;background:#222d4d;color:#fff}.pilot-question-controls button{border:0;background:#d9f971;color:#17203b;cursor:pointer}.pilot-question-controls .pilot-mic{border:1px solid #536080;background:#222d4d;color:#fff}.pilot-question-controls .pilot-mic.listening{border-color:#d9f971;background:#35405f;box-shadow:0 0 0 3px rgba(217,249,113,.16)}.pilot-question-controls button:disabled{opacity:.55;cursor:not-allowed}.pilot-answer{margin-top:16px;padding:17px;border:1px solid #404c6d;border-radius:14px;background:#222d4d}.pilot-answer>div{display:flex;align-items:center;gap:8px}.pilot-answer small{margin-left:auto;color:#aeb7d1}.pilot-answer p{margin:13px 0;color:#eef1f8;line-height:1.6}.pilot-answer em{color:#aeb7d1;font-size:11px}.pilot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.pilot-card,.pilot-history{padding:23px;border:1px solid #dfe5ee;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(38,45,96,.055)}.pilot-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.pilot-card-head h2,.pilot-history h2{margin:0;font-size:20px;letter-spacing:-.025em}.pilot-card-head>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#edf0ff;color:#5146e5;font-weight:900}.pilot-card label{display:grid;gap:7px;margin-top:13px;color:#4d5870;font-size:12px;font-weight:800}.pilot-card input,.pilot-card select,.pilot-invite input{width:100%;min-height:42px;padding:8px 11px;border:1px solid #ccd4e2;border-radius:10px;background:#fff;color:#17203b;font:inherit;font-size:14px}.pilot-card input:focus,.pilot-card select:focus,.pilot-invite input:focus{outline:3px solid rgba(81,70,229,.15);border-color:#756bed}.pilot-secondary,.pilot-card button,.pilot-invite button{min-height:40px;padding:0 13px;border:0;border-radius:10px;background:#5146e5;color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.pilot-secondary{margin-top:15px}.pilot-upload-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pilot-upload{min-height:94px!important;display:grid;align-content:center;gap:5px;padding:13px!important;border:1px dashed #adb8cc!important;background:#f8f9fd!important;color:#26334a!important;text-align:left;touch-action:manipulation}.pilot-upload:hover{border-color:#756bed!important;background:#f1f0ff!important}.pilot-upload strong{font-size:14px}.pilot-upload small{color:#6d7890;font-size:11px;font-weight:550;line-height:1.35}.pilot-upload-status{margin:10px 2px 0;color:#65738c;font-size:13px;line-height:1.4}.pilot-file-list{display:grid;gap:7px;margin-top:12px}.pilot-file-list>div{display:flex;justify-content:space-between;gap:10px;padding:9px 10px;border-radius:9px;background:#f0f3f8;font-size:12px}.pilot-file-list small{color:#718096}.pilot-practice #practice-area>p{margin:0 0 16px;color:#657087;font-size:14px;line-height:1.55}.pilot-invite{margin-top:20px;padding-top:18px;border-top:1px solid #e5e9f0}.pilot-invite h3{margin:0;font-size:16px}.pilot-invite p{margin:7px 0 11px;color:#68748b;font-size:13px;line-height:1.5}.pilot-invite button{margin-top:9px}.pilot-history{display:flex;align-items:center;gap:30px;margin-top:18px}.pilot-history>div:first-child{min-width:170px}.pilot-history #history-list{flex:1}.pilot-history #history-list>p{margin:0;color:#6d7890;font-size:13px}.chat-open{overflow:hidden}.pilot-chat-shell[hidden]{display:none}.pilot-chat-shell{position:fixed;inset:0;z-index:100;display:flex;justify-content:flex-end}.pilot-chat-backdrop{position:absolute;inset:0;border:0;background:rgba(13,20,41,.48);backdrop-filter:blur(3px)}.pilot-chat-panel{position:relative;width:min(520px,100%);height:100%;display:grid;grid-template-rows:auto 1fr auto auto;background:#f7f8fc;box-shadow:-18px 0 55px rgba(16,25,54,.22);animation:pilot-chat-in .22s ease both}.pilot-chat-header{display:flex;align-items:center;gap:12px;padding:18px 20px;background:#17203b;color:#fff}.pilot-chat-header .pilot-kicker{margin:0 0 2px;color:#aeb7d1}.pilot-chat-header h2{margin:0;font-size:19px}.pilot-chat-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#5146e5;box-shadow:3px 3px 0 #d9f971}.pilot-chat-header>button{width:36px;height:36px;margin-left:auto;border:1px solid #465171;border-radius:10px;background:transparent;color:#fff;font-size:24px;cursor:pointer}.pilot-chat-messages{min-height:0;overflow-y:auto;padding:22px 18px}.pilot-chat-message{display:flex;align-items:flex-start;gap:9px;margin:0 0 16px}.pilot-chat-message>span{width:32px;height:32px;flex:0 0 auto;display:grid;place-items:center;border-radius:10px;background:#e9edfa;color:#35405d;font-size:14px;font-weight:900}.pilot-chat-message>div{max-width:82%}.pilot-chat-message strong{display:block;margin:0 0 5px;color:#667086;font-size:11px}.pilot-chat-message p{margin:0;padding:12px 14px;border:1px solid #dbe1ed;border-radius:4px 15px 15px 15px;background:#fff;color:#273249;font-size:14px;line-height:1.55;white-space:normal}.pilot-chat-message.user{flex-direction:row-reverse}.pilot-chat-message.user>span{background:#5146e5;color:#fff}.pilot-chat-message.user>div{text-align:right}.pilot-chat-message.user p{text-align:left;border-color:#5146e5;border-radius:15px 4px 15px 15px;background:#5146e5;color:#fff}.pilot-chat-status{min-height:24px;padding:0 20px;color:#6d7890;font-size:12px}.pilot-chat-composer{padding:12px 16px 16px;border-top:1px solid #dfe5ee;background:#fff}.pilot-chat-composer>textarea{width:100%;min-height:68px;padding:11px 12px;border:1px solid #cbd4e3;border-radius:12px;resize:none;font:inherit;font-size:15px;line-height:1.45}.pilot-chat-composer>textarea:focus{outline:3px solid rgba(81,70,229,.14);border-color:#756bed}.pilot-chat-composer>div{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.pilot-chat-composer button{height:40px;border-radius:10px;font:inherit;font-weight:800;cursor:pointer}.pilot-chat-mic{width:44px;border:1px solid #ccd4e2;background:#f4f6fb}.pilot-chat-mic.listening{border-color:#5146e5;background:#e9e7ff;box-shadow:0 0 0 3px rgba(81,70,229,.12)}.pilot-chat-send{min-width:76px;border:0;background:#5146e5;color:#fff}.pilot-chat-send:disabled{opacity:.55}.pilot-chat-composer>small{display:block;margin-top:7px;color:#7a8397;font-size:11px}.pilot-chat-empty{max-width:330px;margin:15vh auto 0;text-align:center}.pilot-chat-empty>span{width:54px;height:54px;display:grid;place-items:center;margin:0 auto 13px;border-radius:17px;background:#5146e5;font-size:26px;box-shadow:4px 4px 0 #d9f971}.pilot-chat-empty h3{margin:0;font-size:20px}.pilot-chat-empty p{color:#667086;font-size:14px;line-height:1.55}@keyframes pilot-chat-in{from{opacity:.5;transform:translateX(24px)}}

.pilot-textbook-other{margin-top:9px}.pilot-field-note{margin:9px 1px 0;color:#778197;font-size:11px;line-height:1.45}.tutor-visual{margin:10px 0 0;padding:14px;border:1px solid #d9def0;border-radius:14px;background:linear-gradient(145deg,#fbfcff,#f1f3ff);color:#17203b;text-align:left}.tutor-visual figcaption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.tutor-visual figcaption strong{color:#25304b;font-size:13px}.tutor-visual figcaption span{color:#6c7690;font-size:11px;font-weight:750}.multiply-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.multiply-group{padding:8px;border:1px solid #cfd6ea;border-radius:10px;background:#fff;opacity:0;transform:translateY(7px);animation:multiply-group-in .38s ease forwards;animation-delay:calc(var(--group) * .28s)}.multiply-group small{display:block;margin-bottom:6px;color:#69738c;font-size:9px;font-weight:850;text-transform:uppercase}.multiply-group>div{display:grid;grid-template-columns:repeat(4,12px);gap:5px;justify-content:center}.multiply-group i{width:12px;height:12px;display:block;border-radius:50%;background:#5146e5;box-shadow:inset 0 -2px 0 rgba(20,28,68,.2);transform:scale(0);animation:multiply-dot-pop .25s cubic-bezier(.2,.9,.3,1.35) forwards;animation-delay:calc((var(--group) * .28s) + (var(--dot) * .07s) + .15s)}.multiply-equation{display:grid;grid-template-columns:auto auto auto auto auto auto auto auto;align-items:baseline;justify-content:center;gap:5px;margin-top:12px;padding-top:10px;border-top:1px solid #dfe4f1}.multiply-equation b,.multiply-equation strong{color:#5146e5;font-size:18px}.multiply-equation strong{color:#17203b;animation:multiply-total .5s ease both;animation-delay:1.1s}.multiply-equation em{color:#7e86a0;font-style:normal;font-weight:900}.multiply-equation span{color:#69738c;font-size:9px;font-weight:750}@keyframes multiply-group-in{to{opacity:1;transform:none}}@keyframes multiply-dot-pop{to{transform:scale(1)}}@keyframes multiply-total{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@media(max-width:900px){.pilot-layout{grid-template-columns:1fr}.pilot-course-nav{min-height:auto;position:static;display:flex;gap:8px;overflow:auto;border-right:0;border-bottom:1px solid #dfe5ee;padding:12px 18px}.pilot-course-nav>.pilot-kicker,.pilot-family{display:none}.pilot-course-nav>button{min-width:175px;margin:0}.pilot-workspace{padding:24px 18px 50px}.pilot-grid{grid-template-columns:1fr}.pilot-person>div{display:none}}@media(max-width:620px){.pilot-topbar{padding:0 14px}.pilot-brand small,.pilot-person .role-badge{display:none}.pilot-person>a{padding:7px 9px}.pilot-heading h1{font-size:29px}.pilot-save-state{font-size:11px}.pilot-question-controls{flex-direction:column}.pilot-question-controls select,.pilot-question-controls button{width:100%}.pilot-upload-actions{grid-template-columns:1fr}.pilot-upload{min-height:74px}.multiply-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.multiply-equation{grid-template-columns:auto auto auto auto}.multiply-equation span{display:none}}

:root {
  --background: #f5f7ff;
  --foreground: #17203b;
  --card: #ffffff;
  --card-foreground: #17203b;
  --popover: #ffffff;
  --popover-foreground: #17203b;
  --primary: #5146e5;
  --primary-foreground: #ffffff;
  --secondary: #e9ecff;
  --secondary-foreground: #2d2a72;
  --muted: #eef0f7;
  --muted-foreground: #68708a;
  --accent: #d9f971;
  --accent-foreground: #17203b;
  --destructive: #d92d54;
  --border: #dce1f0;
  --input: #dce1f0;
  --ring: #756bed;
  --radius: 1rem;
}

.dark {
  --background: #10152a;
  --foreground: #f7f8ff;
  --card: #171e38;
  --card-foreground: #f7f8ff;
  --popover: #171e38;
  --popover-foreground: #f7f8ff;
  --primary: #928aff;
  --primary-foreground: #10152a;
  --secondary: #252d50;
  --secondary-foreground: #f0efff;
  --muted: #222a48;
  --muted-foreground: #b1b7d0;
  --accent: #d9f971;
  --accent-foreground: #10152a;
  --destructive: #ff6b8b;
  --border: #333c60;
  --input: #333c60;
  --ring: #928aff;
}

* { box-sizing: border-box; border-color: var(--border); }
html { font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif; background: var(--background); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--background); color: var(--foreground); }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.ui-button { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); font-size: 14px; font-weight: 650; cursor: pointer; transition: transform .14s ease, background .14s ease, border-color .14s ease; }
.ui-button:hover { background: #4339cc; }
.ui-button:active { transform: translateY(1px); }
.ui-button:focus-visible, .ui-input:focus-visible { outline: 3px solid #756bed42; outline-offset: 1px; }
.ui-button svg { width: 16px; height: 16px; }
.ui-button-outline { border-color: #d8ddea; background: #fff; color: #303751; }
.ui-button-outline:hover { border-color: #756bed; background: #f5f4ff; color: #4339cc; }
.ui-button-lg { min-height: 36px; }
.ui-input { width: 100%; min-width: 0; height: 32px; padding: 6px 10px; border: 1px solid var(--input); border-radius: 8px; background: transparent; color: var(--foreground); font-size: 14px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; display: flex; flex-direction: column; padding: 27px 20px 20px; background: #191842; color: #fff; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; color: #fff; text-decoration: none; font-weight: 850; font-size: 15px; line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; }
.brand-mark img { width: 32px; height: 32px; display: block; }
.brand-name { min-width: 0; }
.main-nav { display: grid; gap: 7px; margin-top: 48px; }
.nav-link { display: flex; align-items: center; gap: 13px; height: 45px; padding: 0 13px; color: #b7b9dc; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 680; transition: .16s ease; }
.nav-link:hover { color: #fff; background: #2a295a; }
.nav-link.active { color: #fff; background: #34316f; box-shadow: inset 3px 0 0 #d9f971; }
.nav-link svg { width: 20px; height: 20px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 17px; }
.streak-card { display: flex; align-items: center; gap: 10px; padding: 13px; background: #272653; border: 1px solid #3a3970; border-radius: 16px; }
.streak-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #ff725e; background: #3b3057; border-radius: 11px; }
.streak-icon svg { width: 20px; }
.streak-card div:last-child { display: grid; gap: 2px; }
.streak-card strong { font-size: 13px; }
.streak-card span { color: #aeb0d2; font-size: 12px; }
.profile-button { width: 100%; display: grid; grid-template-columns: 36px 1fr 20px; align-items: center; gap: 10px; padding: 11px 9px; border: 0; border-top: 1px solid #36355f; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.profile-button .avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #ffb86b; color: #20204a; font-weight: 850; }
.profile-button > span:nth-child(2) { display: grid; }
.profile-button strong { font-size: 14px; }
.profile-button small { color: #9fa2c6; font-size: 12px; }
.profile-button svg { width: 18px; color: #9295b9; }

.workspace { grid-column: 2; min-width: 0; padding: 34px 40px 48px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1340px; margin: 0 auto 27px; }
.eyebrow { margin: 0 0 4px; color: #747b94; font-size: 12px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(25px, 2vw, 34px); line-height: 1.15; letter-spacing: -.045em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.age-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border: 1px solid #cfd5e7; border-radius: 999px; background: #fff; color: #555d78; font-size: 12px; font-weight: 760; }
.signup-button { height: 38px; padding-inline: 14px; border-radius: 12px; }
.xp-pill { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; color: #413e70; background: #fff; border: 1px solid #dfe3f0; border-radius: 12px; font-size: 13px; font-weight: 800; }
.xp-pill svg { width: 17px; color: #ffad33; fill: #ffcf51; }
.add-class { height: 39px; padding: 0 15px; border-radius: 12px; font-weight: 750; box-shadow: 0 5px 14px #5146e52b; }
.dashboard-grid { max-width: 1340px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 22px; align-items: start; }
.primary-column, .right-rail { display: grid; gap: 22px; }
.focus-card, .buddy-panel, .rail-card { border: 1px solid var(--border); background: #fff; box-shadow: 0 8px 28px rgba(32, 42, 81, .065); }
.focus-card { position: relative; min-height: 270px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; overflow: hidden; padding: 32px 34px; border-radius: 24px; background: #24215f; color: #fff; }
.focus-card::after { content: ''; position: absolute; width: 150px; height: 150px; left: 45%; bottom: -100px; border: 22px solid #514cb0; border-radius: 50%; opacity: .7; }
.focus-copy { position: relative; z-index: 1; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; background: #343175; color: #dddfff; font-size: 12px; font-weight: 730; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: #ff6e67; box-shadow: 0 0 0 4px #ff6e6726; }
.class-label { margin: 27px 0 5px; color: #b9b9e4; font-size: 12px; font-weight: 780; letter-spacing: .09em; }
.focus-copy h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -.045em; }
.focus-copy > p:last-of-type { max-width: 440px; margin: 13px 0 24px; color: #d5d5ee; font-size: 15px; line-height: 1.5; }
.focus-actions { display: flex; align-items: center; gap: 15px; }
.focus-actions span { color: #b9b9df; font-size: 13px; }
.continue-button { height: 43px; padding: 0 16px; background: #d9f971; color: #17203b; border-radius: 12px; font-weight: 800; }
.continue-button:hover { background: #c8ea5b; }
.continue-button svg { width: 15px; }
.orbit-visual { position: relative; min-height: 200px; display: grid; place-items: center; align-self: center; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid #716dcc; }
.ring-one { width: 200px; height: 200px; }
.ring-two { width: 148px; height: 148px; border-color: #8d88df; border-style: dashed; animation: spin 22s linear infinite; }
.orbit-center { position: relative; z-index: 2; width: 112px; height: 112px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: #3a367e; box-shadow: 0 0 0 12px #302d6d, inset 0 0 20px #6a64c866; }
.orbit-center strong { font-size: 30px; letter-spacing: -.04em; }
.orbit-center span { color: #c3c2e9; font-size: 11px; font-weight: 700; }
.orbit-dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #d9f971; box-shadow: 0 0 0 5px #d9f97120; }
.dot-one { top: 12px; right: 27%; }
.dot-two { bottom: 30px; left: 21%; width: 9px; height: 9px; background: #ff9b6b; }
@keyframes spin { to { transform: rotate(360deg); } }

.buddy-panel { padding: 26px 28px 27px; border-radius: 22px; }
.buddy-header, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.buddy-title { display: flex; align-items: center; gap: 11px; }
.buddy-avatar { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; background: #5146e5; color: #fff; box-shadow: 3px 3px 0 #d9f971; }
.buddy-avatar svg { width: 25px; }
.buddy-title p, .section-heading p { margin: 0 0 2px; color: #7f859b; font-size: 11px; font-weight: 820; letter-spacing: .11em; }
.buddy-title h2, .section-heading h2 { margin: 0; font-size: 18px; line-height: 1.2; letter-spacing: -.025em; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #35c989; box-shadow: 0 0 0 4px #35c98920; }
.edit-tutor { width: 28px; height: 28px; display: grid; place-items: center; margin-left: 1px; border: 0; border-radius: 8px; background: transparent; color: #7a8095; cursor: pointer; }
.edit-tutor:hover { background: #eff0f8; color: #5146e5; }
.edit-tutor svg { width: 14px; }
.subject-picker { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 13px; border: 1px solid #dfe3ef; border-radius: 10px; background: #fff; color: #50566e; font-size: 13px; font-weight: 690; cursor: pointer; }
.subject-picker svg { width: 14px; }
.question-bubble { display: flex; gap: 12px; margin: 24px 0 18px; padding: 14px 16px; border-radius: 15px 15px 15px 4px; background: #eff0ff; color: #333858; }
.question-bubble > svg { width: 18px; flex: 0 0 auto; margin-top: 2px; color: #5146e5; }
.question-bubble p { margin: 0; font-size: 14px; line-height: 1.55; font-weight: 560; }
.question-bubble span { display: block; margin-top: 5px; color: #757b92; font-size: 12px; }
.question-box { padding: 15px; border: 1.5px solid #ccd1e2; border-radius: 16px; transition: border-color .2s; }
.question-box:focus-within { border-color: #756bed; box-shadow: 0 0 0 3px #756bed16; }
.question-box label { display: block; color: #363c57; font-size: 13px; font-weight: 780; }
.question-box textarea { width: 100%; min-height: 55px; margin-top: 7px; padding: 0; resize: none; border: 0; outline: 0; color: #202640; background: transparent; font-size: 15px; line-height: 1.45; }
.question-box textarea::placeholder { color: #9a9fb1; }
.question-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid #edf0f6; }
.level-tabs { height: auto !important; flex-wrap: wrap; justify-content: flex-start; padding: 2px; background: #eff1f7; }
.level-tabs button { min-height: 28px; padding-inline: 9px; font-size: 12px; border-radius: 7px; }
.level-tabs { display: flex; gap: 2px; border-radius: 10px; }
.level-tabs button { border: 0; background: transparent; color: #777d91; font-weight: 650; cursor: pointer; }
.level-tabs button.selected { background: #fff; color: #252b45; box-shadow: 0 1px 3px #1d23421b; }
.ask-button { height: 35px; flex: 0 0 auto; padding: 0 12px; border-radius: 10px; font-weight: 750; }
.answer-card { margin-top: 17px; padding: 17px; border: 1px solid #d9d9fa; border-radius: 16px; background: #fbfbff; animation: answer-in .32s ease both; }
@keyframes answer-in { from { opacity: 0; transform: translateY(8px); } }
.answer-top { display: flex; align-items: center; gap: 9px; }
.answer-top > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #5146e5; color: #fff; }
.answer-top > span:first-child svg { width: 18px; }
.answer-top > div { display: grid; gap: 1px; }
.answer-top strong { font-size: 13px; }
.answer-top small { color: #7a8096; font-size: 11px; }
.source-chip { display: flex; align-items: center; gap: 5px; margin-left: auto; padding: 5px 7px; border-radius: 8px; background: #e8f7ef; color: #237756; font-size: 10px; font-weight: 780; }
.source-chip svg { width: 13px; }
.answer-card > p { margin: 14px 0; color: #373d58; font-size: 14px; line-height: 1.6; }
.concept-flow { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; padding: 13px; border-radius: 12px; background: #222056; color: #fff; }
.concept-flow span { padding: 5px 8px; border-radius: 8px; background: #34316e; font-size: 12px; }
.concept-flow b { color: #d9f971; }
.answer-actions { display: flex; gap: 8px; margin-top: 12px; }
.answer-actions button { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #dfe2ef; border-radius: 9px; background: #fff; color: #4d536b; font-size: 11px; font-weight: 700; cursor: pointer; }
.answer-actions button:hover { border-color: #756bed; color: #5146e5; }
.answer-actions svg { width: 14px; }
.citation-note { display: flex; align-items: center; gap: 6px; margin-bottom: 0 !important; padding-top: 11px; border-top: 1px solid #eceefa; color: #7d8397 !important; font-size: 10px !important; }
.citation-note svg { width: 13px; }

.rail-card { padding: 23px; border-radius: 20px; }
.section-heading > span { padding: 5px 8px; border-radius: 8px; background: #eff0f8; color: #6a7187; font-size: 11px; font-weight: 750; }
.task { display: grid; grid-template-columns: 40px 1fr 22px; align-items: center; gap: 11px; margin-top: 16px; padding: 10px; border: 1px solid transparent; border-radius: 13px; color: #6b7187; }
.task.current { border-color: #cbc8fa; background: #f3f2ff; color: #292e49; }
.task.done { opacity: .7; }
.task-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #eff1f7; }
.task.current .task-icon { background: #dedcff; color: #5146e5; }
.task-icon svg { width: 18px; }
.task div { display: grid; gap: 3px; }
.task strong { color: #2c324b; font-size: 13px; }
.task small { font-size: 11px; }
.task > svg { width: 18px; color: #5146e5; }
.check { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #d8f4e8; color: #168356; font-size: 12px; font-weight: 900; }
.sprint-progress { height: 7px; display: block; margin-top: 17px; overflow: hidden; border-radius: 999px; background: #eaecf4; }
.sprint-progress span { display: block; width: 33%; height: 100%; border-radius: inherit; background: #5146e5; }
.progress-copy { display: flex; justify-content: space-between; margin: 8px 0 0; color: #81879a; font-size: 11px; }
.progress-copy strong { color: #5449d8; }
.sources-card { box-shadow: none; }
.section-heading button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #dfe3ef; border-radius: 9px; background: #fff; color: #5c637b; cursor: pointer; }
.section-heading button svg { width: 15px; }
.source-row { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 11px; margin-top: 17px; }
.source-row > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.pdf { background: #fff0ee; color: #d94e40; font-size: 10px; font-weight: 900; }
.book { background: #ebf4ff; color: #2872bd; }
.book svg { width: 18px; }
.source-row div { display: grid; gap: 3px; }
.source-row strong { font-size: 13px; }
.source-row small { color: #83899c; font-size: 11px; }
.new-source > svg { width: 17px; color: #22a66e; }
.hidden-upload { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-zone { width: 100%; display: flex; align-items: center; gap: 11px; margin-top: 19px; padding: 13px; border: 1.5px dashed #c8cde0; border-radius: 13px; background: #fafbff; color: #5f657b; text-align: left; cursor: pointer; }
.upload-zone:hover { border-color: #756bed; background: #f6f5ff; }
.upload-zone > svg { width: 20px; color: #5146e5; }
.upload-zone > span { display: grid; gap: 2px; }
.upload-zone strong { color: #454b62; font-size: 12px; }
.upload-zone small { color: #858a9b; font-size: 10px; }

.practice-lab, .mistake-review { max-width: 1340px; margin: 22px auto 0; border-radius: 22px; }
.practice-lab { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 28px; border: 1px solid #cbc9f7; background: #eeedff; }
.practice-intro, .mistake-copy { display: flex; align-items: center; gap: 15px; }
.practice-icon, .mistake-copy > span { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: #5146e5; color: #fff; box-shadow: 4px 4px 0 #d9f971; }
.practice-icon svg, .mistake-copy > span svg { width: 24px; }
.practice-intro h2, .mistake-copy h2 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.025em; }
.practice-intro p:last-child, .mistake-copy p:last-child { margin: 0; color: #6d7287; font-size: 13px; }
.practice-controls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.count-pill { height: 34px; padding: 0 10px; border: 1px solid #cac8ec; border-radius: 10px; background: #fff; color: #5d6176; font-size: 11px; font-weight: 720; cursor: pointer; }
.count-pill.selected { border-color: #5146e5; background: #5146e5; color: #fff; }
.generate-button { height: 38px; margin-left: 5px; padding-inline: 14px; border-radius: 11px; font-weight: 770; }
.mistake-review { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 24px 28px; border: 1px solid #dfe3ef; background: #fff; }
.mistake-copy > span { background: #17203b; box-shadow: 4px 4px 0 #ffb86b; }
.mistake-stats { display: flex; align-items: center; gap: 21px; }
.mistake-stats > span { display: grid; gap: 1px; padding-right: 20px; border-right: 1px solid #e3e5ef; }
.mistake-stats strong { font-size: 19px; }
.mistake-stats small { white-space: nowrap; color: #858a9d; font-size: 10px; }

.modal-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: #11152a42; backdrop-filter: blur(3px); animation: answer-in .14s ease both; }
.modal-overlay[hidden], [hidden] { display: none !important; }
.modal-panel { position: relative; width: 100%; max-width: 390px; display: grid; gap: 16px; padding: 22px; border: 1px solid #dfe2ef; border-radius: 19px; background: #fff; box-shadow: 0 24px 80px #11152a38; }
.modal-close { position: absolute; top: 10px; right: 11px; width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: #73798d; font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: #eff1f7; color: #28304a; }
.modal-header { padding-right: 25px; }
.modal-title { margin: 0 0 7px; font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.modal-header p { margin: 0; color: #72798f; font-size: 13px; line-height: 1.45; }
.modal-kicker { display: block; margin-bottom: 7px; color: #5146e5; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.signup-dialog { max-width: 440px; }
.signup-dialog #age-step, .signup-dialog #account-step { display: grid; gap: 13px; }
.privacy-note { margin: -5px 0 0; color: #7d8397; font-size: 11px; line-height: 1.4; }
.age-message { padding: 11px 12px; border-radius: 11px; font-size: 12px; line-height: 1.45; }
.age-message.error { border: 1px solid #f4c5cf; background: #fff2f5; color: #a52b47; }
.age-message.blocked { border: 1px solid #f2d0a6; background: #fff8eb; color: #7d4c0e; }
.eligible-banner { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid #ccebdc; border-radius: 13px; background: #effaf5; color: #216d50; }
.eligible-banner > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #d1f1e1; font-weight: 900; }
.eligible-banner > div { display: grid; gap: 2px; }
.eligible-banner strong { font-size: 12px; }
.eligible-banner small { color: #5c806f; font-size: 10px; }
.confirm-row { display: flex; align-items: flex-start; gap: 8px; color: #555b70; font-size: 12px; line-height: 1.4; cursor: pointer; }
.confirm-row input { margin-top: 2px; accent-color: #5146e5; }
.signup-success { display: grid; justify-items: center; gap: 10px; padding: 12px 4px 2px; text-align: center; }
.signup-success > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: #d9f971; font-size: 28px; box-shadow: 4px 4px 0 #5146e5; }
.signup-success h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.03em; }
.signup-success p { max-width: 310px; margin: 0 0 5px; color: #72798f; font-size: 13px; line-height: 1.45; }
.tutor-preview { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: #eff0ff; }
.tutor-preview > div { display: grid; gap: 2px; }
.tutor-preview strong { font-size: 15px; }
.tutor-preview small { color: #777d92; font-size: 11px; }
.dialog-label { margin: 3px 0 -9px; color: #555b70; font-size: 12px; font-weight: 760; }
.dialog-input { height: 40px; }
.tone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tone-grid button { min-height: 51px; padding: 7px 5px; border: 1px solid #dfe2ec; border-radius: 11px; background: #fff; color: #565c72; font-size: 10px; font-weight: 700; cursor: pointer; }
.tone-grid button.selected { border-color: #756bed; background: #f0efff; color: #4038b8; }
.dialog-footer { margin: 4px -22px -22px; padding: 16px 22px; }
.quiz-dialog { max-width: 470px !important; }
.quiz-ready { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 11px; padding: 15px; border-radius: 14px; background: #eff0ff; }
.quiz-ready > span:first-child { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: #5146e5; color: #fff; }
.quiz-ready > span:first-child svg { width: 21px; }
.quiz-ready > div { display: grid; gap: 3px; }
.quiz-ready strong { font-size: 14px; }
.quiz-ready small { color: #777d93; font-size: 11px; }
.ready-badge { padding: 5px 7px; border-radius: 7px; background: #d9f971; color: #283227; font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.quiz-mix { display: grid; gap: 9px; padding: 2px 3px; }
.quiz-mix span { display: flex; justify-content: space-between; color: #656b80; font-size: 12px; }
.quiz-mix b { color: #252b45; }
.grounding-note { display: flex; gap: 10px; padding: 12px; border: 1px solid #d7efdf; border-radius: 12px; background: #f0fbf5; color: #277354; }
.grounding-note svg { width: 19px; flex: 0 0 auto; }
.grounding-note span { display: grid; gap: 2px; }
.grounding-note strong { font-size: 12px; }
.grounding-note small { color: #5f7f70; font-size: 10px; line-height: 1.4; }

@media (max-width: 1060px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .right-rail { grid-template-columns: 1fr 1fr; }
  .practice-lab, .mistake-review { align-items: flex-start; flex-direction: column; }
  .practice-controls { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; width: 100%; height: 66px; flex-direction: row; align-items: center; padding: 10px 15px; }
  .brand { padding: 0; }
  .brand-name { display: none; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-mark img { width: 30px; height: 30px; }
  .main-nav { display: flex; margin: 0 0 0 auto; gap: 3px; }
  .nav-link { width: 40px; height: 40px; justify-content: center; padding: 0; }
  .nav-link span { display: none; }
  .nav-link span:first-child { display: inline; }
  .main-nav .nav-link:nth-child(3), .main-nav .nav-link:nth-child(5) { display: none; }
  .sidebar-bottom { display: none; }
  .workspace { padding: 24px 16px 36px; }
  .topbar { align-items: flex-start; }
  .xp-pill { display: none; }
  .age-pill { display: none; }
  .signup-button { width: 39px; padding: 0; font-size: 0; }
  .signup-button::before { content: '13+'; font-size: 12px; }
  .add-class { width: 39px; padding: 0; font-size: 0; }
  .add-class svg { width: 18px !important; }
  .focus-card { grid-template-columns: 1fr; padding: 26px 24px; }
  .orbit-visual { position: absolute; width: 175px; height: 175px; min-height: 0; right: -42px; top: 48px; opacity: .42; }
  .ring-one { width: 165px; height: 165px; }
  .ring-two { width: 120px; height: 120px; }
  .orbit-center { width: 92px; height: 92px; }
  .focus-copy { max-width: 82%; }
  .right-rail { grid-template-columns: 1fr; }
  .question-toolbar { align-items: stretch; flex-direction: column; }
  .ask-button { align-self: flex-end; }
  .practice-lab, .mistake-review { padding: 22px 20px; }
  .practice-controls, .mistake-stats { width: 100%; }
  .generate-button { width: 100%; margin: 4px 0 0; }
  .mistake-stats { flex-wrap: wrap; }
  .mistake-stats > button { width: 100%; }
  .concept-flow { justify-content: flex-start; }
  .source-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

#course-nav>button{width:100%;display:flex;gap:12px;align-items:center;text-align:left;border:1px solid transparent;background:transparent;padding:12px;border-radius:14px;margin:5px 0;color:#26334a}#course-nav>button:hover,#course-nav>button.active{background:#eef3ff;border-color:#cddaf6}#course-nav>button>span{width:36px;height:36px;display:grid;place-items:center;background:#1c4ee8;color:white;border-radius:10px;font-weight:900}#course-nav>button:nth-child(2)>span{background:#ed7837}#course-nav button div{display:grid}#course-nav button strong{font-size:15px}#course-nav button small{font-size:12px;color:#738096}#family-list>div{display:flex;gap:9px;align-items:center;padding:8px 4px}#family-list>div>span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e8edf5;font-size:12px;font-weight:800}#family-list p{display:grid;margin:0}#family-list strong{font-size:13px;max-width:150px;overflow:hidden;text-overflow:ellipsis}#family-list small{font-size:12px;color:#738096}#history-list{display:flex;align-items:center;gap:20px;flex-wrap:wrap}#history-list>div{display:flex;align-items:center;gap:9px;border-left:1px solid #dce2ec;padding-left:18px}#history-list>div>span{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e9f7ec;color:#28723a;font-size:12px;font-weight:900}#history-list p{display:grid;margin:0}#history-list small{font-size:11px;color:#778296}

@media(max-width:900px){#course-nav{display:flex;gap:8px}#course-nav>button{min-width:175px;margin:0}}

/* Public homepage */
.public-body{margin:0;background:#f5f7ff;color:#17203b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.public-body *{box-sizing:border-box}.public-body a{color:inherit}.public-header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));background:rgba(255,255,255,.92);border-bottom:1px solid #dfe4f2;position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}.public-brand{display:flex;align-items:center;gap:10px;text-decoration:none}.public-brand span{width:40px;height:40px;display:grid;place-items:center;background:#17203b;border-radius:13px;font-size:21px}.public-brand strong{font-size:18px}.public-header nav{display:flex;align-items:center;gap:26px}.public-header nav a{text-decoration:none;font-size:14px;font-weight:700}.public-header .public-signin{padding:10px 14px;background:#17203b;color:white;border-radius:10px}.public-hero{max-width:1180px;margin:0 auto;min-height:650px;padding:82px 24px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:72px}.public-kicker{margin:0 0 12px;color:#5146e5;font-size:12px;font-weight:900;letter-spacing:.14em}.public-hero h1{max-width:700px;margin:0;font-size:clamp(48px,6vw,78px);line-height:.98;letter-spacing:-.055em}.public-hero h1 em{color:#5146e5;font-style:normal}.public-lead{max-width:650px;margin:26px 0 0;color:#5a6277;font-size:19px;line-height:1.65}.public-actions{display:flex;align-items:center;gap:18px;margin-top:30px}.public-primary{display:inline-flex;padding:13px 18px;background:#5146e5;color:white!important;border-radius:11px;text-decoration:none;font-weight:800}.public-actions span{color:#68708a;font-size:14px}.public-trust{display:flex;gap:20px;flex-wrap:wrap;margin-top:30px;color:#47516a;font-size:13px;font-weight:700}.public-demo{padding:24px;background:#fff;border:1px solid #dce1f0;border-radius:26px;box-shadow:0 28px 80px rgba(38,45,96,.15);transform:rotate(1.5deg)}.demo-top{display:flex;gap:12px;align-items:center}.demo-avatar{width:48px;height:48px;display:grid;place-items:center;background:#17203b;border-radius:15px;font-size:24px}.demo-top div{display:grid;gap:3px}.demo-top small{color:#7a8194;font-size:10px;font-weight:900;letter-spacing:.12em}.demo-top strong{font-size:16px}.demo-question{margin:22px 0 14px 52px;padding:13px 15px;background:#edf0ff;border-radius:14px 14px 4px 14px;color:#33365d;font-size:15px}.demo-levels{display:flex;gap:8px;margin:20px 0 10px}.demo-levels span{padding:7px 12px;border-radius:999px;font-size:12px;font-weight:900}.demo-levels .easy{background:#d9f971}.demo-levels .medium{background:#5146e5;color:#fff}.demo-levels .hard{background:#eef0f7;color:#5e667a}.demo-answer{padding:18px;background:#17203b;color:#fff;border-radius:17px}.demo-answer p{font-size:15px;line-height:1.55;color:#e3e7f4}.demo-answer small{color:#aeb7d3}.public-how{padding:90px max(24px,calc((100vw - 1180px)/2));background:#17203b;color:#fff}.public-section-heading{max-width:650px}.public-section-heading .public-kicker{color:#d9f971}.public-section-heading h2,.public-sources h2,.public-parent h2{margin:0;font-size:clamp(34px,4vw,52px);line-height:1.08;letter-spacing:-.035em}.public-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:46px}.public-steps article{min-height:240px;padding:24px;background:#202a49;border:1px solid #34405f;border-radius:20px}.public-steps article>span{color:#d9f971;font-size:13px;font-weight:900}.public-steps h3{margin:50px 0 10px;font-size:22px}.public-steps p{margin:0;color:#b9c0d5;line-height:1.6}.public-sources{max-width:1180px;margin:0 auto;padding:100px 24px;display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}.public-sources>div>p:last-child{color:#5f687e;font-size:17px;line-height:1.7}.source-stack{display:grid;gap:10px}.source-stack span{padding:18px 20px;background:#fff;border:1px solid #dce1f0;border-radius:14px;font-weight:800;box-shadow:0 8px 24px rgba(38,45,96,.05)}.source-stack span:before{content:'✓';display:inline-grid;place-items:center;width:26px;height:26px;margin-right:12px;background:#d9f971;border-radius:50%}.public-parent{max-width:1180px;margin:0 auto 90px;padding:46px;display:grid;grid-template-columns:1.1fr .8fr auto;gap:36px;align-items:center;background:#5146e5;color:#fff;border-radius:26px}.public-parent .public-kicker{color:#d9f971}.public-parent h2{font-size:36px}.public-parent>p{color:#e3e3ff;line-height:1.65}.public-parent>a{white-space:nowrap;padding:12px 16px;background:#d9f971;color:#17203b;text-decoration:none;border-radius:11px;font-weight:900}.public-footer{max-width:1180px;margin:0 auto;padding:28px 24px 42px;border-top:1px solid #dce1f0;display:flex;align-items:center;gap:28px;color:#68708a;font-size:13px}.public-footer p{margin-right:auto}.public-footer .public-brand strong{color:#17203b}
@media(max-width:850px){.public-header nav>a:not(.public-signin){display:none}.public-hero{grid-template-columns:1fr;padding-top:58px;gap:44px}.public-demo{transform:none}.public-steps{grid-template-columns:1fr}.public-steps article{min-height:0}.public-steps h3{margin-top:28px}.public-sources{grid-template-columns:1fr;gap:35px}.public-parent{margin:0 18px 60px;grid-template-columns:1fr}.public-parent>a{justify-self:start}.public-footer{margin:0 18px;flex-wrap:wrap}.public-footer p{width:100%;order:3}}@media(max-width:520px){.public-header{padding:0 14px}.public-brand strong{font-size:15px}.public-header .public-signin{font-size:12px;padding:9px 11px}.public-hero{padding:48px 18px 64px}.public-hero h1{font-size:46px}.public-lead{font-size:17px}.public-actions{align-items:flex-start;flex-direction:column}.public-how{padding:70px 18px}.public-sources{padding:72px 18px}.public-parent{padding:30px 24px}.public-parent h2{font-size:31px}}
.pilot-brand>img{width:40px;height:40px;object-fit:cover;background:#fff;border-radius:12px}.public-brand img{width:42px;height:42px;display:block;object-fit:cover}.demo-avatar{background:#fff}.demo-avatar img{width:42px;height:42px;display:block;object-fit:cover;border-radius:12px}
.pilot-chat-attach{margin-right:auto;padding:0 10px;border:1px solid #ccd4e2;background:#f4f6fb;color:#273249;font-size:12px}.pilot-chat-attach:hover{border-color:#756bed;background:#eceaff}
.pilot-chat-drop-hint{position:absolute;inset:82px 18px 150px;z-index:4;display:grid;place-content:center;gap:7px;border:3px dashed #756bed;border-radius:20px;background:rgba(247,248,252,.96);color:#273249;text-align:center;opacity:0;transform:scale(.98);pointer-events:none;transition:opacity .15s ease,transform .15s ease}.pilot-chat-drop-hint span{font-size:34px}.pilot-chat-drop-hint strong{font-size:18px}.pilot-chat-drop-hint small{color:#667086;font-size:13px}.pilot-chat-panel.dragging .pilot-chat-drop-hint{opacity:1;transform:scale(1)}
.pilot-tutor-card{position:relative}.pilot-coach-drop-hint{position:absolute;inset:12px;z-index:3;display:grid;place-content:center;gap:6px;border:3px dashed #d9f971;border-radius:17px;background:rgba(23,32,59,.97);text-align:center;opacity:0;transform:scale(.98);pointer-events:none;transition:opacity .15s ease,transform .15s ease}.pilot-coach-drop-hint span{font-size:34px}.pilot-coach-drop-hint strong{font-size:18px}.pilot-tutor-card.dragging .pilot-coach-drop-hint{opacity:1;transform:scale(1)}.pilot-question-controls .pilot-coach-attach{margin-right:auto;border:1px solid #536080;background:#222d4d;color:#fff}.pilot-chat-attachment{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:10px 12px;border:1px solid #cbd4e3;border-radius:11px;background:#f4f6fb}.pilot-chat-attachment[hidden]{display:none}.pilot-chat-attachment>span{font-size:22px}.pilot-chat-attachment>div{min-width:0;display:grid;gap:2px}.pilot-chat-attachment strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#273249;font-size:12px}.pilot-chat-attachment small{color:#667086;font-size:11px;line-height:1.35}@media(max-width:620px){.pilot-question-controls{flex-wrap:wrap}.pilot-question-controls .pilot-coach-attach{width:100%;margin-right:0}}

/* Practice quiz */
.pilot-question>small{display:block;color:#657087;font-size:13px}.pilot-question>h3{margin:14px 0 18px;color:#17203b;font-size:21px;line-height:1.35}.pilot-quiz-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pilot-card .pilot-quiz-choice{width:100%;min-width:0;min-height:52px;height:auto;padding:11px 14px;text-align:left;white-space:normal;line-height:1.35;touch-action:manipulation}.pilot-quiz-choice>span{display:inline-block;min-width:22px}.pilot-card .pilot-quiz-choice:hover:not(:disabled){background:#3f35d0;transform:translateY(-1px)}.pilot-card .pilot-quiz-choice:focus-visible{outline:3px solid rgba(81,70,229,.25);outline-offset:2px}.pilot-card .pilot-quiz-choice:disabled{cursor:default;opacity:1}.pilot-card .pilot-quiz-choice.correct{background:#dff8e9;color:#17653c;box-shadow:inset 0 0 0 2px #57bd83}.pilot-card .pilot-quiz-choice.incorrect{background:#ffe5e9;color:#9c2b42;box-shadow:inset 0 0 0 2px #e77b8f}.pilot-answer-feedback{margin-top:14px;padding:14px 15px;border-radius:12px;line-height:1.5}.pilot-answer-feedback.correct{border:1px solid #87d5a9;background:#effbf4;color:#175c38}.pilot-answer-feedback.incorrect{border:1px solid #efadb9;background:#fff3f5;color:#7c2638}.pilot-answer-feedback strong{display:block}.pilot-answer-feedback p{margin:6px 0 0;font-size:13px}.pilot-quiz-nav{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.pilot-card .pilot-quiz-nav button{min-width:104px}.pilot-card .pilot-quiz-nav button:disabled{opacity:.45;cursor:not-allowed}.pilot-results>strong{display:inline-grid;place-items:center;min-width:74px;height:74px;border-radius:50%;background:#edf0ff;color:#5146e5;font-size:23px}.pilot-results>h3{margin:14px 0 18px}.pilot-result-review{margin:10px 0;padding:13px 14px;border-left:4px solid #e77b8f;border-radius:9px;background:#fff3f5}.pilot-result-review p{margin:6px 0;color:#4b566e;font-size:13px;line-height:1.45}.pilot-result-review p span{color:#7c2638;font-weight:800}@media(max-width:620px){.pilot-quiz-choices{grid-template-columns:1fr}.pilot-question>h3{font-size:19px}.pilot-card .pilot-quiz-nav button{flex:1;min-width:0}}
.pilot-learning-focus{margin:0 0 16px;padding:12px 13px;border:1px solid #d7dcef;border-radius:11px;background:#f6f7ff}.pilot-learning-focus strong{color:#303b59;font-size:13px}.pilot-learning-focus p{margin:5px 0 0;color:#66728a;font-size:12px;line-height:1.5}.pilot-learning-focus.new{border-style:dashed}.pilot-practice-loading,.pilot-practice-error{padding:20px 10px;text-align:center}.pilot-practice-loading>span{width:42px;height:42px;display:grid;place-items:center;margin:0 auto 11px;border-radius:13px;background:#edf0ff;color:#5146e5;font-size:21px;animation:multiply-total .8s ease-in-out infinite alternate}.pilot-practice-loading strong,.pilot-practice-error strong{display:block;color:#26324d}.pilot-practice-loading p,.pilot-practice-error p{margin:6px auto 0;max-width:380px;color:#6b758b;font-size:13px;line-height:1.5}.pilot-question-source{display:flex;align-items:flex-start;gap:7px;margin:-7px 0 17px;color:#66728a;font-size:11px;line-height:1.4}.pilot-question-source span{flex:0 0 auto;padding:2px 6px;border-radius:999px;background:#edf0ff;color:#5146e5;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.pilot-focus-summary{margin:-9px 0 16px;color:#657087;font-size:13px;line-height:1.5}.pilot-result-review small{display:block;margin-top:8px;color:#7a8397;font-size:10px;line-height:1.4}

.pilot-file-list>div{align-items:center}.pilot-file-list>div>p{min-width:0;flex:1;display:grid;gap:2px;margin:0}.pilot-file-list>div>p strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pilot-card .material-delete{min-height:30px;padding:0 9px;border:1px solid #d8aab2;background:#fff;color:#a12c43;font-size:11px}.pilot-card .material-delete:hover{background:#fff1f3}.pilot-chat-level{display:flex;align-items:center;gap:6px;margin-right:auto;color:#68748b;font-size:11px;font-weight:800}.pilot-chat-level select{height:40px;padding:0 28px 0 10px;border:1px solid #ccd4e2;border-radius:10px;background:#fff;color:#273249;font:inherit;font-size:12px;font-weight:750}@media(max-width:620px){.pilot-chat-actions{flex-wrap:wrap}.pilot-chat-attach{flex:1}.pilot-chat-level{order:3;width:100%}.pilot-chat-level select{flex:1}}

.demo-banner{margin:16px 24px 0;padding:14px 18px;border:1px solid #b9df3d;border-radius:16px;background:#efffc3;color:#17213f;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.demo-banner[hidden]{display:none}.demo-banner strong{font-weight:900}.demo-banner span{font-size:.92rem}.demo-mode .role-badge{background:#d9ff65;color:#17213f}@media(max-width:620px){.demo-banner{margin:12px 12px 0;padding:12px 14px}.demo-banner span{font-size:.82rem}}

/* Independent tutoring controls: depth changes the thinking, format changes how much help is revealed. */
.pilot-question-controls{align-items:flex-end;flex-wrap:wrap}.pilot-coach-options{display:flex;align-items:flex-end;gap:8px}.pilot-coach-options label,.pilot-chat-options label{display:grid;gap:4px}.pilot-coach-options label>span{color:#aeb7d1;font-size:10px;font-weight:850;letter-spacing:.04em}.pilot-question-controls .pilot-coach-options select{min-width:132px;margin:0}.pilot-chat-actions{flex-wrap:wrap}.pilot-chat-options{order:-1;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-right:auto}.pilot-chat-options label>span{color:#68748b;font-size:10px;font-weight:850;letter-spacing:.03em}.pilot-chat-options select{width:100%;height:40px;padding:0 28px 0 10px;border:1px solid #ccd4e2;border-radius:10px;background:#fff;color:#273249;font:inherit;font-size:12px;font-weight:750}.pilot-chat-options select:focus{outline:3px solid rgba(81,70,229,.14);border-color:#756bed}@media(max-width:780px){.pilot-question-controls .pilot-coach-attach{width:100%;margin-right:0}.pilot-coach-options{width:100%}.pilot-coach-options label{flex:1}.pilot-question-controls .pilot-coach-options select{width:100%;min-width:0}}@media(max-width:620px){.pilot-question-controls{flex-direction:row}.pilot-coach-options{display:grid;grid-template-columns:1fr 1fr}.pilot-question-controls .pilot-mic,.pilot-question-controls #coach-submit{width:calc(50% - 5px)}.pilot-chat-options{grid-template-columns:1fr 1fr}}


/* Albert opens as a roomy tutoring workspace instead of a narrow side drawer. */
.pilot-chat-shell{align-items:center;justify-content:center;padding:24px}.pilot-chat-panel{width:min(1120px,100%);height:min(900px,calc(100dvh - 48px));border-radius:24px;overflow:hidden;box-shadow:0 28px 90px rgba(16,25,54,.3)}.pilot-chat-header{padding:20px 24px}.pilot-chat-header>div{min-width:0}.pilot-chat-header>.pilot-chat-rename{width:auto;height:36px;margin-left:auto;padding:0 12px;border:1px solid #536080;border-radius:10px;background:#222d4d;color:#fff;font-size:12px;font-weight:800}.pilot-chat-header>.pilot-chat-close{margin-left:0}.pilot-chat-messages{padding:28px clamp(22px,5vw,64px)}.pilot-chat-message>div{max-width:min(78%,760px)}.pilot-chat-message p{font-size:16px;line-height:1.62}.pilot-chat-composer{padding:14px clamp(18px,4vw,48px) 20px}.pilot-chat-composer>textarea{font-size:16px}@keyframes pilot-chat-in{from{opacity:.5;transform:translateY(16px) scale(.985)}}@media(max-width:620px){.pilot-chat-shell{padding:0}.pilot-chat-panel{width:100%;height:100dvh;border-radius:0}.pilot-chat-header{gap:9px;padding:14px 12px}.pilot-chat-header h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px}.pilot-chat-header>.pilot-chat-rename{width:58px;padding:0 8px;font-size:0}.pilot-chat-header>.pilot-chat-rename:after{content:'Rename';font-size:11px}.pilot-chat-messages{padding:20px 12px}.pilot-chat-message>div{max-width:84%}.pilot-chat-message p{font-size:15px}.pilot-chat-composer{padding:12px}.pilot-chat-avatar{width:38px;height:38px}}
