/* Workbench only. Shared branding and navigation remain in shell.css. */
:root {
  --paper: #f1efeb;
  --white: #fbfcf9;
  --ink: #30383a;
  --pine: #2c554e;
  --muted: #65706c;
  --rule: #d5dbd3;
  --monitor: #202f2e;
  --monitor-muted: #b3c6ba;
  --signal: #d2db94;
  --error: #80442f;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 13px/1.7 var(--sans); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 14px; font-weight: 600; line-height: 1.6; }
button, select, input { min-height: 44px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -60px; left: 20px; background: var(--pine); color: white; padding: 10px 16px; z-index: 20; }
.skip-link:focus { top: 10px; }
.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; }

/* A compact project context replaces the empty, full-height sidebar. */
.workbench .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--agent-header-height) auto minmax(0, 1fr); }
.workbench .sidebar {
  grid-column: 1; grid-row: 2; position: static; height: auto;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px max(34px, calc((100% - 1412px)/2)); border-right: 0; border-bottom: 1px solid var(--rule);
  background: #eaece6; font-size: 12px;
}
.workbench .project-select { display: flex; align-items: center; gap: 14px; min-width: 0; }
.workbench .project-select label { margin: 0; white-space: nowrap; font-size: 11px; }
.workbench .project-select select { width: 240px; min-width: 0; background: var(--white); border-color: #cbd3c8; }
.workbench .project-select .text-button { padding: 7px 4px; }
.workspace-status { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.connection-status { color: var(--muted); font-size: 11px; }
.connection-status.is-online::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; vertical-align: 2px; border-radius: 50%; background: var(--pine); }
.workbench .simulation-label { border: 0; background: #dde5da; padding: 3px 9px; }
.workbench .main-area { grid-column: 1; grid-row: 3; }
.workbench .workspace { max-width: 1480px; margin: auto; padding: 30px 34px 40px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.workbench .workspace-heading h1 { font: 400 28px/1.5 "Songti SC", "Noto Serif CJK SC", Georgia, serif; letter-spacing: .02em; }
.workbench .workspace-heading p { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.workspace-kind { color: var(--muted); font-size: 11px; white-space: nowrap; }
.visitor-notice { color: var(--muted); font-size: 11px; line-height: 1.8; margin-bottom: 15px; max-width: 90ch; }
.workflow-nav { display: flex; align-items: center; gap: 0; margin: 19px 0 26px; border-block: 1px solid var(--rule); }
.workflow-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 6px 28px 6px 0; color: var(--pine); text-decoration: none; font-size: 12px; }
.workflow-nav a + a { padding-left: 28px; }
.workflow-nav a span { display: inline-grid; place-items: center; width: 21px; height: 21px; border: 1px solid #bdcdbd; border-radius: 50%; font-size: 10px; font-variant-numeric: tabular-nums; }
.workflow-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
[id$="-title"] { scroll-margin-top: 12px; }
.workbench .workspace-grid { display: grid; grid-template-columns: 288px minmax(0, 1fr); align-items: start; gap: 26px; }
.agent-column, .application-column { min-width: 0; }
.workbench .agent-column { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; }
.workbench .application-column { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.section-heading > div { min-width: 0; }
.section-heading .field-help { margin-top: 4px; }
.small-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.field-help { font-size: 11px; color: var(--muted); line-height: 1.85; overflow-wrap: anywhere; }
.text-button { font-size: 11px; }
.full-width { width: 100%; }

/* The task reads as a small working brief, with secondary explanations folded away. */
.task-section { padding: 18px 20px 17px; }
.task-section .section-heading { margin-bottom: 12px; }
.task-section label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
textarea { display: block; width: 100%; min-height: 136px; resize: vertical; padding: 13px; border: 1px solid #c4cec0; border-radius: 6px; background: #f5f6f1; color: var(--ink); font-size: 13px; line-height: 1.9; }
.mode-field { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.mode-field label { margin: 0; }
.mode-field select { margin-left: auto; max-width: 160px; }
select { color: var(--ink); border: 1px solid #c4cec0; border-radius: 5px; background: transparent; padding: 8px 22px 8px 10px; font-size: 12px; }
.task-section #model-status { margin: 10px 0 16px; min-height: 40px; }
.command-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.command-shortcuts button { color: var(--pine); border: 1px solid var(--rule); border-radius: 4px; background: transparent; padding: 7px 9px; font-size: 11px; min-height: 44px; }
.command-shortcuts button:hover:enabled { background: var(--sage); }
.capability-note { margin-top: 8px; }
summary { color: var(--pine); font-size: 11px; cursor: pointer; padding: 11px 0; min-height: 44px; }
.scope-note { font-size: 11px; line-height: 1.85; color: var(--muted); margin-bottom: 12px; }
.save-status { border-top: 1px solid #e0e5dc; padding-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.trace-section { margin: 0 20px; padding: 18px 0 22px; border-top: 1px solid var(--rule); }
.trace-section .section-heading { margin-bottom: 9px; }
.agent-message { color: var(--pine); font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.tool-trace { list-style: none; padding: 0; margin: 15px 0 0; max-height: 420px; overflow: auto; }
.tool-trace li { position: relative; padding: 0 0 16px 17px; border-left: 1px solid #c4d1c0; margin-left: 4px; }
.tool-trace li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tool-trace li::before { content: ""; position: absolute; top: 7px; left: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--pine); }
.tool-trace li.is-error::before { background: var(--error); }
.tool-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; }
.tool-title code { font: inherit; overflow-wrap: anywhere; }
.tool-status { color: var(--muted); font-size: 10px; white-space: nowrap; }
.tool-trace p { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.85; overflow-wrap: anywhere; }

/* Only the input is an instrument. Detection and output share the page's quiet surface. */
.application-preview { border: 1px solid var(--rule); border-radius: 10px; background: var(--white); overflow: hidden; }
.preview-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 21px 24px 14px; }
.preview-heading h2 { font-size: 15px; font-weight: 600; }
.preview-heading p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.state-tag { color: var(--pine); background: #edf1e9; border-radius: 4px; padding: 4px 9px; font-size: 10px; white-space: nowrap; }
.preview-toolbar { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin: 0 24px; border-bottom: 1px solid var(--rule); }
.transport { display: flex; align-items: center; gap: 5px; }
.button-monitor { background: var(--pine); color: var(--white); padding: 8px 14px; }
.button-monitor:hover:enabled { background: #21433e; }
.icon-button { width: 44px; min-height: 44px; color: var(--pine); border: 0; border-radius: 5px; background: transparent; font-size: 22px; }
.icon-button:hover:enabled { background: var(--sage); }
.preview-time { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.preview-quality { color: var(--muted); font-size: 11px; text-align: right; margin-left: auto; }
.preview-quality.is-bad { color: var(--error); }
.signal-scene { --event-strength: 0; position: relative; display: grid; grid-template-columns: minmax(0,1.2fr) 104px minmax(0,1fr); align-items: center; gap: 22px; padding: 24px; isolation: isolate; }
.scene-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.scene-route, .scene-flow { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.scene-route { stroke: #a5b9a1; stroke-width: 1.1; }
.scene-flow { stroke: var(--pine); stroke-width: 2; opacity: var(--event-strength,0); }
.scene-input, .scene-decoder, .scene-output { position: relative; min-width: 0; z-index: 1; }
.scene-input { padding: 16px; color: #e4eadd; border-radius: 7px; background: var(--monitor); }
.scene-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 39px; margin-bottom: 12px; }
.scene-heading h3 { font-size: 12px; font-weight: 500; line-height: 1.7; }
.chart-unit { color: var(--monitor-muted); font-size: 10px; font-weight: 400; margin-left: 4px; }
.source-reading { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex-shrink: 0; }
.source-reading > span { color: var(--monitor-muted); font-size: 10px; }
.source-reading strong { min-width: 64px; color: #e0ead4; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eog-chart { height: 174px; position: relative; margin: 0 -4px 0 -8px; min-width: 0; }
.eog-chart canvas { display: block; width: 100%; height: 100%; }
.eog-chart > p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--monitor-muted); padding: 13px 15px 13px 30px; text-align: center; line-height: 1.9; }
.chart-threshold { font-size: 10px; line-height: 1.8; color: var(--monitor-muted); margin-top: 7px; min-height: 18px; }
.scene-port { position: absolute; width: 6px; height: 6px; border: 1px solid #91a78b; background: var(--white); border-radius: 50%; z-index: 2; pointer-events: none; }
.scene-port::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--pine); opacity: var(--event-strength,0); }
#signal-port, #detector-out { right: -3px; top: calc(50% - 3px); }
#detector-in, #action-port { left: -3px; top: calc(50% - 3px); }
.scene-decoder { text-align: center; background: var(--white); padding: 15px 0; }
.scene-decoder h3 { font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.7; }
.detector-core { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid #b2c4aa; border-radius: 50%; margin: 13px auto 10px; color: var(--pine); background: #edf2e7; }
.detector-core::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--pine); border-radius: inherit; background: rgba(44,85,78,.08); opacity: var(--event-strength,0); pointer-events: none; }
.detector-core span { font-size: 12px; position: relative; z-index: 1; }
.detector-status { color: var(--pine); font-size: 12px; line-height: 1.8; min-height: 22px; }
.detector-detail { font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 4px; overflow-wrap: anywhere; }
.output-action { font-size: 10px; color: var(--muted); white-space: nowrap; }
.option-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.app-option { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-height: 84px; color: var(--pine); border: 1px solid #d8e0d2; border-radius: 6px; background: #f0f3eb; }
.app-option > span { font: 400 28px/1.2 Georgia,serif; }
.app-option small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.app-option.is-selected { color: var(--white); border-color: var(--pine); background: var(--pine); }
.app-option.is-selected small { color: #e0e8d9; }
.selection-note { color: var(--muted); font-size: 11px; line-height: 1.8; min-height: 20px; margin-top: 11px; }
.scene-records { padding: 15px 24px 17px; border-top: 1px solid var(--rule); }
.flow-caption { color: var(--muted); font-size: 11px; line-height: 1.85; min-height: 21px; }
.event-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; color: var(--muted); }
.event-heading h3 { font-size: 11px; font-weight: 500; }
.event-heading > span { font-size: 10px; font-variant-numeric: tabular-nums; }
.event-history { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 8px 0 0; min-height: 38px; }
.event-history li { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 0 14px; border-left: 1px solid var(--rule); color: var(--pine); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.event-history li:first-child { padding-left: 0; border-left: 0; }
.event-history time { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-history .event-history-empty { grid-column: 1/-1; padding: 0; border: 0; color: var(--muted); }
.event-history:empty::before { content: "有效眨眼的时间与切换结果会显示在这里。"; grid-column: 1/-1; align-self: center; font-size: 11px; color: var(--muted); }
.fault-toolbar { display: flex; align-items: center; gap: 14px; padding: 9px 24px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11px; background: #f5f6f0; flex-wrap: wrap; }
.segmented { display: inline-flex; gap: 2px; }
.segmented button { border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; min-height: 44px; padding: 7px 12px; }
.segmented button[aria-pressed=true] { background: #e1e9da; border-color: #d2ddc9; color: var(--pine); }
.simulation-caption { margin-left: auto; font-size: 10px; }
.signal-scene[data-flow-state=blocked] .detector-status { color: var(--error); }
.signal-scene[data-flow-state=blocked] .detector-core { border-color: #bb9c79; color: var(--error); background: #f5ece0; }
.signal-scene[data-flow-state=blocked] .scene-flow, .signal-scene[data-flow-state=blocked] .scene-port::after, .signal-scene[data-flow-state=blocked] .detector-core::after { opacity: 0 !important; }

/* Configuration, evidence, then export follow the same order as the workflow links. */
.project-section, .validation-section { border-top: 1px solid var(--rule); padding-top: 24px; }
.project-heading { align-items: start; }
.version-tag { color: var(--pine); border: 1px solid #bfcdb8; border-radius: 4px; padding: 3px 9px; font-size: 11px; white-space: nowrap; }
.pipeline-details { border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.pipeline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 8px 0 18px; }
.pipeline-node { min-width: 0; }
.pipeline-node strong { display: block; color: var(--pine); font-size: 11px; font-weight: 500; }
.pipeline-node small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.85; }
.pipeline-placeholder { grid-column: 1/-1; color: var(--muted); font-size: 11px; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend { color: var(--muted); font-size: 11px; padding: 0; margin-bottom: 14px; }
.parameter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.parameter-field { min-width: 0; }
.parameter-field label { display: block; font-size: 11px; margin-bottom: 7px; }
.parameter-input { display: flex; align-items: center; border: 1px solid #c0ccba; border-radius: 5px; background: var(--white); }
.parameter-input input { width: 100%; min-width: 0; min-height: 45px; border: 0; background: transparent; padding: 8px 0 8px 12px; color: var(--pine); font-size: 15px; font-variant-numeric: tabular-nums; }
.parameter-input span { color: var(--muted); font-size: 10px; padding-right: 11px; }
.parameter-input:focus-within { outline: 2px solid var(--pine); outline-offset: 3px; }
.parameter-input input:focus-visible { outline: 0; }
.parameter-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.parameter-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 17px; }
.parameter-footer p { max-width: 44em; }
.validation-empty { padding: 10px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.validation-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--pine); padding: 2px 0 13px; font-size: 11px; line-height: 1.8; }
.report-scroll { max-width: 100%; overflow: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.results-table th, .results-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.results-table th:first-child, .results-table td:first-child { padding-left: 0; text-align: left; width: 45%; color: var(--muted); font-weight: 400; }
.results-table thead th { font-size: 11px; font-weight: 400; color: var(--muted); border-top: 1px solid var(--rule); }
.results-table tbody td:nth-child(2) { color: var(--pine); }
.results-table tbody td:nth-child(3) { color: var(--muted); }
.failure-list { padding-left: 18px; margin: 8px 0; font-size: 11px; color: var(--muted); line-height: 1.85; }
.data-disclaimer { font-size: 11px; color: var(--muted); line-height: 1.85; margin-top: 11px; }
.export-section { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 24px; border-radius: 8px; background: #e4eade; }
.export-section h2 { font-size: 15px; font-weight: 500; }
.export-section p { color: var(--muted); font-size: 11px; line-height: 1.85; margin-top: 5px; max-width: 50em; }
.workbench .app-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1480px; margin: auto; padding: 20px 34px 24px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 10px; }
.app-footer a { text-decoration: none; }
.error-notice { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 15px; margin-bottom: 20px; border: 1px solid #d3b49f; border-radius: 5px; color: var(--error); background: #efe1d7; font-size: 12px; }
.error-notice span { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.error-notice button { color: var(--error); flex-shrink: 0; }
.noscript-notice { padding: 16px; background: #efe1d7; text-align: center; }
.is-busy #run-task { cursor: progress; opacity: .75; }

@media (min-width: 1680px) {
  .signal-scene { grid-template-columns: minmax(0,1.25fr) 112px minmax(0,1fr); gap: 28px; }
  .eog-chart { height: 188px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .workbench .workspace-grid { grid-template-columns: 252px minmax(0,1fr); gap: 20px; }
  .task-section { padding-inline: 16px; }
  .trace-section { margin-inline: 16px; }
  .signal-scene { grid-template-columns: minmax(0,1fr) 84px minmax(0,1fr); gap: 14px; padding: 18px; }
  .scene-input { padding: 12px 10px; }
  .scene-input .scene-heading { flex-direction: column; align-items: start; gap: 4px; }
  .source-reading { flex-direction: row; align-items: baseline; gap: 7px; }
  .source-reading > span { font-size: 9px; }
  .source-reading strong { min-width: 0; }
  .scene-output .scene-heading { flex-wrap: wrap; gap: 0; }
  .app-option { min-height: 78px; }
  .output-action { font-size: 9px; }
  .detector-detail { font-size: 10px; }
  .parameter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .workbench .workspace { padding-inline: 24px; }
  .workbench .sidebar { padding-inline: 24px; }
  .workbench .workspace-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .workbench .agent-column { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); }
  .workbench .task-section { grid-column: 1; grid-row: 1; }
  .workbench .trace-section { grid-column: 2; grid-row: 1; border-top: 0; border-left: 1px solid var(--rule); margin: 20px 0; padding: 0 22px; }
  .workbench .application-column { grid-column: 1; grid-row: 2; }
  .workbench .task-section textarea { min-height: 104px; }
  .tool-trace { max-height: 240px; }
  .workbench .app-footer { padding-inline: 24px; }
  .workflow-nav a { padding-right: 22px; }
  .workflow-nav a + a { padding-left: 22px; }
}
@media (max-width: 640px) {
  .workbench .sidebar { padding: 9px 20px; gap: 7px; flex-wrap: wrap; }
  .workbench .project-select { width: 100%; gap: 10px; }
  .workbench .project-select select { width: auto; flex: 1; }
  .workbench .project-select #refresh-projects { display: block; }
  .workspace-status { width: 100%; gap: 12px; justify-content: space-between; }
  .workspace-status .connection-status { font-size: 10px; }
  .workbench .workspace { padding: 23px 20px 30px; }
  .workspace-heading { align-items: start; }
  .workbench .workspace-heading h1 { font-size: 24px; }
  .workbench .workspace-heading p { font-size: 12px; max-width: 30em; line-height: 1.85; }
  .workspace-kind { display: none; }
  .visitor-notice { font-size: 10px; margin-top: 12px; }
  .workflow-nav { margin: 17px 0 21px; justify-content: space-between; }
  .workflow-nav a, .workflow-nav a + a { min-height: 48px; padding: 6px 0; gap: 5px; font-size: 11px; }
  .workflow-nav a span { width: 19px; height: 19px; font-size: 10px; }
  .workbench .agent-column { display: flex; }
  .task-section { padding: 15px 18px; }
  .workbench .trace-section { margin: 0 18px; padding: 16px 0 19px; border-left: 0; border-top: 1px solid var(--rule); }
  .workbench .task-section textarea { min-height: 116px; font-size: 16px; }
  .workbench .task-section #model-status { margin-bottom: 14px; }
  .preview-heading { padding: 18px 18px 14px; }
  .preview-heading p { max-width: 22em; }
  .preview-heading h2 { font-size: 14px; }
  .preview-toolbar { margin-inline: 18px; gap: 10px; flex-wrap: wrap; }
  .preview-quality { font-size: 10px; }
  .signal-scene { grid-template-columns: minmax(0,1fr); gap: 26px; padding: 18px; }
  .scene-input { padding: 14px; }
  .scene-heading { margin-bottom: 10px; }
  .eog-chart { height: 172px; }
  .scene-decoder { display: grid; grid-template-columns: 48px minmax(0,1fr); grid-template-rows: auto auto auto; gap: 0 14px; text-align: left; padding: 12px 14px; border: 1px solid #d8e0d2; border-radius: 6px; background: #f3f6ee; }
  .scene-decoder h3 { grid-column: 2; grid-row: 1; }
  .detector-core { grid-column: 1; grid-row: 1/4; margin: 0; width: 48px; height: 48px; }
  .detector-status { grid-column: 2; grid-row: 2; }
  .detector-detail { grid-column: 2; grid-row: 3; margin-top: 1px; }
  #signal-port, #detector-out { top: auto; right: auto; left: calc(50% - 3px); bottom: -3px; }
  #detector-in, #action-port { left: calc(50% - 3px); top: -3px; }
  .app-option { min-height: 77px; flex-direction: row; gap: 10px; }
  .app-option > span { font-size: 27px; }
  .app-option small { font-size: 11px; }
  .scene-records { padding: 14px 18px; }
  .event-history { grid-template-columns: minmax(0,1fr); }
  .event-history li { min-height: 37px; flex-direction: row; justify-content: start; align-items: baseline; gap: 14px; padding: 7px 0; border-left: 0; }
  .event-history li + li { border-top: 1px solid var(--rule); }
  .event-history time { min-width: 72px; }
  .fault-toolbar { padding: 9px 18px; gap: 9px; }
  .segmented { margin-left: auto; }
  .segmented button { padding-inline: 9px; }
  .simulation-caption { width: 100%; margin: 0; }
  .workbench .application-column { gap: 24px; }
  .project-section, .validation-section { padding-top: 20px; }
  .pipeline { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .parameter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .parameter-input input { font-size: 16px; }
  .parameter-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .validation-meta { flex-direction: column; gap: 3px; }
  .validation-section .section-heading { align-items: start; }
  .results-table { font-size: 11px; }
  .results-table th, .results-table td { padding: 10px 6px; }
  .results-table thead th { font-size: 10px; }
  .export-section { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px 18px; }
  .workbench .app-footer { padding-inline: 20px; flex-direction: column; align-items: start; gap: 5px; }
}
@media (max-width: 360px) {
  .workbench .workspace, .workbench .sidebar { padding-inline: 14px; }
  .workbench .workspace-heading h1 { font-size: 22px; }
  .signal-scene { padding-inline: 14px; }
  .preview-heading, .scene-records, .fault-toolbar { padding-inline: 14px; }
  .preview-toolbar { margin-inline: 14px; }
  .preview-quality { font-size: 9px; }
  .source-reading > span { font-size: 9px; }
  .source-reading strong { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .scene-flow, .scene-port::after, .detector-core::after { opacity: 0 !important; }
}
