@font-face { font-family: Commissioner; src: url('/fonts/commissioner.woff') format('woff'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Raleway; src: url('/fonts/raleway-extrabold.woff') format('woff'); font-style: normal; font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  font-family: Commissioner, Tahoma, system-ui, sans-serif;
  --display: Raleway, Commissioner, Tahoma, system-ui, sans-serif;
  --background: #f2f0fd;
  --surface: #fff;
  --text: #1a1c21;
  --quiet: #5e5669;
  --line: #e2daec;
  --accent: #672f85;
  --accent-hover: #522369;
  --soft: #eee5f6;
  --tint: #faf8fd;
  --brand-dark: #1e1528;
  --brand-red: #cf262a;
  --brand-peach: #ffad78;
  --error: #9a282c;
  color: var(--text);
  background: var(--background);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1:focus:not(:focus-visible), main:focus:not(:focus-visible) { outline: none; }
.skip-link { position: absolute; top: 0; left: 1rem; z-index: 5; transform: translateY(-130%); padding: 10px; background: white; }
.skip-link:focus { transform: none; }
.live-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { background: var(--background); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1390px; min-height: 78px; padding: 10px 40px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; color: var(--text); text-decoration: none; }
.brand-logo { display: block; width: 185px; padding: 6px 10px; background: var(--brand-dark); border-radius: 10px; }
/* The supplied PNG has transparent margins. The original file stays intact. */
.brand-logo-crop { position: relative; display: block; overflow: hidden; aspect-ratio: 1840 / 520; }
.brand-logo img { position: absolute; width: 134.783%; max-width: none; height: auto; left: -17.391%; top: -118.269%; }
.brand-caption, .group-heading small, .step small { display: block; color: var(--quiet); font-size: 12px; font-weight: 500; }
.brand-caption { padding-left: 14px; border-left: 1px solid #d5c9e1; }
.topbar-right, .demo-label { display: flex; align-items: center; gap: 12px; }
.demo-label[hidden], .workspace-form[hidden], .account-groups[hidden] { display: none; }
.account-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.account-name { max-width: 200px; overflow-wrap: anywhere; text-align: left; }
.demo-label { gap: 7px; color: var(--quiet); font-size: 13px; }
.demo-label span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); }
.role-switch { display: flex; padding: 3px; gap: 2px; background: var(--soft); border: 1px solid var(--line); border-radius: 11px; }
.role-switch button { border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; color: var(--quiet); font-size: 13px; font-weight: 650; }
.role-switch button[aria-pressed="true"] { background: white; color: var(--accent); box-shadow: 0 1px 4px #3d21591c; }
.shell { max-width: 1390px; margin: auto; display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 34px; padding: 32px 40px 64px; }
.sidebar { align-self: start; padding: 4px 0; }
.group-heading { display: flex; gap: 11px; align-items: center; padding: 0 5px 22px; border-bottom: 1px solid var(--line); }
.group-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--soft); color: var(--accent); font-size: 13px; font-weight: 800; }
.group-heading b { font-size: 15px; }
.student-picker { display: grid; gap: 5px; min-width: 0; margin: 15px 0 0; color: var(--quiet); font-size: 12px; font-weight: 650; }
.student-picker select, .student-form input { min-height: 40px; min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid #d6c5e5; border-radius: 9px; background: var(--tint); color: var(--text); }
.student-picker select { font-size: 13px; text-overflow: ellipsis; }
.steps { display: grid; gap: 7px; padding: 20px 0; }
.step { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; text-align: left; min-height: 59px; padding: 8px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text); }
.step b { display: block; font-size: 13px; }
.step:hover:not(:disabled), .step.active { background: var(--soft); border-color: #d9c9e8; }
.step:disabled { color: var(--quiet); }
.step-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--soft); color: var(--accent); flex: none; }
.step.active .step-icon { background: var(--accent); color: white; }
.step-end { font-size: 11px; color: var(--quiet); padding-right: 2px; }
.step-end svg { width: 15px; height: 15px; }
.reminder-nav-label { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; }
.reminder-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px;
  border-radius: 99px; background: #ffeadb; color: #79391b; font-size: 11px; font-weight: 700; }
.reminder-count[hidden] { display: none; }
.text-button { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); border: 0; background: none; padding: 8px 6px; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 165px; display: flex; align-items: center; background: #eae0f5; color: var(--text); padding: 26px 34px; border: 1px solid #e1d3ee; border-radius: 19px; margin-bottom: 19px; }
.hero.lesson-hero { min-height: 191px; }
.hero-copy { position: relative; min-width: 0; z-index: 1; }
.lesson-hero .hero-copy { max-width: calc(100% - 175px); }
.eyebrow { display: block; color: var(--accent); font-weight: 750; font-size: 11px; letter-spacing: .105em; text-transform: uppercase; line-height: 1.5; }
.hero h1, .panel h2 { font-family: var(--display); font-weight: 800; }
.hero h1 { margin: 8px 0 9px; font-size: clamp(35px, 4.5vw, 58px); line-height: 1.07; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero p { margin: 0; color: #51425e; font-size: 15px; line-height: 1.5; }
.hero-art { position: absolute; right: 25px; top: 50%; translate: 0 -50%; width: 160px; height: 146px; pointer-events: none; }
.art-card { position: absolute; min-width: 120px; height: 43px; display: flex; align-items: center; gap: 8px; justify-content: center; border-radius: 10px; font-family: var(--display); font-size: 18px; font-weight: 800; box-shadow: 0 3px 11px #50235e16; }
.art-words { left: 4px; top: 9px; rotate: -7deg; background: var(--brand-peach); color: #3b2220; }
.art-listen { left: 25px; top: 52px; rotate: 7deg; background: var(--brand-red); color: #fff; }
.art-test { left: 6px; top: 95px; rotate: -7deg; background: var(--accent); color: #fff; }
.panel { background: var(--surface); padding: 27px 32px; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 25px #38254e09; }
.panel h2 { font-size: clamp(22px, 3vw, 29px); margin: 5px 0 6px; letter-spacing: -.028em; }
.panel-header p, .section-heading p, .panel-footer > span, .form-help, .lesson-row p, .lesson-row small { margin: 0; color: var(--quiet); font-size: 14px; line-height: 1.45; }
.panel-header { margin-bottom: 20px; }
.word-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.word-card { min-height: 76px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); padding: 9px 11px; border-radius: 12px; background: var(--tint); }
.word-number { width: 26px; height: 27px; display: grid; place-items: center; flex: none; border-radius: 7px; color: var(--accent); background: var(--soft); font-size: 11px; font-weight: 800; }
.word-copy { min-width: 0; flex: 1; display: grid; gap: 2px; overflow-wrap: anywhere; }
.word-copy b { font-size: 17px; line-height: 1.2; }
.word-copy span { color: var(--quiet); font-size: 13px; }
.audio-actions, .test-audio { display: flex; gap: 5px; }
.sound { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border: 1px solid #ded0ec; border-radius: 9px; background: var(--soft); color: var(--accent); }
.sound.slow { background: white; font-size: 12px; font-weight: 750; }
.sound:hover { background: #e2d4ef; }
.panel-footer { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 8px 15px; border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 700; }
.primary { background: var(--accent); color: white; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { color: var(--accent); background: #fff; border-color: #d6c5e5; }
.secondary:hover:not(:disabled) { background: var(--soft); }
.primary:disabled { opacity: .58; }
.progress-line { display: flex; align-items: center; gap: 13px; margin-bottom: 19px; }
progress { appearance: none; width: 100%; height: 9px; border: 0; border-radius: 8px; overflow: hidden; background: var(--soft); accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--soft); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.progress-line b { flex: none; font-size: 13px; }
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.match-grid h3 { margin: 0 0 8px; font-size: 14px; }
.prompt-list, .choice-list { display: grid; gap: 7px; }
.prompt, .choice { display: flex; align-items: center; gap: 9px; min-height: 45px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: var(--tint); color: var(--text); text-align: left; font-size: 14px; }
.prompt svg { flex: none; }
.prompt[aria-pressed="true"], .choice:hover:not(:disabled) { border-color: #aa80c1; background: var(--soft); }
.prompt.matched { background: #edf5e9; color: #245337; }
.choice:disabled { color: var(--quiet); }
.feedback { margin: 15px 0 0; padding: 10px 13px; border-radius: 9px; background: var(--soft); color: var(--text); font-size: 14px; }
.hero + .feedback { margin: 0 0 14px; }
.feedback.success, .pill.success { color: #245337; background: #e8f2e3; }
.feedback.error { color: var(--error); background: #fcebed; }
.test-list { display: grid; gap: 12px; }
.question { margin: 0; padding: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; }
.question legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.test-options { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.test-option { display: flex; gap: 7px; padding: 9px; min-height: 44px; border-radius: 8px; background: var(--tint); cursor: pointer; overflow-wrap: anywhere; }
.test-option:has(input:checked) { background: var(--soft); }
.test-option input { accent-color: var(--accent); align-self: start; flex: none; }
.result-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.result-mark { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; font-size: 24px; font-weight: 800; background: #ffeadb; color: #79391b; }
.result-mark.success { color: #245337; background: #e8f2e3; }
.score { margin: 4px 0; font-family: var(--display); font-size: 66px; font-weight: 800; letter-spacing: -.055em; line-height: 1; color: var(--accent); }
.score span { font-size: .57em; margin-left: 3px; }
.result-description p { margin: 0; color: var(--quiet); font-size: 14px; }
.result-review { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--tint); }
.result-review h3 { margin: 0 0 8px; font-size: 16px; }
.result-review .attempt-mistakes li { background: var(--surface); border: 1px solid var(--line); }
.result-review .primary { margin-top: 12px; }
.result-review .primary svg { flex: none; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.practice-panels { display: grid; gap: 14px; }
.notebook-panel { margin-bottom: 14px; }
.notebook-panel h2 { font-size: 19px; }
.material-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; margin: 8px 0; }
.material-card summary { cursor: pointer; color: var(--accent); overflow-wrap: anywhere; }
.material-card summary small { display: block; margin: 5px 0 0 14px; color: var(--quiet); }
.material-card[open] summary { margin-bottom: 12px; }
.material-file { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); overflow-wrap: anywhere; }
.material-file small { display: block; color: var(--quiet); margin-top: 3px; }
.materials-search { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 20px; }
.materials-search input, .materials-search select { max-width: none; }
.disk-items { list-style: none; margin: 8px 0; padding: 0; overflow-wrap: anywhere; }
.disk-items li + li { border-top: 1px solid var(--line); }
.disk-items .text-button { text-align: left; }
.group-picker { display: grid; gap: 4px; color: var(--quiet); font-size: 13px; }
.group-context { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 10px; }
.group-context > .pill { margin-bottom: 6px; }
.group-picker select, .group-picker input, .workspace-form input, .workspace-form select, .student-form select {
  width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #d6c5e5;
  border-radius: 9px; background: var(--tint); color: var(--text); font: inherit;
}
.group-picker select { max-width: min(100%, 340px); }
.workspace-details { border-top: 1px solid var(--line); padding: 12px 0; }
.workspace-details summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.workspace-details .workspace-form { margin-top: 12px; }
.group-join-code { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 10px 0 16px; }
.group-join-code label { display: grid; gap: 4px; color: var(--quiet); font-size: 13px; }
.group-join-code input { min-height: 42px; width: 17ch; padding: 8px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--text); font-family: ui-monospace, monospace; letter-spacing: .05em; }
.material-folder-tools { padding-inline: 24px; }
.material-folder-tools .workspace-form + .workspace-form { border-top: 1px solid var(--line); padding-top: 12px; }
.workspace-form { display: grid; gap: 12px; }
.workspace-form label { display: grid; gap: 5px; font-weight: 650; min-width: 0; }
.workspace-form .check-field { display: flex; align-items: center; gap: 8px; }
.workspace-form .check-field input { width: auto; min-height: 0; accent-color: var(--accent); }
.puzzle-selection { display: grid; gap: 5px; min-height: 68px; padding: 10px 12px; background: var(--tint); border-radius: 10px; overflow-wrap: anywhere; }
.puzzle-selection small { color: var(--quiet); }
.puzzle-selection b { font-size: 21px; letter-spacing: .09em; }
.puzzle-tiles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.puzzle-tiles button { min-width: 43px; text-transform: uppercase; }
.puzzle-tiles button:disabled { opacity: .5; }
.schedule-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-bottom: 12px; }
.schedule-place[hidden] { display: none; }
.schedule-room .form-help { margin-top: 6px; }
.branch-rooms { display: grid; gap: 8px; margin-block: 12px; }
.branch-rooms h3, .branch-rooms ul { margin: 0; }
.branch-rooms ul { padding-inline-start: 20px; }
.calendar-panel { min-width: 0; }
.calendar-nav { display: flex; gap: 5px; }
.calendar-nav button { min-height: 40px; }
.calendar-scroll { max-height: 650px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.calendar-grid { --hour: 60px; display: grid; grid-template-columns: 54px repeat(7, minmax(102px, 1fr)); min-width: 768px; }
.calendar-zone, .calendar-heading { position: sticky; top: 0; z-index: 2; background: var(--tint); border-bottom: 1px solid var(--line); }
.calendar-heading { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; color: var(--quiet); }
.calendar-heading b { font-size: 18px; }
.calendar-heading.today b { background: var(--accent); color: white; padding: 3px 7px; border-radius: 9px; }
.calendar-zone { display: grid; place-items: center; z-index: 3; }
.calendar-zone, .calendar-hours { left: 0; font-size: 11px; color: var(--quiet); }
.calendar-hours { position: sticky; z-index: 1; background: var(--surface); }
.calendar-hours div { height: var(--hour); text-align: center; padding-top: 4px; }
.calendar-day { position: relative; border-left: 1px solid var(--line); min-width: 0; }
.calendar-slot { display: block; width: 100%; height: var(--hour); padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
button.calendar-slot:hover { background: var(--tint); }
.calendar-event { position: absolute; top: calc(var(--offset) * var(--hour)); left: calc(var(--left) + 2px); width: calc(var(--width) - 4px);
  height: max(18px, calc(var(--duration) * var(--hour) - 2px)); min-width: 0; overflow: hidden; display: block; text-align: left;
  padding: 2px 4px; border: 1px solid #d3bde7; border-left: 3px solid var(--accent); border-radius: 5px; background: var(--soft); color: var(--accent); }
.calendar-event[draggable="true"] { cursor: grab; }
.calendar-event:focus-visible { z-index: 1; }
.calendar-event.online { border-color: #a0d0c8; border-left-color: #147665; background: #e4f4ef; color: #164f46; }
.calendar-event.cancelled { background: #f6f4f6; color: #625865; border-color: #c7bdc9; text-decoration: line-through; }
.calendar-event small, .calendar-event b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event small { font-size: 10px; }
.calendar-event b { font-size: 12px; }
.calendar-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 8px 0 10px; font-size: 13px; }
.calendar-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-inline-end: 5px; background: #268369; }
.calendar-legend span + span::before { background: var(--accent); }
.room-calendar { --hour: 44px; }
.room-calendar .calendar-event, .calendar-window { height: max(1px, calc(var(--duration) * var(--hour) - 1px)); align-content: start; }
.calendar-window { position: absolute; top: calc(var(--offset) * var(--hour)); left: 2px; right: 2px; overflow: hidden; display: block;
  text-align: left; padding: 2px 4px; border: 1px solid #b7dacf; border-radius: 5px; background: #edf8f3; color: #236552; }
button.calendar-window:hover { background: #d9f1e6; border-color: #268369; }
.calendar-window small, .calendar-window b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-window small { font-size: 10px; }
.calendar-window b { font-size: 12px; }
.workspace-form > button { justify-self: start; }
.workspace-form > .feedback, .workspace-form .panel-footer, .workspace-form .form-grid { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.author-layout { grid-template-columns: minmax(0, 1fr) minmax(222px, 28%); align-items: start; gap: 16px; }
.author-content, .author-panel, .author-aside, .author-extra { display: grid; gap: 12px; min-width: 0; }
.lesson-types, .block-palette { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
.lesson-type { display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left; }
.lesson-type[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); color: var(--accent); }
.block-palette { grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); }
.block-palette-item { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 94px; text-align: center; padding: 8px; }
.block-palette-item:nth-child(4n + 2) .step-icon { color: #a93554; background: #f9e7ee; }
.block-palette-item:nth-child(4n + 3) .step-icon { color: #16684f; background: #e4f5ed; }
.block-palette-item:nth-child(4n + 4) .step-icon { color: #235b9f; background: #e6f0ff; }
.block-palette-item:hover { border-color: var(--accent); background: var(--tint); }
.interactive-block-list, .interactive-block-editor, .learner-block, .block-results, .block-result, .block-assets, [data-questions] { display: grid; gap: 10px; min-width: 0; }
.interactive-block-editor, .block-question, .block-result { border: 1px solid var(--line); padding: 14px; border-radius: 12px; background: var(--surface); }
.block-heading, .block-tools, .block-format { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.block-heading h2, .block-heading h3 { margin: 0; }
.block-heading .block-tools { margin-inline-start: auto; }
.block-editor, .block-question { display: grid; gap: 6px; }
.block-format .secondary { min-height: 32px; padding: 4px 8px; }
.block-tools label { min-width: 0; }
.block-tools select { max-width: 100%; }
.block-image, .block-media { display: block; max-width: 100%; max-height: 480px; border-radius: 8px; }
.block-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.block-diagram { position: relative; width: fit-content; max-width: 100%; }
.block-diagram span[data-diagram-point] { position: absolute; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--accent); color: white; border: 2px solid white; min-width: 23px; min-height: 23px; text-align: center; }
[data-lesson-block="diagram"] [data-author-media-preview] img { cursor: crosshair; }
.block-attempt-fields { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.block-task { display: grid; align-items: center; gap: 6px; padding: 6px 0; }
.block-task select, .block-task input, .block-gap-line input, .block-gap-line select { padding: 7px 9px; max-width: 100%; width: fit-content; }
.block-gap-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.block-color-task { grid-template-columns: minmax(120px, auto) 48px minmax(110px, 1fr); justify-content: start; }
.block-color-region { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: 8px; }
.block-lexicon { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.block-lexicon details { border: 1px solid var(--line); padding: 10px; border-radius: 8px; }
.block-lexicon summary { cursor: pointer; }
.block-lexicon p, .rich-block p { margin: 0; overflow-wrap: anywhere; }
.rich-block p + p { margin-top: 5px; }
.rich-block blockquote { margin: 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--accent); }
.block-bullet::before { content: '• '; }
.block-font-large { font-size: 1.15rem; }
.block-font-reading .learner-block { letter-spacing: .055em; line-height: 1.75; }
.block-results .pill { justify-self: start; }
.interactive-block-editor [hidden], .block-player [hidden] { display: none; }
.interactive-block-list { gap: 18px; }
.interactive-block-editor { gap: 15px; padding: clamp(12px, 2vw, 22px); scroll-margin-top: 14px; }
.editor-block-heading { gap: 8px; }
.editor-block-heading h3 { font-size: 17px; }
.workspace-form .editor-position { width: 65px; padding: 6px; min-height: 36px; }
.workspace-form .editor-gap-type { width: auto; max-width: 100%; padding: 7px 9px; min-height: 36px; }
.editor-icon { display: inline-grid; place-items: center; position: relative; min-width: 34px; min-height: 34px; padding: 5px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--accent); font-size: 16px; line-height: 1; cursor: pointer; }
.editor-icon:hover, .editor-upload:focus-within { border-color: var(--accent); background: var(--soft); }
.editor-icon svg { width: 18px; height: 18px; }
.editor-remove { color: var(--accent); min-width: 30px; font-size: 18px; }
.editor-header-tools { gap: 5px; }
.editor-help { padding: 10px 12px; border-inline-start: 3px solid var(--accent); background: var(--tint); }
.editor-note { display: grid; gap: 6px; }
.editor-note-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; align-items: center;
  padding: 8px 10px; border-radius: 8px; background: var(--tint); color: var(--muted); font-size: 13px; }
.editor-note > button { justify-self: end; }
.editor-switch { font-size: 13px; }
.editor-switch input[type="checkbox"] { appearance: none; position: relative; width: 32px; height: 18px; min-height: 0; border: 0; padding: 0;
  flex: 0 0 auto; border-radius: 15px; background: #c8becd; cursor: pointer; transition: background .18s; }
.editor-switch input[type="checkbox"]::before { content: ''; position: absolute; inset: 2px auto 2px 2px; width: 14px; border-radius: 50%; background: white; transition: transform .18s; }
.editor-switch input[type="checkbox"]:checked { background: var(--accent); }
.editor-switch input[type="checkbox"]:checked::before { transform: translateX(14px); }
.editor-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px;
  min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--accent); }
.editor-section-head h4 { margin: 0; font-size: 14px; }
.editor-section-head button { min-height: 32px; padding: 5px 9px; }
.editor-section-head label { font-size: 12px; }
.interactive-block-editor .block-editor { gap: 0; }
.interactive-block-editor .block-format { gap: 2px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: var(--tint); }
.interactive-block-editor .block-format .editor-icon { border-color: transparent; background: transparent; color: var(--text); min-width: 29px; min-height: 28px; }
.interactive-block-editor .block-format .editor-icon:hover { background: var(--soft); color: var(--accent); }
.workspace-form .block-format [data-editor-visual] { width: auto; max-width: 118px; padding: 4px; font-size: 13px; }
.editor-rich-sample { padding: 10px; border: 1px dashed var(--line); border-radius: 7px; }
.rich-small { font-size: .83em; }
.rich-large { font-size: 1.28em; }
.rich-purple { color: #6c398c; }
.rich-blue { color: #1d5da4; }
.rich-green { color: #21714c; }
.rich-highlight { color: #342329; background: #ffe5a0; }
.rich-table { overflow-x: auto; margin-block: 5px; }
.rich-table table { border-collapse: collapse; }
.rich-table :is(td, th) { padding: 6px 10px; border: 1px solid var(--line); text-align: start; }
.rich-table th { background: var(--tint); }
.interactive-block-editor .block-editor > label { gap: 0; }
.interactive-block-editor .block-editor > label > span:not(.visually-hidden) { padding: 6px 10px; background: var(--surface); }
.interactive-block-editor .block-editor textarea { border-top: 0; border-radius: 0 0 8px 8px; background: var(--surface); }
.workspace-form .block-format [data-tiptap-select] { width: auto; max-width: 120px; padding: 4px; font-size: 13px; }
.block-format [data-tiptap-command][aria-pressed="true"] { background: var(--soft); color: var(--accent); }
[data-tiptap-content] .tiptap { min-height: 112px; padding: 10px 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px;
  background: var(--surface); overflow-wrap: anywhere; white-space: pre-wrap; }
[data-tiptap-content] .tiptap:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.editor-gap [data-tiptap-field]:not(.tiptap-ready) .block-format { display: none; }
.editor-gap [data-tiptap-field]:not(.tiptap-ready) textarea { border-top: 1px solid var(--line); border-radius: 8px; }
.editor-gap .tiptap { counter-reset: lesson-gap; }
.lesson-gap-token { counter-increment: lesson-gap; display: inline-block; padding: 1px 8px; border-radius: 6px;
  background: var(--soft); border: 1px solid var(--line); color: var(--accent); font-size: .88em; font-weight: 650; white-space: nowrap; }
.lesson-gap-token::after { content: ' ' counter(lesson-gap); }
.tiptap .lesson-gap-token.ProseMirror-selectednode { outline: 2px solid var(--accent); }
:is(.tiptap, .rich-block) :is(ul, ol) { padding-inline-start: 24px; }
:is(.tiptap, .rich-block) li > p { margin-block: 0; }
.tiptap p { margin: 0 0 5px; }
.tiptap blockquote { margin-inline: 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--accent); }
.tiptap table { table-layout: fixed; border-collapse: collapse; width: 100%; }
.tiptap :is(th, td) { position: relative; padding: 6px 10px; border: 1px solid var(--line); min-width: 60px; vertical-align: top; }
.tiptap th { background: var(--tint); text-align: start; }
.tiptap .selectedCell { background: var(--soft); }
.tiptap .ProseMirror-gapcursor { display: none; pointer-events: none; position: absolute; }
.tiptap.ProseMirror-focused .ProseMirror-gapcursor { display: block; }
.tiptap .ProseMirror-gapcursor::after { content: ''; position: absolute; width: 18px; border-top: 1px solid currentColor; }
.editor-list-wrap, .editor-rows, .editor-auto, .editor-gap, .editor-gap-fields, .editor-alternatives { display: grid; min-width: 0; gap: 8px; }
.editor-add { justify-self: center; }
.editor-row, .editor-row-header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.editor-row { padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.editor-row-header > .editor-remove { margin-inline-start: auto; }
.editor-row-number { display: inline-grid; place-items: center; min-width: 24px; min-height: 30px; padding-inline: 4px; background: var(--tint); border-radius: 6px; font-size: 12px; }
.editor-row .editor-grip, .editor-row-header .editor-grip { width: 22px; min-height: 30px; padding: 0; font-size: 17px; }
.editor-row > input:not([type="checkbox"]), .editor-entry-fields, .editor-gap-fields { flex: 1 1 120px; min-width: 0; width: auto; }
.editor-entry-fields { display: flex; gap: 6px; flex-wrap: wrap; }
.editor-entry-fields > input, .editor-entry-fields > select { flex: 1 1 85px; width: auto; min-width: 0; }
.editor-diagram-rows .editor-entry-fields > input[type="number"] { flex: 0 1 65px; }
.editor-diagram-markers { pointer-events: none; }
.editor-statement select { width: auto; max-width: 120px; }
.editor-correct { display: flex; align-items: center; padding-inline: 3px; }
.editor-option .editor-media { flex: 0 0 auto; }
.editor-option:has(.editor-media-file) .editor-media { flex-basis: 100%; order: 2; }
.editor-media { display: grid; min-width: 0; gap: 6px; }
.editor-media-tools, .editor-media-files { display: flex; flex-wrap: wrap; gap: 6px; }
.editor-media-file { display: flex; align-items: start; gap: 4px; max-width: 100%; }
.editor-media-file img, .editor-media-file video { width: auto; max-height: 115px; }
.editor-media-file audio { width: min(215px, 57vw); }
.editor-media :is([data-extra-files], [data-extra-status]):empty, [data-gap-status]:empty { display: none; }
.workspace-form .editor-upload { display: inline-grid; }
.workspace-form .editor-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; padding: 0; cursor: pointer; }
.editor-gap-instructions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; }
.editor-gap-instructions .form-help { margin-inline-start: auto; }
.editor-gap-fields > button { justify-self: start; }
.editor-alternative { display: flex; gap: 6px; }
.block-gap-line { display: block; line-height: 2.45; }
.block-gap-line :is(input, select) { display: inline-block; width: min(155px, 100%); vertical-align: middle; margin-inline: 3px; }
.block-selected-answer { white-space: pre-wrap; }
.learner-options { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.learner-option { display: grid; gap: 4px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.learner-option:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.learner-option > label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.learner-option .block-image { max-height: 145px; }
.learner-option input:is([type="radio"], [type="checkbox"]) { min-height: 0; }
@media (max-width: 520px) {
  .lesson-types, .block-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block-color-task { grid-template-columns: 1fr; }
  .block-heading .block-tools { margin-inline-start: 0; }
  .editor-block-heading .editor-header-tools { flex-basis: 100%; }
}
.author-panel, .author-aside { padding: 20px; }
.author-panel h2, .author-aside h2 { color: var(--accent); font-size: 22px; margin: 0; }
.author-aside { position: sticky; top: 14px; max-height: min(650px, calc(100dvh - 28px)); grid-template-rows: auto auto minmax(0, 1fr); }
.author-aside-actions, .author-aside-scroll { display: grid; gap: 10px; align-content: start; }
.author-aside-actions > .feedback { margin: 0; }
.author-aside-scroll { overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable;
  scrollbar-width: thin; scrollbar-color: var(--accent) var(--soft); padding: 5px 8px 8px 4px; margin: -5px -8px -8px -4px; }
.author-aside-scroll > label + label { border-top: 1px solid var(--line); padding-top: 9px; }
.lesson-destinations { display: grid; gap: 9px; }
.lesson-destinations [hidden] { display: none; }
.lesson-destinations fieldset { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.lesson-destinations legend { padding-inline: 4px; font-size: .88rem; font-weight: 650; }
.lesson-destinations small { display: block; color: var(--muted); }
.lesson-extra-group { display: grid; gap: 6px; }
.lesson-extra-group + .lesson-extra-group { border-top: 1px solid var(--line); padding-top: 6px; }
.lesson-extra-date { margin-inline-start: 21px; font-size: .88rem; }
.author-voices { display: grid; gap: 6px; min-width: 0; padding: 6px 0 0; margin: 0; border: 0; }
.author-voices legend { padding: 0; font-weight: 650; }
.author-voice { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 7px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--tint); }
.author-voice:has(input:checked) { background: var(--soft); border-color: #c9abd9; }
.author-voice .sound[aria-pressed="true"] { color: white; background: var(--accent); }
.author-voices [data-voice-status]:empty { display: none; }
.author-extra { background: var(--tint); border-radius: 10px; padding: 12px; }
.author-extra[hidden] { display: none; }
.author-extra button { justify-self: start; }
.author-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.author-tools label { width: 72px; }
.author-sort-list { position: relative; }
.author-word, .author-word-head { display: grid; grid-template-columns: 47px minmax(0, 1fr) minmax(0, 1fr) 88px; align-items: center; gap: 6px; }
.author-word-head { color: var(--quiet); font-size: 12px; margin-bottom: 4px; }
#author-words { counter-reset: word-row; display: grid; gap: 6px; }
.author-word-number { text-align: center; color: var(--quiet); }
.author-word-number::before { counter-increment: word-row; content: counter(word-row); }
.author-word-index { display: flex; align-items: center; }
.author-reverse .author-word > label:nth-child(2), .author-reverse .author-word-head > :nth-child(2) { grid-column: 3; grid-row: 1; }
.author-reverse .author-word > label:nth-child(3), .author-reverse .author-word-head > :nth-child(3) { grid-column: 2; grid-row: 1; }
.author-order { display: flex; justify-content: end; gap: 2px; }
.author-order button { padding: 6px 7px; font-size: 16px; }
.author-order .author-word-media { position: relative; display: grid; place-items: center; width: 27px; min-height: 32px;
  padding: 3px; color: var(--accent); border: 1px solid transparent; background: transparent; border-radius: 6px; }
.author-word-media:hover, .author-word-media[data-attached="true"] { background: var(--soft); }
.author-word-media[data-attached="true"]::after { content: ''; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px;
  border-radius: 50%; background: #227447; }
.word-media-dialog-body { display: grid; gap: 12px; }
.word-media-dialog-body h2 { margin: 0 30px 0 0; }
.word-media-dialog-body label { display: grid; gap: 5px; font-weight: 650; }
.word-media-dialog-body input { max-width: 100%; }
.word-media-dialog-body [data-preview]:empty, .word-media-dialog-body [data-media-message]:empty { display: none; }
.word-media-dialog-body [data-preview] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.word-media-dialog-body img { width: min(210px, 100%); max-height: 144px; object-fit: contain; border-radius: 8px; }
.word-media-dialog-body audio { max-width: 100%; }
.word-media-dialog-body > button:not(.author-help-close) { justify-self: start; }
.word-media-dialog-body [data-media-message] { margin: 0; color: var(--quiet); }
.word-card-image { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; flex: none; background: white; }
.study-word-image { width: min(100%, 240px); max-height: 185px; object-fit: contain; border-radius: 10px; background: white; }
.study-prompt > .recorded-label { font-size: 13px; color: var(--quiet); }
.author-rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 124px), 1fr)); gap: 10px; }
.author-round { position: relative; min-width: 0; display: grid; justify-items: center; grid-template-rows: auto auto 1fr;
  gap: 11px; padding: 22px 7px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s, background-color .18s, opacity .18s; }
.author-round:not([data-rounds="0"]) { border-color: #cbb4de; background: #fdfbff; }
.author-round:hover { border-color: #b99dce; box-shadow: 0 4px 14px #38254e12; }
.author-round b { font-size: 14px; text-align: center; align-self: start; line-height: 1.3; }
.author-card-controls { display: flex; justify-content: space-between; align-items: center; }
.author-round .author-card-controls { position: absolute; inset: 5px 5px auto; }
.author-grip, .author-help-button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; color: var(--quiet);
  background: transparent; border: 1px solid transparent; border-radius: 6px; transition: color .15s, background-color .15s, border-color .15s; }
.author-grip { cursor: grab; touch-action: none; user-select: none; }
.author-grip:active { cursor: grabbing; }
.author-grip svg { width: 17px; height: 17px; }
.author-help-button { border-radius: 50%; border-color: var(--line); width: 23px; height: 23px; font-size: 13px; font-weight: 750; }
.author-grip:hover, .author-help-button:hover { color: var(--accent); background: var(--soft); border-color: #d8c5e7; }
.study-emblem { --study-ink: #672f85; --study-fill: #eee5f6; position: relative; display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 50%; background: var(--study-fill); color: var(--study-ink); transition: transform .18s ease; }
.study-emblem svg { width: 35px; height: 35px; }
.study-emblem > .study-ring { position: absolute; inset: -4px; width: 72px; height: 72px; overflow: visible;
  transform: rotate(-90deg); pointer-events: none; }
.study-ring circle { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 100 100; stroke-dashoffset: 100; opacity: 0;
  transition: stroke-dashoffset .24s ease, opacity .16s ease; }
.author-round[data-rounds="0"] .study-emblem { background: transparent; color: #85818a; }
.author-round[data-rounds="1"] .study-ring circle { stroke-dashoffset: 66.6667; opacity: 1; }
.author-round[data-rounds="2"] .study-ring circle { stroke-dashoffset: 33.3333; opacity: 1; }
.author-round[data-rounds="3"] .study-ring circle { stroke-dashoffset: 0; opacity: 1; }
.author-round:hover .study-emblem { transform: scale(1.05); }
.study-color-green { --study-ink: #16834c; --study-fill: #e1f4e9; }
.study-color-rose { --study-ink: #d34168; --study-fill: #fae6ed; }
.study-color-amber { --study-ink: #a96612; --study-fill: #fff0d4; }
.study-color-orange { --study-ink: #b65c21; --study-fill: #fcebdd; }
.study-color-indigo { --study-ink: #5747d4; --study-fill: #ebe8ff; }
.study-color-purple { --study-ink: #9f46c7; --study-fill: #f3e5fc; }
.study-color-teal { --study-ink: #007e79; --study-fill: #ddf4f0; }
.study-color-red { --study-ink: #d73a43; --study-fill: #fce7e9; }
.study-color-blue { --study-ink: #2064dc; --study-fill: #e4edff; }
.round-repeat { display: grid; grid-template-columns: 26px 32px 26px; align-items: stretch; overflow: hidden;
  background: var(--tint); border: 1px solid var(--line); border-radius: 6px; }
.round-repeat button { border: 0; background: transparent; color: var(--accent); font-weight: 750; padding: 0; }
.round-repeat button:hover:not([aria-disabled="true"]) { background: var(--soft); }
.round-repeat button[aria-disabled="true"] { color: #82788a; cursor: default; }
.round-repeat button:focus-visible, .round-repeat input:focus-visible { outline-offset: -3px; }
.round-repeat input[data-repeats] { width: 100%; min-height: 27px; padding: 0; text-align: center; border: 0; border-radius: 0; appearance: textfield; font-size: 14px; font-weight: 750; }
.round-repeat input::-webkit-inner-spin-button, .round-repeat input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.author-sort-moving { opacity: .22; }
.author-sort-preview { position: fixed; inset: 0 auto auto 0; z-index: 20; pointer-events: none; margin: 0;
  box-shadow: 0 12px 28px #38254e2b; background: var(--surface); border-radius: 10px; }
.author-sort-preview.author-word { padding: 3px; }
.author-sort-preview input { width: 100%; }
.author-help-dialog { width: min(660px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text);
  box-shadow: 0 24px 70px #23172b48; scrollbar-width: thin; scrollbar-color: var(--accent) var(--soft); }
.author-help-dialog[open] { animation: author-help-in .22s cubic-bezier(.2,.7,.2,1) both; }
.author-help-dialog::backdrop { background: #21192dcc; animation: author-backdrop-in .2s ease both; }
.author-help-body { position: relative; padding: clamp(22px, 5vw, 42px); }
.author-help-body header { display: flex; gap: 14px; align-items: center; padding-right: 18px; }
.author-help-body header h2 { margin: 0; font: 800 clamp(22px, 4vw, 29px) var(--display); }
.lesson-deadline-dialog { width: min(480px, calc(100% - 32px)); }
.lesson-deadline-dialog .author-help-body > .form-help { margin-top: 8px; }
.lesson-deadline-dialog .workspace-form { margin-top: 18px; }
.author-help-body .study-emblem { width: 42px; height: 42px; flex: none; }
.author-help-body .study-emblem svg { width: 23px; height: 23px; }
.author-help-close { position: absolute; top: 12px; right: 12px; width: 33px; height: 33px; padding: 0; border: 0; border-radius: 50%;
  font-size: 24px; line-height: 1; color: var(--surface); background: var(--brand-dark); }
.author-help-close:hover { background: var(--accent); }
.author-help-body ul { display: grid; gap: 13px; padding: 0; margin: 22px 0; list-style: none; }
.author-help-body li { display: flex; gap: 10px; line-height: 1.5; }
.author-help-body li svg { flex: none; margin-top: 2px; color: var(--accent); }
.author-help-example { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.author-help-example small { color: var(--quiet); }
.author-help-example b { font-size: 20px; }
@keyframes author-help-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes author-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .author-round, .study-emblem, .study-ring circle, .author-grip, .author-help-button { transition: none; }
  .author-round:hover .study-emblem { transform: none; }
  .author-help-dialog[open], .author-help-dialog::backdrop { animation: none; }
}
.study-session > progress { width: 100%; margin: 12px 0; accent-color: var(--accent); }
.snake-exercise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px 22px; align-items: start; }
.snake-word { display: grid; gap: 7px; background: var(--tint); border: 1px solid var(--line); padding: 16px; border-radius: 12px; }
.snake-word span, .snake-answers small { font-size: 13px; color: var(--quiet); }
.snake-word b { font-size: clamp(23px, 5vw, 34px); overflow-wrap: anywhere; }
.snake-answers ol { list-style: none; padding: 0; margin: 9px 0 0; }
.snake-answers li { display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); padding: 11px 7px; overflow-wrap: anywhere; }
.snake-answers li div { display: grid; gap: 3px; min-width: 0; }
.snake-apple { --apple: #ffc83f; --apple-ink: #2c1b03; position: relative; display: grid; place-items: center;
  width: 25px; height: 24px; flex: none; border-radius: 44% 44% 48% 48%; background: var(--apple); color: var(--apple-ink); }
.snake-apple::before { content: ''; position: absolute; width: 28%; height: 22%; left: 52%; top: -18%;
  border-radius: 90% 0; background: var(--apple); transform: rotate(-19deg); }
.snake-apple b { font-size: 12px; font-weight: 800; line-height: 1; }
.snake-blue { --apple: #76a7ff; --apple-ink: #101747; }
.snake-pink { --apple: #ff71c9; --apple-ink: #3e112d; }
.snake-board { width: 100%; aspect-ratio: 1; position: relative; isolation: isolate; border-radius: 16px;
  background: radial-gradient(ellipse at 48% -18%, #931199, transparent 68%), linear-gradient(150deg, #49176f, #1c103f);
  overflow: hidden; box-shadow: inset 0 0 0 1px #e6baff34; }
.snake-board::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#f0ceff16 1px, transparent 1px), linear-gradient(90deg, #f0ceff16 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 12); pointer-events: none; }
.snake-pieces { position: absolute; inset: 0; pointer-events: none; }
.snake-cell { position: absolute; inset: 0 auto auto 0; width: calc(100% / 12); height: calc(100% / 12);
  display: grid; place-items: center; will-change: transform; }
.snake-cell[hidden] { display: none; }
.snake-cell .snake-apple { width: 68%; height: 68%; box-shadow: 0 0 13px color-mix(in srgb, var(--apple), transparent 36%); }
.snake-cell .snake-apple b { font-size: clamp(9px, 1.4vw, 13px); }
.snake-segment { width: 88%; height: 88%; border-radius: 36%; background: #60ec85; box-shadow: 0 0 11px #48ff8b70; }
.snake-head { position: relative; border-radius: 40%; background: #b0ff8b; }
.snake-head::before, .snake-head::after { content: ''; width: 15%; height: 15%; background: #1f3126; position: absolute; top: 30%; border-radius: 50%; }
.snake-head::before { left: 26%; }
.snake-head::after { right: 26%; }
.snake-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px; text-align: center; background: #1b0c39a8; color: white; }
.snake-overlay[hidden], .snake-overlay button[hidden] { display: none; }
.snake-overlay > b { font-size: clamp(16px, 3vw, 23px); margin-bottom: 4px; }
.snake-overlay button { border: 0; border-radius: 13px; padding: 10px 13px; width: min(100%, 226px);
  color: #0e3023; font-weight: 800; background: linear-gradient(110deg, #47e18d, #9af0a9); }
.snake-overlay button span { font-size: 12px; margin-left: 5px; }
.snake-controls { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.snake-controls button { border: 1px solid var(--line); border-radius: 8px; background: var(--tint);
  min-width: 40px; min-height: 40px; padding: 6px 9px; color: var(--accent); touch-action: manipulation; }
.snake-controls button:not(:disabled):hover { background: var(--soft); }
.snake-controls button:not(:disabled):active { background: var(--accent); color: white; }
.snake-controls button:disabled { color: var(--quiet); opacity: .62; }
.snake-status { grid-column: 1 / -1; margin: 0; color: var(--quiet); font-size: 14px; }
.snake-status.snake-success { color: #176441; font-weight: 700; }
@media (max-width: 680px) {
  .snake-exercise { grid-template-columns: minmax(0, 1fr); }
  .snake-answers li { padding-block: 6px; }
}
.study-prompt { display: grid; justify-items: center; gap: 10px; border-radius: 14px; padding: 24px; margin-bottom: 16px; background: var(--tint); text-align: center; overflow-wrap: anywhere; }
.study-prompt > b { font-size: clamp(21px, 4vw, 33px); }
.study-prompt > small { font-size: 18px; }
.study-prompt details p { margin-bottom: 0; }
.study-theme-sky .hero, .study-theme-sky .study-prompt { background: #e5f1fd; border-color: #c6dff3; }
.study-theme-mint .hero, .study-theme-mint .study-prompt { background: #e3f3e9; border-color: #cae3d4; }
.study-font-large .study-prompt > b { font-size: clamp(27px, 5vw, 43px); }
.study-font-large .test-option, .study-font-large .study-prompt > small, .study-font-large .question > p { font-size: 21px; }
@media (max-width: 1040px) {
  .author-layout { grid-template-columns: minmax(0, 1fr); }
  .author-aside { position: static; max-height: min(620px, calc(100dvh - 28px)); }
}
@media (max-width: 550px) {
  .author-panel, .author-aside { padding: 15px; }
  .author-word, .author-word-head { grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr); gap: 4px; }
  .author-word > .author-order { grid-column: 2 / -1; }
  .author-word .author-order button { padding-inline: 3px; }
}
.shell.signed-out { display: block; max-width: 600px; }
.employee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.employee-card header { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.employee-card h2 { font-size: 20px; }
.employee-card header p { margin: 0; color: var(--quiet); font-size: 14px; }
.employee-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.location-card h2 { font-size: 21px; margin-top: 10px; overflow-wrap: anywhere; }
.location-summary { display: grid; gap: 10px; margin: 12px 0; }
.location-summary dt { color: var(--quiet); font-size: 13px; }
.location-summary dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.location-unassigned { margin: 0 0 12px; }
.account-groups { display: grid; gap: 8px; margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 9px; }
.account-groups legend { padding-inline: 5px; font-weight: 700; }
.practice-actions { flex-wrap: wrap; }
.practice-question { padding-top: 6px; }
.practice-question legend { font-size: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lesson-list { display: grid; gap: 8px; }
.homework-controls { display: grid; gap: 10px; margin-bottom: 14px; }
.homework-tabs, .homework-options { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.homework-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.homework-tabs button span { font-variant-numeric: tabular-nums; }
.homework-tabs button[aria-pressed="true"] { color: var(--accent); background: var(--soft); border-color: var(--accent); }
.lesson-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.lesson-row-name { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.lesson-row h2, .lesson-row h3 { margin: 0 0 3px; font-size: 16px; }
.lesson-row-result { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.lesson-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lesson-row.review-queue-row { display: grid; }
.review-queue-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.lesson-material-picker { display: grid; gap: 6px; }
.lesson-material-picker label, .lesson-material { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.lesson-material-picker small { margin-inline-start: 8px; color: var(--quiet); }
.lesson-materials-panel { margin-bottom: 14px; }
.practice-panels > .lesson-materials-panel { margin-bottom: 0; }
.lesson-material h3 { margin: 0 0 4px; font-size: 16px; }
.lesson-material .lesson-row-actions:empty { display: none; }
.lesson-disk-picker-button { justify-self: start; }
[data-lesson-disk-selection]:empty { display: none; }
.lesson-disk-selection-row, .lesson-disk-entries li { display: flex; align-items: center; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }
.lesson-disk-selection-row { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.lesson-disk-selection-row + .lesson-disk-selection-row { margin-top: 6px; }
.lesson-disk-selection-row svg { width: 16px; vertical-align: middle; }
.lesson-disk-selection-row small { color: var(--quiet); }
.lesson-file-dialog [data-file-dialog-content] { margin-top: 14px; }
.lesson-file-dialog ul.lesson-disk-entries { gap: 0; margin: 10px 0; }
.lesson-file-dialog .lesson-disk-entries li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.lesson-pdf-frame { max-height: min(56vh, 560px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.lesson-pdf-frame canvas { display: block; width: 100%; height: auto; }
.lesson-pdf-nav { align-items: center; margin-top: 8px; }
.lesson-row.deadline-notice { display: grid; gap: 12px; padding: 16px; }
.deadline-notice-new { border-color: var(--accent); }
.deadline-notice-heading, .deadline-notice-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.deadline-notice-footer { justify-content: space-between; }
.deadline-notice-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; margin: 0; }
.deadline-notice-dates > div { min-width: 0; padding: 8px 10px; background: var(--tint); border-radius: 8px; }
.deadline-notice-dates > div + div { background: var(--soft); }
.deadline-notice-dates dt { color: var(--quiet); font-size: .85rem; }
.deadline-notice-dates dd { margin: 2px 0 0; font-weight: 650; }
.notice { margin: 0 0 12px; }
.pill { display: inline-flex; border-radius: 99px; padding: 5px 8px; background: var(--soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.pill.pending { color: #79391b; background: #ffeadb; }
.group-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 15px; }
.lesson-result-metrics { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.group-metrics div { display: grid; gap: 2px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--tint); }
.group-metrics b { color: var(--accent); font: 800 26px / 1.1 var(--display); }
.group-metrics span, .student-row small { color: var(--quiet); font-size: 13px; line-height: 1.4; }
.report-controls { margin-bottom: 14px; }
.report-controls .group-metrics { margin: 14px 0 0; }
.report-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 10px 14px; }
.report-filters label { flex: 1 1 180px; min-width: 0; }
.report-filters select { max-width: 100%; }
.report-period { margin-top: 10px; }
.report-period .feedback { flex-basis: 100%; }
.report-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.report-group summary::marker { content: ''; }
.report-group summary::-webkit-details-marker { display: none; }
.report-group-name { display: grid; gap: 3px; overflow-wrap: anywhere; }
.report-group-name b { font-size: 18px; }
.report-group-name small { color: var(--quiet); }
.report-group-actions { display: flex; align-items: center; gap: 7px; color: var(--accent); }
.report-group-actions svg { flex: none; }
.report-group[open] .report-group-actions svg { rotate: 180deg; }
.report-table-wrapper { overflow-x: auto; margin-top: 12px; }
.report-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.report-table :is(th, td) { padding: 9px 8px; border-top: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: top; }
.report-table thead { color: var(--quiet); font-size: 12px; }
.report-result { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.report-date { display: block; margin-top: 4px; color: var(--quiet); }
.student-add-form { margin-top: 16px; }
.student-name-editor { padding: 4px 0; border: 0; }
.student-name-editor summary { font-size: 13px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.results-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--tint); font-size: 14px; font-weight: 700; cursor: pointer; }
.results-filter:has(input:checked) { border-color: #cbb6dc; background: var(--soft); }
.results-filter input { flex: none; margin: 0; accent-color: var(--accent); }
.results-toolbar > span { color: var(--quiet); font-size: 13px; }
.student-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.student-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(105px, auto); align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; }
.student-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--accent); font-size: 13px; font-weight: 750; }
.avatar-photo { object-fit: cover; }
.employee-card header .avatar-photo, .group-card-heading .student-avatar { width: 56px; height: 56px; flex: none; }
.group-card-heading { display: flex; gap: 12px; align-items: center; }
.exercise-check { margin-top: 12px; }
.student-name, .student-score { display: grid; gap: 2px; overflow-wrap: anywhere; }
.student-name .practice-complete { color: #245337; font-weight: 700; }
.student-score { justify-items: end; text-align: right; }
.student-score b { font-size: 19px; }
.progress-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.progress-row .pill { justify-self: end; }
.student-report { min-width: 0; }
.student-result-toggle {
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(98px, auto) auto;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}
.student-result-toggle:hover, .student-result-toggle[aria-expanded="true"] {
  background: var(--tint);
  border-color: #cbb6dc;
}
.history-chevron { display: grid; place-items: center; color: var(--accent); }
.history-chevron svg { width: 17px; height: 17px; }
.student-result-toggle[aria-expanded="true"] .history-chevron { rotate: 180deg; }
.attempt-history { padding: 12px; border: 1px solid var(--line); border-radius: 11px; margin-top: 6px; background: var(--tint); }
.attempt-history h3 { margin: 0 0 10px; font-size: 15px; }
.attempt-list, .attempt-mistakes { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.attempt-card { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.attempt-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.attempt-heading h4 { margin: 0; font-size: 14px; }
.attempt-heading > b { color: var(--accent); font-size: 19px; }
.attempt-heading small, .attempt-note { color: var(--quiet); font-size: 13px; }
.attempt-note { margin: 0; }
.attempt-heading + .attempt-note { margin-top: 8px; }
.attempt-mistakes { margin-top: 9px; }
.attempt-mistakes li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; padding: 8px; border-radius: 8px; background: var(--tint); overflow-wrap: anywhere; }
.mistake-word { display: grid; align-content: start; gap: 2px; }
.mistake-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mistake-word small, .mistake-answers dt { color: var(--quiet); font-size: 12px; }
.mistake-answers dd { margin: 2px 0 0; font-size: 14px; }
.mistake-answers .wrong-answer { color: var(--error); }
.student-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.student-form label { display: grid; gap: 6px; font-weight: 650; }
.student-form input { min-height: 43px; }
.student-form .feedback { grid-column: 1 / -1; margin: 0; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 10px; margin-bottom: 15px; }
.form-grid label, .words-label { display: grid; gap: 6px; font-weight: 650; }
.form-grid input, textarea { width: 100%; padding: 10px; border: 1px solid #d6c5e5; border-radius: 9px; background: var(--tint); color: var(--text); }
textarea { resize: vertical; }
.form-help { margin-top: 7px; }
.loading { padding: 40px; color: var(--quiet); }
@media (max-width: 1000px) {
  .topbar-inner, .shell { padding-inline: 22px; }
  .shell { grid-template-columns: 196px minmax(0, 1fr); gap: 18px; }
  .panel { padding-inline: 20px; }
  .word-card { gap: 7px; }
  .word-number { display: none; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
  .sidebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .group-heading { border: 0; padding: 0 5px 0 0; }
  .student-picker { margin: 0 0 4px; flex-basis: 100%; }
  .steps { display: flex; flex-wrap: wrap; gap: 3px; padding: 0; }
  .step { min-height: 40px; grid-template-columns: 24px auto; padding: 5px; }
  .step .step-icon { width: 24px; height: 24px; }
  .step-icon svg { width: 16px; height: 16px; }
  .step-end, .step small, .demo-label, .brand-caption { display: none; }
  .back-to-list { margin-left: auto; font-size: 13px; }
  .hero-art { scale: .8; transform-origin: right center; right: 17px; }
  .hero, .hero.lesson-hero { min-height: 154px; padding: 22px; border-radius: 16px; }
  .lesson-hero .hero-copy { max-width: calc(100% - 138px); }
  .panel { border-radius: 16px; }
}
@media (max-width: 460px) {
  .topbar-inner, .shell { padding-inline: 12px; }
  .topbar-inner { gap: 8px; min-height: 61px; flex-wrap: wrap; }
  .brand-logo { width: 132px; padding: 4px 7px; border-radius: 8px; }
  .role-switch button { font-size: 11px; padding: 7px 6px; }
  .group-heading { display: none; }
  .step b { font-size: 11px; }
  .hero-art { display: none; }
  .lesson-hero .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 14px; }
  .panel { padding: 18px 13px; }
  .word-grid, .form-grid { grid-template-columns: 1fr; }
  .result-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .result-mark { display: none; }
  .result-summary .score { font-size: 46px; }
  .result-review { padding: 10px; }
  .match-grid { gap: 8px; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .group-metrics div { padding: 9px 7px; }
  .group-metrics span, .student-row small { font-size: 12px; }
  .student-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 9px; }
  .student-name { grid-column: 2 / -1; }
  .student-row .pill { grid-column: 1 / 3; justify-self: start; }
  .student-result-toggle { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .student-result-toggle .student-name { grid-column: 2 / 4; }
  .student-result-toggle .student-score { grid-column: 3 / -1; }
  .student-result-toggle .history-chevron { grid-column: 4; grid-row: 1; }
  .attempt-mistakes li { grid-template-columns: minmax(0, 1fr); }
  .student-form { grid-template-columns: 1fr; }
}
