:root {
  --bg: #f7f6f2;
  --paper: #fcfbf8;
  --ink: #262624;
  --muted: #73726c;
  --faint: #9b9a94;
  --line: rgba(38, 38, 36, 0.10);
  --line-strong: rgba(38, 38, 36, 0.16);
  --accent: #2f6b55;
  --accent-soft: #e9f0ec;
  --warm: #f1eee7;
  --serif: Georgia, "Songti SC", "STSong", serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); font-size: 14px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.app { min-height: 100vh; display: flex; }
.app.student-mode .workspace-sidebar { display: none; }
.view { display: none; min-width: 0; }
.view.active { display: flex; }

.workspace-sidebar {
  width: 238px;
  height: 100vh;
  flex: 0 0 238px;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 14px 16px;
  background: #efeee9;
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px 22px; font-size: 16px; }
.brand > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--ink); font-family: var(--serif); }
.new-course { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.new-course:hover, .sidebar-foot > button:hover, .course-nav button:hover { background: rgba(38,38,36,.055); }
.new-course span { color: var(--muted); font-size: 18px; }
.nav-label { margin: 25px 10px 8px; color: var(--faint); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.course-nav { display: flex; flex-direction: column; gap: 2px; }
.course-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #565650; text-align: left; }
.course-nav i { width: 6px; height: 6px; border-radius: 50%; background: #b2b0aa; }
.course-nav button.active { color: var(--ink); background: rgba(255,255,255,.58); font-weight: 600; }
.course-nav button.active i { background: var(--accent); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; padding-top: 14px; border-top: 1px solid var(--line); }
.sidebar-foot > button { width: 100%; border: 0; background: transparent; border-radius: 8px; text-align: left; padding: 9px 10px; }
.profile, .reader-profile { display: flex; align-items: center; gap: 10px; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #d9d6cc; font-size: 11px; }
.profile > span:last-child, .reader-profile > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.profile b, .reader-profile b { font-size: 12px; font-weight: 600; }
.profile small, .reader-profile small { color: var(--faint); font-size: 10px; }
.view-switch { display: flex; justify-content: space-between; margin-top: 2px; color: var(--muted); font-size: 11px; }

.teacher-view { flex: 1; min-height: 100vh; flex-direction: column; background: var(--paper); }
.course-header { display: flex; align-items: flex-start; justify-content: space-between; width: min(940px, calc(100% - 80px)); margin: 0 auto; padding: 54px 0 31px; }
.course-header h1 { margin: 0 0 9px; font-size: 28px; line-height: 1.2; letter-spacing: -.02em; }
.course-header p { margin: 0; color: var(--muted); font-size: 13px; }
.quiet-icon { border: 0; background: transparent; color: var(--muted); padding: 6px 8px; letter-spacing: 2px; }
.course-tabs { width: min(940px, calc(100% - 80px)); margin: 0 auto; display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.course-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 0 1px 13px; background: transparent; color: var(--muted); font-size: 12px; }
.course-tabs button.active { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.course-content { width: min(940px, calc(100% - 80px)); margin: 0 auto; padding: 12px 0 70px; }
.tab-page { display: none; }
.tab-page.active { display: block; }
.plain-section { padding: 34px 0 40px; border-bottom: 1px solid var(--line); }
.plain-section:last-child { border-bottom: 0; }
.section-heading, .page-intro { display: flex; align-items: flex-start; justify-content: space-between; }
.section-heading { margin-bottom: 9px; }
.section-heading h2, .page-intro h2 { margin: 0; font-size: 15px; }
.section-heading button { border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.page-intro { padding: 31px 0 20px; border-bottom: 1px solid var(--line); }
.page-intro h2 { font-size: 20px; margin-bottom: 8px; }
.page-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.primary { border: 0; border-radius: 8px; padding: 9px 13px; background: var(--ink); color: #fff; font-size: 12px; }
.primary:hover { background: #3b3b37; }
.inline-action { margin-top: 12px; padding: 7px 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; }

.question-list, .document-list { width: 100%; }
.question-row, .document-row { display: grid; align-items: center; border-bottom: 1px solid var(--line); }
.question-row { grid-template-columns: 92px minmax(0, 1fr) 140px; gap: 20px; padding: 17px 0; }
.question-row:last-child, .document-row:last-child { border-bottom: 0; }
.question-row .student { font-size: 12px; color: var(--muted); }
.question-row h3 { margin: 0 0 6px; font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.question-row p { margin: 0; color: var(--faint); font-size: 10px; }
.question-row .source { justify-self: end; color: var(--muted); font-size: 10px; }
.question-row .source.web { color: #906224; }
.question-digest { margin: 22px 0 8px; padding: 18px 0 22px; border-bottom: 1px solid var(--line); }.question-digest p { margin: 0 0 8px; color: #4d4d48; font-size: 13px; line-height: 1.75; }.question-digest p b { color: var(--ink); font-weight: 600; }.question-digest span { color: var(--faint); font-size: 9px; }
.document-row { grid-template-columns: minmax(0, 1fr) 90px; gap: 20px; padding: 18px 0; }
.document-row button { border: 0; background: transparent; padding: 0; text-align: left; }
.document-row h3 { margin: 0 0 6px; font-size: 13px; font-weight: 550; }
.document-row p { margin: 0; color: var(--faint); font-size: 10px; }
.document-row .status { justify-self: end; color: var(--accent); font-size: 10px; }
.document-row .status.processing { color: var(--muted); }.document-row button:disabled { cursor: default; opacity: 1; }
.document-list.compact .document-row { padding: 14px 0; }
.settings-page { max-width: 700px; }
.setting-block { display: flex; justify-content: space-between; gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.setting-block h3 { margin: 0 0 12px; font-size: 13px; }
.setting-block p { margin: 0; max-width: 510px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.setting-block p b { color: var(--ink); font-size: 12px; line-height: 2.2; }
.switch-row { align-items: center; cursor: pointer; }
.switch-row input { display: none; }
.switch { width: 38px; height: 22px; position: relative; flex: none; border-radius: 20px; background: #c8c7c1; transition: .2s; }
.switch::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: .2s; }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(16px); }

.student-view { width: 100%; height: 100vh; overflow: hidden; background: var(--bg); }
.reader-sidebar { width: 238px; flex: 0 0 238px; display: flex; flex-direction: column; padding: 21px 14px 14px; background: #efeee9; border-right: 1px solid var(--line); }
.course-back { align-self: flex-start; border: 0; background: transparent; color: var(--muted); padding: 6px 8px; font-size: 11px; }
.reader-course { padding: 25px 9px 18px; }
.reader-course > span { color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.reader-course h1 { margin: 7px 0 6px; font-size: 17px; }
.reader-course p { margin: 0; color: var(--muted); font-size: 10px; }
.reader-search { display: flex; align-items: center; gap: 8px; margin: 4px 7px 0; padding: 8px 9px; border-radius: 8px; background: rgba(255,255,255,.55); color: var(--faint); }
.reader-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.reader-toc { display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.reader-toc button { display: flex; gap: 9px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #585853; text-align: left; font-size: 11px; line-height: 1.45; }
.reader-toc button span { min-width: 24px; color: var(--faint); font-size: 9px; }
.reader-toc button.active { background: rgba(255,255,255,.62); color: var(--ink); font-weight: 600; }
.reader-toc button.active span { color: var(--accent); }
.reader-profile { margin-top: auto; width: 100%; padding: 9px 10px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.reader-main { position: relative; flex: 1; min-width: 0; height: 100vh; overflow: auto; background: var(--bg); transition: width .25s ease; }
.reading-toolbar { height: 58px; position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 27px; background: rgba(247,246,242,.91); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(38,38,36,.06); }
.reading-toolbar p { margin: 0; color: var(--muted); font-size: 10px; }
.reading-toolbar button { border: 0; background: transparent; color: var(--muted); font-family: var(--serif); }
.paper { width: min(720px, calc(100% - 72px)); min-height: calc(100vh - 98px); margin: 18px auto 40px; padding: 70px clamp(45px, 8vw, 90px) 100px; background: var(--paper); box-shadow: 0 2px 18px rgba(42,40,34,.045); }
.paper .chapter-kicker { margin: 0 0 12px; color: var(--accent); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.paper h1 { margin: 0 0 13px; font: 700 34px/1.25 var(--serif); letter-spacing: -.02em; }
.paper .lead { margin: 0 0 39px; padding-bottom: 32px; border-bottom: 1px solid var(--line); color: var(--muted); font: 15px/1.8 var(--serif); }
.paper section { scroll-margin-top: 78px; }
.paper h2 { margin: 38px 0 15px; font: 700 19px/1.5 var(--serif); }
.paper section > p { margin: 0 0 18px; color: #3c3c38; font: 14px/2.05 var(--serif); }
.formula { margin: 29px 0; padding: 26px; background: #f5f3ed; text-align: center; font: 21px var(--serif); }
.formula span { margin-left: -2px; vertical-align: 16px; font-size: 8px; }
.formula sub { margin-left: -10px; font-size: 8px; }
.paper figure { margin: 30px 0; padding: 22px; border: 1px solid var(--line); }
.paper figcaption { margin-top: 15px; color: var(--faint); font: 10px var(--sans); text-align: center; }
.signal-figure { height: 100px; display: flex; align-items: end; justify-content: space-around; padding: 0 22px; border-left: 1px solid #aaa9a3; border-bottom: 1px solid #aaa9a3; }
.signal-figure i { width: 2px; height: 36px; position: relative; display: block; background: var(--accent); }
.signal-figure i:nth-child(2) { height: 62px; }.signal-figure i:nth-child(3) { height: 87px; }.signal-figure i:nth-child(4) { height: 71px; }.signal-figure i:nth-child(5) { height: 43px; }.signal-figure i:nth-child(6) { height: 22px; }
.signal-figure i::after { content: ""; width: 7px; height: 7px; position: absolute; top: -3px; left: -2.5px; border-radius: 50%; background: var(--accent); }
.paper blockquote { margin: 27px 0; padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--accent-soft); color: #3f5d50; font: 13px/1.8 var(--serif); }
.page-anchor { display: inline-block; padding: 4px 7px; border-radius: 5px; background: var(--warm); color: var(--faint); font: 9px var(--sans); }
.ask-fab { position: fixed; right: 28px; bottom: 25px; z-index: 6; display: flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--ink); color: #fff; box-shadow: 0 7px 24px rgba(38,38,36,.16); font-size: 11px; }
.ask-fab span { color: #d9e9df; }

.ta-panel { width: 0; flex: 0 0 0; overflow: hidden; display: flex; flex-direction: column; background: var(--paper); border-left: 0 solid var(--line); transition: width .25s ease, flex-basis .25s ease, border-width .25s ease; }
.student-view.ta-open .ta-panel { width: 410px; flex-basis: 410px; border-left-width: 1px; }
.student-view.ta-open .ask-fab { display: none; }
.ta-header { height: 59px; min-width: 370px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--line); }
.ta-header > div { display: flex; align-items: center; gap: 9px; }
.ta-header > div > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ta-header b { font-size: 12px; }
.ta-header small { color: var(--faint); font-size: 9px; }
.ta-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: #fff; font: 11px var(--serif); }
.ta-header button { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); font-size: 18px; }
.context-strip { min-width: 370px; display: flex; align-items: center; gap: 8px; padding: 9px 18px; background: #f4f2ec; border-bottom: 1px solid var(--line); font-size: 9px; }
.context-strip span { color: var(--faint); }.context-strip b { font-weight: 600; }
.messages { min-width: 370px; flex: 1; overflow: auto; padding: 22px 20px; }
.message { display: flex; margin-bottom: 20px; }
.message.user { justify-content: flex-end; }
.bubble { max-width: 92%; color: #373733; font-size: 12px; line-height: 1.72; }
.bubble h3 { margin: 0 0 7px; font-size: 12px; font-weight: 600; }
.bubble > p { margin: 0; }.bubble > small { display: block; margin-top: 5px; color: var(--faint); font-size: 10px; }
.user .bubble { padding: 10px 12px; border-radius: 12px 12px 3px 12px; background: #eeece6; }
.suggestions { display: flex; flex-direction: column; gap: 5px; margin-top: 16px; }
.suggestions button { padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: #50504b; text-align: left; font-size: 10px; }
.suggestions button:hover { background: #f4f2ec; }
.trace { display: flex; gap: 5px; margin-bottom: 8px; color: var(--faint); font-size: 9px; }
.trace span:not(:nth-child(2)) { padding: 2px 6px; border-radius: 5px; background: #f1efe9; }
.source-intro { margin: 13px 0 6px !important; color: var(--muted); font-size: 9px; }
.sources { display: flex; flex-direction: column; gap: 5px; }
.source-card { padding: 8px 9px; border: 0; border-left: 2px solid #c8c5bd; background: #f6f4ef; color: inherit; text-align: left; text-decoration: none; }
.source-card b, .source-card span { display: block; font-size: 9px; }.source-card b { margin-bottom: 3px; }.source-card span { color: var(--faint); }
.answer-content p { margin: 0 0 10px; }.answer-content h3 { margin: 22px 0 9px; font-size: 14px; }.answer-content h4 { margin: 18px 0 8px; font-size: 12px; }.answer-content hr { margin: 18px 0; border: 0; border-top: 1px solid var(--line); }.answer-content .answer-space { display: block; height: 4px; }.answer-content .answer-bullet { position: relative; padding-left: 13px; }.answer-content .answer-bullet::before { content: "•"; position: absolute; left: 1px; color: var(--accent); }.answer-content .answer-step { padding: 8px 10px; border-left: 2px solid #b6cfc5; background: #f5f8f6; }
.answer-content blockquote { margin: 13px 0 16px; padding: 11px 13px; border-left: 2px solid #8fb2a8; background: #f5f7f4; color: #3e4541; line-height: 1.8; }
.answer-content ul, .answer-content ol { margin: 8px 0 16px; padding-left: 22px; }.answer-content li { margin: 7px 0; padding-left: 2px; line-height: 1.8; }.answer-content li::marker { color: var(--accent); }
.answer-content code { padding: 1px 4px; border-radius: 4px; background: #efede7; font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.answer-inline-formula { display: inline-block; max-width: 100%; margin: 0 .08em; vertical-align: -.08em; white-space: nowrap; }
.answer-inline-formula .katex { font-size: 1em; }
.answer-math-source { display: inline; }.answer-formula-source { margin: 16px 0; overflow-x: auto; text-align: center; }
.thinking { color: var(--muted); }.thinking span::after { content: ""; animation: dots 1.3s infinite; }
@keyframes dots { 33% { content: "."; } 66% { content: ".."; } 100% { content: "..."; } }
.composer { min-width: 370px; padding: 12px 15px; border-top: 1px solid var(--line); }
.input-wrap { display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; }
.input-wrap:focus-within { border-color: rgba(47,107,85,.55); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-wrap textarea { width: 100%; min-height: 42px; max-height: 120px; resize: none; padding: 5px; border: 0; outline: 0; background: transparent; font-size: 11px; line-height: 1.6; }
.composer-tools { display: flex; align-items: center; justify-content: space-between; }.composer-tools button { width: 29px; height: 29px; border: 0; border-radius: 7px; }.composer-tools #composer-plus { background: transparent; color: var(--muted); font-size: 18px; }.composer-tools #composer-plus:hover { background: var(--warm); }.composer-tools .send-button { background: var(--ink); color: #fff; }
.composer > p { margin: 7px 0 0; color: var(--faint); font-size: 8px; text-align: center; }
.selection-menu { display: none; position: fixed; z-index: 9; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); box-shadow: 0 8px 25px rgba(0,0,0,.16); }
.selection-menu.show { display: flex; }
.selection-menu button { padding: 6px 8px; border: 0; background: transparent; color: #fff; font-size: 9px; }
.selection-menu button:hover { background: rgba(255,255,255,.1); border-radius: 5px; }
mark { background: #f5d989; padding: 1px 2px; }

.overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(28,28,26,.28); opacity: 0; pointer-events: none; transition: opacity .18s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal { width: min(480px, 100%); padding: 22px; border-radius: 14px; background: var(--paper); box-shadow: 0 20px 70px rgba(24,24,22,.22); transform: translateY(8px); transition: transform .18s; }
.overlay.open .modal { transform: translateY(0); }
.modal header, .drawer header { display: flex; justify-content: space-between; align-items: flex-start; }
.modal h2, .drawer h2 { margin: 0 0 7px; font-size: 17px; }.modal header p { margin: 0; color: var(--muted); font-size: 11px; }
.close-overlay { border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.dropzone { width: 100%; margin: 25px 0 14px; padding: 35px 20px; display: flex; flex-direction: column; align-items: center; gap: 7px; border: 1px dashed var(--line-strong); border-radius: 10px; background: #f5f3ed; }
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone > span { font-size: 20px; }.dropzone b { font-size: 12px; }.dropzone small, .modal-note { color: var(--faint); font-size: 9px; }.modal-note { margin: 0; line-height: 1.6; }
.drawer-overlay { place-items: stretch end; padding: 0; }
.drawer { width: min(410px, 100%); height: 100%; padding: 25px; background: var(--paper); box-shadow: -15px 0 60px rgba(24,24,22,.12); transform: translateX(100%); transition: transform .22s; }
.overlay.open .drawer { transform: translateX(0); }
.drawer section { margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--line); }.drawer h3 { margin: 0 0 10px; font-size: 13px; }.drawer p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.drawer-setting { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 24px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }.drawer-setting h3 { margin-bottom: 7px; }.drawer-setting p { margin: 0; }.drawer-setting input { display: none; }.drawer-setting input:checked + .switch { background: var(--accent); }.drawer-setting input:checked + .switch::after { transform: translateX(16px); }
.environment-status { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 0; }.environment-status i { width: 8px; height: 8px; border-radius: 50%; background: #b38748; }.environment-status > span { display: flex; flex-direction: column; gap: 3px; }.environment-status b { font-size: 11px; }.environment-status small { color: var(--faint); font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; padding: 9px 13px; border-radius: 8px; background: var(--ink); color: #fff; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s; font-size: 10px; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { padding: 25px 0; color: var(--muted); font-size: 11px; }

/* 2026 teacher workspace: AI-first, high-legibility overview */
.workspace-sidebar { width: 198px; flex-basis: 198px; padding: 30px 17px 18px; background: #fbfcfb; }
.brand { gap: 11px; padding: 0 18px 32px; font-size: 15px; }
.brand > span { width: 34px; height: 34px; border-radius: 10px; background: #188b78; font-family: var(--sans); }
.product-nav { display: flex; flex-direction: column; gap: 7px; }
.product-nav button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 17px; border: 0; border-radius: 10px; background: transparent; color: #343b39; text-align: left; font-size: 13px; }
.product-nav button > span { width: 18px; color: #4f5855; font-size: 17px; text-align: center; }
.product-nav button.active { background: #e7f3ef; color: #0b7565; font-weight: 600; }
.product-nav button.active > span { color: #168c79; }
.sidebar-foot { padding: 18px 7px 0; }
.sidebar-foot > button { padding: 9px 11px; }
.profile { margin-top: 7px; }
.teacher-view { background: #fbfcfb; }
.course-header { width: min(1260px, calc(100% - 72px)); padding: 31px 0 23px; }
.course-header h1 { margin-bottom: 7px; font-size: 26px; }
.course-header p { font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.header-actions > button { height: 36px; border: 0; background: transparent; color: #3e4744; }
.header-actions select { height: 36px; padding: 0 32px 0 11px; border: 1px solid #dfe4e1; border-radius: 8px; outline: 0; background: #fff; color: #4f5754; font-size: 10px; }
.header-profile { display: flex; align-items: center; gap: 8px; padding: 0 8px !important; }
.header-profile > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #148a76; color: #fff; font-size: 11px; }
.course-tabs { display: none; }
.course-content { width: min(1260px, calc(100% - 72px)); padding: 5px 0 56px; }
.overview-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(440px, 1.15fr); gap: 20px; margin: 4px 0 20px; }
.ai-insight, .utility-metrics, .dashboard-panel { border: 1px solid #dfe6e3; border-radius: 14px; background: #fff; box-shadow: 0 3px 14px rgba(31,54,46,.035); }
.ai-insight { min-height: 232px; padding: 26px 28px; background: linear-gradient(135deg, #eff9f7 0%, #f9fcfb 76%); border-color: #b9ddd5; }
.ai-label { display: flex; align-items: center; gap: 10px; color: #174f46; }
.ai-label > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #138b77; color: #fff; }
.ai-label b { font-size: 14px; }
.ai-label small { padding: 3px 7px; border: 1px solid #b9d8d1; border-radius: 99px; color: #58736d; font-size: 9px; }
.ai-insight h2 { margin: 25px 0 25px; color: #11584d; font-size: clamp(19px, 1.75vw, 26px); line-height: 1.6; letter-spacing: -.02em; }
.ai-insight > button { display: flex; align-items: center; gap: 14px; padding: 10px 17px; border: 0; border-radius: 9px; background: #148b78; color: #fff; font-size: 12px; font-weight: 600; }
.utility-metrics { min-height: 232px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 26px 8px; }
.utility-metrics > button { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; border-right: 1px solid #e7ebe9; background: transparent; }
.utility-metrics > button:last-child { border-right: 0; }
.metric-icon { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; font-size: 24px; font-weight: 600; }
.metric-icon.blue { color: #2462c9; background: #edf3ff; }.metric-icon.orange { color: #da7418; background: #fff4e7; }.metric-icon.green { color: #168761; background: #eaf7ef; }
.utility-metrics strong { font-size: 38px; line-height: 1.1; letter-spacing: -.04em; }
.utility-metrics > button:nth-child(1) strong { color: #2861c1; }.utility-metrics > button:nth-child(2) strong { color: #d86f15; }.utility-metrics > button:nth-child(3) strong { color: #147c59; }
.utility-metrics small { margin-top: 7px; color: #303633; font-size: 13px; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dashboard-panel { min-width: 0; overflow: hidden; }
.dashboard-panel .section-heading { align-items: center; margin: 0; padding: 18px 21px; border-bottom: 1px solid #e7ebe9; }
.dashboard-panel .section-heading h2 { font-size: 15px; }
.dashboard-panel .section-heading button { color: #176fd1; }
.dashboard-panel .question-list, .dashboard-panel .document-list { padding: 0 20px; }
.dashboard-panel .question-row { grid-template-columns: 62px minmax(0, 1fr) 76px; gap: 10px; padding: 18px 0; }
.dashboard-panel .question-row h3, .dashboard-panel .document-row h3 { font-size: 12px; }
.dashboard-panel .inline-action { margin: 0 20px 17px; }
.page-intro { padding-top: 30px; }
.course-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; }
.course-cards > button { min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid #e0e5e2; border-radius: 13px; background: #fff; text-align: left; }
.course-cards > button.active { border-color: #abd4ca; background: #f4faf8; }
.course-cards span { color: var(--faint); font-size: 9px; }.course-cards h3 { margin: 17px 0 9px; font-size: 17px; }.course-cards p { margin: 0; color: var(--muted); font-size: 11px; }.course-cards i { margin-top: auto; color: #137966; font-size: 10px; font-style: normal; }
.student-roster { margin-top: 24px; border: 1px solid #e0e5e2; border-radius: 13px; overflow: hidden; background: #fff; }
.student-roster > div { display: grid; grid-template-columns: 180px minmax(0,1fr) 90px 90px; align-items: center; gap: 18px; min-height: 64px; padding: 0 20px; border-bottom: 1px solid #e8ecea; color: var(--muted); font-size: 11px; }
.student-roster > div:last-child { border-bottom: 0; }.student-roster .roster-head { min-height: 43px; background: #f8faf9; color: var(--faint); font-size: 9px; }
.student-roster > div > span:first-child { display: flex; align-items: center; gap: 10px; color: var(--ink); }.student-roster i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #e7f1ed; color: #216b59; font-style: normal; }.student-roster b { font-size: 11px; }
.instruction-setting textarea { width: 100%; margin: 14px 0 10px; padding: 11px 12px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; background: #fbfaf7; color: #42423e; font-size: 11px; line-height: 1.7; }
.instruction-setting textarea:focus { border-color: rgba(47,107,85,.55); box-shadow: 0 0 0 3px var(--accent-soft); }
.instruction-setting .primary { width: 100%; }
.api-setting > div { display: flex; gap: 7px; margin-top: 12px; }.api-setting input { min-width: 0; flex: 1; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: #fbfaf7; font-size: 10px; }.api-setting button { padding: 0 13px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-size: 10px; }

/* Student course home: whitespace and asking first, reading second */
.student-view { background: #fbfaf7; }
.student-view:not(.reading-book) .reader-main, .student-view:not(.reading-book) .ta-panel { display: none; }
.student-view.reading-book .student-home { display: none; }
.student-home { flex: 1; min-width: 0; height: 100vh; overflow: auto; background: #fbfaf7; }
.student-home > header { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; color: var(--muted); font-size: 11px; }
.student-home > header button, .continue-reading button { border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.student-home-inner { width: min(780px, calc(100% - 64px)); display: flex; flex-direction: column; margin: 0 auto; padding: clamp(80px, 12vh, 132px) 0 70px; }
.student-welcome { order: 1; }.home-composer { order: 2; }.home-suggestions { order: 3; }.conversation-heading { order: 4; }.home-answer { order: 5; }.continue-reading { order: 6; }
.student-welcome { text-align: center; }
.student-ai-mark { width: 39px; height: 39px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 12px; background: #2d2d2a; color: #f6f4ed; font-size: 16px; }
.student-welcome h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }
.student-welcome p { margin: 0; color: var(--muted); font-size: 12px; }
.home-composer { margin-top: 38px; padding: 15px 16px 10px; border: 1px solid #d7d6d0; border-radius: 17px; background: #fff; box-shadow: 0 8px 30px rgba(38,38,36,.06); }
.home-composer:focus-within { border-color: #9baaa4; box-shadow: 0 8px 34px rgba(38,38,36,.08), 0 0 0 3px rgba(47,107,85,.08); }
.home-composer textarea { width: 100%; min-height: 54px; resize: none; border: 0; outline: 0; background: transparent; font-size: 15px; line-height: 1.6; }
.home-composer > div { display: flex; align-items: center; gap: 9px; }
.home-composer button { width: 31px; height: 31px; border: 0; border-radius: 9px; }
.home-composer #home-plus { background: transparent; color: var(--muted); font-size: 18px; }
.home-composer span { margin-right: auto; color: var(--faint); font-size: 9px; }
.home-send { background: #2d2d2a; color: #fff; }
.home-suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.home-suggestions button { padding: 8px 12px; border: 1px solid #e0dfda; border-radius: 99px; background: transparent; color: #65645f; font-size: 10px; }
.home-suggestions button:hover { background: #f2f0ea; }
.home-answer { display: none; margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line); }
.home-answer.show { display: block; }
.home-question { margin: 0 0 25px auto; width: fit-content; max-width: 80%; padding: 10px 13px; border-radius: 13px 13px 3px 13px; background: #efede7; font-size: 12px; }
.home-response { max-width: 690px; }
.home-response .bubble { max-width: 100%; font-size: 13px; }
.home-thinking, .home-error { color: var(--muted); font-size: 12px; }
.home-thinking span::after { content: ""; animation: dots 1.3s infinite; }
.home-error { padding: 18px 20px; border: 1px solid #e0ded7; border-radius: 12px; background: #f8f6f1; }.home-error b { display: block; margin-bottom: 6px; color: #3f413d; }.home-error p { margin: 0 0 14px; line-height: 1.7; }.home-error button { padding: 7px 11px; border: 1px solid #d5d4ce; border-radius: 7px; background: #fff; color: #454944; font-size: 10px; }
.continue-reading { margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--line); }
.continue-reading > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.continue-reading h2 { margin: 0; font-size: 13px; }
.student-material-list { display: flex; flex-direction: column; }
.student-material { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.material-mark { width: 34px; height: 40px; display: grid; place-items: center; border-radius: 5px; background: #e7eee9; color: #35634f; font: 12px var(--serif); }
.student-material > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.student-material b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.student-material small, .student-material i { color: var(--faint); font-size: 9px; font-style: normal; }
.student-home-link { display: flex; align-items: center; gap: 8px; width: calc(100% - 14px); margin: 0 7px 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #575751; text-align: left; font-size: 11px; }
.student-home-link.active { background: rgba(255,255,255,.72); color: var(--ink); font-weight: 600; }
.new-conversation { display: flex; align-items: center; gap: 8px; width: calc(100% - 14px); margin: 0 7px 18px; padding: 9px 10px; border: 1px solid rgba(38,38,36,.1); border-radius: 8px; background: rgba(255,255,255,.4); color: #474742; text-align: left; font-size: 10px; }
.new-conversation:hover { background: rgba(255,255,255,.82); }
.conversation-nav { min-height: 0; display: flex; flex-direction: column; flex: 1; }
.conversation-nav .nav-label { margin: 0 10px 6px; color: #a09e96; font-size: 9px; }
.conversation-list { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 0 4px 10px; }
.conversation-list button { width: 100%; padding: 8px 9px; overflow: hidden; border: 0; border-radius: 7px; background: transparent; color: #62615c; text-align: left; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.conversation-list button:hover { background: rgba(255,255,255,.55); color: #33332f; }
.conversation-list button.active { background: rgba(255,255,255,.9); color: #292925; font-weight: 600; }
.conversation-empty { margin: 8px 10px; color: #aaa89f; font-size: 9px; line-height: 1.6; }
.student-view.reading-book .conversation-nav, .student-view.reading-book .new-conversation { display: none; }
.student-view:not(.reading-book) .reader-search, .student-view:not(.reading-book) .reader-sidebar > .nav-label, .student-view:not(.reading-book) .reader-toc { display: none; }
.conversation-heading { display: none; margin: 0 0 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.conversation-heading.show { display: block; }
.conversation-heading span { color: var(--faint); font-size: 9px; }
.conversation-heading h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.025em; }
.student-home.has-conversation .student-welcome, .student-home.has-conversation .home-suggestions { display: none; }
.student-home.has-conversation .student-home-inner { padding-top: 54px; }
.student-home.has-conversation .conversation-heading { order: 1; }.student-home.has-conversation .home-answer { order: 2; }.student-home.has-conversation .home-composer { order: 3; }
.student-home.has-conversation .home-answer { padding-bottom: 118px; }
.student-home.has-conversation .home-composer { position: sticky; bottom: 20px; z-index: 3; margin-top: 34px; }
.student-home.has-conversation .continue-reading { display: none; }
.conversation-message { margin-bottom: 30px; }
.conversation-message.assistant { max-width: 690px; }
.conversation-message .home-question { margin-bottom: 0; }
.source-page-marker { display: block; margin: 28px 0 12px; color: #aaa89f; font: 9px var(--sans); letter-spacing: .06em; }
.book-figure { margin: 34px 0 38px !important; padding: 0 !important; border: 0 !important; }
.open-figure { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid #e0ded6; border-radius: 8px; background: #fff; cursor: zoom-in; }
.open-figure img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.open-figure span { position: absolute; right: 10px; bottom: 10px; padding: 6px 9px; border-radius: 99px; background: rgba(35,35,33,.78); color: #fff; font: 9px var(--sans); opacity: 0; transform: translateY(3px); transition: .18s ease; }
.open-figure:hover span, .open-figure:focus-visible span { opacity: 1; transform: none; }
.book-figure figcaption small { color: #aaa89f; font-size: inherit; }
.book-formula { margin: 28px 0 34px; padding: 24px 22px 12px; border: 1px solid #e2e0d8; border-radius: 8px; background: #fbfaf6; overflow-x: auto; }
.book-formula .formula-render { min-height: 48px; display: grid; place-items: center; color: #2e2e2a; font-size: 1.02em; }
.book-formula > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 9px; border-top: 1px solid rgba(38,38,36,.07); color: #aaa89f; font: 9px var(--sans); }
.copy-latex { border: 0; background: transparent; color: var(--accent); font: 9px var(--sans); cursor: pointer; }
.book-formula-image { padding: 0 !important; border: 0 !important; background: transparent; }
.book-formula-image .open-figure { width: min(100%, 560px); margin: 0 auto; }
.book-formula-image figcaption { color: #8e8c84; }
.formula-render-error { white-space: pre-wrap; color: #6d4e42 !important; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.answer-formula { margin: 14px 0; overflow-x: auto; font-size: 1.02em; }
.figure-lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(27,27,25,.88); backdrop-filter: blur(8px); }
.figure-lightbox.open { display: flex; }
.figure-lightbox-stage { max-width: min(1100px, 92vw); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.figure-lightbox-stage img { max-width: 100%; max-height: calc(90vh - 42px); object-fit: contain; border-radius: 4px; background: #fff; box-shadow: 0 18px 70px rgba(0,0,0,.35); }
.figure-lightbox-stage p { margin: 0; color: rgba(255,255,255,.78); font: 11px var(--sans); }
.figure-lightbox-close { position: fixed; top: 20px; right: 24px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 23px; }
.paper.large-type section > p { font-size: 17px; line-height: 2.12; }
.paper.large-type h2 { font-size: 22px; }
.composer-tools > span { margin-left: 5px; color: var(--faint); font-size: 8px; }

/* Course-first teacher workspace */
.teacher-view .course-tabs { display: flex; width: min(1260px, calc(100% - 72px)); gap: 28px; }
.teacher-view.course-listing .course-tabs { display: none; }
.course-breadcrumb { display: block; margin: 0 0 12px; padding: 0; border: 0; background: transparent; color: #6e7773; font-size: 10px; }
.course-breadcrumb::before { content: "← "; }
.course-listing .course-breadcrumb { display: none; }
.course-listing .course-header { padding-bottom: 12px; }
.course-listing .course-content { padding-top: 0; }
.course-header p:empty { display: none; }
.course-list-actions { min-height: 66px; justify-content: flex-end; padding-top: 12px; }
.course-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.course-cards > button { min-height: 265px; padding: 26px; border-color: #dfe5e2; transition: border-color .18s, transform .18s, box-shadow .18s; }
.course-cards > button:hover { transform: translateY(-2px); border-color: #a9c8be; box-shadow: 0 10px 28px rgba(31,54,46,.07); }
.course-cards h3 { margin-top: 20px; font-size: 21px; letter-spacing: -.02em; }
.course-card-signal { width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #e7ebe9; text-align: left; }
.course-card-signal b { color: #1a6657; font-size: 24px; }.course-card-signal small { color: var(--muted); font-size: 10px; }
.course-card-signal em { grid-column: 1 / -1; margin-top: 9px; color: #555e5a; font-size: 11px; font-style: normal; }
.course-overview-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr); gap: 40px; padding: 42px 0 36px; border-bottom: 1px solid var(--line); }
.course-insight > span { color: #237663; font-size: 10px; font-weight: 650; }
.course-insight h2 { max-width: 680px; margin: 15px 0 22px; font-size: clamp(21px, 2.2vw, 31px); line-height: 1.55; letter-spacing: -.025em; }
.course-insight button { padding: 0; border: 0; background: transparent; color: #24705f; font-size: 11px; }
.course-facts { display: grid; grid-template-columns: repeat(2, 1fr); align-self: center; border-left: 1px solid var(--line); }
.course-facts > * { min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 13px 24px; border: 0; background: transparent; text-align: left; }
.course-facts > *:nth-child(odd) { border-right: 1px solid var(--line); }.course-facts > *:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.course-facts strong { font-size: 22px; font-weight: 620; }.course-facts span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.course-overview-head + .overview-grid { margin-top: 24px; }
.question-row p { letter-spacing: .01em; }
.student-state { color: #547267; }.student-state.attention { color: #9a6421; }
.student-tools { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.student-tools label { width: min(420px, 100%); display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #dfe4e1; border-radius: 9px; background: #fff; }
.student-tools label span { color: var(--muted); }.student-tools input { width: 100%; height: 40px; border: 0; outline: 0; background: transparent; font-size: 11px; }
.student-tools > button { padding: 0 15px; border: 1px solid #dfe4e1; border-radius: 9px; background: #fff; color: #525a57; font-size: 10px; }
.student-roster > div { grid-template-columns: 180px 145px minmax(0,1fr) 80px 90px; }
.student-roster > div > span:first-child { flex-wrap: wrap; }.student-roster > div > span:first-child small { width: 100%; padding-left: 39px; color: var(--faint); font-size: 8px; }
.student-id { color: #59635f; font-variant-numeric: tabular-nums; }
.page-intro .primary { white-space: nowrap; }

/* Variant A: persistent teacher copilot */
.teacher-view.active:not(.course-listing) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto 1fr; align-items: start; }
.teacher-view:not(.course-listing) > .course-header { grid-column: 1; grid-row: 1; width: min(1080px, calc(100% - 56px)); }
.teacher-view:not(.course-listing) > .course-tabs { grid-column: 1; grid-row: 2; width: min(1080px, calc(100% - 56px)); }
.teacher-view:not(.course-listing) > .course-content { grid-column: 1; grid-row: 3; width: min(1080px, calc(100% - 56px)); }
.teacher-view.course-listing .teacher-ta-panel { display: none; }
.teacher-ta-panel { grid-column: 2; grid-row: 1 / 4; position: sticky; top: 0; min-width: 0; height: 100vh; display: flex; flex-direction: column; border-left: 1px solid #e2e5e2; background: #fcfbf8; }
.teacher-ta-panel > header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid #e9ebe8; }
.teacher-ta-panel > header > div { display: flex; align-items: center; gap: 10px; }.teacher-ta-panel > header b { font-size: 16px; }
.teacher-ta-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #177d6c; color: #fff; font-size: 11px; }
.teacher-ta-panel > header button { width: 32px; height: 32px; border: 1px solid #dfe3df; border-radius: 8px; background: transparent; color: #59615e; }
.teacher-ta-body { flex: 1; overflow: auto; padding: 34px 25px 24px; }
.teacher-ta-insight > span { color: #247362; font-size: 9px; font-weight: 650; }.teacher-ta-insight h2 { margin: 13px 0 24px; font-size: 17px; line-height: 1.55; letter-spacing: -.02em; }
.teacher-ta-finding { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 10px; padding: 20px 18px; border: 1px solid #dfe3df; border-radius: 12px; background: #fff; }
.teacher-ta-finding i { color: #1c7664; font-style: normal; }.teacher-ta-finding p { margin: 0; color: #343a37; font-size: 12px; line-height: 1.85; }
.teacher-ta-actions { display: grid; gap: 8px; margin-top: 16px; }.teacher-ta-actions button { min-height: 40px; border: 1px solid #d9ddda; border-radius: 9px; background: #fff; font-size: 10px; }.teacher-ta-actions .primary { border-color: #1d7564; background: #1d7564; }
.teacher-ta-answer { display: none; margin-top: 30px; padding-top: 24px; border-top: 1px solid #e3e5e2; }.teacher-ta-answer.show { display: block; }
.teacher-ta-question { margin: 0 0 18px auto; padding: 9px 11px; border-radius: 10px 10px 3px 10px; background: #eeece6; color: #4b4d49; font-size: 10px; line-height: 1.6; }
.teacher-ta-thinking, .teacher-ta-error { color: #777a75; font-size: 10px; line-height: 1.7; }.teacher-ta-thinking span::after { content: ""; animation: dots 1.3s infinite; }
.teacher-ta-response .bubble { font-size: 11px; line-height: 1.8; }.teacher-ta-response .trace, .teacher-ta-response .source-intro { font-size: 8px; }
.teacher-ta-composer { position: relative; padding: 14px 18px 18px; border-top: 1px solid #e3e5e2; background: #fcfbf8; }
.teacher-ta-composer textarea { width: 100%; min-height: 68px; padding: 11px 42px 11px 12px; resize: none; border: 1px solid #d7dcd8; border-radius: 11px; outline: 0; background: #fff; font-size: 10px; line-height: 1.6; }
.teacher-ta-composer textarea:focus { border-color: #8eb4aa; box-shadow: 0 0 0 3px rgba(29,117,100,.07); }
.teacher-ta-composer button { position: absolute; right: 28px; bottom: 29px; width: 29px; height: 29px; border: 0; border-radius: 7px; background: #262624; color: #fff; }
.course-overview-head { display: block; padding-top: 30px; }
.course-overview-head .course-facts { grid-template-columns: repeat(4, 1fr); border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course-overview-head .course-facts > * { min-height: 96px; border: 0 !important; border-right: 1px solid var(--line) !important; padding: 16px 20px; }.course-overview-head .course-facts > *:last-child { border-right: 0 !important; }
.student-tools { margin-top: 28px; }
.student-roster { max-height: calc(100vh - 305px); overflow: auto; }
.student-roster .roster-head { position: sticky; top: 0; z-index: 2; }
.student-roster > div { min-width: 860px; }

@media (max-width: 1080px) {
  .workspace-sidebar, .reader-sidebar { width: 210px; flex-basis: 210px; }
  .student-view.ta-open .ta-panel { width: 360px; flex-basis: 360px; }
  .paper { width: calc(100% - 42px); padding-left: 45px; padding-right: 45px; }
  .overview-hero { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .course-cards { grid-template-columns: 1fr; }
  .course-overview-head { grid-template-columns: 1fr; gap: 28px; }
  .course-facts { border-left: 0; border-top: 1px solid var(--line); }
  .teacher-view.active:not(.course-listing) { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 820px) {
  .teacher-view.active:not(.course-listing) { display: flex; }
  .teacher-ta-panel { display: none; }
  .workspace-sidebar { width: 72px; flex-basis: 72px; padding: 20px 9px; }
  .brand { padding: 0 11px 20px; }.brand b, .new-course:not(:focus) { font-size: 0; }.new-course { justify-content: center; }
  .course-nav button { justify-content: center; font-size: 0; }.course-nav i { width: 8px; height: 8px; }.workspace-sidebar .nav-label, .profile > span:last-child, .view-switch, .sidebar-foot > button:first-child { display: none; }
  .course-header, .course-tabs, .course-content { width: calc(100% - 38px); }.course-header { padding-top: 35px; }
  .question-row { grid-template-columns: 70px 1fr; }.question-row .source { display: none; }
  .reader-sidebar { display: none; }.paper { width: calc(100% - 24px); padding: 50px 28px 80px; }
  .student-home-inner { width: calc(100% - 32px); padding-top: 70px; }
  .student-view.ta-open .ta-panel { position: absolute; inset: 0; z-index: 20; width: 100%; }.ta-header, .context-strip, .messages, .composer { min-width: 0; }
}
