@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f6f7f3;
  --surface: #fff;
  --ink: #172d33;
  --muted: #728079;
  --line: #e2e8e2;
  --green: #137a68;
  --green-dark: #0c5d50;
  --green-soft: #eaf5ef;
  --navy: #122b35;
  --gold: #b58941;
  --gold-soft: #fbf5e8;
  --danger: #b54949;
  --shadow: 0 5px 24px #223c2a06;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, a, input, select, textarea { touch-action: manipulation; }
a { color: var(--green); text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #83bdb0; outline-offset: 3px; }
svg { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 650; letter-spacing: -.03em; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
small { font-size: 12px; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.translation { color: var(--translation-ink, #596d62); font-size: .88em; font-weight: 400; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
.translation:not(.block) { margin-inline-start: .35em; }
.translation.block, .nav-item .translation { display: block; margin: .25em 0 0; }

.app-shell { min-height: 100vh; }
.sidebar { --translation-ink: #a8c1bc; width: 224px; height: 100vh; position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; overflow-y: auto; background: var(--navy); color: #d9e5e4; padding: 32px 18px 22px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; margin-bottom: 46px; color: #fff; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 38px; background: #5fb18c; border-radius: 11px; color: #102f31; font-weight: 750; font-size: 22px; font-family: Georgia, serif; box-shadow: inset 0 0 0 1px #ffffff35; }
.brand strong { display: block; font-size: 21px; letter-spacing: -.5px; line-height: 1.2; }
.brand small { display: block; margin-top: 4px; color: #9db5b6; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.sidebar nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 0; border-radius: 9px; background: transparent; color: #acbfc0; text-align: left; transition: color .16s, background .16s; }
.nav-item:hover { background: #ffffff08; color: white; }
.nav-item.active { background: #ffffff0e; color: #e0f2e4; box-shadow: inset 3px 0 0 #8fcba7; }
.nav-item svg { opacity: .8; }
.nav-item.active svg { color: #91cbaa; opacity: 1; }
.sidebar-label { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: #6d9195; padding: 0 14px; margin: 24px 0 10px; }
.sidebar-bottom { margin-top: auto; padding: 22px 12px 0; border-top: 1px solid #ffffff12; }
.sidebar-bottom p, .sidebar-bottom small { color: #8ba5a7; font-size: 11px; line-height: 1.8; }
.sidebar-bottom strong { display: block; color: #cfdfdc; font-size: 12px; margin-bottom: 4px; }
.workspace { margin-left: 224px; min-width: 0; }
.topbar { min-height: 79px; background: #ffffffdf; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px 36px; }
.topbar-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; margin-inline-start: auto; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #82908b; font-size: 12px; }
.breadcrumbs strong { color: #30433e; font-weight: 500; }
.breadcrumbs > span + span::before { content: "/"; margin-right: 10px; color: #c9d2cd; }
.view-switch { display: inline-flex; align-items: center; padding: 4px; border: 1px solid #e1e7e1; border-radius: 10px; background: #f5f7f3; gap: 3px; flex-shrink: 0; }
.view-switch button { border: 0; background: none; color: #7b8881; padding: 7px 15px; border-radius: 7px; font-size: 12px; white-space: nowrap; }
.view-switch button.active { background: white; box-shadow: 0 1px 5px #21362b0d; color: var(--green-dark); font-weight: 600; }
.language-picker { display: inline-flex; align-items: center; gap: 8px; }
.language-label { color: #52665d; font-size: 11px; font-weight: 600; }
.language-options { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #dce4dd; border-radius: 9px; background: #f5f7f3; }
.language-option { min-height: 32px; border: 0; border-radius: 6px; padding: 4px 9px; color: #52665d; background: transparent; font-size: 11px; font-weight: 550; white-space: nowrap; }
.language-option:hover { background: #eaf1e8; }
.language-option[aria-pressed="true"] { color: var(--green-dark); background: white; box-shadow: 0 1px 4px #21362b16; font-weight: 650; }
.mobile-brand { display: none; }
.demo-banner { background: #f2f6ed; border-bottom: 1px solid #e0e8d7; padding: 9px 36px; color: #738068; display: flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: .01em; }
.demo-banner svg { width: 14px; height: 14px; color: #8f9e78; }
.demo-banner strong { color: #506542; font-weight: 600; }
main#main { max-width: 1440px; margin: 0 auto; padding: 34px 36px 48px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: #8a9b90; font-weight: 600; margin-bottom: 9px; }
.page-heading h1 { font-size: 27px; color: #203630; }
.subtitle { color: var(--muted); font-size: 12px; margin: 9px 0 0; line-height: 1.7; }
.actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button { border: 1px solid transparent; border-radius: 9px; min-height: 38px; padding: 8px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.4; font-size: 12px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button svg { width: 16px; height: 16px; }
.button.primary { --translation-ink: #f1faf5; background: var(--green); color: white; box-shadow: 0 3px 7px #147a6815; }
.button.primary:hover:not(:disabled) { background: var(--green-dark); }
.button.secondary { background: white; border-color: #dce4dd; color: #4e6559; }
.button.secondary:hover:not(:disabled) { border-color: #b2c7b8; background: #fafcf8; }
.button.ghost { background: transparent; color: #76847b; border-color: transparent; }
.button.ghost:hover:not(:disabled) { background: #eef2ec; }
.button.danger { color: #b24e4e; border-color: #eedada; background: #fffafa; }
.button.small { padding: 5px 10px; min-height: 30px; font-size: 11px; }
.button.full { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; border: 1px solid var(--line); background: white; color: #6e8076; border-radius: 8px; width: 34px; height: 34px; }
.icon-btn:hover { color: var(--green); border-color: #c1d5c7; }
.icon-btn svg { width: 16px; height: 16px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 23px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.card-head h2 { font-size: 15px; letter-spacing: -.01em; }
.card-head h3 { font-size: 14px; }
.card-head small { color: #8d9991; font-size: 11px; }
.card-head p { color: var(--muted); margin: 5px 0 0; font-size: 11px; }
.hero-card { background: linear-gradient(125deg, #fff 30%, #f4f8f0); border-color: #dce6dc; position: relative; padding: 27px; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid #bdcdb427; border-radius: 50%; right: -68px; top: -75px; pointer-events: none; }
.case-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dbe6d7; color: #7e9376; font-size: 10px; padding: 4px 9px; border-radius: 5px; line-height: 1.2; margin-bottom: 18px; letter-spacing: .06em; background: #ffffff80; }
.case-title { font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; letter-spacing: -.8px; color: #29483d; }
.case-description { font-size: 13px; color: #6f8075; line-height: 1.8; margin: 8px 0 20px; }
.client-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: #768879; font-size: 11px; }
.client-meta > span { display: flex; align-items: center; gap: 5px; }
.client-meta svg { width: 13px; height: 13px; }
.client-meta .divider { color: #c1cfc1; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-family: Georgia, serif; font-size: 13px; background: #e5ece0; color: #607456; flex-shrink: 0; letter-spacing: -.4px; }
.avatar.large { width: 62px; height: 62px; font-size: 22px; border: 4px solid #ffffffab; box-shadow: 0 2px 8px #465d2810; }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin-top: 21px; padding-top: 17px; border-top: 1px solid #dde6d8; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 20px; padding: 4px 10px; color: #7b877f; background: #f1f3ef; font-size: 10px; white-space: nowrap; font-weight: 550; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.running { color: #29765d; background: #eaf5ed; }
.status-pill.paused { color: #a17d3a; background: #fbf4e6; }
.status-pill.ended { color: #7c7f86; background: #eef0f4; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.metric-label { color: #8a968e; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.metric-label svg { width: 13px; height: 13px; color: #9ca99e; }
.metric-value { font-size: 29px; font-weight: 550; letter-spacing: -.9px; color: #334e40; line-height: 1.3; margin-top: 10px; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 12px; font-weight: 400; margin-left: 5px; color: #98a296; letter-spacing: 0; }
.metric-note { color: #9aa397; font-size: 10px; margin-top: 4px; }
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.group-card { padding: 18px; border: 1px solid #e1e7df; background: white; border-radius: 12px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.group-card:hover { border-color: #b5cbb9; box-shadow: 0 5px 14px #133b1d06; }
.group-card.active { border-color: #73a98f; background: #fdfefb; }
.group-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 19px; }
.group-header h3 { font-size: 12px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.group-number { display: inline-grid; place-items: center; width: 26px; height: 26px; font-size: 11px; border-radius: 8px; background: #f0f4ed; color: #688462; font-variant-numeric: tabular-nums; }
.group-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 11px; color: #95a08f; margin-bottom: 9px; }
.group-stats strong { color: #49644c; font-size: 21px; font-weight: 500; letter-spacing: -.5px; }
.coverage-value { color: var(--green); font-weight: 550; font-variant-numeric: tabular-nums; }
.progress-track { height: 4px; background: #eef2eb; border-radius: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: #79a58a; border-radius: inherit; transition: width .35s ease; }
.fact-dots { display: flex; gap: 5px; margin-top: 11px; }
.fact-dot { width: 6px; height: 6px; border-radius: 50%; background: #e3e9df; }
.fact-dot.active { background: #55a181; }
.question-preview { color: #8a978c; font-size: 10px; margin-top: 13px; min-height: 30px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.empty-text { color: #a8b0a4; font-size: 11px; }
.card-footer { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 18px; display: flex; gap: 10px; align-items: center; justify-content: space-between; color: #94a08f; font-size: 11px; }
.timer-face { font-size: 52px; font-weight: 400; text-align: center; color: #2b493c; letter-spacing: -.5px; line-height: 1.4; font-variant-numeric: tabular-nums; margin: 19px 0 4px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.timer-note { text-align: center; font-size: 10px; color: #9aa595; margin-bottom: 23px; }
.timer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.timer-actions > .button { flex: 1; }
.timer-actions > .icon-btn { min-height: 38px; width: 38px; }
.phase-track { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0 0 16px; padding: 0; }
.phase-track li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: #52665d; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.phase-track li[aria-current] { border-color: #8fbeaa; background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.phase-track li.done { color: var(--green-dark); }
.phase-number { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: #edf2ed; font-size: 11px; }
.phase-number svg { width: 14px; height: 14px; }
.phase-track li[aria-current] .phase-number { background: var(--green-dark); color: white; }
.phase-track .translation { display: block; margin: 3px 0 0; }
.lesson-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.lesson-controls .full { grid-column: 1/-1; }
.group-extra { display: block; color: var(--green-dark); margin-top: 7px; font-size: 11px; }
.group-clock, .group-extra strong { font-variant-numeric: tabular-nums; }
.field { margin-bottom: 15px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; color: #6d7d70; font-size: 11px; font-weight: 500; margin-bottom: 7px; }
.field input:not([type=checkbox]), .field select, .field textarea { display: block; width: 100%; color: #42594b; background: #fcfdfa; border: 1px solid #dfe6da; border-radius: 8px; min-height: 38px; padding: 8px 11px; font-size: 12px; outline-offset: 2px; }
.field textarea { line-height: 1.85; min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #87ad91; }
.field small { display: block; font-size: 10px; color: #9aa693; margin-top: 5px; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=checkbox] { accent-color: var(--green); width: 15px; height: 15px; flex-shrink: 0; vertical-align: middle; cursor: pointer; }
.topic-list { display: flex; flex-direction: column; gap: 1px; }
.topic-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f3ec; font-size: 11px; color: #6c7f6e; }
.topic-row:last-child { border-bottom: 0; }
.topic-row label { display: flex; align-items: center; gap: 9px; cursor: pointer; flex: 1; }
.topic-row small { font-size: 10px; color: #a0ac9b; }
.toggle { width: 29px; height: 17px; border-radius: 20px; background: #dfe7db; position: relative; flex-shrink: 0; }
.toggle::after { content: ""; width: 11px; height: 11px; background: white; border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform .2s; }
.toggle.active { background: #72a88c; }
.toggle.active::after { transform: translateX(12px); }
.tabs { display: flex; align-items: center; gap: 25px; border-bottom: 1px solid #dfe6dc; margin: 0 0 24px; overflow-x: auto; scrollbar-width: thin; }
.tab { color: #8a9789; padding: 0 1px 13px; font-size: 12px; border: 0; border-bottom: 2px solid transparent; background: none; white-space: nowrap; }
.tab.active { color: #276d54; border-bottom-color: #568d6c; font-weight: 600; }
.profile-text { white-space: pre-wrap; color: #607564; line-height: 2.1; font-size: 13px; max-width: 920px; }
.profile-text p { margin-bottom: 18px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact-card { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 20px; min-width: 0; }
.fact-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #3c634d; font-size: 13px; font-weight: 550; margin-bottom: 12px; }
.fact-title small { font-weight: 400; color: #a2ad9d; font-size: 9px; font-family: monospace; }
.fact-detail { color: #7e8f7f; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.fact-chip { display: inline-block; font-size: 10px; color: #74916e; background: #f0f6eb; border-radius: 5px; padding: 3px 7px; margin: 8px 3px 0 0; }
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; background: #f1f5ed; color: #84967a; font-size: 10px; line-height: 1.4; }
.badge.gold { background: var(--gold-soft); color: #a48b56; }
.screen-note { font-size: 11px; color: #95a28f; line-height: 1.8; margin-top: 18px; }
.screen-note svg { width: 13px; height: 13px; margin-right: 4px; }
.notice { padding: 12px 15px; font-size: 11px; line-height: 1.8; background: #f7f6eb; color: #948653; border-radius: 8px; border: 1px solid #ede9d4; margin-bottom: 18px; }
.student-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.lesson-task { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 16px; }
.lesson-task-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 5px; }
.lesson-task-heading h2 { color: var(--green-dark); }
.lesson-task-heading .group-clock { color: var(--green-dark); background: var(--green-soft); border-radius: 6px; padding: 2px 9px; }
.lesson-task p, .chat-notice { color: #52665d; font-size: 12px; }
.tax-search { display: flex; align-items: end; flex-wrap: wrap; gap: 10px 14px; }
.tax-search-card { margin-bottom: 14px; padding: 14px 18px; }
.tax-search .field { margin: 0; }
.tax-search .field:first-child { flex: 1 1 240px; }
.tax-search .field label { color: #225349; font-size: 13px; font-weight: 700; }
.tax-search .field small, .tax-search-note { color: #52665d; font-size: 12px; }
.tax-search-note { margin: 10px 0; }
.tax-search-card > .tax-search-note { margin-bottom: 0; }
.tax-results-content { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tax-results-content > p { margin: 6px 0; }
.tax-result-list { list-style: none; padding: 0; margin: 12px 0; }
.tax-result-list li { padding-block: 8px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.tax-result-list li p { margin: 0; }
.tax-result-list .tax-result-description { margin: 3px 0; font-size: 13px; }
.tax-result-list li small { color: #52665d; }
.tax-source-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; }
.rotation-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; color: #544724; }
.rotation-notice p { margin: 0; }
.team-meta { color: #52665d; font-size: 11px; margin: 7px 0; overflow-wrap: anywhere; }
.team-card > .button { margin-top: 7px; }
.support-glance, .help-notice, .debrief-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.support-glance { padding-block: 12px; }
.support-glance p, .help-notice p { margin: 2px 0 0; }
.support-glance p { color: var(--muted); font-size: 12px; }
.help-notice { color: #544724; }
.help-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.support-grid, .comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.support-entry { padding: 13px 0; border-top: 1px solid var(--line); }
.support-entry .card-head { margin-bottom: 6px; }
.support-entry ul { margin: 7px 0; padding-left: 20px; }
.status-pill.needs-help, .projector-card .status-pill.needs-help { color: #814716; background: #fff1d9; }
.status-pill.acknowledged { color: #31596c; background: #e8f3f7; }
.projector-card .status-pill.acknowledged { color: #cde8ed; background: #39717e55; }
.projector-card.status-card { min-height: 90px; }
.projector-card.status-card .group-header { margin-bottom: 0; }
.nav-count { display: inline-block; border-radius: 10px; padding: 0 7px; background: #f8dca7; color: #45351d; font-weight: 700; }
.favorite-action { display: flex; justify-content: flex-end; margin: 4px 0 18px; }
.favorite-button[aria-pressed="true"] { color: var(--green-dark); background: var(--green-soft); }
.debrief-toolbar .field { margin: 0; min-width: min(170px, 100%); }
.debrief-toolbar select { margin-top: 4px; }
.select-example { display: flex; gap: 7px; align-items: baseline; color: var(--ink); font-size: 12px; }
.select-example input { flex-shrink: 0; accent-color: var(--green-dark); }
.favorite-card .actions { justify-content: space-between; }
.projection-fields { border: 1px solid var(--line); border-radius: 9px; padding: 12px; margin: 14px 0; min-inline-size: 0; }
.projection-fields legend { color: #345e45; font-weight: 650; }
.projection-fields textarea { min-height: 72px; }
.comparison-example { border-radius: 12px; border: 1px solid var(--line); background: #f6faf6; padding: 16px; min-width: 0; }
.comparison-example h2 { margin-bottom: 12px; }
.excerpt { white-space: pre-wrap; overflow-wrap: anywhere; }
.excerpt strong { display: block; margin-bottom: 2px; color: var(--green-dark); }
.projector-debrief .comparison-example { color: #eff8ee; border-color: #7da791; background: #20493f; padding: clamp(16px, 2.5vw, 36px); }
.projector-debrief .excerpt { font-size: clamp(16px, 1.65vw, 27px); line-height: 1.5; }
.projector-debrief .excerpt strong { color: #c1dfc1; font-size: .72em; }
.debrief-coverage ul { list-style: none; padding: 0; margin-bottom: 0; }
.debrief-coverage li { padding-block: 7px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.debrief-coverage li small { display: block; color: var(--muted); }
.team-composer { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; color: #52665d; font-size: 11px; margin-bottom: 9px; }
.team-composer select { max-width: min(200px, 100%); }
.team-composer small { font-size: 11px; overflow-wrap: anywhere; }
.language-help-actions { margin-bottom: 5px; }
.language-help-actions small, .language-help-note { color: #52665d; font-size: 12px; }
.language-help-note { margin-bottom: 12px; }
.language-help-note summary { cursor: pointer; }
.language-help-note p { margin-top: 6px; }
.lesson-records > .button { display: flex; width: 100%; margin-top: 7px; }
.student-brief { min-width: 0; }
.student-brief .card { padding: 21px; }
.student-brief .avatar { margin-bottom: 14px; }
.student-brief h2 { font-size: 24px; font-family: Georgia, serif; font-weight: 500; color: #355b46; }
.student-brief .client-meta { margin-top: 8px; }
.client-brief-button { margin-top: 16px; justify-self: start; }
.chat-panel { display: flex; flex-direction: column; height: min(740px, calc(100vh - 225px)); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); overflow: hidden; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 23px; border-bottom: 1px solid #e8ede3; gap: 15px; background: #fdfefb; }
.chat-header h3 { font-size: 13px; color: #49664c; }
.chat-header small { color: #a1ac99; font-size: 10px; }
.chat-header .actions { gap: 12px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 24px 23px; scroll-behavior: smooth; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d4decc transparent; }
.message { display: flex; gap: 10px; margin-bottom: 20px; align-items: flex-start; }
.message-avatar { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; border-radius: 50%; background: #edf2e8; color: #86987d; font-size: 10px; font-family: Georgia, serif; margin-top: 3px; }
.message-body { max-width: 84%; color: #586d58; background: #f2f6ed; border: 1px solid #eaf0e3; border-radius: 0 13px 13px; padding: 13px 17px; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-wrap; }
.message-meta { font-size: 9px; color: #a2ad9b; margin: 6px 0 0 2px; }
.message.user { flex-direction: row-reverse; }
.message.user .message-avatar { background: #e4efea; color: #43876d; font-family: inherit; }
.message.user .message-body { background: #edf6f1; border-color: #e0eee6; color: #397458; border-radius: 13px 0 13px 13px; }
.message.user .message-meta { text-align: right; }
.message.system { display: block; text-align: center; margin: 15px 0; }
.message.system .message-body { display: inline-block; max-width: 100%; font-size: 10px; background: #f8f5e9; color: #a39158; border-color: #eee8d3; padding: 6px 11px; border-radius: 6px; }
.message-content { min-width: 0; max-width: calc(100% - 38px); }
.message-content .message-body { max-width: 100%; }
.chat-form { flex-shrink: 0; padding: 17px 22px 13px; border-top: 1px solid #edf0e8; background: #fff; }
.chat-access { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.chat-access .chat-notice { flex: 1 1 180px; margin: 0; }
.input-wrap { display: flex; align-items: flex-end; gap: 10px; border: 1px solid #dbe5d4; padding: 9px 10px 9px 13px; border-radius: 11px; background: #fcfdf9; }
.input-wrap:focus-within { border-color: #84b49a; box-shadow: 0 0 0 3px #c4dec821; }
.chat-input { flex: 1; min-width: 0; resize: none; min-height: 35px; max-height: 130px; border: 0; outline: none; background: transparent; padding: 6px 0; color: #456748; line-height: 1.6; font-size: 13px; }
.chat-input::placeholder { color: #a2af99; }
.input-wrap .button { min-width: 39px; min-height: 35px; padding: 7px 11px; }
.chat-form .screen-note { margin: 8px 0 0; font-size: 9px; color: #abb4a4; }
.evidence-open { margin-top: 14px; }
.evidence-intro { margin-top: 0; }
.evidence-list { display: grid; gap: 22px; margin-top: 15px; }
.evidence-topic { display: grid; gap: 9px; }
.evidence-topic h3 { color: #345e45; }
.evidence-item { padding: 13px 14px; border: 1px solid #dfeadb; background: #f7faf5; border-radius: 8px; line-height: 1.6; overflow-wrap: anywhere; }
.evidence-item-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.evidence-item small { display: block; color: var(--muted); }
.evidence-item .badge[data-status="needs-checking"], .evidence-item .badge[data-status="document-requested"] { background: #f5ecd8; color: #715621; }
.evidence-item .badge[data-status="confirmed"] { background: #dceee1; color: #235237; }
.evidence-value { color: #294634; font-size: 15px; font-weight: 600; margin: 5px 0 9px; }
.evidence-item > p:not(.evidence-value) { white-space: pre-wrap; }
.form-error { color: #9b321f; }
[data-reload-review][hidden] { display: none; }
.interview-turn { scroll-margin-block: 12px; }
.interview-turn:focus { outline: 2px solid var(--green-dark); outline-offset: 5px; border-radius: 5px; }
.empty-state { text-align: center; color: #9aaa92; font-size: 11px; padding: 28px 12px; line-height: 1.9; }
.empty-state svg { display: block; width: 28px; height: 28px; margin: 0 auto 10px; color: #c8d5bf; stroke-width: 1.3; }
.prompt-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #e2e9db; border-radius: 5px; padding: 4px 7px; background: #fafcf7; color: #8a9c7b; font-size: 10px; cursor: pointer; }
.tag:hover { background: #eff6e9; border-color: #bfd2b1; color: #5a7e4e; }

.projector { --translation-ink: #acc7be; position: fixed; inset: 0; z-index: 50; overflow: auto; background: #102d32; color: #edf5e7; padding: 32px 44px 36px; min-height: 100vh; }
.projector-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid #d4f6d915; padding-bottom: 25px; margin-bottom: 28px; }
.projector-header h1 { font-size: 26px; font-weight: 500; color: #dcebd8; }
.projector-header p, .projector-header .eyebrow { color: #7b9c8f; }
.projector-header .button { background: #ffffff08; color: #b5d0b8; border-color: #ffffff15; }
.projector-header .status-pill { background: #ffffff0a; color: #98c39e; }
.projector .language-label { color: #c2d5ca; }
.projector .language-options { background: #ffffff08; border-color: #ffffff20; }
.projector .language-option { color: #b9cdc0; }
.projector .language-option:hover { background: #ffffff12; }
.projector .language-option[aria-pressed="true"] { background: #dceadd; color: #204238; }
.projector-timer { font-size: 62px; font-weight: 350; letter-spacing: -1px; color: #d8e9bd; font-variant-numeric: tabular-nums; line-height: 1.1; }
.projector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.projector-card { border: 1px solid #92b89129; border-radius: 15px; padding: 26px; background: linear-gradient(140deg, #1e403d 0%, #1b3639 100%); min-height: 205px; }
.projector-card .group-header h3 { color: #b2c9ad; font-size: 17px; }
.projector-card .group-number { width: 33px; height: 33px; background: #b5d9a712; color: #add19b; }
.projector-card .group-stats { color: #7b9a86; font-size: 13px; }
.projector-card .group-stats strong { color: #d3e6b6; font-size: 39px; }
.projector-card .coverage-value { color: #9ed5ad; }
.projector-card .progress-track { background: #9dbb9020; height: 5px; }
.projector-card .progress-fill { background: #93c68b; }
.projector-card .fact-dot { background: #a3c59425; width: 7px; height: 7px; }
.projector-card .fact-dot.active { background: #a4d393; }
.projector-card .status-pill { background: #ffffff09; color: #8daf91; }
.projector-card .empty-text { color: #709584; }
.projector-card .question-preview { color: #7da08b; }
.projector .screen-note { color: #658c7d; text-align: center; margin-top: 30px; }
.projector .badge { background: #95bf7b16; color: #94b486; }
.projector .phase-track li { background: #ffffff08; border-color: #ffffff1f; color: #c6ddd0; }
.projector .phase-track li[aria-current] { background: #294f43; border-color: #87b696; color: #e8f5e7; }
.projector .phase-number { background: #ffffff18; }
.projector .group-extra { color: #c6ddd0; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; background: #17352fc2; backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { width: 680px; max-width: 100%; max-height: calc(100dvh - 48px); overflow: hidden; display: flex; flex-direction: column; border-radius: 17px; background: #fff; box-shadow: 0 30px 100px #0003; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 26px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 17px; color: #345e45; }
.modal-body { padding: 24px 26px; overflow-y: auto; }
.modal-body .profile-text { font-size: 12px; }
.archived-group { padding-block: 10px; border-bottom: 1px solid var(--line); }
.archived-group summary { cursor: pointer; font-weight: 700; }
.archived-turn, .archived-work { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 10px; }
.archived-work { padding: 12px; background: #f4f8f5; border-radius: 8px; }
.modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; padding: 17px 26px; border-top: 1px solid var(--line); background: #fafcf7; }
.lesson-fields { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.lesson-fields textarea { min-height: 82px; }
.lesson-fields .field label, .lesson-fields .field h3, .lesson-value strong { color: #345e45; font-size: 13px; font-weight: 600; }
.lesson-value p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
.lesson-saved { margin-bottom: 14px; }
.lesson-evidence { display: grid; gap: 8px; list-style: none; margin: 9px 0; padding: 0; }
.lesson-evidence .evidence-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.lesson-evidence .evidence-choice, .lesson-fields .lesson-check { display: flex; align-items: baseline; gap: 9px; margin: 0; }
.evidence-choice .evidence-value { display: block; margin: 2px 0; font-size: 13px; }
.lesson-fields .lesson-check { margin-top: 12px; }
.lesson-check input, .evidence-choice input { flex-shrink: 0; accent-color: var(--green-dark); }
.lesson-control-form .field input[type=number] { max-width: 140px; }
.lesson-control-form .subtitle { margin-bottom: 16px; }
#lesson-work-form .form-error { margin: 12px 0 5px; }
.team-add-form { border: 1px solid #dfeadb; border-radius: 9px; padding: 13px; margin-bottom: 17px; background: #f7faf5; }
.team-add-form .subtitle { margin: 3px 0 8px; }
.team-add-input { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-add-input input { flex: 1; min-width: min(150px, 100%); }
.team-role-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 7px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.team-role-row p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.team-role-row label, .team-add-form label { color: #345e45; font-weight: 650; }
.team-role-row > strong { overflow-wrap: anywhere; }
.team-role-row select, .team-add-input input, .team-composer select { min-height: 34px; min-width: 0; padding: 5px 8px; border: 1px solid #cddccf; border-radius: 7px; background: white; color: var(--ink); }
.team-rotation-log { padding-left: 18px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.rotate-saved { margin-top: 10px; }
.participation-table { border-collapse: collapse; width: 100%; table-layout: fixed; margin-top: 17px; font-size: 12px; }
.participation-table caption { text-align: left; font-weight: 650; margin-bottom: 5px; color: #345e45; }
.participation-table th, .participation-table td { border-top: 1px solid var(--line); text-align: left; vertical-align: top; padding: 7px; overflow-wrap: anywhere; }
.participation-table thead th { background: #f2f6f2; }
.client-brief-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.client-brief-tools .eyebrow { margin: 0; color: #52665d; }
.client-letter { padding: clamp(14px, 4vw, 24px); border: 1px solid #dce6dc; border-radius: 10px; background: #f7faf5; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.client-letter .translation { margin-top: 18px; padding-top: 14px; border-top: 1px solid #dce6dc; }
.entry-shell { max-width: 730px; margin: 0 auto; padding: 32px 22px 60px; }
.entry-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.entry-header > strong { font-size: 25px; color: var(--navy); }
.entry-header .language-picker { margin-left: auto; }
.entry-card { padding: clamp(22px, 5vw, 40px); }
.entry-card h1 { font-size: 28px; }
.entry-form { margin: 25px 0; }
.entry-form .button { min-height: 44px; }
.entry-form input { min-height: 44px; }
.classroom-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 12px 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); text-align: left; }
.classroom-choice > span { color: var(--green-dark); font-size: 12px; white-space: nowrap; }
.teacher-signin { display: inline-block; margin-top: 10px; font-size: 12px; }
.classroom-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 25px; padding: 18px 22px; background: var(--green-soft); border: 1px solid #d4e4d7; border-radius: 12px; }
.classroom-bar p { font-size: 12px; margin: 7px 0 0; color: #52665d; }
.class-code { font-family: ui-monospace, monospace; letter-spacing: .1em; font-size: 16px; color: var(--green-dark); }
.member-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.member-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.member-row small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }
.member-row select { max-width: 110px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 12px; }
.connection-banner { padding: 12px 22px; color: #714e24; background: #fff0d7; border-bottom: 1px solid #e8d3ae; font-size: 12px; }
.share-link { overflow-wrap: anywhere; padding: 14px; border: 1px solid var(--line); border-radius: 8px; font-family: ui-monospace, monospace; }
.student-shell .topbar .breadcrumbs { flex-wrap: wrap; }
.toast { position: fixed; left: calc(50% + 112px); bottom: 32px; transform: translateX(-50%); z-index: 200; border: 1px solid #b9d4ba; padding: 11px 19px; border-radius: 10px; box-shadow: 0 9px 30px #15351a12; background: #eff8eb; color: #4b754b; font-size: 12px; max-width: min(520px, calc(100vw - 40px)); animation: toast-in .22s ease-out; }
.divider-line { height: 1px; background: var(--line); margin: 18px 0; }
.text-muted { color: var(--muted); }
.text-green { color: var(--green); }
.text-small { font-size: 11px; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (min-width: 1600px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; }
  .group-card { padding: 21px; }
}

@media (max-width: 1240px) {
  .sidebar { width: 200px; padding-left: 14px; padding-right: 14px; }
  .workspace { margin-left: 200px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  .demo-banner { padding-left: 25px; padding-right: 25px; }
  main#main { padding: 28px 25px 40px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .stack { gap: 18px; }
  .card { padding: 20px; }
  .group-grid { gap: 11px; }
  .group-card { padding: 14px; }
  .metric { padding: 16px; }
  .student-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 18px; }
  .toast { left: calc(50% + 100px); }
}

@media (max-width: 1024px) {
  .sidebar { width: 180px; padding-left: 11px; padding-right: 11px; }
  .brand { padding: 0 7px; gap: 9px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 8px; }
  .nav-item { padding: 12px; gap: 9px; font-size: 12px; }
  .workspace { margin-left: 180px; }
  .breadcrumbs { font-size: 11px; }
  .topbar { padding: 14px 22px; }
  .view-switch button { padding: 7px 11px; font-size: 11px; }
  .demo-banner { padding-left: 22px; padding-right: 22px; }
  main#main { padding: 27px 22px 36px; }
  .page-heading h1 { font-size: 23px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-grid > .stack:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .overview-grid > .stack:last-child > .card:only-child { grid-column: 1/-1; }
  .group-card { padding: 18px; }
  .group-grid { gap: 15px; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
  .student-brief .card { padding: 17px; }
  .student-brief h2 { font-size: 21px; }
  .chat-header { padding: 16px; }
  .chat-scroll { padding: 20px 16px; }
  .chat-form { padding: 13px 15px; }
  .message-body { padding: 11px 13px; font-size: 12px; }
  .projector { padding: 27px; }
  .projector-grid { gap: 16px; }
  .projector-card { padding: 21px; min-height: 190px; }
  .toast { left: calc(50% + 90px); }
}

@media (max-width: 760px) {
  .support-grid, .comparison-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; width: 100%; height: auto; min-height: auto; padding: 13px 20px 0; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; overflow-y: visible; }
  .brand { margin-bottom: 0; padding: 0 0 12px; }
  .brand-mark { width: 29px; height: 31px; border-radius: 8px; font-size: 19px; }
  .brand strong { font-size: 19px; }
  .brand small { display: none; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 1px; width: auto; align-self: flex-end; }
  .nav-item { padding: 12px 10px 14px; border-radius: 5px 5px 0 0; font-size: 11px; gap: 6px; width: auto; }
  .nav-item.active { box-shadow: inset 0 -2px 0 #8fcba7; }
  .nav-item svg { width: 14px; height: 14px; }
  .sidebar-bottom, .sidebar-label { display: none; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 60px; padding: 11px 20px; }
  .breadcrumbs { font-size: 10px; gap: 6px; }
  .breadcrumbs > span + span::before { margin-right: 6px; }
  .view-switch { padding: 3px; border-radius: 8px; }
  .view-switch button { padding: 6px 10px; font-size: 10px; }
  .demo-banner { padding: 8px 20px; font-size: 10px; align-items: flex-start; }
  .demo-banner svg { margin-top: 2px; flex-shrink: 0; }
  main#main { padding: 25px 20px 35px; }
  .page-heading { align-items: flex-start; gap: 14px; margin-bottom: 21px; }
  .page-heading h1 { font-size: 23px; }
  .eyebrow { font-size: 9px; margin-bottom: 7px; }
  .subtitle { font-size: 11px; }
  .page-heading > .actions { gap: 6px; justify-content: flex-end; }
  .page-heading > .actions .button { min-height: 34px; font-size: 10px; padding: 6px 10px; }
  .hero-card { padding: 23px; }
  .case-title { font-size: 29px; }
  .case-description { font-size: 12px; }
  .group-grid { gap: 12px; }
  .group-card { padding: 16px; }
  .group-header { margin-bottom: 15px; }
  .group-header h3 { font-size: 11px; gap: 6px; }
  .group-card .status-pill { font-size: 9px; padding: 3px 6px; }
  .group-number { width: 23px; height: 23px; border-radius: 6px; }
  .metric-grid { gap: 12px; }
  .metric { padding: 16px 18px; }
  .metric-value { font-size: 27px; }
  .student-layout { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .phase-track li { flex-direction: column; align-items: center; gap: 5px; padding: 7px 3px; text-align: center; }
  .lesson-task { flex-wrap: wrap; }
  .student-brief { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .student-brief.stack { display: grid; gap: 12px; }
  .student-brief .card { padding: 18px; }
  .student-brief .avatar { width: 35px; height: 35px; margin-bottom: 10px; }
  .student-brief h2 { font-size: 21px; }
  .student-brief .brief-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 11px; row-gap: 3px; padding: 15px 17px 11px; }
  .student-brief .brief-card .avatar { grid-column: 1; grid-row: 1 / 3; align-self: center; width: 36px; height: 36px; margin: 0; font-size: 12px; border-width: 2px; }
  .student-brief .brief-card h2 { grid-column: 2; grid-row: 1; align-self: end; font-size: 21px; line-height: 1.2; }
  .student-brief .brief-card .client-meta { grid-column: 2; grid-row: 2; margin-top: 0; gap: 9px; font-size: 10px; }
  .student-brief .brief-card .client-meta .badge { padding: 2px 6px; font-size: 9px; }
  .student-brief .client-brief-button { grid-column: 1 / -1; margin-top: 9px; }
  .student-brief .evidence-card:not(.has-evidence) { display: none; }
  .student-brief .evidence-card.has-evidence { padding: 15px 17px; }
  .student-brief .evidence-card .card-head { margin-bottom: 9px; }
  .chat-panel { min-height: 480px; height: 600px; max-height: none; }
  .chat-scroll { padding: 21px 19px; }
  .chat-header { padding: 15px 19px; }
  .chat-form { padding: 14px 17px 12px; }
  .chat-input { font-size: 16px; }
  .message-body { font-size: 13px; }
  .toast { left: 50%; bottom: 22px; font-size: 11px; }
  .projector { padding: 25px 23px; }
  .projector-header { flex-wrap: wrap; padding-bottom: 21px; gap: 20px; }
  .projector-header h1 { font-size: 23px; }
  .projector-timer { font-size: 48px; }
  .projector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .projector-card { padding: 21px; }
  .modal-backdrop { padding: 18px; }
  .modal { max-height: calc(100dvh - 36px); }
}

@media (max-width: 480px) {
  .team-role-row { grid-template-columns: minmax(0, 1fr); }
  .team-role-row select, .team-composer select, .team-add-input input { font-size: 16px; }
  .phase-track { gap: 4px; }
  .phase-track li { font-size: 10px; }
  .lesson-task .actions { width: 100%; }
  .lesson-task .actions .button { flex: 1; }
  #lesson-work-form input:not([type=checkbox]), #lesson-work-form textarea { font-size: 16px; }
  .sidebar { padding: 13px 15px 0; gap: 6px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 17px; }
  .brand-mark { width: 25px; height: 27px; border-radius: 7px; font-size: 17px; }
  .nav-item { font-size: 10px; padding: 10px 7px 14px; gap: 4px; }
  .nav-item svg { display: none; }
  .topbar { padding: 10px 15px; min-height: 56px; gap: 8px; }
  .breadcrumbs { font-size: 9px; flex-wrap: wrap; row-gap: 0; }
  .topbar-controls { width: 100%; justify-content: space-between; gap: 8px; margin-inline-start: 0; }
  .view-switch { gap: 0; }
  .view-switch button { padding: 6px 8px; font-size: 10px; }
  .language-picker { gap: 5px; }
  .language-option { padding-inline: 7px; }
  .demo-banner { padding: 8px 15px; font-size: 9px; }
  main#main { padding: 23px 15px 30px; }
  .page-heading { flex-wrap: wrap; gap: 14px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading > .actions { justify-content: flex-start; }
  .page-heading > .actions .button { min-height: 32px; }
  .card { padding: 19px; border-radius: 13px; }
  .card-head { margin-bottom: 17px; }
  .card-head h2 { font-size: 14px; }
  .hero-card { padding: 22px; }
  .case-badge { margin-bottom: 14px; }
  .case-title { font-size: 27px; }
  .avatar.large { width: 47px; height: 47px; font-size: 17px; border-width: 3px; }
  .hero-top { gap: 10px; }
  .hero-bottom { align-items: flex-start; gap: 12px; }
  .client-meta { font-size: 10px; gap: 7px; }
  .client-meta .divider { display: none; }
  .metric-grid { gap: 8px; }
  .metric { padding: 13px 11px; border-radius: 10px; }
  .metric-label { font-size: 9px; gap: 4px; }
  .metric-label svg { width: 11px; height: 11px; }
  .metric-value { font-size: 25px; margin-top: 7px; }
  .metric-value small { font-size: 9px; margin-left: 3px; }
  .metric-note { font-size: 8px; }
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .group-card { padding: 14px 12px; border-radius: 10px; }
  .group-header { gap: 5px; margin-bottom: 14px; }
  .group-stats { font-size: 9px; gap: 6px; }
  .group-stats strong { font-size: 23px; }
  .group-header h3 { font-size: 10px; gap: 5px; }
  .group-number { width: 20px; height: 20px; font-size: 9px; }
  .group-card .status-pill { font-size: 8px; padding: 3px 5px; gap: 4px; }
  .group-card .status-pill::before { width: 4px; height: 4px; }
  .question-preview { margin-top: 11px; font-size: 9px; }
  .overview-grid > .stack:last-child { grid-template-columns: minmax(0, 1fr); }
  .timer-face { font-size: 48px; }
  .tabs { gap: 21px; margin-bottom: 20px; }
  .tab { font-size: 11px; padding-bottom: 11px; }
  .fact-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fact-card { padding: 17px; }
  .profile-text { font-size: 12px; line-height: 2; }
  .student-brief, .student-brief.stack { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .student-brief .card { padding: 18px; }
  .student-brief .card-head { margin-bottom: 11px; }
  .student-brief .avatar { width: 31px; height: 31px; margin-bottom: 8px; }
  .student-brief h2 { font-size: 23px; }
  .student-brief .brief-card { padding: 13px 15px 9px; column-gap: 9px; grid-template-columns: 34px minmax(0, 1fr); }
  .student-brief .brief-card .avatar { width: 33px; height: 33px; margin: 0; font-size: 11px; }
  .student-brief .brief-card h2 { font-size: 20px; }
  .student-brief .brief-card .client-meta { font-size: 9px; }
  .student-brief .evidence-card.has-evidence { padding: 13px 15px; }
  .evidence-item { padding: 11px; }
  .empty-state { padding: 13px 10px; font-size: 10px; }
  .empty-state svg { display: none; }
  .chat-panel { min-height: 490px; height: 630px; border-radius: 13px; }
  .chat-header { padding: 14px 15px; gap: 8px; }
  .chat-header h3 { font-size: 12px; }
  .chat-header small { font-size: 9px; }
  .chat-header .actions { gap: 7px; font-size: 10px; }
  .chat-scroll { padding: 20px 13px; }
  .message { gap: 7px; margin-bottom: 18px; }
  .message-avatar { width: 25px; height: 25px; font-size: 9px; }
  .message-body { max-width: 88%; padding: 10px 12px; font-size: 12px; }
  .message-content { max-width: calc(100% - 32px); }
  .message-meta { font-size: 8px; }
  .chat-form { padding: 12px 12px 10px; }
  .input-wrap { padding: 7px 7px 7px 10px; gap: 7px; }
  .input-wrap .button { min-width: 36px; padding: 7px 9px; }
  .chat-form .screen-note { font-size: 8px; }
  .projector { padding: 21px 16px; }
  .projector-header { gap: 16px; margin-bottom: 19px; }
  .projector-header h1 { font-size: 19px; }
  .projector-header .eyebrow { font-size: 8px; }
  .projector-timer { font-size: 43px; }
  .projector-grid { gap: 11px; }
  .projector-card { padding: 17px 13px; min-height: 172px; border-radius: 11px; }
  .projector-card .group-header h3 { font-size: 13px; }
  .projector-card .group-number { width: 24px; height: 24px; }
  .projector-card .group-stats { font-size: 10px; }
  .projector-card .group-stats strong { font-size: 31px; }
  .projector-card .status-pill { font-size: 8px; }
  .projector .screen-note { font-size: 9px; }
  .modal-backdrop { padding: 12px; }
  .modal { border-radius: 13px; max-height: calc(100dvh - 24px); }
  .modal-header { padding: 17px 18px; }
  .modal-header h2 { font-size: 16px; }
  .modal-body { padding: 19px 18px; }
  .modal-footer { padding: 14px 18px; }
  .field input:not([type=checkbox]), .field select, .field textarea { font-size: 16px; }
  .field-row { gap: 10px; }
  .toast { bottom: 16px; padding: 10px 14px; font-size: 10px; }
}

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

@media print {
  .sidebar, .topbar, .demo-banner, .actions, .chat-form, .toast, .modal-backdrop { display: none !important; }
  .workspace { margin: 0; }
  main#main { padding: 0; max-width: none; }
  body { background: white; }
  .card, .group-card, .fact-card { box-shadow: none; break-inside: avoid; }
  .overview-grid, .student-layout { display: block; }
  .chat-panel { height: auto; overflow: visible; border: 0; }
  .chat-scroll { overflow: visible; }
  .projector { position: static; background: white; color: black; }
}

.message.guidance .message-body { background: #f3f6fc; border-color: #d8e4f6; color: #344664; }
.message.guidance .message-avatar { background: #dbe7f6; color: #425c83; }
.message.guidance .message-avatar svg { width: 15px; height: 15px; }
