:root {
  color-scheme: light;
  --brand: #00a1b0;
  --brand-dark: #007680;
  --navy: #0b1522;
  --ink: #17232e;
  --secondary: #526473;
  --muted: #617382;
  --line: #e3eaf0;
  --fill: #f2f6fa;
  --white: #fff;
  --accent: #4d59ca;
  --accent-soft: #eef0ff;
  --accent-line: #dce0fb;
  --radius: 18px;
  --shadow: 0 1px 2px #00000008, 0 12px 28px -24px #00000040;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--fill); color: var(--ink); font-size: 14px; line-height: 1.55; }
body[data-role="teacher"] { --accent: #007680; --accent-soft: #e6f7f6; --accent-line: #bde9e7; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 8; top: 8px; left: 80px; border-radius: 8px; background: white; padding: 10px; color: var(--brand-dark); }
.shell { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100dvh; padding: 19px 12px 16px; display: flex; align-items: center; flex-direction: column; gap: 10px; border-radius: 0 18px 18px 0; background: var(--navy); color: #aebdce; z-index: 3; }
.logo, .rail-button, .avatar { border: 0; display: grid; place-items: center; flex: none; }
.logo { height: 42px; width: 42px; margin: 0 0 22px; border: 1px solid #7dd9db; border-radius: 13px; background: #0ea7b3; color: #071e2f; }
.logo svg { width: 24px; height: 24px; }
.rail-button { position: relative; width: 48px; min-height: 50px; border-radius: 12px; background: transparent; color: inherit; align-content: center; gap: 3px; font-size: 10px; }
.rail-button svg { width: 20px; height: 20px; }
.rail-button:hover { background: #19283c; color: white; }
.rail-button[aria-current] { background: #133043; color: #7fe2e8; }
.rail :focus-visible { outline-color: #83e5e9; }
.rail-end { flex: 1; }
.avatar { width: 35px; height: 35px; border-radius: 50%; border: 1px solid #3d5066; background: #26374c; color: #edf5ff; font-size: 12px; font-weight: 700; }
.topbar { position: sticky; top: 0; z-index: 3; min-height: 65px; padding: 9px clamp(16px, 3.1vw, 48px); border-bottom: 1px solid var(--line); background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.crumb, .top-actions, .role-switch { display: flex; align-items: center; gap: 10px; }
.crumb { min-width: 0; color: var(--muted); font-size: 13px; }
.crumb strong { color: var(--ink); font-size: 14px; font-weight: 720; }
.crumb svg { width: 13px; height: 13px; color: #8799a6; }
.top-actions { gap: 14px; flex: none; }
.demo { font-size: 12px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.demo::before, .context::before { display: inline-block; content: ""; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: .12em; background: #00a1b0; }
.role-switch { padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: #f1f5f8; }
.role-switch button { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 11px; min-height: 32px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--secondary); white-space: nowrap; font-size: 12px; font-weight: 650; }
.role-switch button[aria-pressed="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); color: var(--accent); }
.role-switch svg { width: 15px; height: 15px; }
.main { width: min(100%, 1480px); margin: auto; padding: 30px clamp(16px, 3.1vw, 48px) 32px; }
.hero { isolation: isolate; position: relative; min-height: 313px; border-radius: 22px; border: 1px solid #dfe9f1; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .60fr); align-items: center; gap: 26px; padding: 30px clamp(21px, 3vw, 44px); background: radial-gradient(ellipse at 86% 40%, #e4f6f9 0%, transparent 63%), linear-gradient(112deg, #fff 8%, #f3f6ff 67%, #eaf3fa 100%); box-shadow: var(--shadow); }
.hero-copy { min-width: 0; }
.context { display: inline-flex; align-items: center; border: 1px solid #cee8eb; background: #f2fcfb; color: #096970; padding: 4px 9px; font-size: 11px; font-weight: 720; border-radius: 999px; line-height: 1.6; }
h1 { margin-top: 12px; font-size: clamp(27px, 3.1vw, 45px); font-weight: 800; line-height: 1.22; letter-spacing: -.045em; text-wrap: balance; }
.hero-copy > p { font-size: 14px; margin-top: 9px; color: var(--secondary); }
.composer { margin-top: 20px; min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 8px 9px 8px 13px; border: 1px solid #dce5ee; border-radius: 14px; background: white; box-shadow: 0 4px 8px #00000008, 0 14px 27px -24px #00000045; }
.composer:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }
.composer-sign { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); flex: none; }
.composer-sign svg { width: 17px; height: 17px; }
.composer input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; padding: 8px 0; }
.composer input::placeholder { color: var(--muted); }
.send { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border: 0; border-radius: 10px; background: var(--accent); color: white; }
.send:hover { filter: brightness(.92); }
.quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 33px; padding: 3px 9px; border: 1px solid #dce6ef; border-radius: 9px; background: #ffffffb8; color: var(--secondary); font-size: 12px; font-weight: 600; text-align: left; }
.chip svg { width: 14px; height: 14px; color: var(--accent); }
.chip:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(295px, 1fr); gap: 25px; margin-top: 27px; align-items: start; }
.home-column { min-width: 0; }
.section + .section { margin-top: 24px; }
.section-head { min-height: 32px; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 11px; }
.section-head h2 { font-size: 18px; line-height: 1.3; font-weight: 770; letter-spacing: -.02em; }
.section-head .subtle { color: var(--muted); font-size: 12px; white-space: nowrap; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 4px 0; border: none; background: transparent; color: var(--accent); font-size: 12px; font-weight: 700; text-align: left; }
.text-button svg { width: 15px; height: 15px; }
.text-button:hover { text-decoration: underline; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); min-width: 0; }
.feature { position: relative; overflow: hidden; padding: 20px 21px 16px; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.feature-top { display: flex; align-items: flex-start; gap: 13px; }
.tile { flex: none; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.tile svg { width: 21px; height: 21px; }
.tile.teal { color: #007781; background: #e6f7f6; }
.tile.purple { color: #515ac4; background: #eef0ff; }
.tile.amber { color: #8a5300; background: #fff3de; }
.tile.blue { color: #2465aa; background: #eaf4ff; }
.feature h3 { margin-top: 4px; font-size: clamp(18px, 1.65vw, 23px); font-weight: 780; letter-spacing: -.025em; line-height: 1.35; }
.feature h3, .feature p, .evidence-note { overflow-wrap: anywhere; }
.feature-top p { margin-top: 5px; color: var(--secondary); font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 2px 7px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 720; line-height: 1.5; }
.tag.warning { background: #fff3df; color: #865400; }
.tag.done { background: #e8f8f1; color: #157552; }
.tag.neutral { background: #f1f5f8; color: var(--secondary); }
.feature-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 13px; }
.feature-footer p { color: var(--muted); font-size: 12px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 39px; max-width: 100%; padding: 6px 11px; border: 1px solid #dce5ed; border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 675; text-align: center; }
.btn:hover { background: #f4f7fa; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.primary:hover { filter: brightness(.92); }
.btn svg { width: 15px; height: 15px; }
.row-list { padding: 1px 13px; }
.row { display: flex; align-items: center; text-align: left; width: 100%; min-height: 67px; gap: 10px; border: 0; border-radius: 9px; padding: 8px 1px; background: #fff; }
.row + .row { border-top: 1px solid #edf1f5; }
.row:hover { background: #f8fafc; }
.row .tile { width: 35px; height: 35px; border-radius: 10px; }
.row .tile svg { width: 17px; height: 17px; }
.row .copy { min-width: 0; flex: 1; }
.row strong, .row small { display: block; overflow-wrap: anywhere; }
.row strong { font-size: 13px; font-weight: 720; }
.row small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.row > svg { margin-left: auto; color: #758898; width: 15px; height: 15px; }
.teacher-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini { display: flex; align-items: center; gap: 9px; min-height: 72px; padding: 10px; text-align: left; }
.mini:hover { border-color: var(--accent-line); background-color: #fbfdfd; }
.mini .tile { width: 36px; height: 36px; border-radius: 10px; }
.mini .tile svg { width: 17px; height: 17px; }
.mini strong, .mini small { display: block; }
.mini strong { font-size: 13px; }
.mini small { margin-top: 2px; font-size: 11px; color: var(--muted); }
.mini > svg { margin-left: auto; width: 14px; height: 14px; color: var(--muted); }
.evidence-note { background: #eff9f9; border: 1px solid #d9edef; border-radius: 10px; padding: 9px 11px; margin-top: 13px; font-size: 12px; color: #295b63; display: flex; align-items: flex-start; gap: 6px; }
.evidence-note svg { width: 15px; height: 15px; margin-top: 1px; }
.page-footer { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 9px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.page-footer button { color: var(--secondary); }
.page-footer svg { width: 14px; height: 14px; }
dialog { width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 36px); padding: 0; border: 1px solid #d8e5ee; border-radius: 20px; color: var(--ink); box-shadow: 0 20px 75px #0000003d; overscroll-behavior: contain; }
dialog::backdrop { background: #0b15226b; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-head h2 { font-size: 18px; line-height: 1.4; }
.close { width: 36px; height: 36px; border: 0; background: var(--fill); color: var(--secondary); border-radius: 9px; display: grid; place-items: center; flex: none; }
.close:hover { background: #e4edf4; }
.dialog-body { padding: 17px 20px 21px; }
.dialog-body > * + * { margin-top: 13px; }
.dialog-body p { overflow-wrap: anywhere; }
.dialog-body > p, .detail p { color: var(--secondary); }
.dialog-body h3 { font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.detail { border: 1px solid var(--line); border-radius: 12px; background: #f7fafc; padding: 11px 13px; overflow-wrap: anywhere; min-width: 0; }
.detail p + p, .detail h3 + p { margin-top: 5px; }
.detail small { display: block; margin-top: 4px; color: var(--muted); }
.detail.accent { background: var(--accent-soft); border-color: var(--accent-line); }
.detail + .detail { margin-top: 8px; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; }
summary { cursor: pointer; padding: 3px 0; font-weight: 680; color: var(--accent); }
details p { padding-top: 5px; color: var(--secondary); }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 650; }
.field + .field, .field + .actions, .actions + .field, .fields > * + * { margin-top: 9px; }
.field textarea, .field input, .field select { width: 100%; border: 1px solid #cddae5; border-radius: 9px; background: white; padding: 8px 9px; font-weight: 400; }
.field textarea { resize: vertical; min-height: 74px; }
.field textarea[aria-invalid="true"], .field input[aria-invalid="true"] { border-color: #bb3333; }
.error { color: #9e2828; font-size: 12px; font-weight: 650; }
.composer .error { position: absolute; z-index: 2; margin-top: 90px; border: 1px solid #f1bcbc; border-radius: 6px; padding: 4px 8px; background: #fff; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.split > .detail { margin: 0; }
.thread { display: grid; gap: 8px; }
.bubble { max-width: min(92%, 530px); padding: 9px 12px; border-radius: 11px; background: #f1f5f9; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.me { justify-self: end; background: var(--accent-soft); }
.bubble strong { display: block; font-size: 11px; color: var(--accent); margin-bottom: 3px; }
.toast { position: fixed; z-index: 5; right: 20px; bottom: 20px; max-width: calc(100% - 40px); padding: 9px 13px; border-radius: 10px; background: #192c40; color: #fff; box-shadow: var(--shadow); }
.toast:empty { display: none; }
.student-main { width: min(100%, 980px); padding-inline: clamp(16px, 4vw, 48px); }
.welcome { text-align: center; padding-top: clamp(42px, 8.5vh, 100px); }
.welcome .agent-mark { margin-inline: auto; width: 58px; height: 58px; border: 1px solid #dce2fb; border-radius: 18px; }
.welcome .agent-mark svg { width: 29px; height: 29px; }
.welcome h1 { margin-top: 20px; }
.welcome > p { margin-top: 8px; color: var(--secondary); }
.student-composer { margin-top: 25px; }
.student-composer .composer { margin: 0; text-align: left; min-height: 73px; border-color: #cdd6ee; border-radius: 16px; }
.student-composer .composer input { font-size: 16px; }
.student-composer .send { width: 42px; height: 42px; }
.composer-options { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 2px 0; }
.role-label { font-size: 12px; color: var(--secondary); }
.role-label select { padding: 4px 6px; border: 0; background: transparent; color: var(--ink); border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 650; }
.welcome .quick { margin-top: 9px; justify-content: flex-start; }
.resume { width: 100%; display: flex; align-items: center; gap: 13px; padding: 14px 16px; margin-top: 23px; text-align: left; border-color: #dbe2f5; }
.resume:hover { border-color: var(--accent); background: #fbfcff; }
.resume .copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.resume .kicker { display: block; color: var(--accent); font-size: 12px; font-weight: 750; }
.resume strong { display: block; margin-top: 2px; font-size: 17px; }
.resume small { display: block; margin-top: 3px; font-size: 12px; color: var(--secondary); }
.resume-arrow { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: white; background: var(--accent); }
.student-updates { margin-top: 12px; }
.student-updates .row { min-height: 52px; }
.conversation-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.conversation-header h1, .launch-flow h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.035em; }
.conversation-header h1[tabindex="-1"]:focus, .inline-card h2[tabindex="-1"]:focus, .launch-body h2[tabindex="-1"]:focus { outline: none; }
.conversation-header p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.turns { display: grid; gap: 13px; }
.turns .bubble { max-width: min(93%, 720px); background: #fff; border: 1px solid #e1e8f0; padding: 11px 14px; border-radius: 4px 15px 15px 15px; }
.turns .bubble.me { border-radius: 15px 4px 15px 15px; background: var(--accent-soft); border-color: var(--accent-line); }
.agent-turn { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.agent-turn > .tile { width: 33px; height: 33px; border-radius: 9px; }
.agent-turn > .tile svg { width: 17px; height: 17px; }
.agent-turn .bubble { min-width: 0; }
.next-step-turn { margin-top: 14px; gap: 9px; scroll-margin-top: 82px; }
.next-step-card { flex: 1; min-width: 0; padding: 13px 15px; overflow-wrap: anywhere; }
.next-step-card > * + *, .next-step-item > * + * { margin-top: 8px; }
.next-step-card h2 { font-size: 17px; }
.next-step-card h2:focus { outline: none; }
.next-step-card h3 { font-size: 14px; }
.next-step-card p { color: var(--secondary); }
.next-step-evidence { font-size: 13px; }
.next-step-item { padding: 11px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-soft); }
.next-step-option { border-color: var(--line); background: var(--white); }
.next-step-item p { font-size: 13px; }
.feedback-history .course-attempt { margin-top: 9px; }
.split-role a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); text-decoration: none; font-weight: 700; }
.split-role a:hover { text-decoration: underline; }
.split-role svg { width: 15px; height: 15px; }
.diagnosis-list, .pbl-steps { display: grid; gap: 8px; }
.diagnosis-record, .pbl-stage { padding: 11px; border: 1px solid var(--line); border-radius: 10px; }
.diagnosis-record > * + *, .pbl-stage > * + * { margin-top: 6px; }
.pbl-stage h3, .diagnosis-record h3 { font-size: 14px; overflow-wrap: anywhere; }
.pbl-stage .detail p { white-space: pre-wrap; }
.pbl-stage-current { border-color: var(--accent-line); background: var(--accent-soft); }
.pbl-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.inline-card { margin: 12px 0 0 42px; padding: 15px 17px; scroll-margin-top: 82px; }
.inline-card > h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 17px; font-weight: 750; }
.inline-card > h2 svg { color: var(--accent); }
.inline-content > * + *, .launch-body > * + * { margin-top: 10px; }
.inline-content > p, .launch-body > p { color: var(--secondary); }
.inline-starter { margin: 12px 0 0 42px; }
.thread-composer { position: sticky; z-index: 2; bottom: 0; padding: 8px 0 6px; background: var(--fill); }
.thread-composer .composer { min-height: 60px; }
.showcase-graph { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.showcase-graph .btn { min-width: 0; text-wrap: balance; }
.showcase-graph .btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.showcase-graph > svg { width: 13px; height: 13px; color: var(--muted); }
.focus-task .inline-card { margin-inline: 0; }
.launch-flow { width: min(100%, 880px); margin: 0 auto; }
.launch-flow > .conversation-header { margin-bottom: 14px; }
.launch-body { padding: clamp(14px, 3vw, 27px); min-width: 0; }
.launch-body h2 { font-size: 19px; }
.launch-body p, .resume p { overflow-wrap: anywhere; }
.launch-track { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.launch-track li { display: flex; align-items: center; gap: 4px; }
.launch-track li[aria-current] { color: var(--accent); font-weight: 750; }
.launch-track svg { width: 13px; height: 13px; }
.launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.launch-grid > .field, .launch-grid > .detail { margin: 0; }
.launch-review { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.launch-review > .detail { margin: 0; }
.check-label { display: flex; gap: 8px; align-items: baseline; padding-block: 4px; font-size: 13px; color: var(--secondary); }
.check-label input { accent-color: var(--accent); }
.teacher-course-start { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.teacher-start-option { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 79px; padding: 11px 15px; text-align: left; }
.teacher-start-option .copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.teacher-start-option strong, .teacher-start-option small { display: block; }
.teacher-start-option strong { color: var(--ink); font-size: 17px; }
.teacher-start-option small { margin-top: 2px; color: var(--secondary); font-size: 12px; }
.teacher-start-option > svg { flex: none; color: var(--accent); }
.teacher-start-option.new-course { border-color: var(--accent-line); background: var(--accent-soft); }
.teacher-start-option:hover { border-color: var(--accent); }
.course-space { max-width: 1180px; margin-inline: auto; }
.course-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: clamp(16px, 3vw, 28px); background: linear-gradient(118deg, #fff 55%, #e9f8f6); }
.course-banner .feature-top { flex: 1 1 320px; min-width: 0; }
.course-banner h2 { margin-top: 4px; font-size: clamp(19px, 2.4vw, 25px); overflow-wrap: anywhere; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
.course-space .conversation-header h1, .inline-card > h2 { overflow-wrap: anywhere; }
.course-task-list { display: grid; gap: 8px; }
.course-task-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; padding: 11px 0; }
.course-task-row + .course-task-row { border-top: 1px solid var(--line); }
.course-task-list .course-task-row { padding: 12px; }
.course-task-row .copy { flex: 1 1 155px; min-width: 0; overflow-wrap: anywhere; }
.course-task-row .copy strong, .course-task-row .copy small { display: block; }
.course-task-row .copy small, .evidence-meta { color: var(--muted); font-size: 12px; }
.course-task-row .btn { min-height: 36px; }
.course-task-row .tile { width: 37px; height: 37px; }
.course-evidence { padding: clamp(12px, 2vw, 17px); }
.course-evidence > * + *, .course-attempt > * + * { margin-top: 9px; }
.course-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.course-attempt .detail p { white-space: pre-wrap; }
.mode-preview { margin-top: 15px; padding: 13px; }
.mode-preview .resume { margin-top: 0; box-shadow: none; border: 0; padding: 0; }
.mode-preview .resume:hover { background: transparent; color: var(--accent); }
.mode-preview > .actions { margin-top: 10px; }
.outline { display: grid; grid-template-columns: minmax(215px, .85fr) minmax(0, 2fr); align-items: start; gap: 16px; }
.outline-tree, .outline-unit { padding: clamp(12px, 2.2vw, 19px); min-width: 0; }
.outline h2 { font-size: 17px; overflow-wrap: anywhere; }
.outline h3 { font-size: 14px; overflow-wrap: anywhere; }
.outline-tree > * + *, .outline-unit > * + * { margin-top: 11px; }
.outline-chapter { padding: 8px 0; border-bottom: 1px solid var(--line); }
.outline-chapter .chapter-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.outline-chapter .chapter-title h3 { line-height: 1.35; }
.chapter-title h3 { flex: 1; min-width: 0; }
.outline-unit-row { display: flex; align-items: center; gap: 4px; margin-top: 5px; padding-right: 2px; }
.outline-unit-button { width: 100%; justify-content: flex-start; margin-top: 5px; border-color: transparent; text-align: left; overflow-wrap: anywhere; }
.outline-unit-row .outline-unit-button { width: auto; flex: 1; min-width: 0; margin-top: 0; }
.sort-grip { display: grid; place-items: center; flex: none; width: 30px; min-height: 34px; padding: 3px; color: var(--muted); border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: grab; touch-action: none; user-select: none; }
.sort-grip:hover, .sort-grip:focus-visible { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.sort-grip svg { width: 17px; height: 17px; pointer-events: none; }
.outline-sorting { cursor: grabbing; user-select: none; }
.outline-sorting .sort-grip { cursor: grabbing; }
.sort-source { opacity: .5; }
[data-drop-marker] { position: relative; }
[data-drop-marker="before"]::before, [data-drop-marker="after"]::after { content: ''; position: absolute; left: 2px; right: 2px; height: 3px; border-radius: 2px; background: var(--accent); pointer-events: none; z-index: 1; }
[data-drop-marker="before"]::before { top: -2px; }
[data-drop-marker="after"]::after { bottom: -2px; }
[data-drop-marker="inside"] { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; background: var(--accent-soft); }
.sort-follower { position: fixed; top: 0; left: 0; z-index: 10; max-width: min(250px, calc(100vw - 28px)); padding: 6px 11px; border: 1px solid var(--accent-line); border-radius: 8px; background: white; color: var(--accent); box-shadow: var(--shadow); pointer-events: none; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.sort-empty { padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.outline-unit-button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.outline-unit-button svg { order: -1; }
.outline-unit .section-head { margin-bottom: 0; flex-wrap: wrap; }
.outline-unit .section-head > div { min-width: 0; }
.outline-unit .evidence-meta, .student-structure summary { overflow-wrap: anywhere; }
.student-structure > details + details, .student-structure > details > details { margin-top: 8px; }
.student-structure .course-task-row { padding-inline: 2px; }
.draft-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.draft-summary + .actions { margin-top: 12px; }
.preview-path { width: min(100%, 850px); margin: 0 auto; }
.preview-path .inline-card { margin-inline: 0; }
.preview-path .conversation-header { flex-wrap: wrap; }
.preview-path .conversation-header h1 { overflow-wrap: anywhere; }
.preview-student { --accent:#4d59ca; --accent-soft:#eef0ff; --accent-line:#dce0fb; }
.preview-release { margin-top: 15px; padding: 15px; }
.preview-release > * + * { margin-top: 8px; }
.preview-release h2 { font-size: 17px; }
.preview-release p { color: var(--secondary); }
.preview-controls { margin: 0; padding: 0; border: 0; min-width: 0; }
.preview-controls > * + * { margin-top: 9px; }
.knowledge-map { min-width: 0; }
.kg-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); gap: 14px; align-items: start; }
.kg-editor, .kg-inspector { padding: clamp(12px, 2vw, 19px); }
.kg-inspector > * + *, .knowledge-map > * + * { margin-top: 10px; }
.kg-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.kg-lane { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #f6f9fc; }
.kg-lane h3 { font-size: 12px; color: var(--secondary); margin-bottom: 6px; }
.kg-lane .kg-node + .kg-node { margin-top: 5px; }
.kg-node { display: flex; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; text-align: left; overflow-wrap: anywhere; }
.kg-node[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.kg-open { padding: 10px; border: 1px dashed #cbd8e2; border-radius: 10px; }
.kg-open > summary { color: var(--ink); }
.kg-open .kg-node { margin-top: 6px; }
.kg-relations { display: grid; gap: 6px; }
.kg-relation { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.kg-relation details { flex: 1 1 100%; }
.kg-sources { display: grid; gap: 5px; }
.kg-sources .row { min-height: 54px; }
.kg-links { min-width: 0; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.kg-links .check-label { overflow-wrap: anywhere; }
.kg-layout .section-head { flex-wrap: wrap; }
.kg-node svg, .kg-relation svg { width: 15px; height: 15px; }
@media (max-width: 850px) {
  .kg-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .kg-stages { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 740px) {
  .course-layout, .outline { grid-template-columns: minmax(0, 1fr); }
  .course-banner, .course-banner .feature-top { align-items: flex-start; }
  .sort-grip { min-height: 40px; }
  .course-space .conversation-header { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .teacher-course-start { grid-template-columns: minmax(0,1fr); gap: 8px; margin-bottom: 12px; }
  .teacher-start-option { min-height: 64px; padding: 8px 11px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  button { transition: background-color .16s, border-color .16s, color .16s, filter .16s; }
  .btn:active, .send:active { scale: .96; }
}
@media (max-width: 1050px) {
  .main { padding-top: 22px; }
  .hero { gap: 12px; padding: 24px; }
  .dashboard { gap: 15px; }
}
@media (max-width: 780px) {
  .shell { grid-template-columns: 56px minmax(0, 1fr); }
  .rail { padding: 11px 4px; border-radius: 0 13px 13px 0; gap: 7px; }
  .logo { width: 36px; height: 36px; margin-bottom: 12px; }
  .rail-button { width: 43px; min-height: 45px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .dashboard { grid-template-columns: 1fr; margin-top: 18px; }
  .section + .section { margin-top: 16px; }
  .demo { display: none; }
}
@media (max-width: 500px) {
  .shell { display: block; }
  .rail { position: fixed; inset: auto 0 0; width: 100%; height: auto; flex-direction: row; justify-content: space-around; padding: 4px 7px max(4px, env(safe-area-inset-bottom)); border-radius: 13px 13px 0 0; gap: 2px; }
  .rail-end, .rail .avatar, .rail .logo { display: none; }
  .topbar { min-height: 55px; padding-inline: 11px; }
  .crumb svg, .crumb .path { display: none; }
  .crumb strong { font-size: 12px; }
  .role-switch button { padding-inline: 5px; min-height: 32px; }
  .role-switch svg { display: none; }
  .main { padding: 12px 11px 72px; }
  .hero { border-radius: 16px; padding: 14px; }
  h1 { font-size: 26px; }
  .hero-copy > p { font-size: 13px; }
  .composer { margin-top: 12px; gap: 7px; padding-left: 8px; }
  .composer input, .field textarea, .field input, .field select { font-size: 16px; }
  .composer-sign { display: none; }
  .feature { padding: 13px 13px 12px; }
  .feature-footer { flex-wrap: wrap; }
  .mini { align-items: flex-start; }
  .mini > svg { display: none; }
  .dialog-head, .dialog-body { padding-inline: 13px; }
  .welcome { padding: 33px 0 0; }
  .welcome .agent-mark { width: 49px; height: 49px; }
  .welcome .student-composer { margin-top: 17px; }
  .student-composer .composer { min-height: 59px; }
  .resume { margin-top: 17px; padding: 11px; gap: 9px; }
  .resume strong { font-size: 15px; }
  .resume small { font-size: 11px; }
  .resume .tile { width: 35px; height: 35px; }
  .resume-arrow { width: 30px; height: 30px; }
  .thread-composer { bottom: calc(53px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .conversation-header { align-items: flex-start; }
  .inline-card { margin-left: 0; padding: 12px; }
  .inline-starter { margin-left: 0; }
  .launch-grid, .launch-review { grid-template-columns: 1fr; }
}
.top-guide { min-height: 38px; white-space: nowrap; }
.workspace-home { display: grid; gap: 18px; margin-inline: auto; max-width: 1100px; }
.workspace-home h1 { margin-top: 0; }
.workspace-home .hero { min-height: 0; padding-block: clamp(18px, 3vw, 32px); }
.workspace-home .hero.full-width { grid-template-columns: minmax(0, 1fr); }
.workspace-home .hero.full-width {
  border-radius: 16px;
  box-shadow: none;
  background: #eaf3f3;
  border-color: #dce9e9;
}
.workspace-home .hero-copy { max-width: 760px; }
.workspace-home .home-agenda { background: transparent; box-shadow: none; padding: 0; border: 0; }
.workspace-home .mode-preview, .workspace-home .teacher-start-option { box-shadow: none; }
.portal-home { color: var(--brand-dark); font-weight: 680; text-decoration: none; white-space: nowrap; }
.portal-home:hover { text-decoration: underline; }
.agent-progress {
  margin-block: 12px 4px;
  padding: 12px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  text-align: left;
}
.agent-progress-head { display: flex; align-items: center; gap: 10px; }
.agent-progress-head .tile { width: 30px; height: 30px; background: var(--white); border-radius: 8px; }
.agent-progress-head svg { width: 16px; height: 16px; }
.agent-progress-head strong { font-size: 13px; }
.agent-progress-detail { font-size: 12px; color: var(--secondary); margin-top: 4px; }
.agent-progress-track { height: 4px; margin-top: 8px; background: var(--accent-line); border-radius: 4px; overflow: hidden; }
.agent-progress-track span { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--agent-progress, 0)); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .agent-progress-track span { transition: transform 240ms cubic-bezier(.2,.65,.3,1); }
}
.agent-job-active button[type="submit"] { cursor: wait; opacity: .65; }
.next-step-card .agent-progress { margin: 0; }
.welcome { padding-top: clamp(24px,5vh,57px); }
.workspace-home .teacher-course-start, .workspace-home .mode-preview { margin: 0; }
.home-agenda { padding: 18px; display: grid; gap: 10px; }
.home-agenda h2 { font-size: 19px; }
.home-agenda > p, .guide-intro > p, .guide-step p { color: var(--secondary); }
.home-agenda .resume { width: 100%; margin: 0; }
.course-context { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; margin-bottom: 16px; font-size: 13px; color: var(--secondary); }
.course-context strong { color: var(--ink); overflow-wrap: anywhere; }
.course-context .text-button { min-height: 40px; }
.course-work-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
a.btn { text-decoration: none; }
.student-home-group { margin-top: 21px; text-align: left; }
.student-home-group .student-updates { margin-top: 0; }
.guide-intro, .guide-steps { display: grid; gap: 10px; }
.guide-switch { display: flex; flex-wrap: wrap; gap: 7px; }
.guide-switch button[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.guide-steps { list-style: none; padding: 0; margin: 13px 0 0; }
.guide-step { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 6px; }
.guide-step header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; }
.guide-step h3 { font-size: 15px; overflow-wrap: anywhere; }
.guide-step a, .guide-step button { justify-self: start; }
.guide-state { color: var(--secondary); font-weight: 700; font-size: 12px; }
body[data-embedded] .topbar, body[data-embedded] .student-courses { display: none; }
body[data-embedded] .main { padding-top: clamp(12px, 2.6vw, 24px); }
body[data-embedded] .conversation-header h1 { font-size: clamp(24px, 4vw, 32px); }
body[data-embedded] .course-layout { grid-template-columns: 1fr; }
body[data-embedded] .embed-waiting { margin: 10vh auto 0; max-width: 390px; padding: 20px; }
body[data-embedded] .embed-waiting h1 { font-size: 24px; margin-bottom: 8px; }
body[data-embedded] .embed-waiting p { color: var(--secondary); }
@media (max-width: 580px) {
  .topbar { gap: 6px; }
  .top-actions { gap: 6px; }
  .topbar .crumb strong { font-size: 12px; }
  .portal-home { display: none; }
  .top-guide { padding-inline: 5px; font-size: 12px; }
  .top-guide svg { display: none; }
  .workspace-home { gap: 12px; }
  .workspace-home .hero { padding-inline: 13px; }
}
