:root {
  --background: #f7f8f3;
  --surface: #fff;
  --surface-muted: #eff2e9;
  --green: #174b3b;
  --green-dark: #123c30;
  --green-light: #e6ede1;
  --lime: #d8e8a3;
  --orange: #ec9d6b;
  --ink: #202d27;
  --muted: #747f76;
  --line: #e2e7dc;
  --navy: #172126;
  --radius: 18px;
  --shadow: 0 12px 36px #213c2910;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { display: block; flex-shrink: 0; }
button svg, a svg { width: 19px; height: 19px; }
button { border: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; }
img { max-width: 100%; }
::selection { background: #dae8b6; color: var(--green-dark); }
:focus-visible { outline: 3px solid #93b790; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.button { min-height: 47px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9px; font-weight: 650; font-size: 13px; line-height: 1.2; border: 1px solid transparent; white-space: nowrap; transition: background .18s, transform .18s, border-color .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: #103a2d; box-shadow: 0 5px 16px #1646381e; }
.button.secondary { color: var(--green); background: transparent; border-color: #cfd8ca; }
.button.secondary:hover { background: #edf1e5; border-color: #acbda3; }
.button.ghost { color: var(--green); background: transparent; padding-left: 10px; padding-right: 10px; }
.button.ghost:hover { background: #e8eee2; }
.button.small { min-height: 37px; padding: 0 14px; font-size: 12px; border-radius: 8px; }
.button.danger, .danger-button { color: #ad4740; background: #fff5f2; border: 1px solid #efd7d1; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: transparent; border: 1px solid var(--line); border-radius: 8px; }
.icon-button:hover { background: var(--surface-muted); }
.text-link { color: var(--green); font-weight: 650; display: inline-flex; align-items: center; gap: 7px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* A calm, editorial introduction. */
.site-header { max-width: 1272px; padding: 27px 48px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--green-dark); font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.7px; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; color: var(--green); display: grid; place-items: center; }
.brand-mark svg { width: 32px; height: 32px; }
.header-links { display: flex; align-items: center; gap: 32px; font-size: 12px; font-weight: 600; color: #626d62; }
.header-links > a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 11px; }
.header-actions .button { min-height: 39px; font-size: 12px; padding: 0 16px; }
.landing { overflow: hidden; }
.hero { max-width: 1272px; margin: 0 auto; display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 38px; padding: 72px 48px 76px; position: relative; }
.hero-copy { max-width: 554px; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #dce5d4; border-radius: 30px; color: var(--green); background: #eff3e8; font-size: 10px; font-weight: 650; letter-spacing: .02em; margin-bottom: 25px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(43px, 4.6vw, 63px); line-height: 1.14; letter-spacing: -3px; font-weight: 750; max-width: 620px; }
.hero h1 em, .hero h1 .accent { color: var(--green); font-style: normal; position: relative; }
.hero h1 em::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 96%; height: 9px; border-top: 3px solid var(--orange); border-radius: 70% 70% 0 0; transform: rotate(-2deg); }
.hero-copy > p { color: #7a8278; font-size: 14px; line-height: 1.85; max-width: 438px; margin-top: 24px; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 17px !important; display: flex; align-items: center; gap: 6px; font-size: 10px !important; color: #87907f !important; }
.hero-note svg { width: 13px; height: 13px; }
.hero-preview { position: relative; padding: 21px 0 26px; width: 100%; min-width: 0; }
.hero-preview::before { content: ''; position: absolute; background: #e9eee0; width: 92%; height: 87%; right: -18px; top: 29px; border-radius: 26px; transform: rotate(4deg); z-index: 0; }
.preview-window, .demo-window { position: relative; z-index: 1; background: #fff; border: 1px solid #dfe6d8; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 45px #223a2514; transform: rotate(-1.5deg); }
.preview-topbar { position: relative; z-index: 1; border: 1px solid #dde4d5; border-bottom: none; border-radius: 14px 14px 0 0; background: white; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 10px; font-weight: 650; gap: 8px; }
.preview-window > .preview-topbar, .demo-window > .preview-topbar { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.preview-topbar > div { display: flex; align-items: center; gap: 6px; }
.window-dots { display: inline-flex; gap: 4px !important; margin-right: 6px; }
.window-dots i, .window-dots span { width: 5px; height: 5px; border-radius: 50%; background: #d5dbd0; }
.preview-window-title { color: #637369; font-size: 10px; }
.preview-status { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; color: #6b8657; background: #f0f5e9; padding: 4px 7px; border-radius: 5px; white-space: nowrap; }
.preview-status::before { content: ''; width: 4px; height: 4px; background: #70a364; border-radius: 50%; }
.preview-body { display: grid; grid-template-columns: 46% 54%; min-height: 270px; position: relative; z-index: 1; border: 1px solid #dde4d5; border-top: none; border-radius: 0 0 14px 14px; overflow: hidden; }
.preview-window > .preview-body, .demo-window > .preview-body { border: 0; border-radius: 0; }
.preview-chat { background: #fff; padding: 23px 15px 18px; display: flex; flex-direction: column; align-items: flex-start; }
.preview-chat > p, .preview-chat .preview-label { font-size: 8px; font-weight: 550; color: #7c897d; margin: 0 0 12px; letter-spacing: .01em; }
.preview-chat .avatar { width: 25px; height: 25px; font-size: 11px; margin-bottom: 8px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--green); color: white; font-size: 13px; font-weight: 700; }
.avatar.student, .avatar.user { background: #eedac8; color: #6f5949; }
.avatar svg { width: 19px; height: 19px; }
.bubble { border-radius: 0 9px 9px 9px; padding: 12px; background: #f0f4e9; color: #4e6554; font-size: 10px; line-height: 1.65; }
.preview-chat .bubble { margin-bottom: 14px; }
.bubble.user, .bubble.student { align-self: flex-end; background: #f8f5ee; color: #766c5b; border-radius: 9px 0 9px 9px; max-width: 92%; }
.waveform { display: inline-flex; justify-content: center; align-items: center; gap: 3px; height: 28px; padding: 0 7px; }
.waveform span, .waveform i { width: 2px; background: #638360; border-radius: 8px; height: 9px; }
.waveform span:nth-child(2n), .waveform i:nth-child(2n) { height: 15px; }
.waveform span:nth-child(3n), .waveform i:nth-child(3n) { height: 22px; }
.waveform span:nth-child(5n), .waveform i:nth-child(5n) { height: 12px; }
.preview-editor { background: var(--navy); color: #cbd6d1; min-width: 0; padding: 0 15px 17px; }
.preview-editor-top, .preview-editor > header { display: flex; align-items: center; justify-content: space-between; height: 40px; font-size: 8px; color: #8ea396; border-bottom: 1px solid #2d373b; margin-bottom: 17px; }
.preview-editor .code-lines { font-size: 8.5px; line-height: 1.95; }
.code-lines { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre; }
.code-lines .line-number, .code-lines .num { color: #68787d; margin-right: 14px; font-size: .9em; }
.code-lines .keyword, .code-purple { color: #c2adea; }
.code-lines .function, .code-yellow { color: #dcc992; }
.code-lines .string, .code-green { color: #a0c4a8; }
.code-lines .comment { color: #6c8680; }
.preview-test, .preview-result { border-top: 1px solid #2e393c; font-size: 8px; color: #9ebca5; display: flex; align-items: center; gap: 6px; padding-top: 12px; margin-top: 27px; }
.preview-test svg, .preview-result svg { width: 11px; height: 11px; }
.floating-note { position: absolute; right: -14px; bottom: 1px; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 11px 15px; background: #fff; border: 1px solid #e2e6dc; border-radius: 11px; box-shadow: 0 8px 20px #26452a12; color: #436340; font-size: 10px; transform: rotate(2deg); }
.floating-note svg { width: 23px; height: 23px; background: #eff4e6; border-radius: 50%; padding: 5px; }
.floating-note b { display: block; font-size: 10px; margin-bottom: 2px; color: #415540; }
.floating-note small { color: #8c9783; font-size: 8px; }
.hero-orbit { position: absolute; width: 83px; height: 83px; border-radius: 50%; background: var(--orange); top: -24px; right: 17px; z-index: 2; display: flex; align-items: center; justify-content: center; transform: rotate(12deg); border: 7px solid var(--background); }
.hero-orbit svg { width: 40px; height: 40px; }
.mascot { display: grid; place-items: center; background: #dce9b5; border-radius: 45% 55% 50% 50%; color: var(--green); }
.mascot svg { width: 68%; height: 68%; }
.hero-bottom { max-width: 1176px; margin: auto; border-top: 1px solid var(--line); }
.trusted-note { display: flex; align-items: center; justify-content: center; gap: 24px; color: #8a9381; padding: 23px 24px 39px; font-size: 10px; text-align: center; }
.trusted-note > span { display: inline-flex; align-items: center; gap: 6px; }
.trusted-note svg { width: 13px; height: 13px; }
.subjects-section, .steps-section { padding: 62px 48px; max-width: 1272px; margin: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 29px; }
.section-heading h2 { font-size: 31px; letter-spacing: -1.2px; line-height: 1.3; max-width: 530px; font-weight: 750; }
.section-heading p { color: #808a7c; font-size: 12px; line-height: 1.75; max-width: 310px; }
.section-kicker { font-size: 9px; color: #7e9471; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 750; margin-bottom: 12px; display: block; }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.subject-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 13px; position: relative; transition: transform .2s, box-shadow .2s; }
.subject-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.subject-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; background: #edf1e7; color: var(--green); margin-bottom: 24px; }
.subject-icon svg { width: 20px; height: 20px; }
.subject-card:nth-child(2) .subject-icon { background: #fcf0e5; color: #ab754d; }
.subject-card:nth-child(3) .subject-icon { background: #eeedf7; color: #86799e; }
.subject-card h3 { font-size: 17px; letter-spacing: -.5px; margin-bottom: 10px; }
.subject-card p { font-size: 11px; line-height: 1.85; color: #8a9286; max-width: 290px; }
.subject-card .text-link, .subject-card > a, .subject-card > button { margin-top: 22px; font-size: 10px; }
.subject-card .card-arrow { position: absolute; bottom: 27px; right: 25px; width: 21px; height: 21px; color: #71956d; }
.steps-section { margin-top: 20px; padding-top: 65px; padding-bottom: 85px; }
.steps-section .section-heading { justify-content: center; text-align: center; margin-bottom: 42px; }
.steps-section .section-heading > div { max-width: 630px; }
.steps-section .section-heading p { margin: 12px auto 0; max-width: 460px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-card { text-align: center; padding: 0 16px; position: relative; }
.step-number { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #d3ddc8; border-radius: 50%; margin: 0 auto 22px; color: #4a6c3f; font-family: 'Manrope', sans-serif; font-size: 13px; background: #edf2e3; }
.step-card:not(:last-child)::after { content: ''; width: 75%; position: absolute; top: 18px; left: 69%; border-top: 1px dashed #d4decb; }
.step-card h3 { font-size: 14px; margin-bottom: 9px; }
.step-card p { color: #86907e; font-size: 11px; line-height: 1.85; max-width: 285px; margin: auto; }
.closing-section { margin: 0 auto 60px; max-width: 1176px; border-radius: 18px; background: var(--green); color: #fff; padding: 46px 50px; display: flex; justify-content: space-between; align-items: center; gap: 30px; position: relative; overflow: hidden; }
.closing-section::after { content: ''; position: absolute; width: 190px; height: 190px; border: 1px solid #ffffff15; border-radius: 50%; right: 120px; top: -110px; pointer-events: none; }
.closing-section h2 { font-size: 29px; letter-spacing: -1.2px; font-weight: 650; }
.closing-section p { color: #acc4b7; font-size: 12px; margin-top: 9px; line-height: 1.75; }
.closing-section .button.primary { background: #edf3df; color: var(--green); }
.closing-section .button.primary:hover { background: #dcebbf; }
.site-footer { max-width: 1272px; padding: 27px 48px 34px; margin: auto; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand { font-size: 15px; gap: 7px; }
.site-footer .brand-mark { width: 25px; height: 25px; }
.site-footer .brand-mark svg { width: 25px; height: 25px; }
.site-footer > p, .site-footer > span { color: #9aA090; font-size: 10px; }
.footer-links { display: flex; gap: 22px; color: #8b9586; font-size: 10px; }

/* The student's workspace. */
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 222px minmax(0,1fr); }
.sidebar { background: #f1f4eb; border-right: 1px solid #e1e7d9; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 27px 18px 20px; }
.sidebar > .brand { font-size: 17px; padding: 0 9px; gap: 9px; }
.sidebar .brand-mark, .sidebar .brand-mark svg { width: 28px; height: 28px; }
.sidebar-caption { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: #9aa68f; padding: 0 16px; margin: 45px 0 14px; font-weight: 650; }
.sidebar-nav { display: flex; flex-direction: column; gap: 7px; margin-top: 40px; }
.sidebar-caption + .sidebar-nav { margin-top: 0; }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 15px; text-align: left; border-radius: 9px; background: transparent; color: #7a8973; font-size: 12px; font-weight: 550; transition: background .18s, color .18s; }
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover { background: #e7eddc; color: var(--green); }
.nav-link.active { background: #e2e9d9; color: var(--green); font-weight: 650; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sidebar-tip { padding: 17px; margin: 0 5px 20px; background: #e5ecd9; border-radius: 11px; color: #617956; font-size: 11px; line-height: 1.7; }
.sidebar-tip > svg { width: 21px; height: 21px; color: #71955c; margin-bottom: 9px; }
.sidebar-tip strong { display: block; font-size: 11px; color: #4f6c41; margin-bottom: 5px; }
.sidebar-profile { display: flex; align-items: center; gap: 9px; border-top: 1px solid #dce3d3; padding: 18px 9px 0; }
.sidebar-profile .avatar { width: 31px; height: 31px; background: #dde5d1; color: var(--green); font-size: 11px; }
.sidebar-profile strong { font-size: 11px; display: block; }
.sidebar-profile span, .sidebar-profile small { font-size: 9px; color: #939d89; }
.workspace { min-width: 0; padding: 0 40px 50px; background: #f9faf6; }
.app-topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 18px; }
.app-topbar > p, .breadcrumb { font-size: 11px; color: #8a957f; }
.app-topbar > div { display: flex; align-items: center; gap: 15px; }
.topbar-date { font-size: 10px; color: #9ba592; }
.app-topbar .avatar { width: 30px; height: 30px; color: #6a7e58; background: #e4ecd9; font-size: 10px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 38px 0 28px; }
.page-heading h1 { font-size: 31px; letter-spacing: -1.3px; font-weight: 750; line-height: 1.3; }
.page-heading p { color: #949e8a; font-size: 12px; margin-top: 10px; line-height: 1.65; }
.page-heading .section-kicker { margin-bottom: 9px; }
.page-heading .button { min-height: 42px; font-size: 11px; }
.profile-banner { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: #eef3e7; border: 1px solid #e2e9d9; border-radius: 12px; color: #668154; font-size: 12px; margin-bottom: 24px; }
.profile-banner > svg { width: 22px; height: 22px; }
.profile-banner strong { color: #446338; }
.profile-banner .button { margin-left: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 25px 0; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 21px 22px; display: flex; flex-direction: column; position: relative; }
.stat-card > svg { position: absolute; right: 22px; top: 22px; width: 19px; height: 19px; color: #98ad86; }
.stat-card small, .stat-card p, .stat-label { font-size: 10px; color: #919d84; }
.stat-card strong, .stat-number { font-family: 'Manrope', sans-serif; font-weight: 750; font-size: 29px; letter-spacing: -1px; margin: 12px 0 4px; color: #2d4c29; }
.stat-card > span { font-size: 9px; color: #a1aa97; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(270px,1fr); gap: 23px; align-items: start; }
.next-session { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 216px; padding: 29px; background: #eaf0df; border: 1px solid #dfe7d4; border-radius: 14px; overflow: hidden; position: relative; }
.next-session h2 { color: #36562c; font-size: 23px; letter-spacing: -.8px; line-height: 1.4; margin: 8px 0 11px; }
.next-session p { color: #869477; font-size: 11px; line-height: 1.75; max-width: 360px; }
.next-session .button { margin-top: 23px; min-height: 39px; font-size: 10px; }
.next-session-art { min-width: 112px; width: 112px; height: 112px; border-radius: 38% 45% 42% 35%; background: #d3e0bc; display: flex; align-items: center; justify-content: center; color: #4f7440; transform: rotate(-8deg); }
.next-session-art svg { width: 70px; height: 70px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 28px 0 16px; }
.section-title h2, .section-title h3 { font-size: 16px; letter-spacing: -.3px; }
.section-title .text-link, .section-title .button { font-size: 10px; }
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 15px 17px; transition: border-color .2s; }
.recent-item:hover { border-color: #c7d4bb; }
.recent-item > svg, .recent-icon { width: 35px; height: 35px; padding: 9px; background: #edf2e5; color: #7b936b; border-radius: 8px; }
.recent-item > div:not(.recent-icon) { flex: 1; min-width: 0; }
.recent-item h3, .recent-item strong { font-size: 11px; font-family: 'DM Sans', sans-serif; font-weight: 650; }
.recent-item p, .recent-item small { font-size: 9px; color: #9aa58e; margin-top: 4px; display: block; }
.recent-item > span { font-size: 9px; color: #96a289; }
.recent-item > button { background: transparent; color: #7b956b; }
.recent-item > button svg { width: 16px; height: 16px; }
.empty-state { padding: 33px 24px; border: 1px dashed #dce4d3; border-radius: 12px; color: #919e85; background: #f4f7ee; text-align: center; }
.empty-state > svg { width: 30px; height: 30px; margin: 0 auto 12px; color: #a2b393; }
.empty-state h3 { font-size: 12px; color: #728466; margin-bottom: 7px; }
.empty-state p { font-size: 10px; line-height: 1.7; max-width: 310px; margin: auto; }
.empty-state .button { margin-top: 15px; }
.progress-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 24px; }
.progress-card h2 { font-size: 14px; margin-bottom: 17px; letter-spacing: -.3px; }
.progress-card h3 { font-size: 12px; margin-bottom: 10px; }
.progress-card p { font-size: 11px; color: #98a08f; line-height: 1.8; }
.progress-card .section-kicker { font-size: 8px; margin-top: 23px; }
.progress-track { height: 5px; background: #eef2e8; border-radius: 20px; margin: 15px 0 9px; overflow: hidden; }
.progress-track > span { display: block; height: 100%; background: #84a268; border-radius: 20px; }
.progress-detail { display: flex; justify-content: space-between; font-size: 9px; color: #98a78c; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { background: #f0f4e9; color: #829573; border: 1px solid #e4ebdc; padding: 5px 9px; border-radius: 5px; font-size: 9px; display: inline-flex; align-items: center; gap: 5px; }
.tag.orange { background: #fff2e8; border-color: #f4e2d4; color: #b27e53; }
.tag.purple { background: #f1eff8; border-color: #e9e4f2; color: #9b8daf; }

/* Forms and quiet choices. */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 27px; margin-bottom: 22px; }
.form-card > h2, .settings-section h2 { font-size: 15px; margin-bottom: 9px; letter-spacing: -.3px; }
.form-card > p, .settings-section > p { font-size: 11px; color: #919c86; line-height: 1.7; margin-bottom: 23px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 19px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field > span, .field > legend { color: #5a6c4e; font-size: 11px; font-weight: 650; }
.field small, .field-help { font-size: 9px; color: #9da88f; line-height: 1.7; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { width: 100%; border: 1px solid #dfe6d6; border-radius: 8px; background: #fbfcf8; color: #43563c; padding: 12px 13px; font-size: 12px; line-height: 1.45; min-height: 44px; transition: border-color .18s, background .18s; }
input::placeholder, textarea::placeholder { color: #a0aa93; }
input:focus, select:focus, textarea:focus { outline: 2px solid #c9dab7; outline-offset: 1px; border-color: #9bb387; background: #fff; }
textarea { resize: vertical; min-height: 98px; }
input[type=range] { accent-color: var(--green); cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--green); cursor: pointer; }
.radio-group { display: flex; flex-wrap: wrap; gap: 9px; }
.choice-card { flex: 1; min-width: 100px; padding: 13px 14px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fbfcf9; color: #819176; font-size: 11px; font-weight: 550; display: flex; align-items: center; gap: 8px; transition: border-color .18s, background .18s; }
.choice-card:hover, .mode-card:hover { border-color: #bfcdb2; }
.choice-card.selected, .choice-card[aria-pressed=true] { background: #edf3e5; border-color: #87a671; color: #476b36; }
.choice-card svg { width: 18px; height: 18px; }
.mode-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.mode-card { border: 1px solid var(--line); background: #fbfcf8; border-radius: 10px; padding: 18px; text-align: left; position: relative; min-width: 0; }
.mode-card > svg { width: 24px; height: 24px; color: #90a47e; margin-bottom: 13px; }
.mode-card h3, .mode-card strong { display: block; font-size: 12px; color: #657b55; margin-bottom: 7px; }
.mode-card p, .mode-card small { font-size: 10px; line-height: 1.8; color: #9ca68e; }
.mode-card.selected, .mode-card[aria-pressed=true] { border-color: #85a16e; background: #eef4e5; }
.mode-card.selected::after { content: '✓'; width: 16px; height: 16px; display: grid; place-items: center; background: #72935c; color: #fff; border-radius: 50%; position: absolute; right: 13px; top: 13px; font-size: 9px; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-footer > p { font-size: 10px; color: #9aa68d; line-height: 1.7; max-width: 370px; }
.form-footer > div { display: flex; gap: 10px; }

/* Onboarding and settings. */
.modal-backdrop { position: fixed; inset: 0; background: #18372665; backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 100; padding: 26px; overflow-y: auto; }
.modal { width: 100%; max-width: 680px; background: #fafbf7; border: 1px solid #ffffffc0; border-radius: 18px; padding: 36px; position: relative; box-shadow: 0 25px 100px #0d2e3250; max-height: calc(100dvh - 52px); overflow: auto; animation: modal-in .23s ease-out; }
.modal h1 { font-size: 27px; letter-spacing: -1px; margin: 8px 0 12px; }
.modal h2 { font-size: 23px; letter-spacing: -.8px; margin-bottom: 12px; }
.modal > p { font-size: 12px; line-height: 1.8; color: #94a087; margin-bottom: 25px; }
.modal-close { position: absolute; right: 17px; top: 17px; width: 30px; height: 30px; background: #eff3e8; color: #9ba78e; display: grid; place-items: center; border-radius: 50%; }
.modal-close:hover { color: var(--green); background: #e2ebd7; }
.modal-close svg { width: 16px; height: 16px; }
.onboarding { max-width: 660px; margin: 48px auto; }
.onboarding > .brand { margin-bottom: 33px; }
.onboarding h1 { font-size: 29px; letter-spacing: -1px; }
.onboarding > p { font-size: 12px; color: #8c9b80; line-height: 1.75; margin: 14px 0 28px; }
.progress-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 26px; }
.progress-steps span { width: 30px; height: 4px; background: #dfe7d5; border-radius: 8px; }
.progress-steps span.active, .progress-steps span.done { background: #6e9358; }
.progress-steps small { font-size: 9px; color: #9ca98e; margin-left: 6px; }
.settings-section { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 25px; margin-bottom: 20px; }
.settings-section .form-grid { margin-top: 20px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #edf0e7; }
.toggle-row:last-child { border-bottom: 0; padding-bottom: 0; }
.toggle-row:first-of-type { padding-top: 8px; }
.toggle-row strong { font-size: 11px; font-weight: 650; color: #627758; display: block; margin-bottom: 5px; }
.toggle-row p, .toggle-row small { font-size: 10px; color: #9ca98e; line-height: 1.7; max-width: 460px; }
.toggle { width: 36px; height: 21px; border-radius: 30px; background: #dfe6d7; position: relative; flex-shrink: 0; padding: 2px; transition: background .2s; }
.toggle::before { content: ''; display: block; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #3b592320; transition: transform .2s; }
.toggle.on, .toggle[aria-checked=true] { background: #668b50; }
.toggle.on::before, .toggle[aria-checked=true]::before { transform: translateX(15px); }
.data-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.settings-section .button { font-size: 11px; min-height: 38px; }
.consumption-value { font-size: 27px; font-family: 'Manrope', sans-serif; font-weight: 750; color: #416936; margin-top: 15px; }
.consumption-value small { font-size: 11px; font-family: 'DM Sans', sans-serif; font-weight: 450; color: #9fac92; }
.settings-note { padding: 12px 15px; background: #f2f5ed; border-radius: 8px; font-size: 10px; line-height: 1.8; color: #98a78b; margin-top: 20px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin: 20px 0; }
.summary-card h2 { font-size: 17px; letter-spacing: -.5px; margin-bottom: 17px; }
.summary-card h3 { font-size: 13px; margin: 22px 0 10px; }
.summary-card p, .summary-card li { font-size: 12px; line-height: 1.8; color: #87967a; }
.summary-card ul { padding-left: 19px; }
.summary-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin: 25px 0; }
.summary-stat { background: #eff4e7; border: 1px solid #e1ead6; border-radius: 10px; padding: 19px; text-align: center; }
.summary-stat strong { display: block; font-family: 'Manrope', sans-serif; color: #547b3f; font-size: 25px; font-weight: 750; letter-spacing: -.8px; }
.summary-stat span, .summary-stat small { font-size: 10px; color: #90a07f; margin-top: 7px; display: block; }
.summary-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.history-card { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 21px; margin-bottom: 14px; }
.history-card header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.history-card h2, .history-card h3 { font-size: 14px; letter-spacing: -.3px; }
.history-card p { font-size: 11px; color: #95a087; margin-top: 9px; line-height: 1.7; }
.history-meta { display: flex; gap: 15px; flex-wrap: wrap; margin: 12px 0; color: #9ba98d; font-size: 9px; }
.history-card details { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.history-card summary { font-size: 10px; cursor: pointer; color: #6a8856; }
.history-card pre { padding: 15px; background: var(--navy); color: #a9c0b2; border-radius: 8px; white-space: pre-wrap; font-size: 11px; line-height: 1.8; overflow-x: auto; }
.result-badge { display: inline-flex; padding: 5px 8px; color: #738a5d; background: #eff4e5; border: 1px solid #e0e9d4; border-radius: 6px; font-size: 9px; white-space: nowrap; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%,15px); border: 1px solid #cad9be; background: #f7fbef; padding: 14px 20px; border-radius: 11px; box-shadow: 0 12px 36px #25382320; font-size: 12px; color: #577845; z-index: 150; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

/* The live study room keeps content, practice, and controls in view. */
.study-room { display: flex; flex-direction: column; min-height: 0; height: calc(100dvh - 88px); padding-top: 23px; }
.room-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 21px; }
.room-heading { display: flex; gap: 10px; align-items: center; }
.room-heading h1, .room-heading h2 { font-size: 21px; letter-spacing: -.8px; line-height: 1.3; }
.room-heading p { color: #94a387; font-size: 10px; margin-top: 5px; }
.room-heading .tag { margin-left: 5px; }
.room-status { display: flex; gap: 13px; align-items: center; color: #879d73; font-size: 10px; }
.room-status > span { display: inline-flex; align-items: center; gap: 6px; }
.room-status .connection-dot, .status-dot { width: 6px; height: 6px; border-radius: 50%; background: #7caa63; display: inline-block; }
.demo-label { font-size: 9px; background: #fff1e7; color: #ac805b; padding: 5px 8px; border: 1px solid #f0ddcd; border-radius: 5px; white-space: nowrap; }
.room-timer { font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 5px; color: #91a281; font-size: 10px; }
.room-timer svg { width: 13px; height: 13px; }
.room-tabs { display: none; }
.room-layout { display: grid; grid-template-columns: minmax(260px,var(--split,42%)) minmax(0,1fr); gap: 15px; flex: 1; min-height: 0; }
.conversation-panel, .practice-panel { border: 1px solid #dce5d2; border-radius: 13px; overflow: hidden; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.conversation-panel > header, .conversation-header, .panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #e5ecdd; gap: 10px; }
.conversation-panel > header h2, .conversation-header h2, .panel-header h2 { font-size: 11px; font-family: 'DM Sans', sans-serif; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.conversation-panel > header h2 svg, .conversation-header h2 svg, .panel-header h2 svg { width: 15px; height: 15px; color: #8ba473; }
.voice-state { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; background: #f1f6e9; color: #89a575; border-radius: 5px; font-size: 8px; }
.voice-state::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #87a96e; }
.voice-state.listening::before { animation: breathe 1.3s infinite; }
.voice-state.paused { background: #f4f2ec; color: #a29881; }
.voice-state.paused::before { background: #b6a889; }
.room-chat-log { overflow-y: auto; flex: 1; min-height: 0; padding: 22px 18px; scrollbar-width: thin; scrollbar-color: #d3dec8 transparent; }
.chat-message { margin-bottom: 20px; display: flex; gap: 9px; align-items: flex-start; }
.chat-message .avatar { width: 25px; height: 25px; font-size: 10px; margin-top: 2px; }
.chat-message .avatar svg { width: 15px; height: 15px; }
.chat-message-content { min-width: 0; flex: 1; }
.chat-message-content .chat-author, .chat-message strong { font-size: 9px; color: #80966c; margin-bottom: 6px; display: block; }
.chat-message p { font-size: 11px; color: #748a62; line-height: 1.85; }
.chat-message .message-body, .chat-message .bubble { font-size: 11px; line-height: 1.85; border-radius: 0 10px 10px 10px; background: #f3f6ee; padding: 12px 13px; color: #728765; }
.chat-message.user { flex-direction: row-reverse; }
.chat-message.user .message-body, .chat-message.user .bubble { background: #f9f5ef; color: #97816b; border-radius: 10px 0 10px 10px; }
.chat-message.user .chat-author, .chat-message.user strong { color: #a1937e; text-align: right; }
.chat-message code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .94em; background: #e5eddb; color: #597247; padding: 2px 4px; border-radius: 4px; }
.chat-message pre { white-space: pre-wrap; font-size: 10px; padding: 10px; background: #e9f0e1; border-radius: 5px; }
.chat-timestamp { font-size: 8px; color: #acb79e; margin-top: 5px; display: block; }
.room-sidebar-note { font-size: 9px; padding: 12px 17px; background: #fbfcf8; color: #a5b09a; line-height: 1.65; border-top: 1px solid #e9eedd; display: flex; gap: 6px; align-items: center; }
.room-sidebar-note svg { width: 12px; height: 12px; }
.room-chat-form { padding: 12px 14px; border-top: 1px solid #e4ebdb; display: flex; gap: 8px; align-items: end; background: white; }
.room-chat-form .chat-input { min-height: 39px; height: 39px; max-height: 100px; padding: 10px 11px; font-size: 10px; background: #f8faf3; border-color: #e1e8d6; border-radius: 7px; }
.room-chat-form button { display: grid; place-items: center; width: 37px; min-height: 37px; border-radius: 7px; color: white; background: var(--green); padding: 0; }
.room-chat-form button svg { width: 16px; height: 16px; }
.activity-card { padding: 18px 20px; background: #fff; border-bottom: 1px solid #e2e9d8; }
.activity-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: 8px; color: #a0b091; }
.activity-card h2, .activity-card h3 { font-size: 13px; line-height: 1.6; color: #4b6540; letter-spacing: -.2px; margin-bottom: 7px; }
.activity-card p { font-size: 10px; line-height: 1.85; color: #90a17e; }
.activity-card .activity-examples, .activity-card pre { background: #f3f7ec; border: 1px solid #e7eddf; color: #80966c; font-size: 9px; line-height: 1.8; border-radius: 6px; padding: 9px 11px; margin: 10px 0 0; white-space: pre-wrap; }
.activity-card details { margin-top: 10px; }
.activity-card summary { cursor: pointer; color: #879c74; font-size: 9px; }
.activity-card ul { padding-left: 15px; font-size: 9px; color: #9aae88; line-height: 1.8; }
.editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #202e32; color: #a0b4a9; padding: 10px 14px; border-bottom: 1px solid #34403d; }
.editor-toolbar > div { display: flex; align-items: center; gap: 6px; }
.editor-toolbar span, .editor-toolbar label { font-size: 9px; }
.editor-toolbar .button { min-height: 27px; padding: 0 9px; font-size: 8px; border-radius: 5px; background: #32443b; color: #a9c49d; border-color: #4a5e43; }
.editor-toolbar .button svg { width: 11px; height: 11px; }
.editor-toolbar .button.primary { background: #95ad76; color: #1c3628; border-color: #95ad76; }
.editor-toolbar .button:hover { background: #415440; }
.editor-toolbar select { min-height: 26px; padding: 4px 7px; width: auto; font-size: 8px; color: #a4b6a7; background: #293a38; border-color: #405146; }
.practice-tabs { display: flex; align-items: center; gap: 5px; padding: 11px 15px; background: #fff; border-bottom: 1px solid #e2e9d8; }
.practice-tabs button { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #9cac8c; background: transparent; padding: 6px 8px; border-radius: 5px; }
.practice-tabs button svg { width: 13px; height: 13px; }
.practice-tabs button.active { color: #627e4e; background: #edf3e3; }
.editor-wrap, .code-editor-wrap { min-height: 140px; flex: 1; display: flex; background: #17252a; overflow: auto; position: relative; }
.line-numbers, .editor-lines { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.9; color: #516d68; padding: 17px 10px 17px 16px; min-width: 42px; white-space: pre; text-align: right; user-select: none; background: #17252a; }
.code-editor, .practice-panel textarea.code-editor, #code-editor { background: #17252a; color: #b8d0bf; border: none; border-radius: 0; padding: 17px 15px 17px 4px; resize: none; min-height: 140px; flex: 1; outline: none; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; line-height: 1.9; tab-size: 2; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.code-editor:focus, #code-editor:focus { outline: none; background: #17252a; }
.code-editor::placeholder { color: #658079; }
.written-response { padding: 18px; flex: 1; min-height: 140px; display: flex; flex-direction: column; }
.written-response label { font-size: 10px; color: #81986d; margin-bottom: 9px; }
.written-response textarea { flex: 1; font-size: 13px; line-height: 1.8; background: #fbfcf7; }
.board-editor { padding: 19px; background-color: #fbfcf7; background-image: radial-gradient(#dce5d4 1px,transparent 1px); background-size: 20px 20px; flex: 1; min-height: 220px; color: #6d8958; }
.board-editor textarea { min-height: 180px; background: #ffffffb5; font-size: 14px; line-height: 1.9; border: 1px solid #d8e2cf; padding: 15px; }
.board-tools { display: flex; gap: 7px; margin-bottom: 12px; }
.board-tools button { background: white; border: 1px solid #dfe8d6; width: 29px; height: 29px; border-radius: 6px; display: grid; place-items: center; }
.board-tools button svg { width: 14px; height: 14px; }
.output-panel { background: #1e2b2e; color: #809d8f; border-top: 1px solid #32423d; padding: 13px 16px; min-height: 83px; max-height: 175px; overflow-y: auto; }
.output-panel h3, .output-panel header { color: #91aa99; text-transform: uppercase; font-size: 8px; font-family: 'DM Sans', sans-serif; letter-spacing: 1px; font-weight: 600; margin-bottom: 9px; }
.output-panel pre { font-size: 10px; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.9; margin: 0; }
.output-panel p { font-size: 10px; line-height: 1.9; }
.output-panel .result-pass { color: #b1ce96; }
.output-panel .result-fail { color: #e1a192; }
.output-panel.light { background: #f4f7ee; color: #96a986; border-color: #e1e9d8; }
.output-panel.light h3 { color: #789167; }
.room-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 18px; flex-shrink: 0; }
.room-controls > div { display: flex; align-items: center; gap: 9px; }
.room-controls .button { min-height: 37px; padding: 0 13px; font-size: 9px; }
.room-controls .button svg { width: 15px; height: 15px; }
.room-controls .button.mic-on, .room-controls .button.is-active { background: #e3edd7; border-color: #c9d9b6; color: #607f45; }
.room-split-control, .room-font-control { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #9bab8e; }
.room-split-control input { width: 55px; height: 3px; }
.room-font-control button { background: transparent; border: 1px solid #d8e3ca; border-radius: 5px; color: #849970; padding: 3px 5px; font-size: 9px; }
.room-offline { padding: 12px 15px; background: #fff2df; border: 1px solid #f3d8ac; color: #ad8c55; font-size: 10px; border-radius: 8px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.room-offline button { font-size: 10px; background: transparent; text-decoration: underline; color: #ad8c55; }
.room-help-menu { position: relative; }
.room-help-options { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; border: 1px solid #dae5ce; background: #fff; border-radius: 9px; box-shadow: 0 8px 30px #1b432620; min-width: 175px; padding: 6px; }
.room-help-options button { background: transparent; padding: 10px; width: 100%; text-align: left; color: #819b6b; font-size: 10px; border-radius: 5px; }
.room-help-options button:hover { background: #f1f6e9; }

@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes breathe { 0%,100% { opacity: .6; } 50% { opacity: 1; box-shadow: 0 0 0 3px #9fbf8220; } }

@media (min-width: 1440px) {
  .hero { padding-top: 88px; padding-bottom: 93px; gap: 66px; }
  .hero h1 { font-size: 66px; }
  .workspace { padding-left: 54px; padding-right: 54px; }
  .preview-body { min-height: 290px; }
}
@media (max-width: 1100px) {
  .site-header { padding-left: 35px; padding-right: 35px; }
  .hero { padding: 60px 35px 65px; gap: 28px; }
  .hero h1 { font-size: 49px; letter-spacing: -2.6px; }
  .hero-copy > p { font-size: 12px; }
  .hero-actions .button { font-size: 11px; padding: 0 15px; min-height: 43px; }
  .preview-body { min-height: 256px; }
  .preview-chat { padding: 17px 11px; }
  .preview-chat .bubble { font-size: 9px; }
  .preview-editor { padding-left: 11px; padding-right: 11px; }
  .preview-editor .code-lines { font-size: 7px; }
  .floating-note { right: -5px; }
  .subjects-section, .steps-section { padding-left: 35px; padding-right: 35px; }
  .closing-section { margin-left: 35px; margin-right: 35px; }
  .app-shell { grid-template-columns: 196px minmax(0,1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .sidebar > .brand { font-size: 15px; gap: 7px; }
  .sidebar-tip { padding: 13px; }
  .workspace { padding: 0 26px 35px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.4fr) minmax(245px,1fr); gap: 17px; }
  .next-session { padding: 22px; }
  .next-session-art { min-width: 78px; width: 78px; height: 78px; }
  .next-session-art svg { width: 53px; height: 53px; }
  .room-layout { grid-template-columns: minmax(230px,var(--split,42%)) minmax(0,1fr); gap: 12px; }
  .room-split-control { display: none; }
  .room-controls .button { padding: 0 10px; }
  .room-status { gap: 7px; font-size: 9px; }
}
@media (max-width: 900px) {
  .header-links { gap: 23px; font-size: 11px; }
  .hero { gap: 27px; padding-top: 50px; }
  .hero h1 { font-size: 44px; letter-spacing: -2.4px; }
  .eyebrow { font-size: 8px; margin-bottom: 21px; }
  .hero-copy > p { font-size: 11px; margin-top: 22px; }
  .hero-preview::before { right: -10px; }
  .preview-body { grid-template-columns: 44% 56%; min-height: 228px; }
  .preview-topbar { padding: 11px; font-size: 8px; }
  .preview-status { font-size: 6px; padding: 4px; }
  .preview-chat .bubble { padding: 9px; font-size: 8px; line-height: 1.7; }
  .preview-chat { padding: 15px 9px; }
  .preview-editor .code-lines { font-size: 6.5px; line-height: 2; }
  .code-lines .line-number, .code-lines .num { margin-right: 8px; }
  .preview-editor-top { margin-bottom: 13px; font-size: 7px; }
  .hero-orbit { width: 66px; height: 66px; top: -20px; right: 13px; }
  .floating-note { font-size: 8px; padding: 10px 11px; }
  .floating-note b { font-size: 9px; }
  .subject-card { padding: 22px; }
  .subject-card h3 { font-size: 15px; }
  .subject-card p { font-size: 10px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading p { font-size: 10px; max-width: 260px; }
  .app-shell { grid-template-columns: 176px minmax(0,1fr); }
  .sidebar > .brand { font-size: 13px; padding: 0 6px; }
  .sidebar .brand-mark, .sidebar .brand-mark svg { width: 24px; height: 24px; }
  .nav-link { padding: 11px 10px; font-size: 11px; gap: 9px; }
  .sidebar-tip { font-size: 10px; margin: 0 0 16px; }
  .sidebar-profile { padding-left: 3px; }
  .workspace { padding-left: 22px; padding-right: 22px; }
  .app-topbar { min-height: 73px; }
  .page-heading { margin-top: 29px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 11px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 18px; }
  .stat-card > svg { right: 18px; top: 18px; }
  .stat-card strong { font-size: 25px; }
  .progress-card { margin-top: 9px; }
  .study-room { height: calc(100dvh - 73px); padding-top: 18px; }
  .room-heading h1, .room-heading h2 { font-size: 17px; }
  .room-header { align-items: start; padding-bottom: 17px; }
  .room-status { flex-wrap: wrap; justify-content: flex-end; max-width: 150px; }
  .room-layout { grid-template-columns: minmax(210px,var(--split,43%)) minmax(0,1fr); gap: 10px; }
  .conversation-panel > header, .panel-header { padding: 13px; }
  .room-chat-log { padding: 15px 12px; }
  .chat-message { gap: 7px; }
  .chat-message .message-body, .chat-message .bubble { font-size: 10px; padding: 10px; }
  .chat-message .avatar { width: 22px; height: 22px; }
  .activity-card { padding: 14px; }
  .activity-card p { font-size: 9px; }
  .activity-card h2 { font-size: 11px; }
  .editor-toolbar { padding: 9px 10px; }
  .editor-toolbar > span { display: none; }
  .code-editor, #code-editor, .practice-panel textarea.code-editor { font-size: 10px; }
  .line-numbers { font-size: 10px; min-width: 30px; padding-left: 10px; }
  .room-controls { gap: 7px; }
  .room-controls > div { gap: 6px; }
  .room-controls .button { font-size: 8px; padding: 0 9px; min-height: 33px; gap: 5px; }
  .room-font-control { display: none; }
}
@media (max-width: 760px) {
  .site-header { padding: 22px 25px; }
  .brand { font-size: 17px; }
  .header-links { display: none; }
  .header-actions .button { min-height: 35px; padding: 0 11px; font-size: 10px; }
  .header-actions .button.ghost { display: none; }
  .hero { grid-template-columns: 1fr; padding: 46px 25px 45px; gap: 46px; }
  .hero-copy { max-width: 560px; }
  .eyebrow { font-size: 9px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(43px,8.2vw,61px); line-height: 1.13; letter-spacing: -2.8px; max-width: 600px; }
  .hero-copy > p { font-size: 13px; max-width: 460px; }
  .hero-actions .button { font-size: 12px; padding: 0 19px; min-height: 44px; }
  .hero-note { font-size: 9px !important; }
  .hero-preview { max-width: 535px; padding-left: 6px; padding-right: 6px; justify-self: center; }
  .hero-preview::before { right: -5px; }
  .preview-body { grid-template-columns: 46% 54%; min-height: 276px; }
  .preview-topbar { font-size: 10px; padding: 14px; }
  .preview-status { font-size: 8px; padding: 4px 7px; }
  .preview-chat { padding: 21px 15px; }
  .preview-chat .bubble { font-size: 10px; padding: 12px; }
  .preview-editor .code-lines { font-size: 8px; line-height: 1.95; }
  .preview-editor-top { font-size: 8px; margin-bottom: 17px; }
  .floating-note { right: -3px; font-size: 9px; padding: 11px 14px; }
  .floating-note b { font-size: 10px; }
  .hero-orbit { width: 76px; height: 76px; top: -19px; right: 20px; }
  .trusted-note { padding: 15px 25px 24px; font-size: 9px; gap: 15px; flex-wrap: wrap; }
  .subjects-section, .steps-section { padding: 44px 25px; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 26px; }
  .section-heading h2 { font-size: 29px; max-width: 410px; }
  .section-heading p { max-width: 470px; font-size: 11px; }
  .subject-grid { gap: 11px; }
  .subject-card { padding: 20px 17px; }
  .subject-icon { margin-bottom: 18px; width: 34px; height: 34px; }
  .subject-card h3 { font-size: 13px; }
  .subject-card p { font-size: 9px; }
  .subject-card .card-arrow { right: 16px; bottom: 20px; width: 16px; height: 16px; }
  .steps-section { padding-bottom: 55px; margin-top: 0; }
  .steps-grid { gap: 20px; }
  .step-card { padding: 0; }
  .step-card h3 { font-size: 12px; }
  .step-card p { font-size: 10px; }
  .closing-section { margin: 0 25px 38px; padding: 30px; flex-direction: column; align-items: start; gap: 23px; }
  .closing-section h2 { font-size: 26px; }
  .closing-section p { font-size: 11px; }
  .site-footer { padding: 23px 25px; flex-wrap: wrap; gap: 15px; }
  .site-footer > p { order: 3; width: 100%; font-size: 9px; }
  .site-footer .brand { font-size: 14px; }
  .footer-links { font-size: 9px; gap: 14px; }
  .app-shell { display: block; padding-bottom: 71px; }
  .sidebar { height: 65px; position: fixed; top: auto; bottom: 0; width: 100%; z-index: 40; padding: 5px 7px; border-right: 0; border-top: 1px solid #dce5d0; background: #f7f9f1f5; backdrop-filter: blur(12px); }
  .sidebar > .brand, .sidebar-caption, .sidebar-bottom { display: none; }
  .sidebar-nav { flex-direction: row; gap: 4px; margin-top: 0; justify-content: space-around; }
  .nav-link { width: auto; flex: 1; padding: 7px 4px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 8px; line-height: 1.2; }
  .nav-link svg { width: 18px; height: 18px; }
  .nav-link.active { background: #e9f0dd; }
  .workspace { padding: 0 22px 26px; }
  .app-topbar { min-height: 64px; }
  .app-topbar > p { font-size: 10px; }
  .app-topbar .topbar-date { font-size: 9px; }
  .page-heading { margin: 27px 0 24px; align-items: flex-start; }
  .page-heading h1 { font-size: 25px; letter-spacing: -1px; }
  .page-heading p { max-width: 330px; font-size: 10px; }
  .page-heading .button { min-height: 36px; padding: 0 11px; font-size: 9px; gap: 6px; }
  .page-heading .button svg { width: 14px; height: 14px; }
  .stat-grid { gap: 10px; margin: 20px 0; }
  .stat-card { padding: 17px 14px; }
  .stat-card strong { font-size: 25px; }
  .stat-card > svg { width: 16px; height: 16px; right: 14px; top: 16px; }
  .stat-card small, .stat-card p { font-size: 9px; max-width: 75%; }
  .stat-card > span { font-size: 8px; }
  .next-session { min-height: 195px; padding: 23px; }
  .next-session h2 { font-size: 22px; }
  .next-session-art { width: 90px; height: 90px; min-width: 90px; }
  .profile-banner { padding: 15px; gap: 9px; font-size: 10px; }
  .profile-banner .button { font-size: 9px; min-height: 30px; }
  .form-card, .settings-section { padding: 22px; }
  .form-grid { gap: 19px 15px; }
  .mode-card { padding: 14px; }
  .mode-card > svg { width: 20px; height: 20px; }
  .mode-card p { font-size: 9px; }
  .modal-backdrop { padding: 18px; }
  .modal { padding: 29px 25px; max-height: calc(100dvh - 36px); }
  .onboarding { margin: 28px 22px; }
  .toast { bottom: 84px; }
  .study-room { height: calc(100dvh - 135px); padding-top: 18px; }
  .room-header { gap: 12px; padding-bottom: 15px; }
  .room-heading h1, .room-heading h2 { font-size: 19px; }
  .room-heading p { font-size: 9px; }
  .room-status { max-width: 155px; font-size: 8px; gap: 6px; }
  .demo-label { font-size: 8px; }
  .room-tabs { display: flex; gap: 7px; padding: 4px; border: 1px solid #dce6d0; border-radius: 9px; background: #eef3e5; margin-bottom: 13px; }
  .room-tabs button { flex: 1; padding: 8px 12px; border-radius: 6px; background: transparent; color: #a0af90; font-size: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .room-tabs button svg { width: 14px; height: 14px; }
  .room-tabs button.active, .room-tabs button[aria-selected=true] { background: #fff; box-shadow: 0 2px 5px #283d2310; color: #718f5c; }
  .room-layout { display: block; flex: 1; min-height: 0; }
  .conversation-panel, .practice-panel { height: 100%; }
  .is-hidden-mobile { display: none !important; }
  .room-chat-log { padding: 20px 17px; }
  .chat-message .message-body, .chat-message .bubble { font-size: 12px; padding: 12px; }
  .chat-message .avatar { width: 27px; height: 27px; }
  .chat-message strong { font-size: 10px; }
  .room-sidebar-note { font-size: 9px; }
  .room-chat-form .chat-input { font-size: 11px; }
  .activity-card { padding: 15px 18px; }
  .activity-card h2 { font-size: 13px; }
  .activity-card p { font-size: 10px; }
  .activity-meta { font-size: 8px; }
  .editor-toolbar { padding: 11px 15px; }
  .editor-toolbar > span { display: block; }
  .editor-toolbar .button { font-size: 9px; min-height: 28px; }
  .code-editor, #code-editor, .practice-panel textarea.code-editor { font-size: 12px; }
  .line-numbers { font-size: 12px; min-width: 37px; }
  .output-panel { min-height: 69px; max-height: 105px; }
  .room-controls { padding: 13px 0 8px; }
  .room-controls .button { font-size: 9px; min-height: 36px; padding: 0 11px; }
  .room-controls .button svg { width: 14px; height: 14px; }
  .room-controls .end-session { background: #f5f0e8; border-color: #e8dfd2; color: #a3927a; }
}
@media (max-width: 500px) {
  .hero { padding-top: 33px; padding-bottom: 39px; gap: 36px; }
  .hero h1 { font-size: 44px; letter-spacing: -2.35px; }
  .hero-copy > p { font-size: 12px; line-height: 1.85; margin-top: 22px; }
  .hero-actions { gap: 10px; margin-top: 26px; }
  .hero-actions .button { font-size: 11px; padding: 0 15px; min-height: 43px; }
  .hero-preview { padding: 18px 0 20px; }
  .hero-preview::before { width: 94%; height: 84%; right: -6px; top: 29px; }
  .preview-topbar { padding: 11px; font-size: 8px; }
  .preview-status { font-size: 6px; padding: 4px 5px; }
  .preview-body { min-height: 241px; grid-template-columns: 44% 56%; }
  .preview-chat { padding: 17px 10px; }
  .preview-chat .bubble { font-size: 8px; padding: 10px; }
  .preview-editor { padding-left: 10px; padding-right: 10px; }
  .preview-editor-top { font-size: 7px; margin-bottom: 12px; }
  .preview-editor .code-lines { font-size: 6.5px; }
  .preview-test, .preview-result { font-size: 7px; margin-top: 24px; }
  .floating-note { right: -3px; padding: 9px 11px; bottom: 0; }
  .floating-note b { font-size: 9px; }
  .floating-note small { font-size: 7px; }
  .hero-orbit { width: 66px; height: 66px; border-width: 6px; top: -20px; right: 17px; }
  .trusted-note { gap: 9px 16px; padding-bottom: 25px; font-size: 8px; }
  .trusted-note svg { width: 11px; height: 11px; }
  .subjects-section { padding-top: 36px; }
  .subject-grid { grid-template-columns: 1fr; gap: 12px; }
  .subject-card { padding: 23px; }
  .subject-icon { margin-bottom: 18px; width: 37px; height: 37px; }
  .subject-card h3 { font-size: 17px; }
  .subject-card p { font-size: 11px; max-width: 330px; }
  .subject-card .text-link, .subject-card > a, .subject-card > button { font-size: 10px; margin-top: 18px; }
  .subject-card .card-arrow { width: 20px; height: 20px; right: 22px; bottom: 23px; }
  .section-heading h2 { font-size: 27px; letter-spacing: -1.1px; }
  .steps-section .section-heading { text-align: left; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .step-card { display: grid; grid-template-columns: 42px 1fr; gap: 0 17px; text-align: left; }
  .step-number { grid-row: 1 / span 2; margin: 0; width: 35px; height: 35px; }
  .step-card h3 { font-size: 13px; margin: 1px 0 7px; }
  .step-card p { margin: 0; max-width: none; font-size: 11px; }
  .step-card:not(:last-child)::after { display: none; }
  .closing-section { padding: 28px 25px; border-radius: 13px; }
  .closing-section h2 { font-size: 24px; line-height: 1.4; }
  .site-footer .brand { font-size: 13px; }
  .footer-links { gap: 12px; font-size: 8px; }
  .workspace { padding-left: 17px; padding-right: 17px; }
  .page-heading { flex-wrap: wrap; gap: 16px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 10px; }
  .page-heading > .button { font-size: 10px; min-height: 37px; }
  .stat-grid { gap: 8px; }
  .stat-card { padding: 15px 11px; border-radius: 10px; }
  .stat-card > svg { width: 14px; height: 14px; right: 10px; top: 14px; }
  .stat-card strong { font-size: 23px; margin: 10px 0 4px; }
  .stat-card small, .stat-card p { font-size: 8px; line-height: 1.5; max-width: 65%; }
  .stat-card > span { font-size: 7px; line-height: 1.5; }
  .next-session { padding: 21px; gap: 13px; }
  .next-session h2 { font-size: 21px; }
  .next-session p { font-size: 10px; }
  .next-session-art { min-width: 65px; width: 65px; height: 65px; }
  .next-session-art svg { width: 45px; height: 45px; }
  .next-session .section-kicker { font-size: 8px; }
  .recent-item { padding: 13px; gap: 10px; }
  .recent-item h3, .recent-item strong { font-size: 10px; }
  .recent-item p { font-size: 8px; }
  .recent-item > span { font-size: 8px; }
  .profile-banner { align-items: start; }
  .profile-banner .button { margin-left: auto; padding-left: 8px; padding-right: 8px; }
  .profile-banner > svg { width: 17px; height: 17px; }
  .form-card, .settings-section { padding: 21px 18px; border-radius: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .field.full { grid-column: auto; }
  .mode-grid { grid-template-columns: 1fr; gap: 10px; }
  .mode-card { padding: 16px; display: grid; grid-template-columns: 25px 1fr; gap: 0 13px; }
  .mode-card > svg { grid-row: 1 / span 2; margin-top: 2px; margin-bottom: 0; }
  .mode-card h3 { font-size: 12px; margin-bottom: 5px; }
  .mode-card p { font-size: 10px; }
  .choice-card { min-width: 80px; padding: 11px; font-size: 10px; }
  .form-footer { align-items: start; flex-direction: column; gap: 17px; }
  .form-footer > div { width: 100%; justify-content: space-between; }
  .form-footer > .button { align-self: flex-end; }
  .modal { padding: 28px 20px; border-radius: 14px; }
  .modal h1 { font-size: 24px; max-width: 280px; }
  .modal > p { font-size: 11px; }
  .onboarding > .brand { margin-bottom: 25px; }
  .onboarding h1 { font-size: 26px; }
  .summary-grid { gap: 8px; }
  .summary-stat { padding: 16px 9px; }
  .summary-stat strong { font-size: 22px; }
  .summary-stat span { font-size: 8px; }
  .summary-card { padding: 22px 19px; }
  .summary-card p, .summary-card li { font-size: 11px; }
  .summary-actions { flex-direction: column; }
  .history-card { padding: 18px; }
  .history-card h2 { font-size: 12px; }
  .toggle-row { gap: 15px; }
  .toggle-row p { font-size: 9px; }
  .room-header { flex-wrap: wrap; gap: 10px; }
  .room-heading { width: 100%; }
  .room-heading h1, .room-heading h2 { font-size: 18px; }
  .room-status { max-width: none; width: 100%; justify-content: space-between; gap: 8px; }
  .room-timer { font-size: 9px; }
  .study-room { padding-top: 15px; }
  .room-tabs { margin-bottom: 10px; }
  .room-controls > div { gap: 5px; }
  .room-controls .button { font-size: 8px; min-height: 35px; padding: 0 8px; gap: 5px; }
  .room-controls .button svg { width: 13px; height: 13px; }
  .room-controls .button .control-label { display: none; }
  .room-controls .button[title] { padding: 0 11px; }
  .activity-card { max-height: 160px; overflow-y: auto; padding: 13px 15px; }
  .activity-card h2 { font-size: 12px; }
  .activity-card p { font-size: 9px; }
  .code-editor, #code-editor, .practice-panel textarea.code-editor { font-size: 11px; }
  .line-numbers { font-size: 11px; }
  .editor-toolbar { gap: 7px; padding: 9px 11px; }
  .editor-toolbar .button { font-size: 8px; padding: 0 7px; }
  .editor-toolbar span { font-size: 8px; }
  .editor-toolbar > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Details shared by the landing preview and the real practice flow. */
.brand-light { font-weight: 500; margin-left: 3px; }
.site-header > .button { font-size: 11px; min-height: 38px; padding: 0 14px; }
.hero h1 { position: relative; }
.hero h1 em { display: inline; }
.hero h1 em::after { display: none; }
.headline-squiggle { display: block; width: 267px; height: 17px; color: var(--orange); margin: 5px 0 -8px 188px; }
.hero-copy > .hero-note { font-size: 9px; margin-top: 18px; color: #959f89; }
.note-icon { display: grid; place-items: center; width: 14px; height: 14px; background: #eaf0e0; color: #789365; border-radius: 50%; }
.note-icon svg { width: 9px; height: 9px; }
.eyebrow { position: relative; padding: 7px 11px; font-size: 8px; letter-spacing: 1px; }
.eyebrow::before { display: none; }
.eyebrow .status-dot { width: 5px; height: 5px; background: #5d8556; }
.preview-frame { position: relative; z-index: 1; border: 1px solid #dce4d4; border-radius: 13px; background: #fff; box-shadow: 0 16px 35px #2b46281a; overflow: hidden; transform: rotate(-1.5deg); }
.preview-frame .preview-topbar { border: 0; border-bottom: 1px solid #e6ebdf; border-radius: 0; padding: 13px 15px; }
.preview-frame .preview-topbar .tag { margin-left: auto; font-size: 7px; padding: 4px 6px; background: #f2f5ed; color: #8b9e7b; border: 0; }
.preview-frame .preview-menu { color: #b1baA7; font-size: 12px; margin-left: 5px; letter-spacing: 1px; }
.preview-frame .preview-window-title { color: #697c5a; font-size: 9px; gap: 6px; }
.preview-frame .preview-body { border: 0; border-radius: 0; min-height: 315px; }
.preview-chat-label { font-size: 7px; letter-spacing: 1.3px; color: #a3b197; font-weight: 600; margin: 0 0 13px; }
.preview-chat .tutor-avatar { width: 26px; height: 26px; background: #e5eed7; color: #789461; margin-bottom: 10px; }
.preview-chat .tutor-avatar svg { width: 15px; height: 15px; }
.preview-chat .tutor-bubble { background: #f1f6e9; color: #708562; font-size: 9px; line-height: 1.8; padding: 11px; }
.preview-chat .student-bubble { align-self: flex-end; background: #fbf6ed; color: #a08e71; font-size: 9px; line-height: 1.8; padding: 11px; border-radius: 9px 0 9px 9px; max-width: 94%; }
.preview-chat .preview-status { margin-top: auto; border-radius: 0; padding: 0; background: transparent; color: #94a881; font-size: 6px; letter-spacing: -.1px; gap: 4px; line-height: 1.6; }
.preview-chat .preview-status::before { display: none; }
.preview-status .waveform { height: 20px; gap: 2px; padding: 0 2px 0 0; }
.preview-status .waveform i { width: 2px; background: #8fa976; height: 7px; }
.preview-status .waveform i:nth-child(2n) { height: 12px; }
.preview-status .waveform i:nth-child(3n) { height: 17px; }
.editor-caption { height: 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #33423d; color: #819b8e; font-size: 8px; margin-bottom: 15px; }
.editor-caption svg { width: 12px; height: 12px; opacity: .6; }
.preview-editor { display: flex; flex-direction: column; }
.preview-editor .code-lines { font-size: 8px; line-height: 2.1; letter-spacing: -.35px; }
.preview-editor .code-lines div > span:first-child { color: #546e68; margin-right: 6px; display: inline-block; min-width: 9px; font-size: 7px; text-align: right; font-weight: 400; }
.preview-editor .code-lines b { color: #bda5de; font-weight: 500; }
.preview-editor .code-lines em { color: #e2c692; font-style: normal; }
.preview-editor .code-lines i { color: #b4ce93; font-style: normal; }
.code-caret { display: inline-block; width: 1px; height: 11px; background: #c2d4ad; margin-left: 2px; vertical-align: middle; }
.preview-console { border-top: 1px solid #31423a; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; font-size: 7px; color: #92b180; }
.preview-console > span { display: inline-flex; align-items: center; gap: 5px; }
.preview-console > span svg { width: 10px; height: 10px; }
.preview-console .demo-run { min-height: 25px; padding: 0 7px; font-size: 6px; border-radius: 5px; background: #31463a; border: 1px solid #47623f; color: #afd291; gap: 4px; }
.preview-console .demo-run svg { width: 9px; height: 9px; }
.preview-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 11px 15px; background: white; border-top: 1px solid #e8eddf; color: #a3b195; font-size: 7px; }
.preview-bottom > span { display: inline-flex; align-items: center; gap: 5px; }
.preview-bottom svg { width: 10px; height: 10px; }
.preview-bottom .demo-label { font-size: 6px; background: #f5f7ef; border-color: #e9efdf; color: #b0bcA0; padding: 3px 5px; }
.hero-preview .hero-orbit { width: 90px; height: 90px; background: transparent; border: 1px solid #d8dec9; top: -12px; right: -21px; z-index: 0; }
.hero-preview .hero-orbit::after { content: ''; width: 70px; height: 70px; position: absolute; border: 1px solid #d8dec9; border-radius: 50%; top: 15px; left: -10px; }
.hero-preview .mascot { position: absolute; left: -31px; bottom: -5px; z-index: 3; width: 86px; height: 86px; background: transparent; transform: rotate(-10deg); }
.hero-preview .mascot svg { width: 100%; height: 100%; }
.hero-preview .floating-note { display: block; padding: 11px 17px 11px 39px; right: -18px; bottom: -3px; background: #fffbf5; color: #b4a089; font-size: 8px; line-height: 1.7; border-color: #efe5d5; transform: rotate(5deg); }
.hero-preview .floating-note > svg { position: absolute; width: 18px; height: 18px; left: 13px; top: 15px; color: #d0a675; background: transparent; padding: 0; }
.hero-preview .floating-note > strong { font-size: 9px; font-weight: 550; color: #977d5d; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); margin: 0 48px; color: #8c9981; font-size: 10px; }
.hero-bottom > span { display: inline-flex; align-items: center; gap: 7px; }
.hero-bottom > span:first-child { color: #a1ad95; font-size: 8px; letter-spacing: 1px; }
.hero-bottom svg { width: 14px; height: 14px; color: #93a581; }
.subject-card { text-align: left; }
.subject-card.selected { background: #f1f5e9; border-color: #cad9b9; }
.subject-card.selected .subject-icon { background: #e1eacb; }
.card-link { display: flex; align-items: center; justify-content: space-between; font-size: 10px; margin-top: 23px; color: #708b5d; font-weight: 650; }
.card-link svg { width: 15px; height: 15px; }
.how-note { display: flex; gap: 7px; align-items: center; justify-content: center; font-size: 10px; color: #98a58c; margin-top: 40px; }
.how-note svg { width: 13px; height: 13px; }
.closing-section .section-kicker { color: #88a88e; font-size: 8px; }
.footer-link { background: transparent; color: #8e9d7f; font-size: 9px; }
.footer-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sidebar-prompt { padding: 16px; margin-bottom: 25px; color: #8eA180; }
.sidebar-prompt > svg { width: 25px; height: 25px; color: #88a572; margin-bottom: 16px; }
.sidebar-prompt h4 { color: #789468; font-size: 11px; margin-bottom: 8px; }
.sidebar-prompt p { font-size: 10px; line-height: 1.8; }
.profile-button { width: 100%; display: flex; align-items: center; gap: 9px; background: transparent; border-top: 1px solid #dfe7d5; padding: 17px 7px 0; text-align: left; font-size: 10px; color: #657d56; }
.profile-button > span:nth-child(2) { flex: 1; min-width: 0; }
.profile-button small { display: block; color: #9ba98f; font-size: 8px; margin-top: 4px; }
.profile-button > svg { width: 13px; height: 13px; color: #a1b08f; }
.profile-avatar { width: 32px; height: 32px; border: 1px solid #d1dfbe; border-radius: 50%; display: grid; place-items: center; color: #8aa670; background: #e5eddb; }
.profile-avatar svg { width: 17px; height: 17px; }
.nav-active-dot { width: 5px; height: 5px; border-radius: 50%; background: #7e9c67; margin-left: auto; }
.app-topbar > span { font-size: 10px; color: #9aA58d; display: inline-flex; gap: 8px; align-items: center; }
.topbar-leaf { color: #a7bb91; }
.topbar-leaf svg { width: 13px; height: 13px; }
.local-label { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; color: #9eAc91; }
.local-label svg { width: 11px; height: 11px; }
.heading-dot { color: #8caa70; }
.profile-banner > div { display: flex; align-items: center; gap: 10px; }
.profile-banner > div > svg { width: 18px; height: 18px; color: #92aa75; }
.profile-banner > div > span { color: #a0b08e; font-size: 10px; }
.profile-banner strong { display: block; color: #6b8959; margin-top: 4px; font-size: 11px; }
.stat-card > span { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 9px; }
.stat-card > span svg { width: 17px; height: 17px; color: #a2b68c; }
.stat-card strong small { font-family: 'DM Sans', sans-serif; display: block; font-size: 8px; color: #a5b294; font-weight: 400; letter-spacing: 0; margin-top: 7px; }
.next-session .next-meta { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #9bAe86; margin-top: 14px; }
.next-meta svg { width: 12px; height: 12px; }
.next-meta > span { padding: 0 2px; }
.next-session .tag { font-size: 7px; letter-spacing: .7px; color: #8eA474; background: #e1ebd3; border: 0; }
.next-session-art { position: relative; background: transparent; transform: rotate(0); }
.art-code { display: grid; place-items: center; position: relative; z-index: 1; height: 85px; width: 106px; background: #fbfcf4; border: 1px solid #d9e6c9; box-shadow: 0 7px 16px #637d3420; border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 33px; color: #a0b987; transform: rotate(-8deg); }
.art-orbit { position: absolute; width: 130px; height: 130px; border: 1px dashed #bccca8; border-radius: 50%; top: -13px; left: -6px; }
.art-star { position: absolute; top: -13px; right: -5px; color: #cbbb86; font-size: 27px; }
.art-leaf { position: absolute; left: -5px; bottom: -8px; z-index: 2; background: #c3d7a5; width: 37px; height: 37px; border-radius: 13px; display: grid; place-items: center; transform: rotate(12deg); }
.art-leaf svg { width: 19px; height: 19px; }
.recent-item { text-align: left; }
.recent-icon { display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.recent-icon svg { width: 16px; height: 16px; }
.recent-info { flex: 1; min-width: 0; }
.recent-item > svg { background: transparent; color: #a4b295; padding: 0; width: 15px; height: 15px; }
.recent-item .tag { font-size: 8px; flex-shrink: 0; background: #f1f5e9; }
.empty-state h4 { font-size: 11px; color: #8eA178; margin-bottom: 8px; }
.progress-card h3 { font-size: 21px; letter-spacing: -.6px; line-height: 1.45; color: #668853; margin: 0 0 12px; }
.progress-card p { font-size: 10px; color: #a2b193; }
.progress-placeholder { font-size: 10px; line-height: 1.8; color: #a8b49b; background: #f6f8f0; padding: 12px; border: 1px dashed #e4eadb; border-radius: 8px; }
.progress-divider { border-top: 1px solid #e9edde; margin: 23px 0; }
.progress-card > svg { width: 22px; height: 22px; color: #a2ba89; margin-bottom: 13px; }
.progress-card h4 { font-size: 10px; color: #789868; margin-bottom: 9px; }
.progress-card .button { margin-top: 18px; font-size: 9px; min-height: 33px; }
.storage-warning { margin-top: 20px; padding: 15px; border: 1px solid #f0d9b3; background: #fff5e6; color: #b39463; font-size: 11px; line-height: 1.7; border-radius: 8px; }
.history-tools { display: flex; justify-content: flex-end; margin: 0 0 23px; }
.history-tools .field { max-width: 230px; width: 100%; font-size: 10px; }
.history-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.history-card { margin-bottom: 0; }
.history-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.history-card-top .subject-icon { margin: 0; width: 33px; height: 33px; }
.history-card h3 { font-size: 15px; color: #678854; }
.history-card-stats { display: flex; gap: 17px; color: #a3b28e; font-size: 9px; margin: 16px 0; }
.history-actions { border-top: 1px solid #e8efde; padding-top: 15px; display: flex; gap: 7px; justify-content: space-between; }
.history-actions .button { font-size: 9px; min-height: 32px; padding: 0 10px; }
.settings-section > h3 { color: #637e52; font-size: 14px; margin-bottom: 17px; }
.settings-section > p { font-size: 11px; color: #9cae87; }
.settings-form { max-width: 760px; }
.data-section { max-width: 760px; margin-top: 30px; }
.budget-status { padding: 18px; background: #f6f8f1; border: 1px solid #e9efdf; border-radius: 10px; margin-bottom: 20px; }
.budget-status .tag { font-size: 8px; }
.budget-status strong { display: block; color: #779360; font-size: 13px; margin: 13px 0 9px; }
.budget-status p { font-size: 10px; color: #a1b08f; line-height: 1.8; }
.budget-field { max-width: 270px; font-size: 11px; color: #7f9868; }
.toggle { display: block; padding: 0; background: transparent; cursor: pointer; }
.toggle::before { display: none; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; inset: 0; cursor: pointer; }
.toggle > span:not(.sr-only) { display: block; width: 36px; height: 21px; background: #dfe6d7; border-radius: 30px; padding: 2px; transition: background .2s; pointer-events: none; }
.toggle > span:not(.sr-only)::before { content: ''; display: block; width: 17px; height: 17px; background: white; border-radius: 50%; box-shadow: 0 1px 3px #3b592320; transition: transform .2s; }
.toggle input:checked + span { background: #7b9b62; }
.toggle input:checked + span::before { transform: translateX(15px); }
.toggle input:focus-visible + span { outline: 3px solid #aec690; outline-offset: 3px; }
.modal .field { font-size: 11px; color: #758d62; margin-top: 22px; }
.modal .form-grid { margin-top: 21px; }
.modal .form-grid .field { margin-top: 0; }
.modal form > p { font-size: 11px; color: #9fae90; line-height: 1.8; margin-top: 10px; }
.modal form > h2 { font-size: 25px; color: #355e30; margin-bottom: 13px; }
.modal .form-footer .button { font-size: 11px; min-height: 42px; }
.modal.onboarding { margin: 0; }
.modal .progress-steps { gap: 17px; margin-bottom: 31px; flex-wrap: wrap; }
.modal .progress-steps > span { display: flex; align-items: center; gap: 7px; background: transparent; height: auto; width: auto; font-size: 9px; color: #b4c0a6; }
.modal .progress-steps > span.active { color: #78915f; background: transparent; }
.modal .progress-steps b { font-size: 8px; font-weight: 500; width: 19px; height: 19px; border-radius: 50%; border: 1px solid #dee7d4; display: grid; place-items: center; background: #f0f5e8; color: #acbb99; }
.modal .progress-steps > span.active b { color: #709354; border-color: #c9dcb2; background: #e2eed4; }
.subject-choices { margin-top: 21px; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card:has(input:checked) { border-color: #a3bd87; color: #77965a; background: #f1f6e7; }
.choice-card:has(input:focus-visible) { outline: 3px solid #aec690; outline-offset: 3px; }
.field-label { display: block; color: #758d62; font-size: 11px; margin: 24px 0 11px; }
.mode-card input { position: absolute; opacity: 0; }
.mode-card:has(input:checked) { border-color: #a3bd87; background: #f0f6e7; }
.mode-card:has(input:focus-visible) { outline: 3px solid #aec690; outline-offset: 3px; }
.mode-card:has(input:checked)::after { content: '✓'; display: grid; place-items: center; position: absolute; width: 13px; height: 13px; border-radius: 50%; top: 10px; right: 10px; background: #8aa56f; color: white; font-size: 8px; }
.onboarding-note { display: flex; align-items: start; gap: 10px; font-size: 10px; color: #a1b08e; line-height: 1.9; background: #f2f6e9; border: 1px solid #e4ebd8; border-radius: 8px; padding: 14px; margin-top: 22px; }
.onboarding-note svg { width: 16px; height: 16px; color: #9eb488; margin-top: 2px; }
.review-tabs { display: flex; gap: 8px; margin: 24px 0; }
.review-modal h4 { font-size: 11px; color: #78955f; margin: 20px 0 12px; }
.review-modal #review-work > p, .review-message > p { font-size: 11px; line-height: 1.9; color: #96a781; }
.review-code { background: #20332e; border-radius: 9px; color: #a9c49b; padding: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; font-size: 11px; line-height: 1.9; overflow-x: auto; }
.review-message { border-bottom: 1px solid #e5ecda; padding: 16px 0; }
.review-message strong { font-size: 10px; color: #6d8c53; display: block; margin-bottom: 8px; }
.review-test { padding: 8px 11px; background: #f0f5e7; margin-top: 7px; border-radius: 6px; font-size: 10px; }
.summary-page { max-width: 800px; margin: auto; padding-top: 26px; }
.summary-celebration { width: 52px; height: 52px; display: grid; place-items: center; background: #e5efd6; border: 1px solid #d6e5c3; border-radius: 17px; color: #8cad6b; }
.summary-celebration svg { width: 27px; height: 27px; }
.summary-page .page-heading { margin-top: 22px; }
.summary-stat strong > span { display: inline; font-family: 'DM Sans', sans-serif; font-size: 12px; margin: 0 0 0 4px; }
.summary-stat p { font-size: 9px; color: #a2b68b; margin-top: 9px; }
.summary-card > h3 { font-size: 15px; margin-top: 0; color: #6d8e56; }
.summary-card > p { margin-top: 17px; font-size: 11px; color: #99ac83; }
.summary-card > h4 { margin-top: 23px; font-size: 11px; color: #7c9b63; }
.summary-results { margin-top: 13px; }
.review-result { display: flex; align-items: start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1e4; font-size: 10px; color: #9db388; line-height: 1.8; }
.review-result .result-badge { flex-shrink: 0; padding: 4px 7px; font-size: 8px; }
.review-result .result-badge.pending { color: #b5a16f; background: #fbf7e9; border-color: #f1e8c9; }
.about-list { padding-left: 18px; color: #98ab81; font-size: 11px; line-height: 1.9; margin: 22px 0; }
.about-list li { margin-bottom: 10px; }
body.large-text .workspace { font-size: 17px; }
body.large-text .workspace p { font-size: 14px; }
body.large-text .workspace .field { font-size: 13px; }

/* Shared native room buttons and syntax highlighting. */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid #dbe5cf; color: #849f6a; background: #f8faf3; border-radius: 7px; padding: 9px 13px; min-height: 35px; font-size: 10px; font-weight: 550; transition: background .18s; white-space: nowrap; }
.btn:hover { background: #ecf3e0; }
.btn-primary { color: #fff; border-color: var(--green); background: var(--green); }
.btn-primary:hover { background: #103c2c; }
.btn-secondary { background: transparent; color: #85a469; }
.room-heading { flex-direction: column; align-items: start; gap: 4px; }
.room-eyebrow { color: #9caf89; font-size: 7px; letter-spacing: 1.3px; }
.room-context-bar { display: flex; gap: 14px; align-items: center; font-size: 9px; color: #a1b58b; padding: 0 0 13px; }
.room-context-bar > span { display: flex; align-items: center; gap: 5px; }
.room-context-bar svg { width: 12px; height: 12px; }
.connection-status { display: inline-flex; align-items: center; gap: 5px; color: #8fad74; font-size: 8px; }
.connection-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #96b97a; }
.mode-chip { padding: 4px 7px; border-radius: 4px; background: #eaf2df; color: #84a16a; font-size: 8px; }
.draft-status { color: #a3b58e; font-size: 8px; display: flex; align-items: center; gap: 5px; }
.live-badge { display: flex; align-items: center; gap: 5px; color: #86a46c; font-size: 7px; background: #f0f7e6; padding: 5px 7px; border-radius: 5px; }
.live-badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #93b875; }
.tutor-message, .user-message { padding-bottom: 18px; display: flex; gap: 9px; align-items: start; }
.tutor-message .avatar { width: 25px; height: 25px; background: #e7f1d9; color: #88a96b; font-size: 10px; }
.tutor-message .avatar svg { width: 16px; height: 16px; }
.tutor-message > div:last-child, .user-message > div:last-child { min-width: 0; flex: 1; }
.message-author { font-size: 8px; color: #a0b58b; margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.message-author span { font-size: 7px; color: #b5c3a5; }
.message-text { padding: 12px 13px; border-radius: 0 9px 9px 9px; background: #f3f7ee; color: #8ba376; font-size: var(--room-font-size,12px); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.user-message { flex-direction: row-reverse; margin-left: 22px; }
.user-message .message-text { border-radius: 9px 0 9px 9px; color: #aa977c; background: #faf6ef; }
.user-message .message-author { color: #b19f84; }
.user-message .avatar { width: 25px; height: 25px; font-size: 10px; color: #c2a682; background: #f6ecdc; }
.room-chat-form .btn { width: 37px; min-height: 37px; padding: 0; border-color: var(--green); }
.room-chat-form .btn svg { width: 16px; height: 16px; }
.practice-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.activity-examples { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #9aaf80; font-size: 9px; background: #f4f8ec; border-radius: 6px; padding: 9px 11px; margin-top: 10px; line-height: 1.8; white-space: pre-wrap; }
.activity-constraints { color: #acba96; font-size: 8px; line-height: 1.8; margin-top: 9px; }
.editor-wrap { position: relative; }
.editor-gutter { position: relative; z-index: 1; width: 43px; flex-shrink: 0; padding: 17px 10px 17px 0; background: #17252a; color: #58716b; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: var(--room-font-size,12px); line-height: 1.9; text-align: right; white-space: pre; user-select: none; overflow: hidden; }
.code-editor, #code-editor, .practice-panel textarea.code-editor { font-size: var(--room-font-size,12px); color: #b8d0bf; padding: 17px 15px 17px 4px; position: relative; z-index: 2; }
.editor-syntax { position: absolute; left: 43px; right: 0; top: 0; bottom: 0; z-index: 1; pointer-events: none; margin: 0; padding: 17px 15px 17px 4px; color: #b8d0bf; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: var(--room-font-size,12px); line-height: 1.9; tab-size: 2; white-space: pre; overflow: hidden; }
textarea.code-editor.syntax-enabled, #code-editor.syntax-enabled, .practice-panel textarea.code-editor.syntax-enabled { color: transparent; caret-color: #cfe4d3; background: transparent; }
textarea.code-editor.syntax-enabled:focus { background: transparent; }
textarea.code-editor.syntax-enabled::selection { background: #81a38755; color: transparent; }
.syntax-comment { color: #73998a; }
.syntax-string { color: #b0c98d; }
.syntax-keyword { color: #b89dde; }
.syntax-number { color: #dfbc7d; }
.output-footnote { font-size: 8px !important; color: #6d897b; line-height: 1.8; margin-top: 9px; }
.test-results { display: flex; flex-direction: column; gap: 5px; }
.test-result { display: flex; align-items: center; gap: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; color: #92b286; }
.test-result svg { width: 11px; height: 11px; }
.board-tutor-layer { padding: 12px; margin-top: 15px; border: 1px dashed #d4e3bb; border-radius: 8px; background: #f1f8e5b5; color: #8aa66e; font-size: 11px; line-height: 1.8; }
.board-tutor-layer strong { font-size: 9px; display: block; margin-bottom: 6px; color: #83a05f; }
.board-footnote { font-size: 8px; color: #b1c19e; line-height: 1.8; margin-top: 13px; }
.room-privacy-note { font-size: 8px; color: #adbca0; padding-top: 8px; line-height: 1.6; text-align: center; }
.room-controls .icon-button { width: 34px; height: 34px; min-height: 34px; border-radius: 7px; background: #f7faf1; color: #91ad74; border-color: #dce8ce; }
.room-controls .icon-button.active, .room-controls .icon-button[aria-pressed=true] { color: #6e964d; background: #e4f0d3; border-color: #bfd3a4; }
.room-controls .btn { min-height: 34px; padding: 0 11px; font-size: 9px; }
.room-controls .btn svg { width: 14px; height: 14px; }
.room-controls .btn-danger { color: #aa9980; background: #f8f3eb; border-color: #e8dfd1; }

@media (min-width: 1272px) {
  .hero-bottom { margin-left: auto; margin-right: auto; }
}
@media (max-width: 1100px) {
  .preview-frame .preview-body { min-height: 308px; }
  .hero-bottom { margin-left: 35px; margin-right: 35px; gap: 12px; font-size: 9px; }
  .hero-bottom > span:first-child { font-size: 7px; }
  .headline-squiggle { width: 240px; margin-left: 131px; }
  .preview-editor .code-lines { font-size: 7px; letter-spacing: -.35px; }
  .preview-frame .preview-topbar .tag { font-size: 6px; }
  .preview-frame .preview-window-title { font-size: 8px; }
}
@media (max-width: 900px) {
  .preview-frame .preview-body { min-height: 308px; }
  .preview-editor .code-lines { font-size: 6px; letter-spacing: -.35px; }
  .preview-editor .code-lines div > span:first-child { font-size: 6px; margin-right: 3px; }
  .preview-chat .tutor-bubble, .preview-chat .student-bubble { font-size: 8px; padding: 10px; }
  .preview-chat .preview-status { font-size: 5px; }
  .preview-frame .preview-topbar { padding: 11px; }
  .preview-frame .preview-topbar .tag { font-size: 5px; }
  .preview-frame .preview-window-title { font-size: 7px; }
  .preview-console { font-size: 6px; padding-top: 9px; }
  .preview-console .demo-run { font-size: 5px; min-height: 23px; }
  .headline-squiggle { width: 226px; margin-left: 116px; }
  .hero-preview .mascot { width: 67px; height: 67px; left: -21px; bottom: -8px; }
  .hero-preview .floating-note { padding: 9px 12px 9px 32px; right: -11px; font-size: 7px; }
  .hero-preview .floating-note strong { font-size: 8px; }
  .hero-preview .floating-note svg { width: 16px; height: 16px; left: 10px; top: 13px; }
  .art-code { width: 78px; height: 68px; font-size: 25px; }
  .art-orbit { width: 99px; height: 99px; }
  .art-star { font-size: 22px; }
  .nav-active-dot { width: 4px; height: 4px; }
  .history-grid { grid-template-columns: 1fr; }
  .room-controls .btn { min-height: 32px; font-size: 8px; padding: 0 8px; }
  .room-controls .icon-button { width: 31px; height: 31px; min-height: 31px; }
}
@media (max-width: 760px) {
  .headline-squiggle { width: 267px; margin-left: 184px; }
  .hero-bottom { margin-left: 25px; margin-right: 25px; padding: 20px 0; justify-content: flex-start; flex-wrap: wrap; gap: 15px 25px; font-size: 9px; }
  .hero-bottom > span:first-child { width: 100%; font-size: 8px; letter-spacing: 1px; }
  .preview-frame .preview-body { min-height: 322px; }
  .preview-frame .preview-topbar { padding: 13px 15px; }
  .preview-frame .preview-topbar .tag { font-size: 7px; }
  .preview-frame .preview-window-title { font-size: 9px; }
  .preview-chat .tutor-bubble, .preview-chat .student-bubble { font-size: 10px; padding: 11px; }
  .preview-editor .code-lines { font-size: 8px; letter-spacing: -.35px; }
  .preview-editor .code-lines div > span:first-child { font-size: 7px; margin-right: 6px; }
  .preview-chat .preview-status { font-size: 6px; }
  .preview-console { font-size: 7px; padding-top: 12px; }
  .preview-console .demo-run { font-size: 6px; min-height: 25px; }
  .hero-preview .mascot { width: 78px; height: 78px; left: -14px; bottom: -8px; }
  .hero-preview .floating-note { right: -7px; font-size: 8px; padding: 11px 14px 11px 37px; bottom: -1px; }
  .hero-preview .floating-note strong { font-size: 9px; }
  .hero-preview .floating-note svg { width: 17px; height: 17px; left: 12px; top: 15px; }
  .hero-preview .hero-orbit { right: -15px; }
  .nav-active-dot { display: none; }
  .local-label { font-size: 7px; }
  .app-topbar > div { gap: 8px; }
  .app-topbar .button { padding: 0 6px; min-height: 29px; }
  .app-topbar .button svg { width: 16px; height: 16px; }
  .profile-banner > div { gap: 8px; }
  .profile-banner > div > span { font-size: 9px; }
  .profile-banner strong { font-size: 10px; }
  .art-code { width: 91px; height: 74px; }
  .art-orbit { width: 111px; height: 111px; }
  .progress-card h3 { font-size: 20px; }
  .room-controls .btn { min-height: 35px; padding: 0 11px; font-size: 9px; }
  .room-controls .icon-button { width: 35px; height: 35px; min-height: 35px; }
  .room-status { max-width: 180px; }
  .message-text { font-size: var(--room-font-size,12px); }
  .room-context-bar { flex-wrap: wrap; gap: 5px 12px; }
  .tutor-message .avatar, .user-message .avatar { width: 27px; height: 27px; }
  .editor-gutter { font-size: var(--room-font-size,12px); }
}
@media (max-width: 500px) {
  .headline-squiggle { width: 230px; margin-left: 125px; }
  .preview-frame .preview-topbar { padding: 11px; }
  .preview-frame .preview-topbar .tag { font-size: 5px; }
  .preview-frame .preview-window-title { font-size: 7px; }
  .preview-frame .preview-body { min-height: 282px; }
  .preview-chat .tutor-bubble, .preview-chat .student-bubble { font-size: 8px; padding: 9px; line-height: 1.8; }
  .preview-editor .code-lines { font-size: 6px; letter-spacing: -.25px; }
  .preview-editor .code-lines div > span:first-child { font-size: 6px; margin-right: 4px; }
  .preview-chat .preview-status { font-size: 5px; }
  .preview-console { font-size: 6px; }
  .preview-console .demo-run { font-size: 5px; min-height: 22px; padding: 0 6px; }
  .preview-bottom { padding: 10px 11px; font-size: 6px; }
  .preview-bottom .demo-label { font-size: 5px; }
  .hero-preview .mascot { width: 67px; height: 67px; left: -10px; bottom: -11px; }
  .hero-preview .floating-note { font-size: 7px; padding: 9px 12px 9px 32px; right: -3px; bottom: -5px; }
  .hero-preview .floating-note strong { font-size: 8px; }
  .hero-preview .floating-note svg { width: 16px; height: 16px; left: 10px; top: 13px; }
  .hero-bottom { gap: 13px 18px; font-size: 8px; }
  .hero-bottom > span:first-child { font-size: 7px; }
  .hero-bottom svg { width: 12px; height: 12px; }
  .how-note { font-size: 9px; align-items: start; line-height: 1.8; text-align: left; margin-top: 31px; }
  .how-note svg { margin-top: 3px; }
  .stat-card > span { font-size: 8px; align-items: start; line-height: 1.5; }
  .stat-card > span svg { width: 13px; height: 13px; }
  .stat-card strong small { font-size: 7px; line-height: 1.6; }
  .art-code { width: 67px; height: 61px; font-size: 23px; }
  .art-orbit { width: 85px; height: 85px; left: -8px; top: -9px; }
  .art-leaf { width: 29px; height: 29px; bottom: -5px; }
  .art-leaf svg { width: 16px; height: 16px; }
  .art-star { top: -16px; right: -8px; font-size: 20px; }
  .recent-item .tag { font-size: 7px; padding: 4px 6px; }
  .local-label { font-size: 6px; gap: 4px; }
  .local-label svg { width: 9px; height: 9px; }
  .profile-banner > div > span { font-size: 8px; }
  .profile-banner strong { font-size: 9px; line-height: 1.7; }
  .history-grid { gap: 13px; }
  .history-actions .button { font-size: 8px; }
  .modal .progress-steps { gap: 12px; }
  .modal .progress-steps > span { font-size: 8px; gap: 5px; }
  .modal .progress-steps b { width: 17px; height: 17px; font-size: 7px; }
  .modal form > h2 { font-size: 23px; }
  .modal .form-footer { flex-direction: row; align-items: center; }
  .modal .form-footer .button { font-size: 10px; min-height: 39px; padding: 0 13px; }
  .subject-choices { gap: 8px; }
  .choice-card { flex-direction: column; gap: 8px; align-items: center; min-width: 77px; font-size: 9px; padding: 13px 8px; }
  .mode-card { grid-template-columns: 25px 1fr; }
  .mode-card input { position: absolute; }
  .mode-card strong { font-size: 11px; margin-bottom: 5px; }
  .mode-card small { font-size: 9px; line-height: 1.7; }
  .summary-page { padding-top: 22px; }
  .room-status { max-width: none; }
  .room-controls .btn { font-size: 8px; padding: 0 8px; gap: 5px; min-height: 33px; }
  .room-controls .icon-button { width: 32px; height: 32px; min-height: 32px; }
  .room-controls .btn svg { width: 12px; height: 12px; }
  .room-privacy-note { display: none; }
}

/* Final room markup alignment. */
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #e5ecdd; }
.panel-heading > div { display: flex; gap: 10px; align-items: center; }
.panel-heading h2 { font-family: 'DM Sans', sans-serif; font-size: 11px; color: #5f7853; margin-bottom: 5px; }
.panel-heading .voice-state { font-size: 8px; padding: 0; background: transparent; }
.panel-heading .tutor-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e8f0da; color: #739654; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800; position: relative; }
.panel-heading .tutor-avatar > span { width: 7px; height: 7px; border-radius: 50%; background: #88af64; border: 2px solid white; position: absolute; right: 0; bottom: 0; }
.tutor-message, .user-message { display: block; padding-bottom: 22px; }
.message-author { display: block; margin-bottom: 7px; font-size: 9px; color: #7f9769; }
.message-text { color: #677c55; background: #f0f5e8; }
.user-message { margin-left: 28px; }
.user-message .message-author { text-align: right; color: #9a876c; }
.user-message .message-text { background: #f8f3eb; color: #8a775d; }
.message-version { display: block; font-size: 7px; color: #96a880; margin-top: 5px; }
.practice-tabs .room-font-control { margin-left: auto; }
.room-font-control button.icon-button { width: 26px; height: 25px; border-color: #e1e8d7; font-size: 9px; padding: 0; display: inline-flex; }
.practice-actions { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #23342e; border-top: 1px solid #3a4c3e; flex-shrink: 0; }
.practice-actions .btn { font-size: 8px; min-height: 28px; padding: 0 9px; gap: 5px; border-color: #47603e; color: #adca93; background: #2d4334; }
.practice-actions .btn-primary { color: #283e20; background: #b8cf9f; border-color: #b8cf9f; }
.practice-actions .btn-primary:hover { background: #c7dbb3; }
.practice-actions .btn svg { width: 11px; height: 11px; }
.practice-actions .btn-ghost { margin-left: auto; background: transparent; border-color: transparent; color: #93ad7d; }
.output-heading { font-size: 8px; font-weight: 550; color: #9ab58e; letter-spacing: .5px; margin-bottom: 10px; }
.output-heading > span { float: right; font-size: 8px; letter-spacing: 0; }
.activity-examples { display: flex; align-items: center; gap: 14px; }
.activity-card p.activity-constraints { font-size: 8px; color: #899c72; line-height: 1.7; }
.activity-card code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #6c8854; }
.activity-scope-note { margin-top: 9px; padding: 9px 10px; background: #fff6e7; color: #a68a56; border-radius: 5px; }
.board-content { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; padding: 20px; background: #fbfcf6; }
.board-intro h3 { color: #789a58; font-size: 14px; margin-bottom: 8px; }
.board-intro p { font-size: 10px; color: #91a77d; line-height: 1.8; margin-bottom: 17px; }
textarea.board-editor { flex: 1; min-height: 190px; background-color: #fffef9; background-image: radial-gradient(#dce5d4 1px,transparent 1px); background-size: 20px 20px; font-family: 'DM Sans', sans-serif; font-size: var(--room-font-size,14px); line-height: 1.9; color: #6a8551; padding: 16px; border: 1px solid #d7e4c6; border-radius: 8px; resize: none; }
.board-tutor-layer > span { color: #7b975e; font-size: 8px; font-weight: 650; margin-bottom: 7px; display: block; }
.board-tutor-layer p { font-size: 10px; color: #91aa76; line-height: 1.8; }
.written-editor-wrap { background: #fbfcf6; }
textarea.code-editor.written-editor, .practice-panel textarea.code-editor.written-editor { color: #667f52; background: #fbfcf6; font-family: 'DM Sans', sans-serif; padding: 20px; line-height: 1.9; }
textarea.code-editor.written-editor:focus { background: #fbfcf6; }
textarea.code-editor.written-editor::placeholder { color: #a3b58e; }
.practice-panel:has(.written-editor) .practice-actions { background: #f1f5e9; border-color: #e1ead3; }
.practice-panel:has(.written-editor) .practice-actions .btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.practice-panel:has(.written-editor) .practice-actions .btn-ghost { color: #7d9964; }
.practice-panel:has(.written-editor) .output-panel { background: #f7f9f0; border-color: #e4ebd8; color: #7f9766; }
.practice-panel:has(.written-editor) .output-heading { color: #79965e; }
.practice-panel:has(.written-editor) .editor-toolbar { background: #ecf2e2; border-color: #dde7ce; color: #96ab7f; }
.practice-panel:has(.written-editor) .output-panel .result-pass { color: #6e9451; }
.room-controls .btn-dark { background: var(--green); border-color: var(--green); color: #fff; }
.room-controls .btn-dark:hover { background: #103c2c; }
.editor-wrap { min-height: 110px; }
.code-editor, .practice-panel textarea.code-editor, #code-editor { min-height: 110px; }
.room-privacy-note { padding-top: 0; padding-bottom: 12px; color: #95a685; }
.activity-card { max-height: 195px; overflow-y: auto; }
.practice-content { overflow: hidden; }
.test-result { flex-wrap: wrap; gap: 3px 9px; }
.test-result code { color: #bfd5a9; font-size: 8px; }
.btn-ghost { background: transparent; border-color: transparent; color: #7e9a64; }

/* Secondary copy remains readable on pale surfaces. */
.hero-copy > p { color: #75806e; }
.subject-card p, .step-card p { color: #7e8974; }
.section-heading p { color: #7c8872; }
.hero-note { color: #8b9780 !important; }
.profile-banner > div > span { color: #758865; }
.profile-banner strong { color: #546f43; }
.page-heading p { color: #7e8c72; }
.stat-card > span, .stat-card strong small { color: #7e906c; }
.next-session p, .next-session .next-meta { color: #7b9064; }
.next-session h2 { color: #416235; }
.progress-card p, .progress-placeholder { color: #7d906b; }
.empty-state p, .empty-state h4 { color: #81976a; }
.recent-item small, .recent-item p { color: #849772; }
.settings-section > p, .settings-note, .toggle-row p, .toggle-row small, .budget-status p { color: #81966c; }
.form-card > p, .field small, .field-help, .form-footer > p, .modal > p, .modal form > p { color: #859672; }
.modal .field, .field-label { color: #637d4f; }
.mode-card p, .mode-card small { color: #8ba071; }
.summary-card > p, .summary-card li, .review-result, .review-modal #review-work > p, .review-message > p { color: #81996c; }
.activity-card p { color: #7c9264; }
.room-sidebar-note { color: #889a73; }
.board-intro p, .board-tutor-layer p { color: #839d68; }

@media (max-width: 760px) {
  .panel-heading { padding: 15px 17px; }
  .practice-tabs .room-font-control { display: flex; }
  .room-controls { padding-bottom: 9px; }
  .room-privacy-note { padding-bottom: 4px; font-size: 7px; }
  .activity-card { max-height: 145px; }
  .editor-wrap, .code-editor, .practice-panel textarea.code-editor { min-height: 105px; }
}
@media (max-width: 500px) {
  .panel-heading { padding: 13px 15px; }
  .panel-heading h2 { font-size: 10px; }
  .panel-heading .tutor-avatar { width: 29px; height: 29px; }
  .panel-heading .voice-state { font-size: 7px; }
  .live-badge { font-size: 6px; }
  .activity-card { max-height: 123px; padding: 12px 14px; }
  .practice-actions { padding: 9px 11px; gap: 5px; }
  .practice-actions .btn { font-size: 7px; padding: 0 7px; min-height: 27px; }
  .practice-actions .btn svg { width: 10px; height: 10px; }
  .practice-actions .btn-ghost { font-size: 6px; }
  .room-controls { gap: 5px; padding-top: 11px; }
  .room-controls .voice-controls { gap: 5px; }
  .room-controls .btn { font-size: 7px; padding: 0 7px; min-height: 32px; }
  .room-controls .btn svg { width: 11px; height: 11px; }
  .room-controls .voice-controls .btn-ghost { display: none; }
  .test-result { font-size: 8px; }
  .test-result code { font-size: 7px; }
  .board-content { padding: 16px; }
  .board-intro h3 { font-size: 12px; }
  .board-intro p { font-size: 9px; }
}

@media (max-width: 760px) {
  .panel-heading h2 { font-size: 13px; }
  .panel-heading .voice-state { font-size: 9px; }
  .practice-tabs .room-font-control { display: flex; gap: 5px; }
  .room-font-control button.icon-button { width: 32px; height: 32px; min-height: 32px; font-size: 10px; }
  .practice-tabs { padding: 7px 11px; }
  .practice-tabs > button { font-size: 10px; }
  .room-controls .btn { min-height: 40px; font-size: 10px; padding: 0 11px; }
  .room-controls .btn svg { width: 15px; height: 15px; }
  .room-controls .voice-controls .btn-ghost { display: none; }
  .room-controls [data-action=mic] { width: 40px; padding: 0; gap: 0; }
  .room-controls [data-mic-label] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
}
@media (max-width: 500px) {
  .panel-heading h2 { font-size: 12px; }
  .panel-heading .voice-state { font-size: 8px; }
  .room-controls .btn { min-height: 40px; font-size: 10px; padding: 0 9px; gap: 6px; }
  .room-controls .btn svg { width: 14px; height: 14px; }
  .room-controls [data-action=mic] { width: 40px; padding: 0; }
  .practice-tabs .room-font-control { display: flex; }
  .room-font-control button.icon-button { width: 32px; height: 32px; min-height: 32px; }
}

/* The catalog is a starting point: custom languages and subjects remain editable. */
.universe-section{max-width:1272px;margin:auto;padding:36px 48px 48px}
.universe-section .section-heading h2{font-size:32px;line-height:1.25}
.universe-chips{display:flex;flex-wrap:wrap;gap:12px}
.universe-chip{display:inline-flex;align-items:center;gap:9px;padding:14px 18px;background:#fff;border:1px solid #dce3d5;border-radius:11px;color:#254a3a;font-size:13px;min-height:48px;transition:background .18s,transform .18s}
.universe-chip:hover{background:#e9f0de;transform:translateY(-2px)}
.universe-chip svg:first-child{width:18px;height:18px}.universe-chip svg:last-child{width:15px;height:15px;color:#7d9272}
.universe-chip.other{background:#e7eddc;border-style:dashed}
.universe-note{font-size:12px;color:#687760;margin:18px 0 0;line-height:1.6}
.subject-choices{flex-wrap:wrap}.subject-choices .choice-card{flex:1 1 145px;text-align:left}
#onboarding-specialty,#session-specialty{margin:20px 0}
#session-specialty .field,#onboarding-specialty .field{margin-bottom:0}
.field small{font-weight:400;font-size:11px;color:#67755e;line-height:1.5}
.activity-execution-note{padding:10px 12px;background:#f6f0e7;border:1px solid #e8dbc8;border-radius:7px;font-size:12px;color:#725735;line-height:1.6;margin:12px 0}
@media(max-width:760px){.universe-section{padding:28px 22px 40px}.universe-section .section-heading{display:block}.universe-section .section-heading p{margin-top:14px}.universe-section .section-heading h2{font-size:27px}.universe-chip{font-size:12px;padding:12px 14px}.universe-chips{gap:9px}}

/* Voice and actual tutor status. */
.tutor-status-note{padding:10px 14px;margin:0 0 12px;background:#f5efe4;border:1px solid #e2d7c3;border-radius:8px;color:#705936;font-size:12px;line-height:1.6}
.room-audio-note{font-size:12px;line-height:1.5;color:#6e785f;margin:8px 0}
.message-sources{display:flex;flex-wrap:wrap;gap:7px;list-style:none;padding:0;margin:8px 0 0;font-size:11px}
.message-sources a{display:inline-flex;gap:4px;padding:6px 8px;border:1px solid #d9e3ce;background:#f1f5e8;color:#35523a;border-radius:6px;text-decoration:underline;max-width:100%;overflow-wrap:anywhere}
.message-text pre{white-space:pre-wrap;overflow:auto;background:#15292a;color:#dbe7d9;border-radius:8px;padding:12px;font-family:ui-monospace,monospace;font-size:12px;line-height:1.7}
.room-controls .voice-controls{flex-wrap:wrap;gap:7px}
.room-controls{flex-wrap:wrap;gap:12px}
.btn[data-action="speaker"].active{background:#dcebbd;color:#234b32;border-color:#becfa4}
@media(max-width:760px){.room-controls .voice-controls{width:100%;display:flex;flex-wrap:wrap}.room-controls .btn[data-action="speaker"],.room-controls .btn[data-action="test-audio"]{font-size:11px;min-height:40px;padding:0 11px}.room-controls .btn[data-action="mic"]{font-size:11px;min-width:110px}.room-controls .btn[data-action="mic"] [data-mic-label]{position:static!important;width:auto!important;height:auto!important;clip:auto!important;white-space:normal!important;overflow:visible!important}.room-controls .btn[data-action="finish"]{margin-left:auto}.room-audio-note{font-size:11px}}

/* Account recovery and synchronization feedback. */
.account-notice {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;margin:0 auto 24px;max-width:1440px;border:1px solid var(--line);border-radius:18px;background:#f4f8ec;color:var(--green-dark);}
.account-notice[hidden] {display:none;}
.account-notice-copy strong {display:block;font-size:15px;margin-bottom:5px;}
.account-notice-copy p {margin:0;color:var(--muted);font-size:14px;line-height:1.5;max-width:760px;}
.account-notice-actions {display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0;}
.account-notice[data-status="error"], .account-notice[data-status="conflict"] {background:#fff8ed;border-color:#d8c6a2;}
.account-loading {max-width:620px;margin:15vh auto;padding:36px;border:1px solid var(--line);border-radius:24px;background:var(--surface);text-align:center;}
.account-loading h1 {font-size:28px;margin:0 0 14px;color:var(--green-dark);}
.account-loading p {line-height:1.6;color:var(--muted);margin:0 0 20px;}
.local-label[data-account-status] {max-width:340px;white-space:normal;text-align:right;font-size:12px;line-height:1.4;}
@media(max-width:760px) {
  .account-notice {align-items:flex-start;flex-direction:column;gap:14px;padding:16px;margin:0 0 20px;}
  .account-notice-actions {width:100%;}
  .account-notice-actions .button {flex:1;}
  .account-loading {margin:10vh 18px;padding:28px 20px;}
  .local-label[data-account-status] {max-width:170px;}
}

/* Native voice choices exposed by the visitor's device/browser. */
.voice-picker {padding:22px;margin:22px 0;border:1px solid var(--line);border-radius:16px;background:var(--background);}
.voice-picker-top {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px;}
.voice-picker-top h4 {font-size:16px;}
.voice-active-value {display:block;font-size:14px;font-weight:650;color:var(--green-dark);margin:10px 0;line-height:1.5;}
.voice-active-value span {display:block;font-size:12px;font-weight:400;color:var(--muted);margin-bottom:4px;}
.voice-picker .field {margin-bottom:12px;}
.voice-picker select {width:100%;max-width:100%;text-overflow:ellipsis;}
.voice-picker-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px;}
.voice-picker [role="status"] {font-size:13px;color:var(--muted);line-height:1.5;margin-top:10px;}
.room-voice-picker {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 0;padding:14px 18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;}
.room-voice-picker label {display:flex;align-items:center;gap:10px;font-size:13px;font-weight:650;color:var(--green-dark);flex:1;min-width:230px;}
.room-voice-picker select {max-width:420px;min-width:180px;flex:1;border:1px solid var(--line);border-radius:8px;background:var(--background);padding:9px 12px;font-size:12px;color:var(--ink);}
.room-voice-picker [role="status"] {flex-basis:100%;font-size:12px;color:var(--muted);line-height:1.5;}
@media(max-width:760px){
  .voice-picker {padding:18px 16px;}
  .voice-picker-actions .button {flex:1;}
  .room-voice-picker {padding:12px;}
  .room-voice-picker label {flex-direction:column;align-items:stretch;min-width:0;width:100%;}
  .room-voice-picker select {max-width:none;min-width:0;width:100%;}
}

/* Small screens scroll the room instead of dividing a fixed viewport among
   the lesson, voice choices, status notices and study controls. */
@media (max-width: 760px), (max-width: 1000px) and (max-height: 600px) {
  .room-shell { display: block; padding-bottom: calc(81px + env(safe-area-inset-bottom, 0px)); }
  .room-shell .sidebar { position: fixed; top: auto; bottom: 0; width: 100%; height: calc(65px + env(safe-area-inset-bottom, 0px)); padding: 5px 7px calc(5px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid #dce5d0; z-index: 40; }
  .room-shell .sidebar > .brand, .room-shell .sidebar-caption, .room-shell .sidebar-bottom { display: none; }
  .room-shell .sidebar-nav { flex-direction: row; gap: 4px; margin-top: 0; justify-content: space-around; }
  .room-shell .nav-link { flex: 1; width: auto; min-height: 44px; padding: 7px 4px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; }
  .room-shell .nav-active-dot { display: none; }
  .room-shell .workspace { height: auto; min-height: 0; padding: 0 16px 24px; overflow: visible; }
  .room-shell .app-topbar { height: auto; min-height: 64px; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
  .room-shell .app-topbar > span { font-size: 12px; }
  .room-shell .app-topbar > div { max-width: 100%; min-width: 0; margin-left: auto; }
  .room-shell .room-main, .room-shell #study-container { height: auto; min-height: 0; overflow: visible; }
  .room-shell .study-room { height: auto; min-height: 0; padding-top: 16px; }
  .room-shell .room-header { flex-wrap: wrap; align-items: flex-start; gap: 12px; padding-bottom: 16px; }
  .room-shell .room-heading { width: 100%; min-width: 0; }
  .room-shell .room-heading h1 { font-size: 20px; overflow-wrap: anywhere; }
  .room-shell .room-eyebrow { font-size: 11px; letter-spacing: .5px; overflow-wrap: anywhere; }
  .room-shell .room-status { width: 100%; max-width: none; flex-wrap: wrap; justify-content: space-between; font-size: 12px; }
  .room-shell .room-status .demo-label { max-width: 100%; font-size: 11px; white-space: normal; }
  .room-shell .connection-status, .room-shell .room-timer { font-size: 12px; }
  .room-shell .room-context-bar { flex-wrap: wrap; gap: 8px 12px; font-size: 12px; line-height: 1.5; }
  .room-shell .mode-chip, .room-shell .draft-status { font-size: 11px; }
  .room-shell .room-offline { font-size: 13px; line-height: 1.6; }
  .room-shell .room-tabs { display: flex; flex: 0 0 auto; gap: 7px; padding: 4px; border: 1px solid #dce6d0; border-radius: 9px; background: #eef3e5; margin-bottom: 12px; }
  .room-shell .room-tabs button { flex: 1; min-height: 44px; padding: 10px 12px; font-size: 14px; border-radius: 6px; background: transparent; color: #a0af90; }
  .room-shell .room-tabs button.active, .room-shell .room-tabs button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 5px #283d2310; color: #718f5c; }
  .room-shell .room-layout { display: block; flex: 0 0 auto; height: auto; min-height: 0; }
  .room-shell .conversation-panel, .room-shell .practice-panel { height: auto; min-height: 0; }
  .room-shell .is-hidden-mobile { display: none !important; }
  .room-shell .panel-heading { flex-shrink: 0; padding: 16px; }
  .room-shell .panel-heading h2 { font-size: 15px; }
  .room-shell .panel-heading .voice-state { font-size: 12px; }
  .room-shell .live-badge { font-size: 10px; }
  .room-shell .room-chat-log { flex: 0 0 auto; height: 360px; height: clamp(320px, 55svh, 560px); min-height: 320px; padding: 18px 16px; overflow-y: auto; overscroll-behavior-y: contain; }
  .room-shell .message-text { font-size: max(16px, var(--room-font-size, 14px)); line-height: 1.7; }
  .room-shell .message-author { font-size: 12px; }
  .room-shell .message-version { font-size: 11px; }
  .room-shell .message-text pre { font-size: 14px; overflow-wrap: anywhere; }
  .room-shell .room-sidebar-note, .room-shell .tutor-status-note { flex-shrink: 0; font-size: 12px; line-height: 1.6; }
  .room-shell .room-chat-form { flex-shrink: 0; padding: 12px; align-items: center; }
  .room-shell .room-chat-form .chat-input { height: 46px; min-height: 46px; font-size: 16px; }
  .room-shell .room-chat-form .chat-send { flex-shrink: 0; width: 46px; min-width: 46px; height: 46px; min-height: 46px; }
  .room-shell .practice-tabs { flex-shrink: 0; flex-wrap: wrap; gap: 6px; padding: 8px; }
  .room-shell .practice-tabs > button { min-height: 44px; font-size: 13px; }
  .room-shell .room-font-control button.icon-button { width: 44px; height: 44px; min-height: 44px; font-size: 13px; }
  .room-shell .practice-content, .room-shell .board-content { flex: 0 0 auto; height: auto; min-height: 0; overflow: visible; }
  .room-shell .activity-card { flex-shrink: 0; max-height: none; overflow: visible; padding: 16px; }
  .room-shell .activity-card h3 { font-size: 17px; }
  .room-shell .activity-card p { font-size: 14px; line-height: 1.7; }
  .room-shell .activity-card p.activity-constraints { font-size: 12px; }
  .room-shell .activity-meta { font-size: 11px; }
  .room-shell .activity-examples { flex-wrap: wrap; font-size: 13px; overflow-wrap: anywhere; }
  .room-shell .editor-toolbar { flex-shrink: 0; }
  .room-shell .editor-toolbar > span { display: block; font-size: 12px; }
  .room-shell .editor-wrap { flex: 0 0 auto; height: 320px; min-height: 320px; overflow: hidden; }
  .room-shell .code-editor, .room-shell .practice-panel textarea.code-editor { min-width: 0; height: 320px; min-height: 320px; font-size: max(16px, var(--room-font-size, 14px)); }
  .room-shell .editor-gutter, .room-shell .editor-syntax { font-size: max(16px, var(--room-font-size, 14px)); }
  .room-shell .editor-gutter { height: 100%; }
  .room-shell textarea.code-editor.written-editor { white-space: pre-wrap; overflow-wrap: anywhere; }
  .room-shell .practice-actions { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .room-shell .practice-actions .btn { min-height: 44px; font-size: 13px; padding: 10px 12px; }
  .room-shell .practice-actions .btn svg { width: 16px; height: 16px; }
  .room-shell .output-panel { flex: 0 0 auto; height: auto; min-height: 96px; max-height: none; overflow: visible; }
  .room-shell .output-panel p, .room-shell .output-panel pre, .room-shell .output-heading { font-size: 13px; overflow-wrap: anywhere; }
  .room-shell .output-footnote { font-size: 12px !important; }
  .room-shell .test-result, .room-shell .test-result code { font-size: 12px; overflow-wrap: anywhere; }
  .room-shell .board-content { padding: 16px; }
  .room-shell .board-intro h3 { font-size: 17px; }
  .room-shell .board-intro p, .room-shell .board-tutor-layer p { font-size: 14px; }
  .room-shell textarea.board-editor { flex: 0 0 auto; height: 320px; min-height: 320px; font-size: max(16px, var(--room-font-size, 14px)); resize: vertical; }
  .room-shell .board-tutor-layer > span, .room-shell .board-footnote { font-size: 12px; }
  .room-shell .room-voice-picker { flex: 0 0 auto; min-width: 0; padding: 14px; }
  .room-shell .room-voice-picker label { width: 100%; min-width: 0; flex-direction: column; align-items: stretch; font-size: 14px; }
  .room-shell .room-voice-picker select { width: 100%; min-width: 0; max-width: 100%; min-height: 46px; font-size: 16px; }
  .room-shell .room-voice-picker [role="status"] { overflow-wrap: anywhere; }
  .room-shell .room-controls { flex: 0 0 auto; gap: 12px; padding: 16px 0 10px; }
  .room-shell .room-controls .voice-controls { width: 100%; flex-wrap: wrap; gap: 8px; }
  .room-shell .room-controls .btn { min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .room-shell .room-controls .btn[data-action="speaker"], .room-shell .room-controls .btn[data-action="test-audio"] { min-height: 44px; font-size: 13px; padding: 10px 12px; }
  .room-shell .room-controls .btn[data-action="mic"] { flex: 1 1 145px; width: auto; min-width: 0; padding: 10px 12px; font-size: 13px; }
  .room-shell .room-controls .voice-controls .btn-ghost { display: inline-flex; }
  .room-shell .room-controls .btn svg { width: 17px; height: 17px; }
  .room-shell .room-split-control { display: none; }
  .room-shell .room-audio-note, .room-shell .room-privacy-note { display: block; flex-shrink: 0; font-size: 12px; line-height: 1.6; padding-bottom: 8px; overflow-wrap: anywhere; }
}


/* A learning plan keeps the next lesson, calendar and saved work together. */
.plan-toolbar, .plan-header, .plan-actions, .plan-meta { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.plan-toolbar { justify-content:space-between; margin:20px 0; }
.plan-selector { min-width:230px; flex:1; max-width:540px; }
.plan-selector select { width:100%; }
.plan-dashboard, .plan-overview, .plan-empty { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:26px; margin:24px 0; }
.plan-dashboard { background:#edf3e5; }
.plan-dashboard h2, .plan-dashboard h3, .plan-header h1, .plan-next h3 { color:var(--green-dark); line-height:1.35; }
.plan-dashboard h2, .plan-dashboard h3 { margin:9px 0 12px; font-size:24px; }
.plan-dashboard p, .plan-overview p, .plan-empty p { color:#66785e; font-size:14px; line-height:1.75; }
.plan-meta { font-size:12px; color:#66785e; margin:14px 0; }
.plan-meta span { max-width:100%; overflow-wrap:anywhere; }
.plan-actions { margin-top:18px; }
.plan-actions .button { white-space:normal; }
.plan-next { margin-top:20px; padding-top:20px; border-top:1px solid #d4dfc8; }
.plan-next h3 { font-size:19px; margin:8px 0; }
.plan-page { padding:27px 0 30px; }
.plan-header { justify-content:space-between; align-items:flex-start; margin-bottom:20px; }
.plan-header h1 { font-size:30px; letter-spacing:-1px; overflow-wrap:anywhere; }
.plan-header p { font-size:14px; line-height:1.7; color:var(--muted); margin-top:12px; }
.plan-overview h2, .plan-overview h3 { color:var(--green-dark); margin-bottom:12px; font-size:19px; }
.plan-lesson-list { list-style:none; padding:0; margin:24px 0; display:grid; gap:18px; }
.plan-lesson-card { padding:24px; border:1px solid var(--line); border-radius:14px; background:white; min-width:0; }
.plan-lesson-card.is-next { border-color:#a7bc91; box-shadow:0 0 0 2px #b7cba51c; }
.plan-lesson-card.is-complete { background:#f1f6ed; }
.plan-lesson-card h2, .plan-lesson-card h3 { font-size:19px; color:var(--green-dark); line-height:1.5; margin:10px 0; overflow-wrap:anywhere; }
.plan-lesson-card p { font-size:14px; color:#66785e; line-height:1.8; overflow-wrap:anywhere; }
.plan-lesson-details { margin-top:14px; }
.plan-lesson-details summary { cursor:pointer; color:var(--green); font-size:13px; padding:7px 0; }
.plan-lesson-details h4 { margin:15px 0 7px; font-size:13px; color:var(--green-dark); }
.plan-status { display:inline-flex; font-size:12px; font-weight:650; line-height:1.5; color:#526e3f; background:#edf3e5; border-radius:6px; padding:5px 9px; }
.plan-empty h2 { color:var(--green-dark); font-size:25px; margin-bottom:12px; }
.plan-empty .button { margin-top:18px; }
.plan-modal { max-width:760px; }
.plan-form { margin-top:24px; }
.plan-form .field { margin-top:16px; }
.plan-form textarea { min-height:110px; resize:vertical; line-height:1.6; }
.plan-cadence-days { display:flex; flex-wrap:wrap; gap:8px; padding:12px 0; border:0; }
.plan-cadence-days legend { font-size:13px; color:#5b7450; padding:0; }
.plan-cadence-days label { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:8px 11px; border:1px solid var(--line); border-radius:8px; font-size:13px; }
.plan-cadence-days input { width:auto; min-height:0; accent-color:var(--green); }
.plan-generation-status { color:#5b7450; font-size:14px; line-height:1.6; margin-top:18px; }
.plan-error { color:#964a34; background:#fff4eb; padding:14px; border:1px solid #ead7c8; border-radius:9px; margin-top:16px; font-size:14px; line-height:1.6; }
.plan-error:empty, .plan-generation-status:empty { display:none; }
@media(max-width:760px) {
  .plan-page { padding-top:22px; }
  .plan-toolbar, .plan-header { align-items:stretch; flex-direction:column; }
  .plan-selector { min-width:0; width:100%; max-width:none; }
  .plan-dashboard, .plan-overview, .plan-empty, .plan-lesson-card { padding:20px 17px; }
  .plan-header h1 { font-size:26px; }
  .plan-dashboard h2, .plan-dashboard h3 { font-size:22px; }
  .plan-actions { align-items:stretch; }
  .plan-actions .button { flex:1 1 145px; min-height:44px; padding:10px 12px; font-size:13px; }
  .plan-meta { gap:7px 12px; font-size:12px; }
  .plan-form input, .plan-form textarea, .plan-form select, .plan-selector select { font-size:16px; }
  .plan-form .form-grid { grid-template-columns:1fr; }
  .plan-cadence-days label { min-height:44px; }
  .plan-modal .form-footer { flex-wrap:wrap; }
}

.plan-lesson-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; flex-wrap:wrap; }
.plan-lesson-heading > div { flex:1; min-width:0; }
.plan-lesson-details > div { margin-top:15px; }
.plan-lesson-details dt { font-size:12px; font-weight:650; color:var(--green-dark); }
.plan-lesson-details dd { margin:6px 0 0; font-size:14px; color:#66785e; line-height:1.75; overflow-wrap:anywhere; }
.plan-summary { padding:22px; border:1px solid var(--line); background:#edf3e5; border-radius:12px; margin:24px 0; }
.plan-summary h3 { color:var(--green-dark); line-height:1.5; margin-bottom:12px; }
.plan-sources { margin:25px 0; color:#66785e; font-size:13px; line-height:1.8; }
.plan-sources a { color:var(--green); text-decoration:underline; overflow-wrap:anywhere; }
@media(max-width:760px){.plan-summary{padding:18px 16px}.plan-lesson-heading{gap:10px}.plan-lesson-heading > div{flex-basis:100%}}

/* Optional first-use video tutorial and its accessible reading guide. */
.tutorial-help-button { white-space:nowrap; gap:7px; }
.tutorial-modal { max-width:960px; padding:34px; }
.tutorial-modal > h2 { padding-right:25px; font-size:27px; }
.tutorial-modal .tutorial-intro { color:#62785b; font-size:14px; line-height:1.65; margin:0 0 20px; max-width:710px; }
.tutorial-player { width:100%; overflow:hidden; border-radius:12px; border:1px solid #d2ddc6; background:#173e33; }
.tutorial-player video { display:block; width:100%; max-height:56dvh; aspect-ratio:16/9; object-fit:contain; background:#173e33; }
.tutorial-modal .tutorial-media-note { color:#62785b; font-size:12px; line-height:1.6; margin:12px 0 8px; }
.tutorial-modal .tutorial-playback-status { font-size:13px; color:#8d4b30; line-height:1.6; margin:10px 0; }
.tutorial-playback-status:empty { display:none; }
.tutorial-chapters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:18px 0; }
.tutorial-chapters button { display:flex; align-items:center; gap:10px; text-align:left; min-height:49px; padding:10px 12px; border:1px solid #dce5d0; border-radius:8px; font-size:13px; line-height:1.45; color:#426335; background:#fff; }
.tutorial-chapters button span { font-variant-numeric:tabular-nums; font-size:11px; font-weight:650; color:#7b905b; }
.tutorial-chapters button:hover, .tutorial-chapters button[aria-current] { background:#eaf1df; border-color:#a6bf86; }
.tutorial-transcript { border-top:1px solid var(--line); padding:16px 0; margin-top:4px; }
.tutorial-transcript summary { color:var(--green-dark); font-size:14px; font-weight:650; cursor:pointer; padding:5px 0; }
.tutorial-transcript ol { padding-left:22px; margin:18px 0 0; }
.tutorial-transcript li { padding-left:5px; margin-bottom:20px; }
.tutorial-transcript h3 { color:var(--green-dark); font-size:15px; line-height:1.5; margin-bottom:7px; }
.tutorial-transcript p { color:#607353; font-size:14px; line-height:1.8; }
.tutorial-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding-top:12px; }
.tutorial-footer a { color:var(--green); font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.tutorial-room-note { padding:12px 15px; border:1px solid #cdddb9; border-radius:8px; color:#426335 !important; background:#edf3e4; font-size:13px !important; line-height:1.6; }
.tutorial-welcome { max-width:620px; }
.tutorial-welcome > h2 { padding-right:24px; font-size:28px; }
.tutorial-welcome > p { color:#657a5b; font-size:14px; }
.tutorial-welcome-art { display:flex; align-items:center; gap:20px; padding:22px 25px; background:#eaf1df; border:1px solid #d2dfbf; border-radius:12px; color:var(--green-dark); font-size:20px; line-height:1.5; margin:23px 0; }
.tutorial-welcome-art > svg { width:48px; height:48px; padding:12px; border-radius:50%; background:var(--green); color:white; flex:none; }
.tutorial-welcome .tutorial-welcome-note { font-size:13px; margin-bottom:20px; }
.tutorial-welcome-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.tutorial-welcome-actions .button { min-height:46px; }
.tutorial-settings { display:flex; gap:20px; align-items:center; justify-content:space-between; }
.tutorial-settings .button { flex-shrink:0; }
.tutorial-settings p { margin-bottom:0; }
@media(max-width:760px) {
 .app-topbar:has(.tutorial-help-button) { flex-wrap:wrap; gap:8px 12px; padding:13px 0; }
 .app-topbar:has(.tutorial-help-button) > div { gap:8px; flex-wrap:wrap; }
 .tutorial-help-button.button { min-height:38px; font-size:12px; padding:7px 10px; }
 .tutorial-about-button { display:none; }
 .tutorial-modal { padding:25px 16px; max-height:calc(100dvh - 24px); }
 .tutorial-modal > h2 { font-size:23px; margin-top:10px; }
 .tutorial-modal .tutorial-intro { font-size:13px; }
 .tutorial-player { border-radius:8px; }
 .tutorial-player video { max-height:49dvh; }
 .tutorial-chapters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
 .tutorial-chapters button { font-size:12px; padding:10px; gap:7px; min-height:50px; }
 .tutorial-footer { align-items:stretch; flex-direction:column; }
 .tutorial-footer .button { width:100%; min-height:46px; }
 .tutorial-welcome { padding:30px 22px; }
 .tutorial-welcome > h2 { font-size:25px; }
 .tutorial-welcome-art { padding:18px; gap:15px; font-size:19px; }
 .tutorial-welcome-actions { align-items:stretch; }
 .tutorial-welcome-actions .button { flex:1 1 190px; }
 .tutorial-settings { align-items:stretch; flex-direction:column; }
 .tutorial-settings .button { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { .tutorial-modal,.tutorial-welcome { animation:none; } }

/* Account access and sign-out keep the study flow in reach on every screen. */
.account-menu-button { white-space:nowrap; gap:7px; }
.landing-account-actions { display:flex; align-items:center; gap:10px; }
.landing-account-actions > .button { min-height:38px; padding:0 14px; font-size:11px; }
.account-menu-actions { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0; }
.account-menu-footer { display:flex; align-items:center; flex-wrap:wrap; gap:16px; border-top:1px solid #dfe7d5; padding-top:22px; margin-top:24px; }
.account-menu-footer small { color:#718064; line-height:1.65; flex:1 1 220px; }
.account-signout { white-space:normal; text-align:center; gap:8px; }
.account-settings { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.account-settings p { margin-bottom:0; }
.logout-screen { max-width:680px; margin:8vh auto; padding:30px; }
.logout-screen h1 { font-size:clamp(28px,5vw,44px); margin:16px 0; color:#164638; }
.logout-screen p { line-height:1.7; color:#718064; margin-bottom:28px; }
@media(max-width:767px) {
 .account-menu-button.button { min-height:38px; font-size:12px; padding:7px 10px; }
 .site-header:has(.landing-account-actions) { flex-wrap:wrap; gap:14px; }
 .landing-account-actions { margin-left:auto; flex-wrap:wrap; justify-content:flex-end; }
 .account-menu-actions .button,.account-menu-footer .button { flex:1 1 100%; }
 .account-menu-footer small { flex-basis:100%; }
 .account-settings { align-items:stretch; }
}

/* Public entry remains usable before an account is loaded. */
.landing-auth-notice { max-width:1176px; margin:0 auto 8px; padding:16px 24px; display:flex; align-items:center; gap:20px; border:1px solid #dfe7d5; border-radius:14px; background:#f2f5ec; }
.landing-auth-notice p { margin:0; flex:1; color:#49603d; font-size:14px; line-height:1.6; }
.logout-screen form { display:inline-flex; margin:0; }
@media(max-width:600px) {
 .landing-auth-notice { margin:0 20px 8px; padding:16px; flex-wrap:wrap; gap:12px; }
 .landing-auth-notice p { flex-basis:100%; }
 .site-header .landing-account-actions { gap:6px; }
 .site-header .landing-account-actions > .button { padding:0 12px; }
}
/* Exercise pages share the room clock and keep their own work and feedback. */
.activity-navigation { display:flex; align-items:center; gap:12px; padding:14px 20px; border-bottom:1px solid #d8dfd4; background:#f5f7f0; }
.activity-pages { display:flex; flex:1; min-width:0; gap:6px; overflow-x:auto; padding:3px 0; }
.activity-page { flex-shrink:0; min-height:40px; padding:8px 12px; border:1px solid #c9d3c5; border-radius:8px; color:#284837; background:#fff; font:inherit; font-size:13px; cursor:pointer; }
.activity-page.active { color:#fff; background:#174c3d; border-color:#174c3d; }
.activity-page:focus-visible, .activity-mobile-select select:focus-visible { outline:3px solid #719347; outline-offset:2px; }
.activity-navigation .btn { white-space:nowrap; font-size:12px; }
.activity-mobile-select { display:none; }
.workspace-change-controls { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:10px 20px; border-top:1px solid #d8dfd4; }
.workspace-change-controls span { font-size:11px; color:#49634f; }
.board-author-label { display:block; color:#2a4b38; font-size:13px; font-weight:600; }
.board-author-label textarea { display:block; margin-top:8px; width:100%; }
.board-tutor-notes { display:flex; flex-direction:column; gap:12px; margin:14px 0; }
.board-tutor-notes .board-tutor-layer { margin:0; overflow-wrap:anywhere; }
.board-tutor-notes .message-code { white-space:pre-wrap; }
.history-activity { border-top:1px solid #d8dfd4; padding:14px 0; }
.history-activity summary { cursor:pointer; font-weight:600; line-height:1.5; }
.history-activity pre { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:760px) {
  .activity-navigation { flex-wrap:wrap; padding:12px; gap:8px; }
  .activity-pages { display:none; }
  .activity-mobile-select { display:flex; flex:1; min-width:0; flex-direction:column; font-size:11px; gap:3px; }
  .activity-mobile-select select { width:100%; min-height:44px; min-width:0; max-width:100%; font:inherit; font-size:13px; border:1px solid #c9d3c5; border-radius:6px; background:#fff; padding:6px; color:#284837; }
  .activity-navigation .btn { min-height:44px; }
  .workspace-change-controls { padding:10px 12px; }
}
