:root {
  color-scheme:light;
  --bg:#fbfbf8;
  --side:#f1f3ec;
  --panel:#fff;
  --soft:#f3f5ef;
  --ink:#20352f;
  --muted:#5d6d65;
  --line:#dce2d8;
  --accent:#205947;
  --on:#fff;
  --active:#dce8d8;
  --accent-ink:#1c5140;
  --shadow:0 10px 26px #243e2708;
  --title:Baskerville,"Iowan Old Style",Georgia,serif;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

:root[data-theme=dark] {
  color-scheme:dark;
  --bg:#19201e;
  --side:#161c1a;
  --panel:#222a26;
  --soft:#29332e;
  --ink:#eff3e9;
  --muted:#abb9af;
  --line:#39443e;
  --accent:#b3d6ae;
  --on:#162e23;
  --active:#304638;
  --accent-ink:#c1dfbc;
  --shadow:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  color:var(--ink);
  background:var(--bg);
  font:15px/1.5 var(--sans);
  -webkit-font-smoothing:antialiased;
}

button,a,input,textarea {
  font:inherit;
}

button,a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  color:inherit;
}

button:disabled {
  cursor:default;
  opacity:.55;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,.attachment:focus-within {
  outline:3px solid #a38044;
  outline-offset:3px;
}

h1,h2,h3,p {
  margin:0;
}

h1,h2,h3 {
  line-height:1.15;
}

p {
  color:var(--muted);
}

svg {
  flex:none;
  vertical-align:middle;
}

em {
  font-weight:400;
}

h1 {
  font:500 clamp(42px,4.2vw,64px)/1.04 var(--title);
  letter-spacing:-.052em;
}

h1 em {
  color:var(--accent-ink);
}

h2 {
  font:500 29px/1.12 var(--title);
  letter-spacing:-.035em;
}

h3 {
  font-size:20px;
  letter-spacing:-.025em;
}

button {
  border:none;
  background:none;
}

main:focus {
  outline:none;
}

.sr,.skip:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip-path:inset(50%);
}

.skip:focus {
  position:fixed;
  z-index:20;
  padding:9px;
  background:var(--panel);
}

#layout {
  min-height:100vh;
  display:grid;
  grid-template-columns:213px minmax(0,1fr);
}

#sidebar {
  position:sticky;
  top:0;
  align-self:start;
  height:100dvh;
  display:flex;
  flex-direction:column;
  background:var(--side);
  padding:30px 16px 14px;
  border-right:1px solid var(--line);
  z-index:4;
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  padding:3px 6px;
  font-weight:730;
  letter-spacing:-.055em;
  font-size:21px;
}

.brandmark {
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:2.5px;
  transform:skew(-12deg);
  height:22px;
  width:27px;
}

.brandmark i {
  display:block;
  width:5px;
  height:10px;
  background:var(--accent);
  border-radius:1px;
}

.brandmark i:nth-child(2) {
  height:21px;
}

.brandmark i:nth-child(3) {
  height:15px;
  background:#8c9a74;
}

.nav-group {
  margin-top:37px;
}

.nav-group>span {
  display:block;
  padding:0 13px 9px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}

.nav-link {
  display:flex;
  align-items:center;
  gap:13px;
  min-height:42px;
  padding:8px 13px;
  border-radius:8px;
  margin:2px 0;
  font-size:14px;
  color:var(--muted);
  font-weight:500;
}

.nav-link.active {
  background:var(--active);
  color:var(--accent-ink);
  font-weight:650;
}

.nav-link:hover,.subtle:hover,.icon-button:hover {
  background:var(--soft);
  color:var(--ink);
}

.sidebar-foot {
  margin-top:auto;
}

.sidebar-foot .nav-link {
  font-size:12px;
}

.profile {
  margin-top:12px;
  border-top:1px solid var(--line);
  padding:17px 7px 2px;
  display:flex;
  align-items:center;
  gap:10px;
}

.profile b,.profile small {
  display:block;
}

.profile b {
  font-size:13px;
}

.profile small,.scope,.hint,.save-note {
  font-size:12px;
  color:var(--muted);
}

.avatar {
  display:grid;
  place-items:center;
  background:#ded2e7;
  color:#59445d;
  border-radius:50%;
  width:36px;
  height:36px;
  font:italic 21px var(--title);
}

.avatar.small {
  width:30px;
  height:30px;
}

.surface {
  min-width:0;
}

.topbar {
  height:62px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 clamp(22px,4vw,66px);
}

.crumb,.top-actions {
  display:flex;
  align-items:center;
  gap:12px;
}

.crumb {
  font-size:12px;
  color:var(--muted);
}

.crumb i {
  color:var(--muted);
  opacity:.6;
}

.crumb strong {
  color:var(--ink);
  font-weight:550;
}

.preview-indicator {
  display:flex;
  align-items:center;
  gap:7px;
  border:1px solid var(--line);
  padding:4px 10px;
  border-radius:20px;
  font-size:11px;
  color:var(--muted);
}

.preview-indicator span,.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#81966b;
}

.icon-button,.mobile-menu,.drawer-close {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:8px;
}

.mobile-menu,.drawer-close,#mobile-nav {
  display:none;
}

main {
  max-width:1390px;
  margin:0 auto;
  padding:clamp(28px,3.5vw,54px) clamp(22px,4vw,66px) 64px;
}

.greeting {
  margin-bottom:29px;
}

.eyebrow,.hero-overline {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font:650 10px/1.35 var(--sans);
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--muted);
}

.date-line {
  margin-bottom:10px;
  font-size:11px;
  letter-spacing:.08em;
}

.today-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(200px,.39fr);
  gap:clamp(19px,2.5vw,38px);
  align-items:start;
}

.today-main {
  min-width:0;
}

.assistant-hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:18px;
  background:#204d40;
  color:#f4f4dc;
  padding:28px 30px 17px;
  box-shadow:var(--shadow);
}

.hero-grid {
  position:absolute;
  inset:0;
  background-image:radial-gradient(#d7e4bc27 .8px,transparent .8px);
  background-size:14px 14px;
  mask-image:linear-gradient(to right,transparent 12%,#000);
  z-index:-2;
}

.assistant-hero canvas {
  position:absolute;
  right:1%;
  top:12px;
  width:43%;
  height:auto;
  z-index:-1;
}

.hero-copy {
  position:relative;
  z-index:1;
  width:62%;
}

.hero-overline {
  font-size:10px;
  color:#d3debd;
}

.hero-copy h2 {
  font:500 clamp(38px,3.9vw,58px)/.95 var(--title);
  letter-spacing:-.055em;
  margin:14px 0 11px;
  color:#fffff1;
}

.hero-copy em {
  color:#d7e2b9;
}

.hero-copy p {
  color:#dbe5d7;
  font-size:13px;
  line-height:1.4;
}

.compose {
  background:#fcfcf3;
  border:1px solid #f5f4df;
  border-radius:10px;
  padding:10px 12px 8px;
  margin-top:20px;
  color:#273b32;
}

.compose textarea {
  display:block;
  background:transparent;
  color:#24392f;
  box-shadow:none;
  border:none;
  padding:0 2px;
  width:100%;
  font-size:14px;
  line-height:1.5;
  min-height:27px;
  resize:vertical;
  max-height:110px;
}

.compose textarea::placeholder {
  color:#68766d;
}

.compose-foot,.section-line,.section-title,.progress-head,.focus-top,.practice-title,.question-foot,.rate,.setup-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.send {
  width:33px;
  height:31px;
  background:#234e40;
  color:#f9faee;
  border-radius:7px;
  display:grid;
  place-items:center;
}

.attachment {
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  padding:5px 2px;
}

.attachment input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}

.demo-guide {
  display:inline-flex;
  gap:7px;
  align-items:center;
  font-size:11px;
  margin-top:10px;
  color:#e0e9d5;
  padding:3px 0;
}

.section-title {
  margin:27px 0 15px;
}

.section-title h2,.side-section h2 {
  font-size:26px;
}

.textlink,.link,.text-button {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--accent-ink);
  font-weight:600;
  font-size:12px;
}

.textlink:hover,.link:hover {
  text-decoration:underline;
}

.side-section .section-title {
  margin:0 0 14px;
}

.side-section .section-title h2 {
  font-size:24px;
}

.exam-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}

.exam-row:last-child {
  border-bottom:0;
}

.exam-row time {
  display:grid;
  place-content:center;
  text-align:center;
  background:var(--soft);
  border:1px solid var(--line);
  width:43px;
  min-width:43px;
  height:47px;
  border-radius:8px;
  line-height:1.05;
}

.exam-row time small {
  font-size:9px;
  text-transform:uppercase;
  font-weight:650;
  letter-spacing:.07em;
}

.exam-row time b {
  font:500 24px var(--title);
}

.exam-row>svg {
  margin-left:auto;
  width:14px;
}

.exam-row strong,.exam-row span small,.evidence-row strong,.evidence-row small,.review-list small {
  display:block;
}

.exam-row strong {
  font-size:13px;
  line-height:1.35;
}

.exam-row span small,.evidence-row small {
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}

.activity {
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:20px;
}

.activity h3 {
  font:500 32px var(--title);
  margin:8px 0 12px;
}

.activity h3 span {
  font:14px var(--sans);
  color:var(--muted);
}

.activity>small,.bars small {
  font-size:10px;
  color:var(--muted);
}

.bars {
  display:flex;
  align-items:flex-end;
  gap:8px;
  max-width:240px;
  margin-bottom:8px;
}

.bars div {
  flex:1;
  text-align:center;
}

.bars i {
  margin:0 auto 3px;
  display:block;
  width:100%;
  max-width:23px;
  background:#a2b99b;
  border-radius:3px 3px 0 0;
}

.bars div:last-child i {
  background:var(--accent);
}

.next-practice {
  display:flex;
  align-items:stretch;
  gap:20px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:13px;
  overflow:hidden;
  padding:12px;
  min-height:114px;
}

.cover {
  width:115px;
  flex:none;
  border-radius:8px;
  overflow:hidden;
}

.cover canvas,.course-cover canvas,.course-sign canvas {
  height:100%;
  width:100%;
  object-fit:cover;
  display:block;
}

.next-practice>div:nth-child(2) {
  padding:2px 0;
}

.next-practice h3 {
  font:500 25px var(--title);
  margin:2px 0 3px;
}

.next-practice p {
  font-size:12px;
}

.next-practice .button {
  margin-top:5px;
  padding:0;
  min-height:25px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:39px;
  padding:8px 14px;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
}

.button.primary {
  background:var(--accent);
  color:var(--on);
}

.button.secondary,.button.mini {
  border:1px solid var(--line);
  background:var(--panel);
}

.button.subtle {
  background:var(--soft);
}

.button.link,.button.text-button {
  padding:4px 0;
}

.button.mini {
  font-size:12px;
  min-height:32px;
}

.button.primary:hover:not(:disabled),.send:hover {
  filter:brightness(1.11);
}

.actions,.teach-tools,.model-choices,.unit-tabs {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.tag {
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  font:600 11px var(--sans);
}

.fern {
  background:#e1eadb;
  color:#38573c;
}

.clay {
  background:#f4e2d0;
  color:#805b38;
}

.iris {
  background:#e8e0ef;
  color:#664c78;
}

.page-title {
  margin-bottom:28px;
}

.page-title .eyebrow,.class-header .eyebrow,.practice-title .eyebrow {
  margin-bottom:10px;
}

.page-title p:not(.eyebrow),.class-header p {
  margin-top:10px;
}

.course-grid,.mode-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.course-card,.mode-card,.list-panel,.conversation,.question-panel,.classroom,.finish-panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
}

.course-card,.mode-card {
  display:block;
  position:relative;
  overflow:hidden;
}

.course-card:hover,.mode-card:hover {
  border-color:var(--accent-ink);
}

.course-cover {
  height:135px;
}

.course-card>div:nth-child(2) {
  padding:17px 18px 21px;
}

.course-card>svg,.mode-card>svg {
  position:absolute;
  right:17px;
  bottom:22px;
}

.course-card h2 {
  margin:6px 0;
  font-size:29px;
}

.course-card p,.mode-card p {
  font-size:13px;
}

.mode-card {
  padding:22px;
}

.mode-card h2 {
  margin:22px 0 4px;
  font-size:25px;
}

.mode-icon {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:12px;
}

.list-panel {
  padding:4px 20px;
}

.class-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:24px 0 32px;
}

.class-header .actions {
  margin-top:20px;
}

.course-sign {
  width:155px;
  height:130px;
  border-radius:12px;
  overflow:hidden;
  flex:none;
}

.detail-grid {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:26px;
}

.unit-tabs,.model-choices {
  margin-bottom:13px;
}

.selected.subtle {
  box-shadow:inset 0 0 0 1px var(--accent-ink);
}

.concept {
  padding:14px 0;
  border-bottom:1px solid var(--line);
}

.concept:last-child {
  border:0;
}

.concept summary {
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:600;
}

.concept p,.sample-excerpt {
  font-size:13px;
  margin:8px 0;
}

.material-row,.evidence-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
  width:100%;
  text-align:left;
}

.evidence-row:last-child {
  border:0;
}

.evidence-row .button {
  margin-left:auto;
}

.material-row {
  color:var(--accent-ink);
}

.box-tabs {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}

.box-tabs button {
  padding:15px 10px;
  display:grid;
  gap:6px;
  text-align:left;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel);
}

.box-tabs button.on {
  box-shadow:inset 0 0 0 1px var(--accent-ink);
  background:var(--soft);
}

.box-tabs b {
  font:500 27px var(--title);
}

.box-tabs small {
  color:var(--muted);
}

.practice-wrap {
  max-width:790px;
  margin:0 auto;
}

.focus-top .textlink {
  flex-direction:row-reverse;
}

.focus-top {
  margin-bottom:16px;
}

.practice-title {
  margin-bottom:22px;
}

.practice-title h1 {
  font-size:49px;
}

.question-panel {
  padding:clamp(20px,3vw,40px);
}

.progress-head {
  font-size:12px;
  color:var(--muted);
  font-weight:550;
}

.progress {
  height:5px;
  background:var(--soft);
  border-radius:5px;
  margin:12px 0 0;
  overflow:hidden;
}

.progress i {
  display:block;
  height:100%;
  background:#709970;
  transition:width .2s;
}

.question {
  font:500 clamp(28px,3.15vw,44px)/1.12 var(--title);
  letter-spacing:-.04em;
  margin:30px 0 24px;
  max-width:690px;
}

.question.compact {
  font-size:29px;
  margin:17px 0;
}

.choices {
  display:grid;
  gap:9px;
}

.choice {
  padding:12px 15px;
  min-height:49px;
  display:flex;
  align-items:center;
  gap:13px;
  font-size:14px;
  text-align:left;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  line-height:1.4;
}

.choice span {
  display:grid;
  place-items:center;
  width:25px;
  min-width:25px;
  height:25px;
  border:1px solid var(--line);
  border-radius:5px;
  font-size:11px;
  font-weight:650;
  color:var(--muted);
}

.choice.chosen,.choice.right {
  background:var(--active);
  border-color:var(--accent-ink);
}

.choice.wrong {
  border-color:#b17858;
}

.choice:disabled {
  opacity:1;
}

.choice svg {
  margin-left:auto;
}

.question-foot {
  border-top:1px solid var(--line);
  margin-top:21px;
  padding-top:18px;
}

.question-foot>span,.save-note,.preview-hint {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  color:var(--muted);
}

.save-note {
  justify-content:center;
  margin-top:14px;
}

.field-label,.edit-grid label,.classroom-body label,.setup-response label {
  display:block;
  font-size:13px;
  font-weight:600;
  margin:10px 0 7px;
}

textarea,input[type=text],input[type=date] {
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  color:var(--ink);
  width:100%;
  padding:12px;
  font:inherit;
  line-height:1.45;
}

textarea {
  resize:vertical;
}

textarea::placeholder {
  color:var(--muted);
}

.feedback {
  background:var(--soft);
  border-left:3px solid #9f9879;
  padding:15px 17px;
  border-radius:6px;
  margin:18px 0 4px;
}

.feedback.knew {
  border-left-color:#708c68;
}

.feedback.missed {
  border-left-color:#b78266;
}

.feedback-heading {
  display:flex;
  align-items:center;
  gap:8px;
}

.feedback h3,.feedback-heading h3 {
  font-size:17px;
}

.feedback p {
  font-size:14px;
  margin:5px 0;
}

.feedback .reference,.correction {
  font-size:12px;
}

.correction {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.correction .button {
  font-size:12px;
  min-height:30px;
}

.flashcard {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  text-align:center;
  gap:22px;
  width:100%;
  min-height:250px;
  color:#f8f8ed;
  background:#1f4d40;
  border-radius:13px;
  padding:22px;
  margin:24px 0 15px;
  transition:background .18s;
}

.flashcard.flipped {
  background:#354352;
}

.flashcard .eyebrow,.flashcard small {
  color:#dce9d7;
}

.flashcard strong {
  max-width:480px;
  font:500 34px/1.15 var(--title);
}

.flashcard small,.rate span {
  font-size:12px;
}

.rate {
  flex-wrap:wrap;
}

.rate span {
  margin-right:auto;
}

.diagram {
  position:relative;
  overflow:hidden;
  border-radius:8px;
  margin-top:20px;
  background:#e7eee6;
}

.diagram canvas {
  display:block;
  width:100%;
  height:auto;
}

.pin {
  position:absolute;
  transform:translate(-50%,-50%);
  width:25px;
  height:25px;
  background:#fff;
  color:#274a3e;
  border:1px solid #466956;
  border-radius:50%;
  font-size:12px;
  font-weight:700;
}

.pin.selected {
  background:#274a3e;
  color:white;
  box-shadow:0 0 0 4px #a5baa3;
}

.prompt-label {
  margin-top:22px;
}

.prompt-label+.question {
  margin-top:11px;
}

.classroom {
  overflow:hidden;
}

.scene {
  position:relative;
  background:#e4dece;
}

.scene canvas {
  width:100%;
  height:auto;
  max-height:280px;
  display:block;
  object-fit:contain;
}

.scene-caption,.raised-hand {
  position:absolute;
  top:12px;
  left:12px;
  z-index:1;
  display:flex;
  align-items:center;
  gap:5px;
  background:#fffae7;
  color:#314538;
  border-radius:18px;
  padding:4px 10px;
  font-size:10px;
}

.raised-hand {
  top:54%;
  left:50%;
  background:#efe3a6;
  animation:raise .9s ease-out both;
}

.classroom-body {
  padding:clamp(16px,2.5vw,30px);
}

.classroom-body h2 {
  margin:11px 0 5px;
}

.classroom-body p {
  font-size:14px;
}

.classroom-body .hint {
  display:block;
  margin-top:9px;
}

.teach-tools {
  margin-top:8px;
}

.teach-tools .primary {
  margin-left:auto;
}

.mic {
  background:#ede0d9;
  color:#683f31;
}

.mic.recording {
  background:#9c5443;
  color:white;
}

.student-speech {
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0;
}

.student-speech p {
  color:var(--ink);
}

.finish-panel,.empty {
  padding:36px;
  text-align:center;
}

.finish-panel h1 {
  margin:12px 0;
}

.finish-panel p {
  max-width:510px;
  margin:0 auto;
}

.finish-panel .button,.finish-panel .textlink {
  margin:10px;
}

.finish-icon {
  width:60px;
  height:60px;
  margin:0 auto 17px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--active);
  color:var(--accent-ink);
}

.summary-nums {
  display:flex;
  justify-content:center;
  gap:30px;
  margin:25px 0;
}

.summary-nums b {
  display:block;
  font:36px var(--title);
}

.summary-nums div {
  font-size:12px;
  color:var(--muted);
}

.empty {
  background:var(--soft);
  border-radius:12px;
}

.empty h3 {
  margin:10px 0;
}

.empty p {
  margin:8px 0;
}

.conversation {
  padding:22px;
}

.conversation .message {
  margin:14px 0;
}

.user-msg {
  background:var(--soft);
  padding:10px 13px;
  border-radius:10px;
  margin-left:18%!important;
  font-size:13px;
  overflow-wrap:anywhere;
}

.assistant-msg {
  display:flex;
  gap:10px;
  align-items:center;
}

.assistant-msg p {
  color:var(--ink);
}

.tiny-brand {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:8px;
  background:var(--active);
  color:var(--accent-ink);
  flex:none;
}

.conversation .actions {
  margin-top:12px;
}

.preview-hint {
  margin-top:14px;
  align-items:flex-start;
  line-height:1.4;
}

.proposal {
  margin-top:15px;
}

.proposal h2 {
  margin:10px 0 5px;
}

.proposal-rows {
  margin:14px 0;
}

.proposal-rows>div {
  display:flex;
  align-items:baseline;
  gap:10px;
  border-bottom:1px solid var(--line);
  padding:7px 0;
  font-size:12px;
}

.proposal-rows span {
  min-width:70px;
  color:var(--muted);
}

.proposal-rows small {
  margin-left:auto;
  color:var(--muted);
}

.edit-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px 12px;
  margin-top:12px;
}

.edit-grid input {
  margin-top:5px;
}

.review-list label {
  display:flex;
  align-items:start;
  gap:9px;
  font-size:13px;
  margin-top:10px;
}

.review-list small {
  color:var(--muted);
}

.pending {
  display:flex;
  gap:14px;
  align-items:center;
  padding:30px 0;
}

.pending p {
  font-size:13px;
  margin-top:4px;
}

.spinner {
  width:24px;
  height:24px;
  border:2px solid var(--line);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin 1s linear infinite;
}

dialog {
  padding:24px;
  max-width:min(450px,92vw);
  color:var(--ink);
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 16px 80px #1115;
}

dialog::backdrop {
  background:#15241ed0;
}

dialog .hint {
  margin:12px 0;
}

fieldset {
  border:0;
  padding:0;
  margin:17px 0 0;
}

legend {
  font-size:13px;
  font-weight:650;
  margin-bottom:10px;
}

.scenario-buttons {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

#toast {
  position:fixed;
  left:50%;
  bottom:22px;
  transform:translate(-50%,10px);
  padding:10px 16px;
  max-width:90vw;
  background:var(--ink);
  color:var(--bg);
  font-size:13px;
  border-radius:8px;
  z-index:15;
  opacity:0;
  pointer-events:none;
}

#toast.show {
  opacity:1;
  transform:translate(-50%,0);
}

.full-fallback,:fullscreen .practice-wrap {
  background:var(--bg);
  padding:20px;
  margin:auto;
  overflow:auto;
}

.full-fallback {
  position:fixed;
  inset:0;
  max-width:none;
  z-index:12;
}

.practice-wrap:fullscreen {
  max-width:none;
  padding:20px max(20px,calc((100vw - 850px)/2));
  background:var(--bg);
  overflow:auto;
}

@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}

@keyframes raise {
  from {
    transform:translateY(9px);
    opacity:0;
  }
  to {
    transform:translateY(0);
    opacity:1;
  }
}

@keyframes arrive {
  from {
    opacity:.84;
    transform:translateY(4px);
  }
  to {
    opacity:1;
    transform:none;
  }
}

.question,.feedback,.proposal,.student-speech {
  animation:arrive .18s ease-out;
}

@media(min-width:1450px) {
  .assistant-hero {
    padding:35px 36px 22px;
  }
  .assistant-hero canvas {
    width:42%;
    top:4px;
  }
  .hero-copy h2 {
    font-size:62px;
  }
  .compose {
    margin-top:28px;
  }
  .today-grid {
    grid-template-columns:minmax(0,1fr) minmax(240px,.43fr);
  }
}

@media(max-width:1110px) {
  #layout {
    grid-template-columns:180px minmax(0,1fr);
  }
  #sidebar {
    padding-inline:10px;
  }
  .today-grid {
    grid-template-columns:minmax(0,1fr) minmax(177px,.39fr);
    gap:20px;
  }
  main {
    padding-inline:25px;
  }
  .assistant-hero {
    padding:23px 22px 15px;
  }
  .side-section .textlink {
    font-size:0;
    gap:0;
  }
  .course-grid,.mode-grid {
    gap:10px;
  }
  .exam-row {
    gap:8px;
  }
  .hero-copy {
    width:64%;
  }
}

@media(max-width:850px) {
  #layout {
    grid-template-columns:158px minmax(0,1fr);
  }
  .brand {
    font-size:17px;
    gap:5px;
  }
  .nav-link {
    font-size:13px;
    gap:9px;
  }
  .today-grid {
    grid-template-columns:1fr;
  }
  .today-aside {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
  }
  .activity {
    margin:0;
    padding:0;
    border:0;
  }
  .assistant-hero canvas {
    width:40%;
    max-width:260px;
  }
  .mode-grid,.course-grid {
    grid-template-columns:repeat(2,1fr);
  }
  .cover {
    width:105px;
  }
}

@media(max-width:650px) {
  #layout {
    display:block;
  }
  #sidebar {
    position:fixed;
    left:0;
    top:0;
    width:232px;
    transform:translateX(-105%);
    transition:transform .15s;
    z-index:10;
    padding:25px 16px 14px;
  }
  .drawer-open #sidebar {
    transform:translateX(0);
    box-shadow:0 0 0 100vmax #17282088;
  }
  .drawer-close {
    display:grid;
    position:absolute;
    top:25px;
    right:9px;
  }
  .mobile-menu {
    display:grid;
  }
  .topbar {
    height:54px;
    padding:0 14px;
  }
  .crumb {
    gap:7px;
  }
  .crumb>svg {
    display:none;
  }
  .top-actions {
    gap:6px;
  }
  .brand {
    font-size:21px;
  }
  .nav-link {
    font-size:14px;
  }
  .surface {
    min-height:100vh;
  }
  .greeting {
    margin-bottom:19px;
  }
  main {
    padding:22px 16px 82px;
  }
  .date-line {
    font-size:10px;
    margin-bottom:8px;
  }
  h1 {
    font-size:41px;
  }
  .assistant-hero {
    padding:19px 16px 12px;
    border-radius:14px;
  }
  .assistant-hero canvas {
    right:-5px;
    top:13px;
    width:43%;
  }
  .hero-copy {
    width:68%;
  }
  .hero-copy h2 {
    font-size:39px;
    margin:12px 0 8px;
  }
  .hero-copy p {
    font-size:12px;
    max-width:190px;
  }
  .compose {
    margin-top:15px;
    padding:8px 10px;
  }
  .compose textarea {
    font-size:16px;
    min-height:25px;
  }
  .section-title {
    margin:22px 0 12px;
  }
  .section-title h2 {
    font-size:24px;
  }
  .today-aside {
    grid-template-columns:1fr;
  }
  .activity {
    padding-top:12px;
    border-top:1px solid var(--line);
  }
  .next-practice {
    gap:14px;
  }
  .cover {
    width:84px;
  }
  .next-practice h3 {
    font-size:23px;
  }
  .next-practice .eyebrow {
    font-size:9px;
  }
  .course-grid {
    grid-template-columns:1fr;
  }
  .course-cover {
    height:110px;
  }
  .mode-card {
    padding:16px;
  }
  .mode-card h2 {
    font-size:22px;
    margin-top:18px;
  }
  .mode-card p {
    padding-right:7px;
  }
  .detail-grid {
    grid-template-columns:1fr;
    gap:8px;
  }
  .class-header {
    align-items:flex-start;
    gap:10px;
  }
  .course-sign {
    display:none;
  }
  .box-tabs {
    gap:4px;
  }
  .box-tabs button {
    padding:8px 5px;
  }
  .box-tabs small {
    font-size:10px;
  }
  .practice-title h1 {
    font-size:39px;
  }
  .practice-title {
    margin-bottom:15px;
  }
  .question-panel {
    padding:17px;
  }
  .question {
    font-size:31px;
    margin:22px 0 17px;
  }
  .choice {
    min-height:47px;
    padding:9px;
    font-size:13px;
    gap:9px;
  }
  .question-foot {
    gap:7px;
    flex-wrap:wrap;
  }
  .question-foot>span {
    max-width:47%;
  }
  .focus-top .scope {
    display:none;
  }
  .practice-title .button {
    font-size:12px;
  }
  .classroom-body {
    padding:16px;
  }
  .teach-tools .primary {
    margin-left:0;
  }
  .conversation {
    padding:16px;
  }
  .edit-grid {
    grid-template-columns:1fr;
  }
  .proposal-rows>div {
    flex-wrap:wrap;
  }
  .user-msg {
    margin-left:8%!important;
  }
  .flashcard {
    min-height:225px;
  }
  .flashcard strong {
    font-size:29px;
  }
  .rate {
    gap:5px;
  }
  .rate span {
    width:100%;
  }
  .list-panel {
    padding:2px 12px;
  }
  .summary-nums {
    gap:18px;
  }
  .classroom-body textarea,.conversation textarea,.question-panel textarea,.edit-grid input {
    font-size:16px;
  }
  #mobile-nav {
    position:fixed;
    bottom:0;
    inset-inline:0;
    z-index:5;
    display:flex;
    justify-content:space-around;
    padding:3px 4px max(4px,env(safe-area-inset-bottom));
    background:var(--panel);
    border-top:1px solid var(--line);
  }
  #mobile-nav .nav-link {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:2px;
    margin:0;
    padding:3px 10px;
    font-size:10px;
    min-width:51px;
  }
  #mobile-nav .nav-link.active {
    background:transparent;
    color:var(--accent-ink);
    font-weight:750;
  }
  #toast {
    bottom:66px;
  }
  .scene-caption {
    top:6px;
    left:6px;
    font-size:8px;
  }
  .raised-hand {
    font-size:9px;
  }
  .preview-indicator {
    font-size:10px;
  }
  .hint {
    font-size:12px;
  }
  .button {
    min-height:41px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.001ms!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

.brand span:last-child {
  white-space:nowrap;
}

.brand {
  font-size:19px;
  gap:8px;
}

.brandmark {
  flex:none;
}

.crumb-brand {
  display:none;
}

.classroom-body .mic {
  min-height:45px;
  padding:9px 15px;
  border-radius:24px;
}

.mic svg {
  width:22px;
  height:22px;
}

.scene {
  background:#e5dfcf;
}

.scene canvas {
  max-height:320px;
}

.focused #sidebar,.focused #mobile-nav {
  display:none;
}

.focused #layout {
  display:block;
}

.focused .topbar {
  height:47px;
}

.focused main {
  padding-top:22px;
}

.focused .practice-wrap {
  max-width:780px;
}

.focused .mobile-menu {
  display:none;
}

.focused .scope {
  font-weight:500;
}

.cinema .topbar,:fullscreen .topbar {
  display:none;
}

.cinema .focus-top,:fullscreen .focus-top {
  display:none;
}

.cinema #main,:fullscreen #main {
  max-width:960px;
  margin:auto;
}

.cinema .scene canvas,:fullscreen .scene canvas {
  max-height:39vh;
}

.mic.recording svg {
  animation:raise .8s ease-in-out alternate infinite;
}

@media(max-width:850px) and (min-width:651px) {
  .brand {
    font-size:15px;
    gap:4px;
  }
  .brandmark {
    width:21px;
  }
}

@media(max-width:650px) {
  .crumb-workspace {
    display:none;
  }
  .crumb-brand {
    display:inline;
    font-weight:650;
    color:var(--ink);
  }
  .focused main {
    padding-bottom:30px;
  }
  .focused .topbar {
    height:44px;
  }
  .focused .practice-title {
    margin-top:0;
  }
  .scene canvas {
    max-height:none;
  }
  .focused .question-panel {
    padding:18px 15px;
  }
  .focused .focus-top {
    margin-bottom:9px;
  }
}

.flashcard.flipped strong {
  animation:turn-face .25s ease-out;
}

.flashcard:not(.flipped) strong {
  animation:arrive .2s ease-out;
}

@keyframes turn-face {
  from {
    transform:perspective(550px) rotateX(-14deg);
    opacity:.6;
  }
  to {
    transform:none;
    opacity:1;
  }
}

@media(prefers-reduced-motion:reduce) {
  .flashcard strong,.raised-hand,.mic svg {
    animation:none!important;
  }
}

.feedback-origin {
  margin-left:auto;
  color:var(--muted);
  font-size:10px;
  font-weight:500;
}

.scene-caption {
  pointer-events:none;
}

.desk-gated #layout { display:block; }
.desk-gated #sidebar,.desk-gated #topbar,.desk-gated #mobile-nav,[hidden] { display:none !important; }
.desk-gated main { max-width:620px; margin:12vh auto; }
.desk-gated .brandmark { margin:0 auto 16px; }
.desk-gated .empty .button { margin-top:16px; }
.desk-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.desk-row .material-row { flex:1; min-width:0; overflow-wrap:anywhere; text-align:left; }
.list-panel>.hint { padding:16px 0; }
.desk-form { min-width:min(300px,72vw); }
.desk-form fieldset { display:grid; gap:16px; margin:24px 0; }
.desk-form label { font-size:14px; font-weight:600; display:grid; gap:6px; }
.desk-form :is(input,textarea,select) { font:400 16px/1.4 var(--sans); width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--panel); }
.desk-form [role=status]:not(:empty) { font-size:14px; margin:16px 0; }
.desk-proposal { min-width:0; margin-top:24px; }
.desk-calendar-matches { font-size:14px; margin:8px 0 16px; }
.desk-calendar-matches summary { cursor:pointer; color:var(--muted); }
.desk-calendar-matches button { display:block; }
.desk-proposal h3 { font:500 24px/1.2 var(--title); }
.desk-proposal fieldset { margin:16px 0; }
.desk-proposal-context { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:12px; }
.desk-proposal-context :is(input,select) { min-width:0; }
@media(max-width:650px){.desk-conversation-greeting { display:none; }}
@media(max-width:350px){.desk-proposal-context { grid-template-columns:minmax(0,1fr); }}
.course-card h2,.class-header h1,.profile b,.exam-row strong,.concept summary { overflow-wrap:anywhere; }
@media(max-width:650px){.page-title .section-line { align-items:center; gap:8px; flex-wrap:wrap; }}
.desk-disclosure { position:relative; z-index:1; color:#e0e9d5; font-size:12px; margin-top:12px; }
.assistant-hero>.button { position:relative; }
.desk-modes { margin:12px 0 0; }
.desk-modes summary { color:var(--muted); font-size:13px; cursor:pointer; }
.desk-modes .actions { margin:8px 0; }
.desk-consent { display:flex; gap:8px; align-items:center; margin-top:12px; color:var(--muted); font-size:12px; }
.desk-consent input { flex:none; }
.source-dialog { width:min(580px,94vw); max-width:94vw; max-height:86dvh; overflow:auto; }
.source-dialog .smart-head,.source-dialog .smart-context { display:flex; align-items:start; gap:16px; justify-content:space-between; }
.source-dialog .smart-head { align-items:center; }
.source-dialog :is(p,details,fieldset,.smart-primary) { margin:12px 0; }
.source-dialog .smart-head h2 { font:500 31px/1.12 var(--title); }
.source-dialog :is(label,summary) { font-size:14px; }
.source-dialog summary { cursor:pointer; }
.source-dialog :is(input:not([type=checkbox],[type=file]),select,textarea) { display:block; width:100%; font:inherit; padding:9px 12px; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:8px; }
.source-dialog label:not(.btn) { display:block; margin:10px 0; }
.source-dialog .btn { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 14px; margin:3px 4px 3px 0; background:var(--accent); color:var(--on); border-radius:8px; font:600 14px var(--sans); cursor:pointer; }
.source-dialog .btn.secondary { background:var(--soft); color:var(--ink); }
.source-dialog .file-drop { padding:16px; border:1px dashed var(--line); border-radius:12px; background:var(--soft); }
.source-dialog .file-drop.drag-over { outline:2px solid var(--accent); }
.source-dialog label.btn { position:relative; overflow:hidden; }
.source-dialog label.btn input[type=file] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.source-dialog .material-formats,.source-dialog .material-privacy { font-size:12px; }
.source-dialog blockquote { border-left:2px solid var(--line); padding-left:12px; margin:12px 0; font-size:14px; color:var(--muted); }
@media(max-width:650px){.source-dialog .smart-context { display:block; }.desk-disclosure { max-width:100%; }}

.assistant-hero>.button { margin-top:16px; color:#233e32; background:#e3ecd7; }

.family-beta{max-width:44rem;margin:0 auto;padding:32px 24px 48px;display:grid;gap:24px}
.family-beta .brand{width:fit-content}.family-beta h1,.family-beta h2,.family-beta p{margin:0}
.family-beta h1{font:400 clamp(2.5rem,7vw,3.5rem)/1.08 var(--serif,Georgia,serif)}
.family-beta p{line-height:1.6}.family-beta summary{cursor:pointer;font-weight:600}
.family-beta details p,.family-beta section p,.family-beta details a,.family-choice{margin-top:12px}
.family-beta section,.family-choice{display:grid;gap:12px}.family-beta .button{justify-self:start}
.family-choice label{line-height:1.5}.family-choice input{accent-color:var(--accent)}
.family-beta a{text-decoration:underline}.family-beta .brand{text-decoration:none}

.desk-model { position: relative; width: fit-content; max-width: 100%; margin: 24px auto; }
.desk-model img { display: block; max-width: 100%; max-height: 48vh; }
.desk-marker { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: #24292b; color: white; padding: 3px 8px; border: 2px solid white; font-size: 14px; }
.desk-marker.current { outline: 3px solid var(--accent, #168568); }
main:fullscreen { overflow: auto; background: var(--bg); }
.desk-classroom-full main { position: fixed; inset: 0; z-index: 15; max-width: none; overflow: auto; background: var(--bg); }
