@import url("/site-assets/theme.css");
@import url("./themes.css");

:root { --ink:var(--text); --muted:var(--text-2); --canvas:var(--bg); --surface:var(--bg-2); --sidebar:#0e0f09; --accent:var(--lime); --accent-soft:#202212; --accent-dark:var(--glow); }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 15px/1.55 var(--sans); }
button, textarea, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
a { color: inherit; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 246px; background: var(--sidebar); color: var(--text); display: flex; flex-direction: column; padding: 31px 20px 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font-size: 27px; font-weight: 650; letter-spacing: -1.3px; padding-left: 7px; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 36px; border-radius: 10px; color: #192829; background: var(--accent); font-size: 32px; line-height: 1; font-weight: 900; }
.brand-dot { color: var(--accent); margin-left: -10px; }
.sidebar-caption { font-size: 10px; letter-spacing: 2px; margin: 48px 10px 17px; color: var(--muted); }
nav { display: grid; gap: 9px; }
nav a { display: flex; align-items: center; gap: 10px; padding: 14px 10px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-size: 13px; }
nav a:hover { background: var(--bg-2); }
nav a[aria-current] { color: var(--text); border-color: var(--line); background: var(--bg-2); }
.nav-icon { width: 24px; font-size: 24px; color: var(--muted); }
nav a[aria-current] .nav-icon { color: var(--accent); }
nav small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.nav-number { margin-left: auto; font: 10px monospace; color: var(--muted); }
.sidebar-bottom { margin-top: auto; padding: 34px 10px 0; }
.loop-note { border-top: 1px solid var(--line); padding-top: 24px; }
.loop-symbol { color: var(--accent); font-size: 28px; line-height: 1; }
.loop-note .loop-symbol { color: var(--accent); display: block; margin-bottom: 14px; font-size: 35px; }
.loop-note strong { font-size: 18px; color: var(--text); font-weight: 500; line-height: 1.4; }
.loop-note p { font-size: 12px; color: var(--muted); margin: 12px 0 28px; }
.sidebar-link { display: flex; justify-content: space-between; text-decoration: none; font-size: 12px; }
.local-label { font-size: 10px; color: var(--muted); margin: 20px 0 0; }
.live-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 100%; margin-right: 7px; }
main { margin-left: 246px; padding: 0 42px 24px; max-width: 1680px; }
.topbar { min-height: 83px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 15px; }
.breadcrumb { font-size: 10px; letter-spacing: 1.1px; color: var(--muted); }
.breadcrumb span { margin: 0 11px; color: var(--muted); }
.breadcrumb b { font-weight: 500; color: var(--ink); }
.top-actions { display: flex; gap: 15px; align-items: center; }
.live-pill, .manual-pill { font-size: 11px; border-radius: 20px; background: var(--surface); color: var(--accent); padding: 5px 10px; white-space: nowrap; }
.quiet-button { background: transparent; border: none; padding: 6px 0; font-size: 11px; color: var(--muted); }
.quiet-button:hover { color: var(--ink); }
.quiet-button span { padding-left: 10px; }
.hero { display: flex; align-items: center; justify-content: space-between; padding: 40px 0 28px; gap: 20px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.8px; color: var(--accent); }
h1 { margin: 10px 0 10px; font: 54px/1.07 var(--display); letter-spacing: -2px; }
.hero p { color: var(--muted); margin: 0; max-width: 575px; font-size: 14px; }
.hero-glyph { display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 24px; background: var(--accent-soft); color: var(--accent); font-size: 55px; transform: rotate(-5deg); }
.learner-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 24px; padding: 12px 0; }
.learner-bar > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.learner-bar > div > span:not(.live-dot) { font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.learner-bar code { color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }
.workspace { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 22px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 3px 5px #1a2c2010; padding: 25px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading > div { display: flex; align-items: center; gap: 12px; }
.section-number { font-size: 10px; font-family: monospace; color: var(--accent); border: 1px solid var(--line); padding: 4px 6px; border-radius: 5px; }
h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.35px; }
.panel-label { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
.panel-description { color: var(--muted); font-size: 12px; margin: 17px 0 20px; }
label { font-size: 12px; font-weight: 500; display: block; margin-bottom: 8px; }
textarea, input { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 13px; resize: vertical; }
textarea { min-height: 123px; font-size: 15px; line-height: 1.6; }
textarea:focus, input:focus { border-color: var(--accent); background: var(--bg); }
.input-footer { display: flex; justify-content: space-between; margin: 7px 0 19px; color: var(--muted); font-size: 10px; gap: 8px; }
.confidence-control { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.confidence-control label { margin: 0; color: var(--muted); font-size: 10px; }
.confidence-control select { margin-left: auto; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
.confidence-help { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: transparent; }
kbd { font: 9px monospace; color: var(--muted); }
.primary-button { width: 100%; display: flex; justify-content: space-between; align-items: center; color: var(--text); background: var(--accent); border: 1px solid var(--accent); border-radius: 8px; padding: 12px 15px; font-size: 13px; font-weight: 600; transition: background .15s, transform .15s; }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button span { font-size: 18px; line-height: 1; }
.subheading { font-size: 9px; color: var(--muted); letter-spacing: 1.2px; font-weight: 600; margin-bottom: 11px; }
.suggestions { margin-top: 25px; }
#suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.suggestion { border: 1px solid var(--line); padding: 7px 10px; border-radius: 6px; background: var(--bg); color: var(--muted); font-size: 11px; text-align: left; }
.suggestion:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.suggestions p { font-size: 10px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.how-it-works { display: flex; gap: 13px; align-items: flex-start; padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); }
.how-it-works strong { font-size: 11px; font-weight: 600; }
.how-it-works p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.status-badge { font-size: 9px; letter-spacing: .6px; padding: 5px 8px; background: var(--surface); color: var(--muted); border-radius: 5px; font-weight: 650; }
.status-badge[data-status="PREDICTED"], .status-badge[data-status="LEARNED"], .status-badge[data-status="TAUGHT"], .status-badge[data-status="success"] { color: var(--accent); background: var(--surface); }
.status-badge[data-status="ABSTAINED"], .status-badge[data-status="CHOSEN"], .status-badge[data-status="AMBIGUOUS"], .status-badge[data-status="RECORDED"], .status-badge[data-status="UNRESOLVED"] { color: #efad91; background: var(--surface); }
.status-badge[data-status="error"] { color: #efad91; background: var(--surface); }
.status-badge[data-status="busy"] { background: var(--accent-soft); color: var(--accent); }
.result-content { min-height: 290px; padding: 26px 0 10px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; text-align: center; }
.empty-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-soft); color: var(--accent); border-radius: 17px; font-size: 31px; margin-bottom: 18px; }
.empty-state h3 { font: 24px/1.2 var(--display); font-weight: normal; margin: 0 0 10px; letter-spacing: -.5px; }
.empty-state p { color: var(--muted); font-size: 12px; max-width: 310px; margin: 0; }
.result-meta { font-size: 10px; margin-top: 15px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.result-meta b { color: var(--accent); font-weight: 600; }
.result-meta .query { width: 100%; padding: 8px 10px; border-left: 2px solid var(--accent); background: var(--surface); overflow-wrap: anywhere; }
.result-meta .query strong { margin-right: 8px; }
.plan-caption { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 15px; }
.plan-step { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.plan-step:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 33px; bottom: 0; width: 1px; background: var(--line); }
.step-index { display: grid; place-items: center; min-width: 33px; height: 33px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 650; }
.step-body { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.tool-name { display: block; font: 13px/1.4 monospace; font-weight: 600; overflow-wrap: anywhere; }
.argument-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.argument { display: inline-flex; gap: 6px; color: var(--muted); background: var(--surface); font-size: 10px; padding: 3px 7px; border-radius: 4px; overflow-wrap: anywhere; max-width: 100%; }
.argument strong { color: var(--ink); font-weight: 500; }
.result-footnote { font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.folder-illustration { display: flex; gap: 13px; align-items: center; padding: 20px; border-radius: 10px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); }
.folder-icon { font-size: 41px; color: var(--accent); }
.folder-illustration small { display: block; font-size: 9px; letter-spacing: 1.1px; color: var(--accent); }
.folder-illustration strong { font: 20px/1.4 var(--display); overflow-wrap: anywhere; }
.full-path { display: block; font: 11px/1.7 ui-monospace, monospace; color: var(--accent); margin-top: 14px; overflow-wrap: anywhere; }
.path-tree { padding: 18px 0; }
.path-part { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; overflow-wrap: anywhere; }
.path-part span { color: var(--muted); font-family: monospace; }
.path-part:last-child { color: var(--accent); font-weight: 600; }
.invoice { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; overflow: hidden; }
.invoice-header { border-bottom: 1px solid var(--line); padding: 18px; display: flex; gap: 15px; justify-content: space-between; align-items: center; }
.invoice-header span { color: var(--accent); font-size: 10px; letter-spacing: 1.2px; }
.invoice-header strong { font-family: monospace; font-size: 13px; }
.invoice dl { padding: 18px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 25px 14px; }
.invoice dt { font-size: 9px; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; }
.invoice dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.invoice .field-amount dd { font: 29px/1.1 var(--display); color: var(--accent); }
.invoice .invoice-footer { padding: 10px 18px; border-top: 1px dashed var(--line); font-size: 10px; color: var(--muted); }
.detail-block { border-top: 1px solid var(--line); padding: 13px 0; margin: 0; }
.detail-block summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 10px; font-size: 11px; font-weight: 500; }
.detail-block summary::before { content: "+"; color: var(--accent); font-family: monospace; font-size: 14px; }
.detail-block[open] summary::before { content: "−"; }
.detail-block summary > span:first-child { flex: 1; }
#evidence-count { font-size: 9px; color: var(--muted); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border-radius: 7px; padding: 13px; font: 11px/1.8 ui-monospace, monospace; max-height: 340px; overflow: auto; }
.result-actions { margin: 12px 0 22px; }
.secondary-button { display: flex; width: 100%; justify-content: space-between; border: 1px solid var(--line); background: transparent; border-radius: 7px; padding: 10px 12px; color: var(--accent); font-size: 11px; }
.teaching-panel { margin-top: 22px; margin-bottom: 22px; border-top: 3px solid var(--accent); }
.request-panel > .teaching-panel { margin: 18px 0 0; padding: 18px 0 0; border-width: 3px 0 0; border-radius: 0; box-shadow: none; background: transparent; }
.request-panel.training-mode > .panel-heading { opacity: .55; }
#seed-request-field { margin-bottom: 20px; }
.learner-actions { flex-wrap: wrap; }
#reset-demo { color: var(--accent); font-weight: 600; }
.teaching-header { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.teaching-header h2 { margin-top: 7px; font: 27px/1.2 var(--display); letter-spacing: -.5px; }
.teaching-header p { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.manual-pill { color: var(--accent); background: var(--accent-soft); }
.original-request { display: flex; align-items: center; gap: 20px; background: var(--surface); border-radius: 7px; padding: 12px 15px; margin: 20px 0; }
.original-request span { color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.original-request p { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.json-editor { font: 12px/1.7 ui-monospace, monospace; min-height: 190px; }
.editor-introduction { color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.tool-call-list { display: grid; gap: 14px; }
.tool-call-card { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 16px; }
.tool-call-editor-header, .argument-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-call-editor-header { margin-bottom: 13px; }
.tool-call-number { color: var(--accent); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.argument-editor-heading { margin: 16px 0 9px; color: var(--muted); font-size: 11px; }
.argument-editors { display: grid; gap: 8px; }
.argument-editor { display: grid; grid-template-columns: minmax(100px, .75fr) minmax(140px, 1.25fr) auto; gap: 8px; align-items: center; }
.argument-editor input { min-width: 0; }
.add-editor-row, .remove-editor-row { border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); padding: 7px 9px; font-size: 10px; }
.add-editor-row:hover, .remove-editor-row:hover { border-color: var(--accent); color: var(--accent); }
.add-tool-call { margin-top: 12px; width: 100%; }
.generated-json-preview, .sample-answer-reference { margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; background: var(--surface); }
.generated-json-preview summary, .sample-answer-reference summary { cursor: pointer; color: var(--accent); font-size: 11px; font-weight: 600; }
.generated-json { margin-bottom: 0; }
.sample-answer-reference p { color: var(--muted); font-size: 11px; margin: 10px 0; }
.sample-answer-reference pre { margin-bottom: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.teaching-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.teaching-footer p { color: var(--muted); font-size: 11px; margin: 0; }
.teaching-footer .primary-button { width: auto; min-width: 210px; gap: 20px; }
.teaching-result { font-size: 12px; color: var(--accent); margin-top: 16px; background: var(--surface); border-radius: 7px; padding: 12px; }
.output-summary { color: var(--ink); margin: 8px 0; }
.json-inspector { margin-top: 10px; color: var(--muted); }
.json-inspector summary { cursor: pointer; color: var(--accent); }
.history-panel { margin-top: 22px; }
.history-panel .panel-description { margin-bottom: 15px; }
.history-row { border-top: 1px solid var(--line); padding: 11px 0; }
.history-summary { display: grid; grid-template-columns: 65px 90px minmax(0, 1fr) 95px; gap: 12px; align-items: center; font-size: 11px; }
.history-time { color: var(--muted); font-size: 10px; font-family: monospace; }
.history-action { color: var(--muted); font-size: 10px; }
.history-input { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-row .status-badge { justify-self: end; }
.history-footer { display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.history-actions { display: flex; gap: 14px; }
.history-readable { padding: 10px 0 2px; color: var(--muted); font-size: 12px; }
.history-readable p { margin: 4px 0; }
.history-readable strong { color: var(--ink); }
.history-empty { color: var(--muted); font-size: 12px; padding: 12px 0; }
.error-banner, .notice { margin-bottom: 18px; padding: 12px 15px; border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
.error-banner { border: 1px solid var(--line); background: var(--surface); color: #efad91; }
.notice { border: 1px solid #c9ddbf; background: var(--surface); color: var(--accent); }
.confidence-warning { margin: 0 0 18px; padding: 12px; border-left: 3px solid #efad91; background: var(--surface); color: var(--ink); font-size: 12px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 9px; margin-top: 24px; }
.page-footer > span:first-child { letter-spacing: 1px; }
.page-footer { flex-wrap: wrap; }
.page-footer a { color: inherit; }
.busy .hero-glyph { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .5; transform: rotate(3deg); } }
body.presentation .sidebar, body.presentation .technical, body.presentation .history-panel, body.presentation .how-it-works, body.presentation .breadcrumb, body.presentation .page-footer { display: none; }
body.presentation main { margin: 0 auto; max-width: 1260px; }
body.presentation .topbar { justify-content: flex-end; min-height: 60px; }
body.presentation h1 { font-size: 61px; }
body.presentation .hero { padding-top: 32px; }
body.presentation .panel { padding: 30px; }
body.presentation .hero p { font-size: 16px; }
@media (min-width: 1600px) { main { padding-left: 65px; padding-right: 65px; } .hero { padding-top: 52px; padding-bottom: 40px; } .panel { padding: 30px; } }
@media (max-width: 1100px) { .sidebar { width: 210px; padding: 28px 12px; } main { margin-left: 210px; padding: 0 24px 24px; } .hero-glyph { width: 70px; height: 70px; font-size: 40px; } h1 { font-size: 45px; } .panel { padding: 19px; } .workspace { gap: 16px; } .nav-number { display: none; } }
@media (max-width: 850px) { .sidebar { position: static; width: auto; padding: 17px 20px; } .brand { font-size: 23px; } .sidebar-caption, .sidebar-bottom { display: none; } nav { display: flex; margin-top: 15px; gap: 5px; } nav a { flex: 1; font-size: 11px; padding: 10px; } nav small { display: none; } .nav-icon { font-size: 20px; } main { margin: 0; padding: 0 22px 25px; } .workspace { grid-template-columns: 1fr; } .topbar { min-height: 65px; } .top-actions { gap: 10px; } .breadcrumb { font-size: 8px; } h1 { font-size: 44px; } .result-content { min-height: 220px; } .empty-state { min-height: 220px; } }
@media (max-width: 500px) { nav a { font-size: 10px; padding: 8px 4px; gap: 4px; } nav .nav-icon { width: 20px; } .breadcrumb, .hero-glyph { display: none; } .topbar { justify-content: flex-end; } main { padding: 0 15px 20px; } .hero { padding: 28px 0 24px; } h1, body.presentation h1 { font-size: 40px; } .learner-bar { align-items: flex-start; flex-direction: column; } .panel, body.presentation .panel { padding: 18px; } .field-grid, .argument-editor { grid-template-columns: 1fr; } .remove-editor-row { width: 100%; } .teaching-header, .teaching-footer { align-items: flex-start; flex-direction: column; } .teaching-footer .primary-button { width: 100%; } .history-summary { grid-template-columns: 50px minmax(0, 1fr) 85px; gap: 8px; } .history-action { display: none; } .history-footer, .page-footer { flex-direction: column; align-items: flex-start; } .original-request { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* Keep the original studio interaction layout within the landing design. */
.brand { font-family:var(--display); color:var(--text); letter-spacing:-.04em; }
.brand img { width:28px; height:31px; }
.primary-button { color:var(--bg); font-weight:600; }
.panel { background:var(--surface); border-color:var(--line); }
textarea,input,select { background:var(--bg); color:var(--text); border-color:var(--line-2); }
textarea:focus-visible, input:focus-visible, select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.studio-context { color:var(--text-2); font-size:12px; margin:22px 0 0; }
.studio-context a { color:var(--lime); }
.hero-glyph { color:var(--lime); }

/* Curated demo: persistent navigation around one phase-driven workspace. */
body { min-height: 100vh; overflow-x: hidden; }
.history-panel, .page-footer { display: none; }
main { min-height: 100vh; }
.topbar { min-height: 62px; }
.studio-context, #session-note { display: none; }
.hero { padding: 24px 0 20px; }
.hero h1 { margin: 6px 0; font-size: 40px; }
.hero p { font-size: 13px; }
.hero-glyph { width: 66px; height: 66px; border-radius: 17px; font-size: 38px; }
.learner-bar { margin-bottom: 14px; }
#session-note { margin: 0 0 14px; }
.demo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.demo-steps li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface); transition: border-color .15s, background .15s, color .15s; }
.demo-steps li > span { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; font: 11px monospace; }
.demo-steps strong, .demo-steps small { display: block; }
.demo-steps strong { font-size: 12px; }
.demo-steps small { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-steps li.active { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 -2px var(--accent); }
.demo-steps li.active > span { color: var(--bg); border-color: var(--accent); background: var(--accent); }
.demo-steps li.complete { color: var(--accent); }
.demo-steps li.complete > span { border-color: var(--accent); }
.workspace { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); gap: 0; align-items: start; overflow: visible; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.workspace > .panel { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.request-panel { padding: 24px; }
.result-panel { min-height: 430px; padding: 24px; border-left: 1px solid var(--line) !important; }
.request-panel > .panel-heading { display: flex; }
.request-panel > .panel-description { display: block; }
.request-panel textarea { min-height: 104px; resize: vertical; }
.request-panel > .teaching-panel { max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.teaching-header { display: flex; }
.tool-call-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; gap: 12px; }
.tool-call-card { padding: 14px; }
.argument-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.argument-editor > .remove-editor-row { grid-column: 1 / -1; justify-self: end; padding: 4px 7px; }
.generated-json-preview, .sample-answer-reference { padding: 9px 11px; }
.result-content { min-height: 220px; padding: 20px 0 10px; }
.empty-state { min-height: 220px; }
#notice, #error { position: fixed; z-index: 5; top: 70px; right: 36px; max-width: 460px; box-shadow: 0 8px 30px #0005; }
body[data-phase="train"] .workspace { grid-template-columns: minmax(0, 1fr); }
body[data-phase="train"] .result-panel { display: none; }
body[data-phase="train"] .request-panel > .panel-heading,
body[data-phase="train"] .request-panel > .panel-description { display: none; }
body[data-phase="train"] .request-panel { box-shadow: inset 3px 0 var(--accent); }
body[data-phase="ask"] .request-panel,
body[data-phase="generalize"] .request-panel { box-shadow: inset 3px 0 color-mix(in srgb, var(--accent) 70%, transparent); }
body.presentation main { min-height: 100vh; }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); }
  .request-panel, .result-panel { padding: 20px; }
}
@media (max-width: 850px) {
  .sidebar { display: flex; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar nav a { min-width: 0; }
  main { min-height: 0; }
  .workspace { grid-template-columns: 1fr; }
  .result-panel { min-height: 0; border-top: 1px solid var(--line) !important; border-left: 0 !important; }
  .learner-bar { align-items: flex-start; flex-direction: column; }
  #notice, #error { position: static; max-width: none; box-shadow: none; }
}
@media (max-width: 500px) {
  .sidebar nav a { padding: 10px 8px; }
  .sidebar nav small { display: block; }
  .hero { padding: 22px 0 18px; }
  .demo-steps li { padding: 8px; }
  .demo-steps small { display: none; }
  .request-panel, .result-panel { padding: 18px; }
  .argument-editor { grid-template-columns: 1fr; }
}
