.cabinet .main:has(.graph-layout) { width: 100%; max-width: none; }
.cabinet .graph-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr); align-items: start; gap: clamp(14px, 1.55vw, 28px); }
.cabinet .graph-layout > .graph-column, .cabinet .graph-layout > .inspector { min-width: 0; margin: 0; align-self: start; }
.cabinet .graph-layout > .graph-column { position: static; }
.cabinet .graph-layout > .inspector { display: block; position: sticky; top: 12px; min-height: 0; max-height: calc(100svh - 30px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; text-align: left; padding: clamp(18px, 1.85vw, 31px); }
.cabinet .graph-layout .graph-scroll { display: grid; align-content: start; max-height: calc(100svh - 222px); min-height: 170px; overflow: auto; margin: 13px 0 52px; overscroll-behavior: contain; }
.cabinet .graph-layout .graph-card.show-list .graph-scroll { display: none; }
.cabinet .graph-layout .graph-card.show-list .graph-list { max-height: calc(100svh - 198px); overflow: auto; }
.cabinet .graph-layout .graph-top { padding: 18px 20px 4px; }
.cabinet .graph-layout .flow-controls { padding: 11px 20px 0; }
.cabinet .graph-layout .inspector .return-canvas { display: none; }
.cabinet .graph-layout > .inspector[tabindex="-1"]:focus { outline: none; }
.cabinet .graph-layout .inspector h2 { font-size: clamp(27px, 2.2vw, 38px); line-height: 1.08; letter-spacing: -.042em; margin: 0; }
.cabinet .graph-layout .inspect-phase { padding-bottom: 13px; font-size: 13px; }
.cabinet .graph-layout .inspect-origin { font-size: 13px; color: var(--muted); line-height: 1.4; margin: 9px 0 14px; }
.cabinet .graph-layout .inspect-origin a { display: inline-block; margin-right: 7px; }
.cabinet .graph-layout .inspect-criterion { line-height: 1.6; margin-bottom: 14px; font-size: 15px; }
.cabinet .graph-layout .inspector h3 { font-weight: 500; font-size: 16px; letter-spacing: -.02em; line-height: 1.3; }
.cabinet .graph-layout .inspector h3 + p { margin-top: 5px; }
.cabinet .graph-layout .inspect-group { padding: 16px 0; }
.cabinet .graph-layout .inspector-rule-text { font-size: 14px; line-height: 1.6; max-height: 220px; }
.cabinet .graph-layout .demand-module { margin: 0 0 16px; }
.cabinet .graph-layout .demand-module > h3 { margin-top: 18px; }
.demand-module>p, .demand-work>p, .demand-row>p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.demand-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 18px 0 8px; }
.demand-heading span { font-size: 13px; color: var(--steel); }
.demand-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 14px; background: #171d25; border: 1px solid var(--line); border-radius: 9px; }
.demand-row>div:first-child { display: grid; align-content: start; justify-items: start; gap: 5px; }
.demand-row strong, .demand-revision strong { font-weight: 500; font-size: 15px; line-height: 1.35; }
.demand-state { font-size: 12px; line-height: 1.4; color: #c8d1df; }
.demand-used, .demand-available { color: #aed2b7; }
.demand-missing, .demand-unknown, .demand-stale, .demand-region { color: #ddbd86; }
.demand-empty, .demand-row>p, .demand-details { grid-column: 1 / -1; }
.demand-count { text-align: right; align-self: start; }
.demand-count b { display: block; font-size: 25px; line-height: 1.1; color: var(--ink); letter-spacing: -.04em; font-weight: 450; }
.demand-count small, .demand-revision small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.demand-details { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 3px 11px; margin: 3px 0 0; border-top: 1px solid var(--line); padding-top: 9px; font-size: 13px; line-height: 1.45; }
.demand-details dt { color: var(--muted); }.demand-details dd { margin: 0; overflow-wrap: anywhere; }
.demand-extra { margin: 5px 0; font-size: 14px; }
.demand-extra summary, .demand-revisions details>summary { color: var(--accent); min-height: 36px; padding: 7px 0; cursor: pointer; }
.demand-extra .demand-row + .demand-row { margin-top: 5px; }
.demand-module>.demand-origin { color: var(--steel); font-size: 12px; }
.demand-work { border-block: 1px solid var(--line); margin-top: 17px; padding: 15px 0; }
.demand-work .actions { margin-top: 10px; }
.demand-main-actions { margin: 11px 0 16px; }
.demand-main-actions .btn { min-height: 42px; }
.demand-work .btn, .demand-revision .inline-btn { min-height: 38px; }
.demand-revision { display: grid; align-items: start; justify-items: start; gap: 4px; overflow-wrap: anywhere; padding: 12px 0; border-top: 1px solid var(--line); }
.demand-revisions { margin-top: 13px; }.demand-revision>div:first-child { display: grid; gap: 3px; }
.demand-revision>span, .demand-revision p { font-size: 14px; color: var(--ink); }
.demand-revision .actions { margin-top: 2px; gap: 6px; }
@media(min-width:1700px) { .cabinet .graph-layout { grid-template-columns: minmax(0,1.8fr) minmax(480px,1fr); } }
@media(min-width:761px) and (min-height:591px) {
  .cabinet .graph-layout > .graph-column, .cabinet .graph-layout > .inspector { top: calc(var(--header-height,135px) + 10px); }
  .cabinet .graph-layout > .inspector { max-height: calc(100svh - var(--header-height,135px) - 24px); }
  .cabinet .graph-layout .graph-scroll { max-height: calc(100svh - var(--header-height,135px) - 222px); }
}
.cabinet .graph-layout .inspect-group { padding: clamp(18px, 2vw, 26px) 0; min-width: 0; }
.cabinet .graph-layout .inspect-group > h3 { margin: 0 0 8px; font-size: clamp(18px, 1.4vw, 21px); font-weight: 580; }
.cabinet .graph-layout .inspect-group > p { line-height: 1.5; margin: 0 0 12px; }
.cabinet .graph-layout .inspect-file { min-height: 54px; text-align: left; }
.cabinet .graph-layout .inspect-file > span { min-width: 0; overflow-wrap: anywhere; }
.cabinet .graph-layout .inspect-file small { margin-top: 3px; }
.stage-inputs [data-stage-source-slot]:not(:empty) { margin: 0 0 10px; }
.stage-inputs [data-stage-source-slot] .btn { min-height: 43px; }
.stage-disclosure, .file-locations { min-width: 0; }
.stage-disclosure > summary, .file-locations > summary { cursor: pointer; min-height: 42px; padding: 11px 1px; color: var(--steel); font-size: 14px; line-height: 1.45; }
.stage-disclosure[open] > summary { color: var(--ink); }
.stage-disclosure > p { line-height: 1.6; }
.stage-disclosure + .stage-disclosure { border-top: 1px solid var(--line); }
.stage-version { color: var(--muted); font-size: 13px; }
.cabinet .graph-layout .inspect-prompt { padding-top: 21px; }
.stage-guide-field { border: 1px solid var(--line); background: #171d25; border-radius: 10px; padding: 14px 16px;
  line-height: 1.65; font-size: 15px; max-height: 236px; overflow: auto; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-gutter: stable; }
.stage-guide-field:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.stage-guide-field[data-expanded=true] { max-height: none; }
.stage-guide-field > p { font: inherit; margin: 0 0 .85em; white-space: pre-line; }
.stage-guide-field > p:last-child { margin-bottom: 0; }
.stage-guide-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stage-guide-tools .inline-btn { min-height: 44px; }
.invocation-note { font-size: 13px; color: var(--muted); }
.inspect-prompt .actions > .btn, .demand-work > .btn { min-height: 43px; }
.inspect-prompt .inline-prompt-form { margin-top: 18px; }
.inspect-prompt .inline-prompt-form[hidden] { display: none; }
.topic-option { border-top: 1px solid var(--line); }
.topic-option > summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.topic-option > summary strong { font-size: 15px; line-height: 1.4; font-weight: 550; }
.topic-option > summary small { display: block; margin: 4px 0 0 15px; }
.topic-rationale { padding: 0 0 12px 15px; overflow-wrap: anywhere; }
.topic-leading { border-inline-start: 2px solid #8cb79e; padding-inline-start: 12px; }
.topic-leading .candidate-state { color: #b6d9c0; font-weight: 580; }
.candidate-grades > summary { cursor: pointer; min-height: 43px; padding: 11px 0; font-size: 14px; }
.candidate-grades dl { margin: 0 0 14px; }
.candidate-grades dl > div { border-top: 1px solid var(--line); padding-block: 9px; }
.candidate-grades dt { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.candidate-grades dt b { white-space: nowrap; font-size: 13px; font-weight: 550; }
.candidate-grades dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.demand-heading h4 { margin: 0; font-size: 16px; line-height: 1.4; }
.stage-candidates p { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.stage-candidates small, .stage-candidates .candidate-scores { color: var(--muted); font-size: 13px; }
.stage-candidates ul { padding-inline-start: 18px; line-height: 1.5; }
.demand-work.stage-disclosure { padding: 0; }
.demand-work.stage-disclosure[open] { padding-bottom: 14px; }
.demand-heading { flex-wrap: wrap; }
.demand-heading span { overflow-wrap: anywhere; }
.stage-outputs .inspect-links .inline-btn { min-height: 42px; }
@media(min-width:761px) and (max-width:1060px) { .cabinet .graph-layout { grid-template-columns: minmax(0,1.28fr) minmax(290px,1fr); gap: 12px; } }
@media(max-width:760px) {
  .cabinet .graph-layout { display: block; }
  .cabinet .graph-layout > .graph-column, .cabinet .graph-layout > .inspector { position: static; max-height: none; }
  .cabinet .graph-layout > .inspector { display: none; padding: 18px 16px; overflow: visible; }
  .cabinet .graph-layout.inspecting-stage > .inspector { display: block; }
  .cabinet .graph-layout.inspecting-stage > .graph-column { display: none; }
  .cabinet .graph-layout .inspector .return-canvas { display: inline-flex; min-height: 43px; align-items: center; gap: 6px; margin: 0 0 10px; padding: 0; color: var(--accent); background: transparent; border: 0; font-size: 14px; }
  .cabinet .graph-layout .graph-card .graph-scroll, .cabinet .graph-layout .graph-card .zoom { display: none; }
  .cabinet .graph-layout .graph-card .graph-list { display: grid; }
  .cabinet .graph-layout .graph-card.mobile-canvas .graph-scroll { display: grid; max-height: 65svh; }
  .cabinet .graph-layout .graph-card.mobile-canvas .zoom { display: flex; }
  .cabinet .graph-layout .graph-card.mobile-canvas .graph-list { display: none; }
  .cabinet .graph-layout .graph-switch { display: inline-flex; }
  .demand-work .btn, .demand-extra summary { min-height: 43px; }
}
.scenario-schedule { display:grid; grid-template-columns:minmax(200px,1fr) auto minmax(150px,auto); align-items:center; gap:20px; margin:4px 0 22px; padding:22px 24px; background:var(--panel); border:1px solid var(--line); border-radius:14px; }
.scenario-cadence,.scenario-credit { display:grid; gap:6px; min-width:0; }
.schedule-label { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:13px; font-weight:550; }
.scenario-cadence>strong,.scenario-credit>strong { font-size:clamp(17px,1.5vw,22px); letter-spacing:-.03em; line-height:1.26; }
.scenario-cadence small,.scenario-credit small,.graph-history-foot small { color:var(--muted); font-size:13px; }
.scenario-cadence .schedule-shortfall { color:#efcca1; font-size:14px; }
.schedule-shortfall a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.schedule-tools { display:flex; gap:8px; flex-wrap:wrap; }
.scenario-credit { padding-left:22px; border-left:1px solid var(--line); color:var(--text); text-decoration:none; }
.scenario-credit strong { display:flex; gap:9px; align-items:center; }
.scenario-credit:hover strong,.previous-release:hover { text-decoration:underline; }
.graph-editor-tools { margin:-5px 0 16px; }
.graph-editor-tools>summary { width:fit-content; color:var(--muted); cursor:pointer; padding:7px 0; font-size:14px; }
.graph-editor-tools .toolbar { margin:8px 0; }
.graph-history-foot { margin:12px 0; }
.editorial-branch { margin:16px 0 0; padding:clamp(16px,2.4vw,28px); border:1px solid var(--line); border-radius:16px; background:var(--paper,#fff); color:var(--ink); }
.branch-heading,.branch-stages { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; }
.branch-heading { justify-content:space-between; }
.branch-heading strong { font-size:clamp(17px,1.3vw,21px); font-weight:550; }
.branch-heading span,.editorial-branch p { color:var(--muted); font-size:14px; }
.editorial-branch p { line-height:1.55; max-width:67ch; margin:9px 0 16px; }
.branch-stages { gap:8px; }
.branch-stages > .icon { color:var(--muted); }
.branch-stages .btn[aria-current=step] { box-shadow:inset 0 0 0 2px var(--accent); color:var(--accent); }
.branch-stages .branch-done::before { content:"✓"; }
@media(max-width:600px){
  .branch-stages { display:grid; grid-template-columns:1fr; justify-items:start; }
  .branch-stages > .icon { transform:rotate(90deg); margin-left:14px; }
  .branch-stages .btn { min-height:42px; }
}
.graph-history-foot .flow-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.graph-history-foot .flow-controls:empty { display:none; }
.previous-release { display:inline-flex; align-items:center; gap:7px; color:var(--text); padding:8px 0; font-size:14px; text-decoration:none; }
.request-choice { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; border:0; padding:0; margin:0; }
.request-choice legend { margin-bottom:10px; font-weight:600; }
.request-choice label { display:grid; grid-template-columns:16px minmax(0,1fr); align-content:start; align-items:start; gap:9px; padding:13px; border:1px solid var(--line); border-radius:9px; cursor:pointer; }
.request-choice label:has(input:checked) { border-color:#adbacb; background:#242b34; }
.request-choice label:focus-within { outline:2px solid currentColor; outline-offset:2px; }
.request-choice input { accent-color:#cfdae8; width:18px; height:18px; margin:3px 0 0; }
.request-choice label span { display:grid; grid-template-columns:18px 1fr; align-items:center; gap:6px; }
.request-choice label strong { font-size:14px; line-height:1.38; }
.request-choice label small { grid-column:1/-1; color:var(--muted); font-size:13px; line-height:1.45; }
.request-inputs { display:grid; gap:12px; }.request-inputs[hidden] { display:none; }
.request-charge { color:var(--muted); margin:0; font-size:14px; line-height:1.5; }
@media(max-width:1050px) {
  .scenario-schedule { grid-template-columns:minmax(0,1fr) auto; gap:14px; }
  .schedule-tools { grid-column:1/-1; grid-row:2; }
}
@media(max-width:620px) {
  .scenario-schedule { align-items:start; padding:15px; gap:13px; }
  .scenario-cadence>strong,.scenario-credit>strong { font-size:16px; }
  .scenario-credit { padding-left:12px; }
  .scenario-cadence small,.scenario-credit small,.schedule-label { font-size:12px; }
  .schedule-tools .btn { min-height:40px; }
  .request-choice { grid-template-columns:1fr; }
}
.cover-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}
.cover-history-grid a { display: grid; gap: 7px; color: inherit; }
.cover-history-grid img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: 8px; }
.graph-top .graph-caption { margin-right:auto; }
.cabinet .graph-layout .graph-switch { display:inline-flex; min-height:38px; }
.cabinet .graph-layout .graph-card.show-list .graph-list { display:grid; }
.cabinet .graph-layout .graph-card.show-list .zoom { display:none; }
.stage-list-lane { display:grid; gap:5px; }
.stage-list-lane h3 { margin:20px 4px 8px; color:var(--text); font-size:16px; }
.stage-list-lane:first-child h3 { margin-top:4px; }
.stage-list-lane .list-step { min-height:46px; }
.stage-list-lane .list-step span { flex:1; text-align:left; }
.graph-top:has([data-action="stage-models"]) { flex-wrap:wrap; align-items:center; }
.stage-model-top { margin:16px 0 4px; }
.live-progress .revision-route,.live-progress .revision-context { display:block; font-size:13px; line-height:1.55; }
.live-progress .revision-route { color:#e7c68c; margin-top:5px; }
.live-progress .revision-context { color:var(--muted); }
@media(prefers-reduced-motion:reduce){ .is-flowing .module-orb,.module-orb::after,.trace-active { animation:none!important; } }
.model-stage-list { display:grid; }
.model-stage-row { display:grid; grid-template-columns:minmax(0,1fr) auto 15px; align-items:center; gap:12px; text-align:left; color:inherit; background:none; border:0; border-bottom:1px solid var(--line); padding:14px 0; cursor:pointer; font:inherit; }
.model-stage-row strong { color:var(--muted); font-weight:500; font-size:14px; }
.model-stage-row:hover span,.model-stage-row:focus-visible span { text-decoration:underline; text-underline-offset:3px; }
@media(max-width:480px){ .model-stage-row { grid-template-columns:minmax(0,1fr) 16px; row-gap:4px; } .model-stage-row strong { grid-column:1; grid-row:2; } .model-stage-row .icon { grid-column:2; grid-row:1/3; } }
