:root {
  color-scheme: light;
  --canvas: #f2f4f1;
  --paper: #fff;
  --ink: #1b2824;
  --muted: #51645c;
  --line: #dce4dd;
  --accent: #176246;
  --accent-hover: #124936;
  --green: #156954;
  --pale: #e9f3eb;
  --rail: 190px;
  --rail-surface: #18231f;
  --page-width: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 12px;
  --shadow: 0 1px 2px #19163008, 0 9px 24px #19163006;
  font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; }
[hidden], [data-pane-off] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .61; }
a { color: var(--accent); text-underline-offset: 3px; }
button, a, textarea, select, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #117563; outline-offset: 3px; }
button { color: inherit; }
p { margin: 0 0 .625rem; }
h1, h2, h3 { line-height: 1.35; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 20; left: 12px; top: 12px; background: var(--paper); padding: 10px 14px; border-radius: 8px; }
.icon { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.site-header { background: var(--rail-surface); border-bottom: 1px solid #34443a; }
.site-header-inner {
  max-width: var(--page-width);
  min-height: 68px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; color: #f1f7f1; font-size: 1.375rem; font-weight: 760; text-decoration: none; letter-spacing: .035em; }
.brandmark { width: 34px; height: 34px; border-radius: 8px; flex: none; background: #28483a; display: flex; justify-content: center; gap: 4px; align-items: center; }
.brandmark i { width: 4px; height: 12px; border-radius: 1px; transform: skewY(-26deg); background: #a2ddc9; }
.brandmark i:nth-child(2) { height: 20px; }
.workspace-nav { display: flex; align-self: stretch; gap: 6px; }
.nav { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; color: #b8c9be; font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .875rem; }
.nav .icon { width: 17px; height: 17px; }
.nav:hover { background: #263a30; color: #ebf7ef; }
.nav.active { color: #d0f3df; box-shadow: inset 0 -3px #84c7a8; }
.nav:focus-visible { outline-offset: -4px; }
.site-header :focus-visible { outline-color: #a2ddbd; }
.nav-count { padding: 0 5px; background: #344b3d; color: #d0f3df; border-radius: 4px; font-size: .75rem; font-variant-numeric: tabular-nums; }
.header-actions, .private-tag { display: flex; gap: 12px; align-items: center; }
.header-actions { justify-content: flex-end; }
.private-tag { color: #b8c9be; font-size: .8125rem; gap: 5px; white-space: nowrap; }
.private-tag .icon { width: 14px; height: 14px; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: white; font-weight: 650; padding: 9px 15px; min-height: 40px; white-space: nowrap; font-size: .875rem; box-shadow: 0 2px 4px #0757411c; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
#new-top { min-height: 36px; background: #263a30; color: #e6f3eb; border-color: #41594a; box-shadow: none; padding: 5px 10px; }
#new-top:hover { background: #344d3e; }
#new-top span { font-size: 1rem; line-height: 1; }
main { max-width: var(--page-width); margin: 0 auto; padding: 24px var(--gutter) 54px; }
.heading { margin: 6px 0 23px; }
.heading h1 { margin: 0; font-size: clamp(1.65rem, 3.2vw, 2.38rem); font-weight: 740; letter-spacing: -.035em; }
.heading .intro { color: var(--muted); margin: 7px 0 0; max-width: 760px; }
.workspace-heading { margin: 0 0 20px; }
.workspace-heading h1 { font-size: clamp(1.45rem, 2.4vw, 2rem); }


.composer-context { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: #244d8a; font-size: .875rem; margin: 5px 0 8px; }
.composer-context button { border: 0; padding: 1px 3px; background: none; color: var(--accent); text-decoration: underline; }
.conversation-panel { min-height: 0; flex: 1 1 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 0 12px; padding: 4px 8px 12px 0; }
.conversation-empty { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; justify-content: center; align-items: flex-start; padding: 12px clamp(14px, 5vw, 76px); }
.conversation-empty::before { content: ''; width: 42px; height: 4px; margin-bottom: 18px; border-radius: 2px; background: var(--accent); }
.conversation-empty h3 { margin: 0; font-size: clamp(1.64rem, 3.6vw, 3.5rem); font-weight: 740; letter-spacing: -.05em; line-height: 1.18; }
.conversation-empty p { color: var(--muted); margin: 16px 0 0; font-size: clamp(.875rem, 1.4vw, 1.03rem); }
.conversation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 23px; }
.conversation-actions button { min-height: 44px; }
.secondary-action { border: 1px solid #cad9ce; border-radius: 8px; padding: 8px 13px; font-size: .875rem; font-weight: 630; background: var(--paper); color: var(--ink); }
.secondary-action:hover { background: var(--pale); border-color: #8eb09a; }
.conversation-link { border: 0; background: transparent; color: var(--accent); padding: 4px 0; font-size: .875rem; }
.conversation-link:hover { text-decoration: underline; }
#conversation-older { display: block; margin: 0 auto 10px; }
#conversation-log { display: grid; gap: 13px; }
.conversation-message { max-width: 94%; min-width: 0; }
.conversation-message.user { justify-self: end; background: var(--pale); border-radius: 10px 10px 3px 10px; padding: 8px 13px; }
.conversation-message strong { color: var(--muted); font-size: .75rem; }
.conversation-message p { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.conversation-message[data-pending] p { color: var(--muted); }
.conversation-findings { width: min(100%, 540px); margin-top: 4px; padding: 11px 14px; border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: 7px; background: #f5f9f7; }
.conversation-findings h3 { margin: 3px 0; font-size: clamp(1.125rem, 2vw, 1.375rem); }
.conversation-findings p { font-size: .875rem; }
.conversation-findings small { color: var(--muted); font-size: .75rem; }
.conversation-findings dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 10px 0 5px; padding-top: 8px; border-top: 1px solid var(--line); }
.conversation-findings dt { font-size: .75rem; }
.conversation-findings dd { margin: 0; color: var(--accent); font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.conversation-findings .quality-gate[data-passed="false"] { color: #8b4125; }
.turn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.turn-evidence { min-height: 44px; padding: 4px 4px 4px 0; }
.conversation-followup { min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: .8125rem; text-decoration: underline dotted; text-underline-offset: 4px; }
.conversation-followup:hover { color: var(--accent); }
#home-sequence-lab { scroll-margin-top: 15px; }
.comparison-result { background: #f5f9f7; border: 1px solid var(--line); border-radius: 9px; padding: 12px; margin: 9px 0 14px; }
.comparison-result h3 { margin: 0 0 7px; }
.comparison-result p { margin: 6px 0 0; }
.comparison-bars { list-style: none; padding: 0; margin: 7px 0 10px; display: grid; gap: 8px; }
.comparison-bars > li { --comparison-track: #dce5f3; --comparison-fill: #6d88af; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 8px; }
.comparison-bars > .comparison-highlight { --comparison-fill: #21866e; }
.comparison-bars span, .comparison-bars strong, .comparison-note { font-size: .875rem; }
.comparison-bars strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.comparison-bars progress { grid-column: 1 / -1; appearance: none; width: 100%; height: 6px; border: 0; color: var(--comparison-fill); }
.comparison-bars progress::-webkit-progress-bar { background: var(--comparison-track); border-radius: 4px; }
.comparison-bars progress::-webkit-progress-value { background: var(--comparison-fill); border-radius: 4px; }
.comparison-bars progress::-moz-progress-bar { background: var(--comparison-fill); border-radius: 4px; }
.comparison-note { grid-column: 1 / -1; }
.diagnosis-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.diagnosis-tabs button { background: #fff; border: 1px solid #b9cbe6; border-radius: 6px; padding: 6px 9px; font-size: .875rem; }
.diagnosis-tabs button[aria-pressed="true"] { color: #153c79; background: #dceaff; border-color: #769bd4; font-weight: 650; }
.launch-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; margin: 10px 0; }
.launch-case { min-width: 0; background: #fff; border: 1px solid #d6e2f5; border-radius: 8px; padding: 10px; }
.launch-case h4 { margin: 0 0 6px; font-size: .9375rem; }
.launch-case h4 span, .launch-case small { color: var(--muted); font-size: .75rem; }
.launch-case h4 span { margin-inline-start: 4px; font-weight: 400; }
.launch-case dl { margin: 0; }
.launch-case dl > div { display: grid; grid-template-columns: 1fr auto; gap: 6px; border-top: 1px solid #e7edf6; padding: 6px 0; }
.launch-case dt, .launch-case dd { font-size: .875rem; }
.launch-case dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.launch-case small { display: block; }
.launch-case strong[data-direction="lower"] { color: #17604f; }
.launch-case strong[data-direction="higher"] { color: #903d25; }
/* Put task composition in the same visual register as the other tools. */
.agent-panel { grid-area: compose; min-width: 0; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; height: clamp(480px, calc(100dvh - 155px), 860px); }
.agent-panel form { flex: none; }
.composer-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding-bottom: 10px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.composer-heading h2 { margin: 0; font-size: 1.0625rem; font-weight: 690; }
.agent-panel .composer textarea { background: none; min-height: 109px; max-height: 210px; padding: 12px; }
.proof-panel, .runtime-panel, .recent-panel {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.proof-panel h3 { margin: 0; font-size: 1rem; font-weight: 670; }
.proof-meta, .proof-budget, .proof-footnote { color: var(--muted); font-size: .8125rem; }
.proof-meta { margin: 4px 0 11px; }
.proof-samples { display: flex; gap: 3px; flex-wrap: wrap; padding: 3px; border-radius: 7px; background: #eef2f4; }
.proof-samples button { padding: 4px 8px; min-height: 28px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); background: transparent; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.proof-samples button:hover { color: var(--ink); }
.proof-samples [aria-pressed="true"] { border-color: #d7dfe3; background: var(--paper); color: var(--ink); font-weight: 670; }
.proof-budget { margin: 11px 0 8px; }
.proof-bars { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.proof-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 3px 6px; font-size: .875rem; }
.proof-bars strong { font: 650 .9rem ui-monospace, monospace; }
.proof-bars strong small { color: var(--muted); font-size: .75em; }
.proof-track { appearance: none; grid-column: 1 / -1; width: 100%; height: 6px; border: 0; --bar-fill: #8b9daf; }
.proof-track::-webkit-progress-bar { background: #e7eef1; border-radius: 4px; }
.proof-track::-webkit-progress-value { background: var(--bar-fill); border-radius: 4px; }
.proof-track::-moz-progress-bar { background: var(--bar-fill); border-radius: 4px; }
.proof-optimized { color: var(--green); }
.proof-optimized .proof-track { --bar-fill: #278775; }
.proof-footnote { margin: 10px 0 0; }
.proof-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; margin-top: 11px; }
.proof-link { color: var(--accent); font-size: .8125rem; font-weight: 650; }
#home-sequence-ask, #ask-sequence-followup {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 11px;
  min-height: 35px;
  background: var(--pale);
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 650;
}
#home-sequence-ask:hover, #ask-sequence-followup:hover { border-color: #9cbdb5; background: #d9ede4; }
.fallback-label { color: var(--ink); margin: 11px 0 0; font-weight: 700; font-size: 1.1rem; }
.proof-fallback { min-height: 144px; }
#evidence:has(#ecosystem-models:not([data-pane-off])) > .heading,
#evidence .pane-layout:has(#ecosystem-models:not([data-pane-off])) #evidence-index { display: none; }
#evidence .pane-layout:has(#ecosystem-models:not([data-pane-off])) { grid-template-columns: minmax(0, 1fr); }
.ecosystem-hero {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center;
  gap: clamp(19px, 3vw, 48px); padding: clamp(23px, 3.7vw, 54px);
  color: #f0f8f2; border-radius: 19px; background-color: #142b27;
  background-image: linear-gradient(95deg, #142b27 18%, #142b27e8 53%, #142b2760 100%), url('accelerator-board.jpg');
  background-position: center, right 49%; background-size: cover; overflow: hidden;
}
.ecosystem-lead h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.65rem); letter-spacing: -.045em; line-height: 1.12; }
.ecosystem-lead p { max-width: 31ch; margin: 14px 0 0; color: #d3e9dc; font-size: clamp(.9rem, 1.25vw, 1.11rem); }
.ecosystem-hero-actions { display: flex; flex-wrap: wrap; gap: 5px 17px; align-items: center; margin-top: 25px; }
.ecosystem-hero-actions .primary { color: #163b2a; background: #bddfc7; min-height: 44px; box-shadow: none; }
.ecosystem-hero-actions .primary:hover { background: #d2edd9; }
.ecosystem-hero-actions a, .ecosystem-benchmark-heading a { color: #d2eddd; font-size: .875rem; text-underline-offset: 4px; }
.ecosystem-hero :focus-visible { outline-color: #addec0; }
.ecosystem-benchmark {
  min-width: 0; padding: clamp(14px, 1.75vw, 24px); border: 1px solid #b1d9c24d;
  border-radius: 12px; background: #102822eb;
}
.ecosystem-benchmark-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.ecosystem-benchmark-heading h2 { margin: 0; font-size: 1.03rem; font-weight: 670; }
.ecosystem-benchmark-heading p { margin: 4px 0 0; color: #aecdbb; font-size: .75rem; }
.ecosystem-benchmark-heading a { font-size: .78rem; }
.ecosystem-benchmark-series { margin: 14px 0 0; display: grid; gap: 8px; }
.ecosystem-benchmark-series > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 9px; }
.ecosystem-benchmark-series dt { color: #ceeadb; font-size: .78rem; }
.ecosystem-benchmark-series dd { margin: 0; color: #f0f8f2; font-size: .92rem; font-weight: 670; font-variant-numeric: tabular-nums; }
.ecosystem-benchmark-series dd span { color: #aecdbb; font-size: .72rem; }
.ecosystem-benchmark-series progress { grid-column: 1 / -1; width: 100%; height: 4px; appearance: none; border: 0; border-radius: 6px; background: #335145; --benchmark-bar: #7c9f90; }
.ecosystem-benchmark-series progress::-webkit-progress-bar { background: #335145; border-radius: 6px; }
.ecosystem-benchmark-series progress::-webkit-progress-value { background: var(--benchmark-bar); border-radius: 6px; }
.ecosystem-benchmark-series progress::-moz-progress-bar { background: var(--benchmark-bar); border-radius: 6px; }
.benchmark-emphasis progress { --benchmark-bar: #a2deb9; }
.benchmark-emphasis dd, .benchmark-emphasis dt { color: #b5e8c6; }
.ecosystem-directory { margin-top: clamp(22px, 3vw, 39px); }
.ecosystem-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.ecosystem-toolbar h2 { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.72rem); letter-spacing: -.02em; scroll-margin-top: 18px; }
.ecosystem-toolbar p { margin: 4px 0 0; }
.ecosystem-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#ecosystem-search, .ecosystem-archive-filter { min-height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 8px 11px; font-size: .875rem; }
#ecosystem-search { width: clamp(190px, 25vw, 292px); }
.ecosystem-archive-filter { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.ecosystem-archive-filter input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.ecosystem-empty { padding: 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.ecosystem-empty p { margin-bottom: 5px; }
.ecosystem-layout { display: grid; grid-template-columns: minmax(229px, .74fr) minmax(0, 1.8fr); align-items: start; gap: clamp(13px, 2vw, 25px); }
.ecosystem-list { display: grid; gap: 8px; }
.ecosystem-model-pick {
  display: grid; position: relative; text-align: start; min-width: 0; gap: 2px;
  padding: 13px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper);
}
.ecosystem-model-pick strong { font-size: .97rem; font-weight: 680; overflow-wrap: anywhere; }
.ecosystem-model-pick span { font-size: .8125rem; color: var(--muted); }
.ecosystem-model-pick small { color: var(--accent); font-size: .75rem; margin-top: 3px; }
.ecosystem-model-pick:hover { border-color: #a3c6b0; background: #fafcf9; }
.ecosystem-model-pick[aria-pressed="true"] { background: #e8f3eb; border-color: #99bca4; box-shadow: inset 3px 0 #358061; }
.ecosystem-detail { min-width: 0; scroll-margin-top: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); overflow: hidden; }
.ecosystem-model-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 17px clamp(15px, 2.4vw, 30px); border-bottom: 1px solid var(--line); background: #f9fbf8; }
.ecosystem-model-header p { margin: 0 0 4px; }
.ecosystem-model-header h3 { margin: 0; font-size: clamp(1.18rem, 2.35vw, 1.7rem); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ecosystem-model-body { display: grid; padding: 2px clamp(15px, 2.4vw, 30px); }
.ecosystem-detail-group { display: grid; grid-template-columns: minmax(86px, .47fr) minmax(0, 1.8fr); gap: 8px clamp(11px, 2vw, 25px); padding: 14px 0; }
.ecosystem-detail-group + .ecosystem-detail-group { border-top: 1px solid var(--line); }
.ecosystem-detail-group h4 { margin: 4px 0 0; font-size: .84rem; font-weight: 690; }
.ecosystem-detail-group p { margin: 2px 0 0; }
.ecosystem-actions, .ecosystem-proofs { padding: 0; margin: 0; list-style: none; display: grid; min-width: 0; }
.ecosystem-actions { gap: 6px; }
.ecosystem-actions li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-size: .875rem; }
.ecosystem-actions a { min-height: 32px; display: inline-flex; align-items: center; font-weight: 660; }
.ecosystem-blockers li { display: grid; gap: 2px; padding-inline-start: 9px; border-inline-start: 2px solid #cd9e64; }
.ecosystem-blockers small, .ecosystem-proofs small { color: var(--muted); font-size: .75rem; }
.ecosystem-mode { padding: 2px 6px; border-radius: 4px; color: var(--muted); background: var(--canvas); font-size: .75rem; }
.ecosystem-proofs li + li { border-top: 1px solid var(--line); }
.ecosystem-proofs a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; min-height: 44px; font-size: .875rem; text-decoration: none; }
.ecosystem-proofs a:hover { text-decoration: underline; }
.ecosystem-proofs small { display: block; }
.ecosystem-download { padding: 0 6px; font-size: 1rem; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(288px, 27%); grid-template-areas: "compose context" "run run"; align-items: start; gap: 20px; }
.workbench-context { grid-area: context; min-width: 0; overflow: hidden; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.workbench-context > section { border: 0; border-radius: 0; }
.workbench-context > section + section { border-top: 1px solid var(--line); }
.home-grid:has(#home-run[hidden]) { row-gap: 0; }
.home-lower-grid { margin-top: 16px; }
.home-lower-grid .home-section { margin: 0; }
.workbench-context .runtime-panel { padding: 0; overflow: hidden; }
.workbench-context .runtime-heading {
  min-height: 80px;
  padding: 11px 15px;
  border: 0;
  color: #eff9f4;
  background: linear-gradient(90deg, #162b27 20%, #162b2744), url("accelerator-board.jpg") 70% 53% / cover;
}
.workbench-context .runtime-heading .icon { color: #bde8d9; }
.workbench-context .runtime-status, .workbench-context .runtime-note { margin-inline: 15px; }
.workbench-context .runtime-note { padding-bottom: 12px; }
.runtime-heading { display: flex; align-items: center; gap: 9px; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.runtime-heading h2 { font-size: 1rem; margin: 0; }
.runtime-heading .icon { width: 18px; height: 18px; color: var(--accent); }
.runtime-status { margin: 0; }
.runtime-status > div { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.runtime-status dt { color: var(--muted); }
.runtime-status dd { display: flex; align-items: center; gap: 7px; color: var(--ink); margin: 0; font-weight: 630; overflow-wrap: anywhere; }
.runtime-status dd::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #a5b0bb; }
.runtime-status dd[data-state="available"]::before { background: #268975; box-shadow: 0 0 0 3px #26897523; }
.runtime-note { margin: auto 0 0; padding-top: 13px; color: var(--muted); font-size: .8125rem; }

.launch-panel, .history-panel, .detail-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; box-shadow: var(--shadow); }
html:has(.evidence-drawer[open]) { overflow: hidden; }
.evidence-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 740px); max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0; border-inline-start: 1px solid var(--line); background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.evidence-drawer::backdrop { background: #13261f65; }
.drawer-header { position: sticky; inset-block-start: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(14px, 3vw, 27px); border-bottom: 1px solid var(--line); background: var(--paper); }
.drawer-header h2 { margin: 0; font-size: 1rem; }
#close-evidence-drawer { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
#close-evidence-drawer:hover { background: var(--pale); }
.evidence-drawer .detail-panel { border: 0; border-radius: 0; box-shadow: none; padding: 20px clamp(14px, 3vw, 27px) 32px; }
.evidence-drawer #resume-conversation { display: none; }
.home-section h2, .proof-heading h2, .section-title h2 { margin: 0; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.015em; }
textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
textarea { display: block; padding: 12px; min-height: 98px; resize: vertical; line-height: 1.65; }
textarea::placeholder { color: var(--muted); opacity: 1; }
textarea:hover, select:hover { border-color: #7ca49a; }
.composer { border: 1px solid #bfcfc4; border-radius: 14px; background: #fcfdfb; box-shadow: var(--shadow); }
.composer:focus-within { border-color: #37816e; box-shadow: 0 0 0 3px #37816e22; }
.composer textarea { min-height: 89px; border: 0; outline: none; background: transparent; }
.ascend-agent-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px 9px 12px; border-top: 1px solid var(--line); }
.ascend-agent-footer p { margin: 0; }
#ascend-agent-submit .icon { width: 16px; height: 16px; }
.muted { color: var(--muted); font-size: .875rem; }
#ascend-agent-examples { margin: 7px 0 0; gap: 7px; }
#ascend-agent-examples button { border-radius: 7px; padding: 5px 10px; min-height: 36px; background: var(--paper); color: var(--ink); border-color: var(--line); }
#ascend-agent-examples button:hover { background: var(--pale); }
.examples { margin-top: 11px; }
.examples > summary { color: var(--accent); width: fit-content; cursor: pointer; font-size: .875rem; }
.home-section { margin-top: 20px; }
.home-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.workflow-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
.text-link, .text-button { font-weight: 620; font-size: .875rem; color: var(--accent); text-decoration: none; background: none; border: 0; }
.text-link:hover, .text-button:hover { text-decoration: underline; }
.shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.shortcut { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 80px; padding: 12px 15px; background: var(--paper); color: var(--ink); text-decoration: none; }
.shortcut:hover { background: #f6faf8; }
.shortcut:focus-visible { outline-offset: -4px; }
.shortcut-arrow { color: var(--accent); font-size: 1rem; }
.shortcut strong { display: block; font-weight: 680; font-size: .9375rem; }
.shortcut small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 2px; }
.shortcut-icon, .card-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: var(--pale); color: var(--accent); font: 1.25rem/1 system-ui, sans-serif; flex: none; }
.shortcut-icon circle { fill: var(--pale); }
.tint-teal { background: #e3f5f1; color: #18735f; }
.tint-ink { background: #edf0f6; color: #4b628d; }
.recent-jobs { overflow: hidden; background: var(--paper); border-top: 1px solid var(--line); }
.recent-empty { margin: 0; padding: 28px 3px; color: var(--muted); font-size: .875rem; }
.recent-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; text-align: left; width: 100%; border: 0; background: var(--paper); padding: 11px 14px; }
.recent-row + .recent-row { border-top: 1px solid var(--line); }
.recent-row:hover { background: #f2f8f5; }
.recent-row:focus-visible { outline-offset: -3px; }
.recent-row strong { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.screen-stack { display: grid; gap: 16px; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-title h2 > span { margin-left: 6px; color: var(--muted); font: 550 .8125rem/1.4 system-ui, sans-serif; }
.pane-layout { display: grid; grid-template-columns: minmax(157px, 206px) minmax(0, 1fr); gap: 17px; align-items: start; }
.pane-layout:has(.library-index[hidden]) { grid-template-columns: minmax(0, 1fr); }
.tool-overview h2 { margin: 0 0 8px; }
.tool-overview-list { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.tool-overview-list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.tool-overview-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tool-overview-list a { color: var(--accent); font-weight: 670; text-underline-offset: .22em; }
.tool-overview-list p { margin: 3px 0 0; font-size: .875rem; color: var(--muted); }
.adoption-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 0 12px; }
.adoption-fields .form-row:has([name="weights_sha256"]) { grid-column: 1 / -1; }
#adoption-form .form-row { grid-template-columns: minmax(0, 1fr); gap: 5px; }
#adoption-form .form-row p { grid-column: 1; margin: 0; }
#adoption-form input { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); }
#adoption-batch { max-width: 130px; }
#adoption-review .adoption-result { border-left: 3px solid var(--line); padding: 14px 15px; background: #f7faf8; }
#adoption-review .adoption-result[data-decision="SCOPED_TRIAL"] { border-left-color: var(--accent); }
#adoption-review .adoption-result[data-decision="REVALIDATE"] { border-left-color: #a66c2b; }
.adoption-result h3 { margin: 0 0 8px; }
.adoption-result dt { color: var(--muted); }
.adoption-result dd { margin: 0 0 8px; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .adoption-result dl { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 12px; }
}
.library-index { position: sticky; top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 8px; display: grid; gap: 2px; }
.library-index a { color: var(--muted); text-decoration: none; border-radius: 6px; font-size: .875rem; padding: 7px 9px; }
.library-index a:hover, .library-index a[aria-current] { color: var(--accent); background: var(--pale); }
.screen-stack > section { scroll-margin-top: 14px; }
.launch-panel.evidence-overview { padding: 0; overflow: hidden; }
.evidence-overview-intro { padding: clamp(19px, 3.3vw, 38px); background: #173d36; color: #f3faf6; }
.evidence-overview-intro h2 { margin: 0; font-size: clamp(1.35rem, 2.8vw, 2.1rem); letter-spacing: -.025em; }
.evidence-overview-intro p { margin: 7px 0 0; color: #cce2da; font-size: .9375rem; }
.evidence-ledger { display: grid; margin: 0; padding: 0; list-style: none; }
.evidence-ledger li {
  display: grid;
  grid-template-columns: minmax(128px, .55fr) minmax(0, 1.6fr) max-content;
  align-items: center;
  gap: 14px clamp(16px, 2.25vw, 32px);
  padding: clamp(17px, 2.5vw, 32px) clamp(19px, 3.3vw, 38px);
}
.evidence-ledger li + li { border-top: 1px solid var(--line); }
.evidence-ledger h3 { margin: 0; font-size: 1.0625rem; }
.evidence-ledger p { margin: 3px 0 0; color: var(--muted); font-size: .875rem; }
.evidence-ledger strong { display: block; font-size: 1rem; font-weight: 700; color: var(--accent); }
.evidence-ledger .text-link { display: inline-flex; align-items: center; min-height: 40px; }
#generation-evidence-detail > .muted { overflow-wrap: anywhere; }
@media (max-width: 1020px) {
  .evidence-ledger li { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .evidence-ledger .text-link { min-height: 35px; }
}
@media (max-width: 690px) {
  #evidence .pane-layout:has(#evidence-overview:not([hidden], [data-pane-off])) .library-index { order: 1; }
  .evidence-ledger li { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; }
  .evidence-ledger li > div:nth-child(2) { grid-area: 2 / 1 / auto / -1; }
  .evidence-ledger .text-link { grid-area: 1 / 2; }
}
.workshop-entry { display: grid; gap: 16px; padding: 0; overflow: hidden; }
.workshop-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 16px 28px; padding: 24px; background: #133b32; color: #fff; }
.workshop-header h2 { margin: 0 0 7px; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.workshop-header p { margin: 0; color: #d4e8df; }
.workshop-controls { display: grid; gap: 8px; justify-items: start; }
.workshop-controls .primary { background: #d8f2df; border-color: #d8f2df; color: #133b32; font-weight: 700; }
.workshop-controls .primary:hover:not(:disabled) { background: #fff; }
.workshop-controls p { font-size: .875rem; }
.workshop-stages { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 16px; padding: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--line); }
.workshop-stages li { display: grid; gap: 5px; align-content: start; overflow-wrap: anywhere; padding: 12px; background: #fafcfb; }
.workshop-stages li[aria-current="step"] { background: #e4f3e9; box-shadow: inset 0 3px #398163; }
.workshop-stages strong { font-size: .9375rem; }
.workshop-stages span, .workshop-stages small { color: var(--muted); font-size: .875rem; }
.workshop-stages .stage-done { color: #176147; }
.workshop-stages .stage-stop { color: #9c3327; }
.workshop-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 0 16px 16px; }
.workshop-footer .downloads { margin: 0; }
.workshop-entry > .error, .workshop-entry > .run-slot { margin: 0 16px 16px; }
@media (max-width: 760px) {
  .launch-panel.workshop-entry { padding: 0; }
  .workshop-header { padding: 16px; }
  .workshop-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.task-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.task-card { display: flex; align-items: center; gap: 12px; padding: 13px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-align: left; }
.task-card:hover, .task-card.selected { border-color: #83b298; background: #f2f8f5; }
.task-card > div { min-width: 0; }
.task-card h3 { margin: 0 0 4px; font-size: .9375rem; }
.task-card p { margin: 0; font-size: .875rem; color: var(--muted); }
.chip { display: inline-block; padding: 2px 6px; border-radius: 4px; margin-left: 3px; color: #45506c; background: #edf0f8; font-size: .75rem; font-weight: 600; }
.chip.green { color: #14604c; background: #e5f5ec; }
.form-row { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 12px; }
.form-row label { font-size: .9375rem; font-weight: 600; padding-top: 7px; }
.form-row p { grid-column: 2; }
select { max-width: 560px; padding: 8px 10px; }
.form-footer { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.form-footer p { font-size: .875rem; color: var(--muted); margin: 0; }

.work-grid { display: grid; grid-template-columns: minmax(268px, .67fr) minmax(0, 1.33fr); gap: 16px; align-items: start; }
.history-panel { padding: 17px; }
.history-panel .section-title { align-items: center; }
.history-controls { display: flex; gap: 6px; margin-bottom: 11px; }
.history-controls input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; font-size: .8125rem; color: var(--ink); }
.history-controls select { width: auto; max-width: 112px; font-size: .8125rem; }
.history-actions { display: flex; gap: 10px; }
.history-actions button { min-height: 34px; padding-inline: 0; }
#history-feedback { margin: 11px 0 2px; }
.history-pager { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; color: var(--muted); font-size: .8125rem; }
.history-pager button { min-height: 36px; padding: 4px 10px; background: var(--pale); border-radius: 6px; }
.history-pager button:disabled { text-decoration: none; }
.detail-panel { min-height: 290px; }
.run-slot { min-width: 0; scroll-margin-top: 16px; }
#home-run { grid-area: run; }
#home-run .detail-panel { min-height: 0; }
#input-preview-run { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 19px; }
#input-preview-run .detail-panel { min-height: 0; border: 0; padding: 0; box-shadow: none; }
.run-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px 16px; margin: 0 0 14px; }
.run-header > div { min-width: 0; }
.run-header h2 { font-size: clamp(1.1rem, 2vw, 1.375rem); line-height: 1.45; margin: 0; }
.run-caption { font-size: .8125rem; color: var(--muted); font-weight: 650; margin: 0 0 4px; }
.run-history-link { display: inline-block; margin-top: 14px; }
.run-progress { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; background: var(--pale); border-radius: 8px; }
.progress-spinner { flex: 0 0 16px; height: 16px; margin-top: 4px; border: 2px solid #b6cbea; border-top-color: var(--accent); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.run-progress strong { font-size: .875rem; }
.run-progress p { color: var(--muted); margin: 4px 0 0; font-size: .8125rem; overflow-wrap: anywhere; }
.run-outcome { border: 1px solid var(--line); background: #eef6f2; border-radius: 11px; overflow: hidden; }
.outcome-decision { padding: 15px 16px; }
.outcome-decision h3 { margin: 0 0 5px; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.outcome-decision p { font-size: .875rem; margin-bottom: 5px; }
.outcome-decision small, .outcome-metrics small { color: var(--muted); font-size: .75rem; }
.outcome-metrics { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--paper); }
.outcome-metrics > div { padding: 10px 11px 12px; }
.outcome-metrics > div + div { border-left: 1px solid var(--line); }
.outcome-metrics dt { font-size: .75rem; font-weight: 690; color: var(--ink); }
.outcome-metrics dd { margin: 4px 0 0; }
.outcome-metrics strong { display: block; color: var(--accent); font: 690 clamp(1.08rem, 2.3vw, 1.6rem)/1.2 ui-monospace, monospace; }
.outcome-metrics small { display: block; margin-top: 3px; }
.outcome-below-gate { background: #fff8ea; }
.outcome-below-gate :is(strong, small) { color: #814719; }
.run-details { border-top: 1px solid var(--line); margin: 13px 0 0; padding-top: 10px; }
.run-details > summary { cursor: pointer; font-size: .875rem; font-weight: 660; color: var(--accent); }
.vision-probe-sites { padding-inline-start: 1.25rem; overflow-wrap: anywhere; }
.vision-probe-sites li + li { margin-top: .65rem; }
#detail-title { overflow-wrap: anywhere; }
.empty { text-align: center; padding: 27px 10px; color: var(--muted); }
.empty > span { font-size: 20px; color: #6b77a2; }
.empty h3 { font-size: 14px; color: var(--ink); margin: 7px 0; }
.empty p { margin: 0; font-size: .875rem; }
.job { text-align: left; width: 100%; display: block; border: 1px solid transparent; border-bottom-color: var(--line); background: var(--paper); padding: 11px 10px; }
.job:hover { background: #f2f8f5; }
.job.selected { background: var(--pale); border: 1px solid #bbd9cc; border-radius: 8px; }
.job-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: space-between; }
.job h3 { margin: 0; overflow-wrap: anywhere; font-size: .875rem; }
.job-meta { display: flex; gap: 10px; justify-content: space-between; margin-top: 5px; }
.job-meta, .recent-row time { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 99px; color: #485572; background: #edf1f8; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.badge.SUCCEEDED { background: #dff6eb; color: #145b49; }
.badge.RUNNING { background: #e7eaff; color: #373ca4; }
.badge.BLOCKED, .badge.BUDGET_EXHAUSTED { background: #fff1d7; color: #794d0a; }
.badge.FAILED, .badge.TIMED_OUT { background: #fbe7e8; color: #983b4a; }
.detail-summary { line-height: 1.75; background: #eaf5ed; border-left: 3px solid #4a9c71; border-radius: 6px; padding: 10px 12px; margin: 0 0 14px; }
.admission-notice { padding: .65rem .9rem; margin: 0 0 1rem; border-left: 3px solid #916120; border-radius: 4px; background: #fff4de; color: #5a3b12; }
.input-estimate { margin: 12px 0 0; }
.input-estimate p { margin: 0; }
.queue-status { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; margin: 0 0 10px; }
.execution-trace { background: #f8f9fc; border: 1px solid var(--line); border-radius: 8px; margin: 14px 0 0; }
.execution-trace summary { cursor: pointer; padding: 8px 11px; font-size: .875rem; font-weight: 660; }
.timeline { list-style: none; padding: 5px 12px 10px 15px; margin: 0; }
.timeline li { position: relative; margin-left: 7px; padding: 0 0 13px 16px; border-left: 1px solid #d3dcf0; color: #35415b; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #4d9d81; }
.timeline time { display: block; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .75rem; }
.detail-block { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 13px; }
.detail-block h3 { margin: 0 0 6px; font-size: .9375rem; }
.route-budget-form { margin-top: 12px; }
.route-budget-fields { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 10px 0; }
.route-budget-fields label { display: grid; gap: 4px; font-size: .875rem; font-weight: 600; }
.route-budget-fields input { width: min(100%, 10rem); padding: 7px 9px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--ink); }
.route-budget-fields select { max-width: 100%; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--ink); }
.route-budget-form h4 { margin: 6px 0 8px; }
.detail-block ul { margin: 0; padding-left: 17px; color: #3d4963; font-size: .875rem; line-height: 1.75; }
.downloads { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rmsnorm-review-button, .downloads :is(a, [data-result-tool]), .cancel { display: inline-flex; align-items: center; border: 1px solid #d4e4dc; background: #f4faf6; color: #205c4d; padding: 6px 10px; border-radius: 7px; text-decoration: none; font-size: .875rem; font-weight: 600; }
.rmsnorm-review-button:hover:not(:disabled), .downloads :is(a, [data-result-tool]):hover { background: #e5f3ec; border-color: #a4cbbb; }
.cancel { margin-top: 12px; color: #983b4a; background: #fff8f8; }
.error { background: #fce9ed; color: #963548; padding: 10px 13px; border-radius: 8px; font-size: .875rem; margin-top: 12px; }
.reconnect-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.reconnect-panel p { margin: 0; max-width: 100%; overflow-wrap: anywhere; font-size: .875rem; }
.reconnect-panel button { flex: none; min-height: 34px; }
#submission-notice { margin-bottom: 14px; background: #fff8ea; border-color: #e9d9ba; }
#detail-failure { margin-top: 12px; background: #fff8ea; border-color: #e9d9ba; }
#connection { position: fixed; z-index: 10; bottom: 16px; right: 16px; max-width: min(520px, calc(100% - 32px)); box-shadow: 0 5px 24px #17392c28; }

.preview-answer { margin: 8px 0 12px; padding: 12px; background: var(--pale); border-radius: 8px; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-block li, .evidence-stack { overflow-wrap: anywhere; }
.rmsnorm-decision { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.rmsnorm-decision strong { color: var(--green); font-size: 17px; }
.rmsnorm-decision span { color: var(--muted); font-size: .875rem; }
.rmsnorm-run { margin: 10px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.rmsnorm-run summary { cursor: pointer; line-height: 1.8; }
.rmsnorm-run summary strong, .rmsnorm-run summary span { margin-right: 8px; }
.rmsnorm-run[open] { background: #f8faff; }
.rope-evidence-action { margin: 14px 0 4px; }
.rope-table-wrap, .timing-table-wrap { overflow-x: auto; margin: 10px 0; }
.rope-table, .timing-table, .generation-table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.rope-table caption, .timing-table caption, .generation-table caption { text-align: left; font-weight: 690; padding: 7px 0; }
.rope-table :is(th,td), .timing-table :is(th,td), .generation-table :is(th,td) { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.rope-table thead th, .timing-table thead th, .generation-table thead th { background: #edf2f3; }
.timing-table { min-width: 480px; }
.timing-table tbody th, .timing-table td, .rope-table tbody th { white-space: nowrap; }
.compact-timing-table { min-width: 0; }
.compact-timing-table :is(th, td) { padding: 7px 5px; }
.compact-timing-table td:last-child { white-space: normal; }
.graph-plan-table :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .budget-timing-table { table-layout: fixed; font-size: .8125rem; }
  .budget-timing-table :is(thead, tbody) :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
  .budget-timing-table thead th:nth-child(2), .budget-timing-table thead th:nth-child(3) { width: 17%; }
  .budget-timing-table thead th:nth-child(4) { width: 23%; }
  .budget-timing-table thead th:nth-child(5) { width: 21%; }
  .timing-table.vision-timing-table { table-layout: fixed; font-size: .8125rem; }
  .timing-table.vision-timing-table :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
  .vision-timing-table thead th:nth-child(1) { width: 39%; }
  .vision-timing-table thead th:nth-child(2) { width: 17%; }
  .vision-timing-table thead th:nth-child(3) { width: 23%; }
  .vision-timing-table td:nth-child(3) { white-space: nowrap; font-size: .75rem; }
}
@media (max-width: 560px) {
  .feedback-timing-table { table-layout: fixed; }
  .timing-table.feedback-timing-table :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
}
.sequence-plot { margin: 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.sequence-plot img { display: block; width: 100%; height: auto; }
.rmsnorm-generation { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.generation-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 8px; margin: 10px 0; }
.generation-steps > div { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; font-size: .875rem; }
.generation-steps small, .generation-table small { display: block; color: var(--muted); }
.generation-table { table-layout: fixed; overflow-wrap: anywhere; }

.task-artifacts { padding: 0; }
.task-artifacts a { background: var(--paper); min-height: 38px; border-color: var(--line); color: var(--accent); }
.task-artifacts .artifact-primary { background: var(--accent); border-color: var(--accent); color: white; }
.task-artifacts .artifact-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.execution-trace summary span { color: var(--muted); font-weight: 450; margin-inline-start: 5px; }
#detail-title:focus { outline: 0; }
select {
  appearance: none;
  padding-inline-end: 35px;
  background: conic-gradient(from 135deg, #766b9c 0 90deg, transparent 0) right 13px center / 10px 10px no-repeat var(--paper);
}

@media (max-width: 940px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "compose" "run" "context"; gap: 14px; }
  .home-grid:has(#home-run[hidden]) { row-gap: 14px; }
}

@media (max-width: 1000px) {
  .nav { padding-inline: 10px; }
  .shortcut { gap: 8px; }
}

@media (max-width: 810px) {
  .nav .icon { display: none; }
  .shortcut { grid-template-columns: minmax(0, 1fr) auto; }
  .shortcut-icon { display: none; }
}

@media (max-width: 690px) {
  :root { --gutter: 14px; }
  .site-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding-top: 8px; }
  .brand { font-size: 1.1875rem; gap: 8px; }
  .brandmark { width: 31px; height: 31px; }
  .workspace-nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 6px; }
  .nav { min-height: 43px; padding-inline: 4px; font-size: .8125rem; }
  .nav-count { display: none; }
  .header-actions { gap: 8px; }
  .private-tag { gap: 3px; font-size: .75rem; }
  main { padding-block: 13px 32px; }
  .heading { margin-bottom: 16px; }
  .heading .intro { font-size: .875rem; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-heading { margin-bottom: 12px; }
  .agent-panel { padding: 12px; height: clamp(404px, calc(100dvh - 170px), 680px); }
  .conversation-empty { padding-inline: clamp(9px, 5vw, 26px); }
  .conversation-empty::before { width: 30px; margin-bottom: 12px; }
  .conversation-empty p { margin-top: 11px; }
  .conversation-actions { margin-top: 16px; }
  .agent-panel .composer textarea { min-height: 92px; }
  .ecosystem-hero, .ecosystem-layout { grid-template-columns: minmax(0, 1fr); }
  .ecosystem-hero { border-radius: 14px; background-position: center, 61% top; }
  .ecosystem-hero-actions { margin-top: 16px; }
  .ecosystem-toolbar { align-items: start; }
  .ecosystem-filters, #ecosystem-search { min-width: 0; width: 100%; }
  .ecosystem-filters { flex-wrap: nowrap; }
  .ecosystem-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ecosystem-model-pick { padding: 10px; }
  .ecosystem-detail-group { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .launch-panel, .detail-panel { padding: 14px; border-radius: 12px; }
  .proof-panel, .runtime-panel, .recent-panel { padding: 15px; }
  .run-header { flex-wrap: wrap; align-items: baseline; }
  .outcome-metrics > div { padding-inline: 8px; }
  .shortcut-grid, .pane-layout, .task-options { grid-template-columns: minmax(0, 1fr); }
  .shortcut { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 59px; padding: 9px 12px; }
  .shortcut-icon { display: grid; }
  .header-actions { flex-shrink: 0; }
  .library-index { position: static; display: flex; flex-wrap: wrap; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .form-row p { grid-column: 1; }
  .preview-timing-table { table-layout: fixed; }
  .timing-table.preview-timing-table :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
  .preview-timing-table thead th:nth-child(1) { width: 29%; }
  .preview-timing-table thead th:nth-child(2) { width: 23%; }
  .preview-timing-table thead th:nth-child(3) { width: 28%; }
  .timing-table.sequence-timing-table :is(th, td) { white-space: normal; }
  .ascend-agent-footer p { font-size: .8125rem; }
  .recent-row { grid-template-columns: minmax(0, 1fr) auto; }
  .recent-row time { display: none; }
}

@media (min-width: 1120px) {
  body { padding-inline-start: var(--rail); }
  .site-header { position: fixed; inset: 0 auto 0 0; width: var(--rail); border-bottom: 0; z-index: 2; }
  .site-header-inner { height: 100%; padding: 27px 13px 21px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .brand { order: 0; margin: 0 9px 11px; }
  .header-actions { display: contents; }
  #new-top { order: 1; justify-content: flex-start; min-height: 43px; padding-inline: 12px; margin-bottom: 7px; }
  .workspace-nav { order: 2; flex-direction: column; align-self: auto; gap: 3px; }
  .nav { min-height: 44px; justify-content: flex-start; gap: 11px; border-radius: 7px; padding: 0 12px; }
  .nav.active { background: #2a3f34; box-shadow: inset 3px 0 #84c7a8; }
  .nav-count { margin-inline-start: auto; }
  .private-tag { order: 3; margin: auto 0 0; border-top: 1px solid #34443a; padding: 16px 10px 0; }
  main { max-width: 1560px; padding-inline: clamp(24px, 3vw, 48px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .progress-spinner { animation: none; }
}
.vision-pick { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 12px; }
.vision-pick .form-row { flex: 1 1 220px; min-width: 0; margin: 0; }
.vision-pick input { max-width: 100%; }
.vision-pick canvas { width: 88px; height: 88px; border: 1px solid var(--line); border-radius: 9px; }

/* Keep the series colors shared by the canvas and its text legend. */
.proof-panel {
  --plot-native: #596c7e;
  --plot-prefix: #9c522c;
  --plot-segmented: #08735d;
  --plot-grid: #d5e3de;
  --plot-surface: #f7faf8;
  padding: 19px clamp(16px, 2.3vw, 28px);
}
.proof-heading { margin-bottom: 12px; }
.proof-heading h2 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
.performance-grid { display: grid; gap: 10px; }
.workbench-context #home-proof { padding: 14px; }
.performance-figure { margin: 0; min-width: 0; padding: 11px 12px 9px; border: 1px solid #e2ebe7; border-radius: 9px; background: var(--plot-surface); }
.performance-figure .proof-meta { margin: 0 0 1px; }
#home-sequence-plot { display: block; width: 100%; height: 136px; }
.performance-options { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.performance-options > span, .performance-caption { color: var(--muted); font-size: .8125rem; }
.performance-grid .proof-samples { background: #e8f1ed; padding: 3px; }
.performance-grid .proof-samples button { min-width: 37px; min-height: 30px; }
.performance-grid .proof-samples [aria-pressed="true"] { color: #fff; background: var(--accent); border-color: transparent; }
.performance-reading { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
#home-sequence-compare { width: 100%; }
.performance-caption { font-weight: 580; margin: 0 0 3px; }
.performance-value { margin: 0; color: var(--accent); font-size: 2.25rem; line-height: 1; letter-spacing: -.07em; font-weight: 710; font-variant-numeric: tabular-nums; }
.performance-value span { font-size: .31em; margin-left: 8px; letter-spacing: 0; font-weight: 620; }
.performance-meaning { color: var(--muted); font-size: .8125rem; margin: 5px 0 10px; }
.performance-key { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--line); }
.performance-key li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 30px; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.performance-key strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .875rem; }
.plot-key { height: 2px; width: 14px; background: var(--plot-native); }
.plot-key.prefix { background: repeating-linear-gradient(to right, var(--plot-prefix) 0 4px, transparent 4px 6px); }
.plot-key.segmented { background: var(--plot-segmented); height: 3px; }
#home-performance-evidence { margin: 0; white-space: nowrap; }

@media (max-width: 690px) {
  .performance-figure { padding-inline: 8px; }
  .performance-grid .proof-samples button { min-height: 36px; }
}
