:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202b2a; background: #f5f6f3; --muted: #65716d; --line: #e0e5df; --accent: #245e48; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, summary, .mode-switch label { cursor: pointer; }
button { min-height: 36px; padding: 7px 13px; border: 1px solid #cbd4cb; border-radius: 7px; background: #fff; color: #304b3d; font-weight: 600; }
button:hover { background: #f0f4ee; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { min-width: 140px; background: var(--accent); color: #fff; border-color: var(--accent); }
button.primary:hover { background: #194633; }
button.primary span { margin-left: 14px; }
button.quiet { background: transparent; border-color: transparent; color: var(--muted); font-size: 12px; padding-inline: 6px; }
button.quiet:hover { color: var(--accent); background: #f0f4ee; }
:where(button, input, select, textarea, summary, a):focus-visible { outline: 3px solid #9abfa3; outline-offset: 3px; }
input, select, textarea { width: 100%; border: 1px solid #cbd4cb; border-radius: 7px; color: inherit; background: #fff; padding: 9px 11px; }
input, select { min-height: 40px; }
textarea { resize: vertical; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b04435; background: #fff8f6; }
input:disabled, select:disabled, textarea:disabled { background: #f4f5f1; color: #7d8580; }
label { display: block; margin: 14px 0 5px; font-size: 12px; font-weight: 600; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(29px, 3.5vw, 39px); line-height: 1.15; letter-spacing: -1.5px; font-weight: 650; }
h2 { font-size: 14px; font-weight: 650; }
h3 { font-size: 13px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
pre { margin: 12px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f7f8f5; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 430px; overflow: auto; }
.topbar { min-height: 68px; padding: 0 max(28px, calc((100vw - 1440px) / 2)); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: flex; gap: 14px; align-items: center; font-size: 14px; text-decoration: none; }
.brand strong { font-size: 16px; letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: #254d3b; color: #fff; border-radius: 9px; font: 700 23px/1 Georgia, serif; }
.brand-divider { color: #c6cfc5; }
.brand > span:last-child { color: var(--muted); }
.topbar nav { display: flex; gap: 24px; font-size: 12px; color: #53635b; }
.topbar nav a { text-decoration: none; }
main { max-width: 1440px; margin: 0 auto; padding: 34px 28px 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .14em; color: var(--muted); margin-bottom: 9px; }
.title-dot { color: #b07346; }
.subtitle { color: var(--muted); margin-top: 10px; font-size: 13px; }
.connection { display: flex; gap: 10px; align-items: center; }
.badge, .tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; padding: 4px 8px; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; background: #edf0ea; color: #586557; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge[data-tone="success"] { color: #276c48; background: #e9f4e8; }
.badge[data-tone="error"] { color: #a0362b; background: #faeeea; }
.workspace { display: grid; grid-template-columns: 322px minmax(0, 1fr); gap: 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-heading h2 { display: flex; align-items: center; gap: 9px; }
.step { display: inline-grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 6px; font: 10px/1 ui-monospace, SFMono-Regular, monospace; color: var(--muted); }
.settings { display: grid; gap: 16px; }
.space-panel { padding: 18px; }
.space-panel .panel-heading { gap: 4px; }
.space-panel .quiet { font-size: 11px; }
.drop-zone { position: relative; display: grid; place-items: center; text-align: center; border: 1px dashed #b9c8b8; border-radius: 9px; padding: 22px 12px; background: #f8faf5; }
.drop-zone.dragging, .drop-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; background: #edf5e7; }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone label { margin: 6px 0 0; font-size: 12px; }
.drop-zone label span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.upload-symbol { font: 21px/1.5 ui-monospace, monospace; color: #6c8867; }
.hint { font-size: 11px; color: var(--muted); font-weight: 400; }
p.hint { margin-top: 7px; }
.space-info { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 5px 8px; align-items: center; }
.space-info strong { font-size: 12px; overflow-wrap: anywhere; }
.space-info small { grid-column: 1 / -1; color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; overflow-wrap: anywhere; }
.space-stats { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; margin: 16px 0; border-block: 1px solid var(--line); padding: 13px 0; }
.space-stats dt { color: var(--muted); font-size: 10px; }
.space-stats dd { margin: 4px 0 0; font: 500 16px/1.4 ui-monospace, monospace; }
.rag-note { font-size: 11px; }
.rag-note strong { display: flex; justify-content: space-between; color: #516442; font-size: 11px; }
.rag-note strong span { font-weight: 400; color: var(--muted); }
.rag-note p { margin-top: 5px; color: var(--muted); }
.settings-panel { padding: 18px; margin: 0; }
.settings-panel > summary { font-size: 14px; }
.settings-panel > summary .hint { display: block; margin: 2px 0 0 14px; }
.field-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
details { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
summary { font-size: 12px; font-weight: 650; }
summary .hint { margin-left: 8px; }
details[open] > summary { margin-bottom: 12px; }
.presets { display: flex; gap: 6px; margin-top: 10px; }
.presets button { min-height: 28px; font-size: 11px; padding: 3px 10px; }
.workbench { min-width: 0; display: grid; gap: 18px; }
.endpoint { color: var(--muted); font-size: 11px; }
.endpoint span { color: #287b50; margin-right: 5px; font-size: 10px; font-weight: 700; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 5px; background: #f4f6f1; border: 1px solid #e5e9e1; border-radius: 10px; }
.mode-switch label { position: relative; margin: 0; }
.mode-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mode-switch label > span { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 3px 8px; padding: 11px 14px; border: 1px solid transparent; border-radius: 7px; color: #73816e; }
.mode-switch small { font: 10px/1.6 ui-monospace, monospace; }
.mode-switch input:checked + span { background: #fff; color: #254d3b; border-color: #ccd8c4; box-shadow: 0 1px 3px #1f33210a; }
.mode-switch input:focus-visible + span { outline: 3px solid #9abfa3; outline-offset: 2px; }
#mode-help { min-height: 18px; }
#free-text { min-height: 100px; font-family: inherit; font-size: 13px; background: #fdfefb; }
.send-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.send-row > div { display: flex; gap: 8px; }
.status { color: var(--muted); font-size: 12px; margin-top: 14px; min-height: 19px; overflow-wrap: anywhere; }
.status[data-tone="error"] { color: #a0362b; }
.inspector { margin-top: 18px; padding-top: 14px; }
.inspector textarea { margin-top: 10px; background: #f7f8f5; }
.inspector textarea:not([readonly]) { background: #fffef6; border-color: #b69b58; }
.inspector-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.inspector-actions button { font-size: 12px; }
.api-guide { font-size: 12px; overflow-wrap: anywhere; }
.api-guide h3 { margin-top: 20px; }
.api-guide p { margin-top: 10px; }
.api-guide ul { padding-left: 20px; }
.api-guide li + li { margin-top: 8px; }
.api-guide table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 10px; font-size: 12px; }
.api-guide th, .api-guide td { padding: 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.api-guide th { font-weight: 600; background: #f7f8f5; }
.api-guide th:first-child { width: 34%; }
.api-guide code { font-size: 11px; }
.empty-state { text-align: center; padding: 36px 12px 45px; color: var(--muted); }
.empty-symbol { display: grid; place-items: center; margin: 0 auto 16px; width: 43px; height: 43px; background: #f1f5ec; border: 1px solid #e2e9dc; color: #657a59; border-radius: 12px; font-size: 24px; }
.empty-state h3 { font-weight: 500; color: #485542; margin-bottom: 5px; }
.empty-state p { font-size: 12px; }
.empty-state small { display: block; font-size: 11px; margin-top: 17px; color: #788171; }
.answer-heading { display: flex; align-items: center; justify-content: space-between; }
.answer-heading .eyebrow { margin: 0; }
.answer-message { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; margin: 6px 0 21px; }
#sources-section, #suggestions-section { margin-top: 18px; }
.sources { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; list-style: none; margin: 9px 0; }
.sources li { background: #f2f5ee; border: 1px solid #e2e8dc; border-radius: 5px; padding: 5px 9px; font-size: 11px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.suggestions button { font-size: 12px; font-weight: 400; text-align: left; }
.proposal { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.course-scenes { padding: 0; list-style: none; counter-reset: steps; }
.course-scenes li { counter-increment: steps; position: relative; border-left: 1px solid #dce5d5; padding: 0 0 20px 35px; margin-left: 12px; overflow-wrap: anywhere; }
.course-scenes li:last-child { border-color: transparent; }
.course-scenes li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: -12px; top: 0; display: grid; place-items: center; width: 24px; height: 24px; background: #eff4e9; color: #617451; border: 1px solid #dce5d5; border-radius: 50%; font: 10px/1 ui-monospace, monospace; }
.course-scenes h4 { margin: 0 0 5px; font-size: 13px; font-weight: 600; }
.course-scenes p { font-size: 12px; color: #586356; white-space: pre-wrap; }
.workspace-footer { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.quality-grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 12px; margin-top: 16px; align-items: start; }
.quality-card { min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: #fafbf8; }
.metric-list { margin: 14px 0; }
.metric-list > div { border-top: 1px solid var(--line); padding: 10px 0; }
.metric-list dt { font-size: 11px; color: var(--muted); }
.metric-list dd { margin: 3px 0; font: 600 20px/1.4 ui-monospace, SFMono-Regular, monospace; overflow-wrap: anywhere; }
.metric-list small { display: block; font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.metric-featured dd { color: var(--accent); font-size: 28px; }
.evaluation-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.evaluation-controls label { margin: 0; }
.evaluation-controls input[type="number"] { width: 56px; padding: 6px; }
.check-label { display: flex; align-items: center; gap: 7px; }
.check-label input { width: 16px; min-height: 16px; margin: 0; }
.case-panel { padding: 18px; }
.case-panel select { font-size: 11px; }
.quality-panel .status { margin-top: 0; }
@media (max-width: 1100px) { .quality-grid { grid-template-columns: 1fr; } .metric-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; } .metric-featured { grid-column: 1 / -1; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 12px; padding: 10px; background: white; z-index: 10; }
.skip-link:focus { top: 10px; }
@media (min-width: 1500px) { main { padding-top: 42px; } .workspace { gap: 26px; } }
@media (max-width: 980px) { .workspace { grid-template-columns: 285px minmax(0, 1fr); gap: 16px; } .mode-switch label > span { display: grid; } .endpoint { font-size: 10px; } .request-panel, .response-panel { padding: 18px; } }
@media (max-width: 740px) { main { padding: 25px 16px; } .topbar { padding-inline: 16px; } .topbar nav { gap: 12px; } .brand { gap: 9px; } .brand > span:last-child { display: none; } .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; } .workspace { grid-template-columns: 1fr; } .settings { gap: 12px; } .settings-panel > h2 { margin-bottom: 8px; } .panel-heading { flex-wrap: wrap; gap: 8px; } .mode-switch label > span { padding: 10px; } .workspace-footer { flex-wrap: wrap; } #request-id { display: block; margin: 6px 0 0; overflow-wrap: anywhere; } }
