@font-face { font-family: KursSans; src: url('./assets/noto-sans-regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: KursSans; src: url('./assets/noto-sans-bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --canvas: #f1f3f1;
  --paper: #ffffff;
  --ink: #27302c;
  --green: #365e50;
  --plum: #6c4863;
  --wash: #eee8f0;
  --line: #d4dcd6;
  --muted: #5e6d65;
  --soft: #e8eeea;
  font: 16px/1.6 KursSans, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, pre:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
p { max-width: 76ch; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: none; }
[data-icon] { display: inline-flex; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: -100px; left: 15px; padding: 12px; background: white; z-index: 100; }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 206px; padding: 29px 18px 18px; background: var(--paper); display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid var(--line); }
.brand { font-size: 21px; font-weight: 700; letter-spacing: -.8px; text-decoration: none; padding: 0 10px; color: var(--green); }
.course-label { color: var(--muted); margin: 5px 10px 30px; font-size: 12px; }
.main-nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { display: flex; width: 100%; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 7px; font-size: 14px; text-align: left; }
.nav-item:hover { background: var(--soft); }
.nav-item.active { background: var(--green); color: white; font-weight: 700; }
.teaching-navigation { margin: 12px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }
.teaching-navigation summary { cursor: pointer; font-size: 12px; color: var(--muted); padding: 5px 8px; }
.teaching-links { padding-top: 10px; }
.teaching-links .nav-item { font-size: 14px; }
.sidebar-project { padding: 25px 10px; margin-top: 16px; }
.overline { display: block; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.sidebar-project button { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; font-size: 14px; font-weight: 700; text-align: left; padding: 0; }
.sidebar-project button .icon { width: 14px; height: 14px; margin-top: 4px; }
.project-state { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.course-progress { padding: 0 10px 25px; }
.progress-caption { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.progress-caption strong { font-weight: 400; }
.progress-track { height: 5px; background: var(--soft); margin: 10px 0 13px; overflow: hidden; border-radius: 3px; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--green); }
.course-navigation summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.mini-steps { list-style: none; padding: 10px 0 0; margin: 0; }
.mini-steps li + li { margin-top: 12px; }
.mini-steps button { display: flex; align-items: flex-start; gap: 8px; text-align: left; font-size: 12px; line-height: 1.55; padding: 0; color: var(--muted); }
.mini-steps button[aria-current] { color: var(--green); font-weight: 700; }
.step-circle { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 4px; background: var(--soft); color: var(--green); flex: none; font-size: 12px; }
.done .step-circle { background: var(--green); color: white; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.sidebar-bottom .nav-item { font-size: 12px; color: var(--muted); }
.local-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 15px 10px 0; }
.local-label .icon { width: 13px; height: 13px; }
.local-label > span:last-child { margin-left: auto; }
.main-shell { margin-left: 206px; min-width: 0; }
.topbar { height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 36px; }
.topbar-label { font-size: 12px; color: var(--muted); }
.mobile-brand { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.connection { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px; color: var(--muted); }
.connection-dot { width: 6px; height: 6px; border-radius: 50%; background: #a18f59; }
.connected .connection-dot { background: var(--green); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; }
.icon-button:hover { background: var(--soft); }
.workspace-view, .course-view, .teacher-view, .behavior-view { padding: 10px 36px 40px; max-width: 1650px; margin: auto; }
.behavior-view, .teacher-view { max-width: 1150px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { font-size: 34px; letter-spacing: -1px; margin-bottom: 9px; }
.page-heading p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.page-heading .overline { margin-bottom: 10px; }
.workshop-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; min-height: 42px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.primary-button { color: white; background: var(--green); }
.primary-button:hover, .send-button:hover { background: #284b3e; }
.secondary-button { background: var(--paper); border: 1px solid #bdccc1; }
.secondary-button:hover { background: var(--soft); }
.text-button { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; padding: 5px 0; color: var(--green); }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button .icon { width: 16px; height: 16px; }
#quick-help { background: transparent; border-color: transparent; color: var(--muted); }
#workshop-task { background: var(--paper); border-radius: 12px; padding: 23px 26px 17px; margin-bottom: 24px; }
.task-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.task-heading .overline { color: var(--plum); }
.task-heading h2 { font-size: 25px; letter-spacing: -.6px; margin: 0 0 10px; }
.phase-caption { font-size: 12px; color: var(--plum); padding: 5px 0; }
.task-goal { font-size: 16px; margin: 0 0 17px; }
.task-start { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.task-start .primary-button { background: var(--plum); }
.task-start .primary-button:hover { background: #56364e; }
.task-start > span { font-size: 12px; color: var(--muted); }
.task-instructions { padding-top: 12px; border-top: 1px solid #e5e9e6; }
.task-instructions > summary { cursor: pointer; font-size: 14px; color: var(--muted); padding: 4px 0; }
.task-columns { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; padding-top: 23px; }
.task-columns h3 { font-size: 16px; margin-bottom: 12px; }
.task-columns p, .task-columns li { font-size: 14px; line-height: 1.8; }
.task-columns ol { padding-left: 20px; margin-bottom: 0; }
.task-columns li + li { margin-top: 7px; }
.task-tools { padding-left: 24px; border-left: 1px solid var(--line); }
.task-tools details + details { border-top: 1px solid #e5e9e6; }
.task-tools summary { cursor: pointer; padding: 10px 0; font-size: 14px; color: var(--green); }
.task-tools details p { margin: 4px 0 12px; color: var(--muted); }
.task-tools pre { font: 13px/1.7 'DejaVu Sans Mono', Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-tools > button { margin-top: 15px; color: var(--plum); }
.teacher-signal { padding: 10px; background: var(--wash); border-radius: 5px; }
.task-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.muted { font-size: 12px; color: var(--muted); }
#task-check-results { font-size: 14px; line-height: 1.7; padding: 16px; margin-top: 18px; background: var(--soft); border-radius: 6px; }
#task-check-results p { margin-bottom: 8px; }
#task-check-results ul { padding-left: 20px; margin-bottom: 0; }
.studio-layout { display: flex; align-items: flex-start; gap: 20px; }
.studio-editor { flex: 1; min-width: 0; }
.workbench-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 12px; background: #e3eae5; border-radius: 9px 9px 0 0; }
.editor-tabs { display: flex; gap: 2px; padding-top: 6px; }
.editor-tabs button { padding: 12px 16px; font-size: 14px; color: var(--muted); border-radius: 5px 5px 0 0; border-bottom: 2px solid transparent; }
.editor-tabs button.active { color: var(--green); font-weight: 700; background: #f8faf8; border-bottom-color: var(--green); }
.editor-tabs button:hover:not(.active) { background: #d9e3db; }
.workbench-tools { display: flex; align-items: center; gap: 18px; }
.workbench-tools > span { font-size: 12px; color: var(--muted); }
.workbench-tools .text-button { font-size: 12px; }
.workbench-grid { display: grid; grid-template-columns: 1fr 1fr; height: 540px; min-height: 410px; border: 1px solid #cbd6cd; border-top: 0; background: var(--paper); border-radius: 0 0 8px 8px; overflow: hidden; }
.editor-pane, .preview-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.editor-pane { background: #f8faf8; border-right: 1px solid #d5dfd7; }
.pane-title { display: flex; flex: none; align-items: center; justify-content: space-between; height: 45px; padding: 0 17px; color: var(--muted); font-size: 12px; gap: 8px; }
.pane-title > span:last-child:not(:first-child) { color: #7c8880; }
.editor-pane textarea { flex: 1; width: 100%; min-height: 0; background: transparent; border: 0; resize: none; padding: 17px 20px; font: 14px/1.95 'DejaVu Sans Mono', Consolas, monospace; white-space: pre; tab-size: 2; color: #315342; }
.editor-pane textarea:focus-visible { outline-offset: -3px; }
.editor-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 15px; border-top: 1px solid #e0e7e1; font-size: 12px; color: var(--muted); }
.editor-bottom .text-button { font-size: 12px; }
.preview-heading, .preview-size { display: flex; align-items: center; gap: 8px; }
.preview-size { gap: 2px; }
.preview-size .icon-button { width: 28px; height: 28px; }
.preview-size .selected { background: var(--soft); color: var(--green); }
#preview-container { display: flex; flex: 1; justify-content: center; min-height: 0; overflow: auto; background: #e6eae6; }
#preview { width: 100%; height: 100%; border: 0; background: white; }
#preview-container.mobile { padding: 12px; }
#preview-container.mobile #preview { max-width: 375px; border: 1px solid #c2cec4; border-radius: 4px; }
.workbench-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 12px; }
.workbench-note .icon { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.learning-journal { margin-top: 28px; border-top: 1px solid var(--line); }
.learning-journal > summary { cursor: pointer; padding: 18px 0; font-size: 16px; font-weight: 700; }
.learning-journal > summary span { display: inline; font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 12px; }
#workshop-journal { padding: 8px 0 0; }
.journal-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.journal-heading h2 { font-size: 22px; margin-bottom: 0; }
.journal-heading > span { font-size: 12px; color: var(--muted); }
.journal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 8px 0 19px; }
.journal-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 14px; margin: 12px 0; }
.journal-check input { margin-top: 4px; }
.journal-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 18px; margin-top: 22px; }
.takeaway-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.backup-label { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--green); margin: 0; flex: none; }
input:not([type=checkbox]):not([type=file]), select, .journal-fields textarea, .behavior-view textarea { border: 1px solid #bccbc0; border-radius: 6px; background: var(--paper); padding: 10px 12px; font-size: 16px; width: 100%; max-width: 100%; }
select { cursor: pointer; }
textarea { line-height: 1.7; }
.journal-fields textarea, .behavior-view textarea { resize: vertical; }
.field-label { display: block; font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.field-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.helper-drawer { flex: none; width: 350px; position: sticky; top: 14px; background: var(--paper); border: 1px solid #c8c3ce; border-radius: 10px; overflow: hidden; }
.conversation-column { display: flex; flex-direction: column; height: min(780px,calc(100dvh - 35px)); min-height: 550px; padding: 16px; }
.section-topline { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e2e5e0; padding-bottom: 12px; }
.section-name { font-size: 16px; font-weight: 700; }
#new-chat { margin-left: auto; font-size: 12px; }
.chat-scroll { flex: 1; min-height: 150px; overflow: auto; padding: 19px 0 8px; scrollbar-width: thin; }
.welcome h1 { font-size: 21px; letter-spacing: -.5px; margin-bottom: 12px; }
.welcome > p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.suggestions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.suggestions button { text-decoration: underline; text-underline-offset: 4px; font-size: 12px; color: var(--plum); padding: 0; text-align: left; }
.composer-area { padding-top: 12px; }
.helper-options { margin-bottom: 12px; }
.helper-options > summary { cursor: pointer; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.learning-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.learning-toolbar label { font-size: 12px; }
.learning-toolbar select { font-size: 14px; padding: 8px; }
.learning-toolbar button { font-size: 12px; }
.mode-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mode-help { font-size: 12px; text-decoration: underline; }
.segmented { display: flex; gap: 3px; background: var(--canvas); padding: 3px; border-radius: 5px; }
.segmented button { font-size: 12px; padding: 7px 10px; border-radius: 3px; }
.segmented .selected { background: var(--paper); color: var(--plum); font-weight: 700; }
.review-context { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; padding: 9px; background: var(--wash); font-size: 12px; margin-bottom: 10px; border-radius: 4px; }
.review-context button { font-size: 12px; text-decoration: underline; padding: 0; }
.composer { border: 1px solid #bfcbbf; border-radius: 7px; padding: 11px; background: var(--paper); }
.composer:focus-within { outline: 2px solid var(--plum); outline-offset: 2px; }
.composer textarea { width: 100%; resize: vertical; border: 0; padding: 0; background: transparent; min-height: 70px; max-height: 160px; font-size: 14px; }
.composer textarea:focus { outline: 0; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.code-attachment { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.code-attachment .icon { display: none; }
.send-button { display: flex; justify-content: center; align-items: center; height: 34px; width: 34px; background: var(--green); color: white; border-radius: 5px; flex: none; }
.composer-footnote { font-size: 12px; line-height: 1.65; color: var(--muted); display: flex; flex-wrap: wrap; gap: 3px; margin: 9px 0 0; }
.message { display: flex; gap: 9px; margin-bottom: 23px; }
.message-avatar { display: grid; place-items: center; flex: none; width: 24px; height: 24px; background: var(--wash); color: var(--plum); border-radius: 5px; font-size: 12px; }
.user .message-avatar { background: var(--soft); color: var(--green); }
.message-body { flex: 1; min-width: 0; }
.message-meta { font-size: 12px; font-weight: 700; margin: 2px 0 9px; }
.message-meta span { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--muted); }
.message-content { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.message-content p { margin-bottom: 12px; white-space: pre-wrap; }
.message-content p:last-child { margin-bottom: 0; }
.user .message-content { background: var(--soft); padding: 11px 13px; border-radius: 0 7px 7px; }
.message-content h3 { font-size: 16px; margin: 15px 0 10px; }
.message-content ul { padding-left: 20px; }
.message-content code:not(pre code) { font-size: 13px; padding: 1px 4px; background: var(--soft); border-radius: 3px; }
.code-block { margin: 13px 0; background: #f5f7f4; border: 1px solid #d4ded4; border-radius: 5px; overflow: hidden; }
.code-block-header { display: flex; justify-content: space-between; gap: 9px; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid #dfe6df; }
.code-block-actions { display: flex; gap: 12px; }
.code-block button { font-size: 12px; padding: 0; }
.code-block pre { overflow: auto; margin: 0; padding: 12px; font: 13px/1.8 'DejaVu Sans Mono', Consolas, monospace; }
.response-note, .message-loading { font-size: 12px; color: var(--muted); line-height: 1.7; }
.inline-error, .settings-message.error { background: #f6e8ed; color: #773749; padding: 13px; margin-top: 12px; border-radius: 5px; font-size: 14px; line-height: 1.7; }
.inline-error button { display: block; text-decoration: underline; padding: 0; margin-top: 8px; }
.lesson-list { display: flex; flex-direction: column; gap: 0; background: var(--paper); padding: 5px 25px; border-radius: 10px; }
.lesson-card { display: grid; grid-template-columns: 35px 1fr 205px; gap: 20px; padding: 25px 0; }
.lesson-card + .lesson-card { border-top: 1px solid #e1e7e2; }
.lesson-number { font-size: 22px; color: var(--plum); padding-top: 4px; }
.lesson-content h2 { font-size: 21px; margin-bottom: 13px; }
.lesson-content p { font-size: 14px; line-height: 1.8; }
.stage-evidence { color: var(--muted); margin-bottom: 0; }
.lesson-action { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.lesson-action > span, .outline-tag { font-size: 12px; color: var(--muted); }
.local-course-note { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 76ch; }
.teacher-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin: 28px 0; }
.teacher-controls label { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.teacher-demo { background: var(--paper); padding: 26px; border-radius: 10px; }
.teacher-demo h2 { font-size: 24px; margin-bottom: 25px; }
.teacher-demo dt { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.teacher-demo dd { font-size: 16px; line-height: 1.8; margin: 0 0 24px; max-width: 76ch; }
.teacher-agenda { margin: 28px 0; }
.teacher-agenda summary { cursor: pointer; font-size: 16px; }
.teacher-agenda p, .teacher-agenda li { font-size: 14px; line-height: 1.8; margin-top: 15px; }
.behavior-section { padding: 26px 0; border-top: 1px solid var(--line); }
.section-intro { margin-bottom: 23px; }
.section-intro h2 { font-size: 22px; margin-bottom: 11px; }
.section-intro p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.behavior-fields, .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.behavior-fields > div { margin-bottom: 15px; }
.prompt-detail { padding: 0; background: var(--paper); }
.prompt-detail:first-of-type { border-radius: 8px 8px 0 0; }
.prompt-detail + .prompt-detail { border-top: 1px solid #e0e6e1; }
.prompt-detail:last-child { border-radius: 0 0 8px 8px; }
.prompt-detail summary { cursor: pointer; padding: 17px 19px; font-size: 16px; font-weight: 700; }
.prompt-detail summary span { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 12px; }
.prompt-detail[open] { padding: 0 19px 19px; }
.prompt-detail[open] summary { padding-left: 0; padding-right: 0; }
.prompt-detail .field-label { margin-top: 0; }
.prompt-detail textarea + .field-label { margin-top: 18px; }
.prompt-detail textarea { font-size: 14px; }
.preview-review { display: flex; align-items: center; gap: 9px; font-size: 14px; margin: 16px 0; }
.request-detail { margin-top: 20px; }
.request-detail summary { cursor: pointer; color: var(--green); font-size: 14px; }
#request-preview { white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-height: 520px; background: var(--paper); border-radius: 6px; padding: 18px; font: 13px/1.8 'DejaVu Sans Mono', Consolas, monospace; }
.behavior-actions { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 25px 0 10px; }
.settings-message { font-size: 14px; line-height: 1.7; padding: 13px; background: var(--soft); border-radius: 5px; margin-top: 17px; }
.behavior-view .field-hint { max-width: 80ch; }
dialog { width: min(650px,calc(100% - 28px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 0; border: 1px solid #c7d1c8; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 70px #243c2d26; }
dialog::backdrop { background: #26352a66; }
dialog form { padding: 28px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-header h2 { font-size: 26px; letter-spacing: -.5px; margin-bottom: 0; }
.dialog-header .overline { margin-bottom: 10px; }
.dialog-intro { font-size: 14px; color: var(--muted); line-height: 1.8; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 45px !important; }
.password-wrap button { position: absolute; right: 5px; top: 5px; }
.usage-box { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; background: var(--soft); padding: 14px; border-radius: 5px; margin-top: 22px; }
.usage-box strong { font-weight: 400; }
.settings-notice { display: flex; gap: 9px; margin-top: 18px; }
.settings-notice .icon { width: 15px; height: 15px; margin-top: 4px; }
.settings-notice p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 24px; }
.dialog-footer > div { display: flex; gap: 9px; }
.danger { color: #813d4b; font-size: 12px; }
.test-hint { text-align: right; }
#name-dialog { max-width: 450px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--green); color: white; padding: 13px 18px; border-radius: 6px; max-width: min(90vw,650px); font-size: 14px; line-height: 1.7; z-index: 100; }
@media(max-width:1250px) {
  .sidebar { width: 185px; padding-left: 12px; padding-right: 12px; }
  .main-shell { margin-left: 185px; }
  .brand { font-size: 19px; }
  .workspace-view, .course-view, .teacher-view, .behavior-view { padding-left: 25px; padding-right: 25px; }
  .topbar { padding: 0 25px; }
  .workbench-tools > span { display: none; }
  .studio-layout:has(.helper-drawer:not([hidden])) .workbench-grid { grid-template-columns: 1fr; height: auto; }
  .studio-layout:has(.helper-drawer:not([hidden])) .editor-pane { height: 330px; border-right: 0; }
  .studio-layout:has(.helper-drawer:not([hidden])) .preview-pane { height: 350px; }
  .lesson-card { grid-template-columns: 30px 1fr; }
  .lesson-action { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media(max-width:1000px) {
  .page-heading { flex-wrap: wrap; gap: 18px; }
  .workshop-actions { justify-content: flex-start; }
  .task-columns { grid-template-columns: 1fr; gap: 20px; }
  .task-tools { border-left: 0; padding: 8px 0 0; }
  .helper-drawer:not([hidden]) { position: fixed; inset: 78px 16px 16px auto; width: 350px; z-index: 40; box-shadow: 0 12px 40px #263a2c26; }
  .conversation-column { min-height: 0; height: 100%; }
}
@media(max-width:850px) {
  .workbench-grid { grid-template-columns: 1fr; height: auto; }
  .editor-pane { height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
  .preview-pane { height: 370px; }
  .behavior-fields { grid-template-columns: 1fr; }
  .journal-fields { grid-template-columns: 1fr; gap: 0; }
  .prompt-detail summary span { display: block; margin: 6px 0 0 18px; }
}
@media(max-width:620px) {
  .sidebar { position: static; width: 100%; padding: 0; border-right: 0; overflow: visible; }
  .brand, .course-label, .sidebar-project, .course-progress, .sidebar-bottom { display: none; }
  .main-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line); }
  .main-nav > .nav-item { justify-content: center; border-radius: 0; padding: 15px 8px; }
  .main-nav > .nav-item .icon { display: none; }
  .teaching-navigation { position: relative; margin: 0; border: 0; padding: 0; }
  .teaching-navigation summary { font-size: 12px; min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 10px 8px; }
  .teaching-links { position: absolute; top: 100%; right: 8px; min-width: 185px; background: white; border: 1px solid var(--line); border-radius: 7px; padding: 8px; z-index: 25; }
  .main-shell { margin-left: 0; }
  .topbar { height: 51px; padding: 0 16px; }
  .topbar-label .desktop-label { display: none; }
  .topbar-label .mobile-brand { display: inline; font-size: 12px; }
  .topbar-actions { gap: 4px; }
  .connection { font-size: 12px; }
  .topbar-actions > .icon-button { display: none; }
  .workspace-view, .course-view, .teacher-view, .behavior-view { padding: 13px 16px 30px; }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1 { font-size: 29px; letter-spacing: -.7px; }
  .page-heading p { font-size: 14px; }
  .workshop-actions { flex-wrap: wrap; gap: 8px; }
  .primary-button, .secondary-button { font-size: 14px; padding: 9px 12px; }
  #workshop-task { padding: 19px 17px 15px; border-radius: 9px; }
  .task-heading { flex-wrap: wrap; gap: 4px; }
  .task-heading h2 { font-size: 23px; }
  .phase-caption { margin-bottom: 8px; }
  .task-start { gap: 10px; }
  .task-start > span { display: block; width: 100%; }
  .task-columns { gap: 17px; }
  .task-footer { gap: 13px; }
  .editor-tabs { gap: 0; }
  .editor-tabs button { padding: 12px 8px; font-size: 12px; }
  .workbench-toolbar { padding: 0 5px; }
  .workbench-tools .text-button { font-size: 0; }
  .editor-bottom { flex-wrap: wrap; }
  .pane-title { padding: 0 12px; }
  .pane-title > span:last-child:not(:first-child) { display: none; }
  .editor-pane textarea { padding: 12px 14px; }
  .learning-journal > summary span { display: block; margin: 5px 0 0 18px; }
  .journal-heading { flex-wrap: wrap; gap: 9px; }
  .journal-buttons { align-items: flex-start; }
  .takeaway-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .helper-drawer:not([hidden]) { inset: 70px 10px 12px; width: auto; }
  .lesson-list { padding: 0 17px; }
  .lesson-card { gap: 13px; }
  .lesson-action { flex-direction: column; align-items: flex-start; gap: 9px; }
  .teacher-demo { padding: 20px; }
  .teacher-demo dd { font-size: 14px; }
  .field-grid { gap: 12px; }
  .behavior-actions { flex-direction: column-reverse; align-items: stretch; }
  .behavior-actions > .text-button { justify-content: center; }
  dialog form { padding: 23px 18px; }
  .dialog-header h2 { font-size: 23px; }
  .dialog-footer { flex-wrap: wrap; }
  .dialog-footer > div { margin-left: auto; flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
