:root {
  color-scheme: light;
  --canvas: #f7f8f3;
  --paper: #fff;
  --ink: #162923;
  --text: #31433d;
  --muted: #53645e;
  --line: #dce5dc;
  --accent: #205647;
  --soft: #e8f2eb;
  font-family: "Inter", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid #276856; outline-offset: 3px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
p { line-height: 1.74; color: var(--text); }
h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); letter-spacing: -.063em; font-weight: 750; line-height: 1.08; }
h2 { font-size: 1.27rem; line-height: 1.35; letter-spacing: -.03em; }
h3 { font-size: 1.08rem; line-height: 1.42; }
.container, .top-inner { width: min(calc(100% - 56px), 1480px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.top { background: var(--paper); border-top: 3px solid #244e40; border-bottom: 1px solid var(--line); }
.top-inner { display: flex; min-height: 55px; align-items: center; gap: clamp(22px, 5vw, 75px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.03rem; font-weight: 760; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 23px; height: 23px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; transform: rotate(-10deg); }
.brand-mark i { background: #205647; border-radius: 2px; }
.brand-mark i:nth-child(2) { background: #a1c5ad; }
.brand-mark i:last-child { background: #e4d969; }
.top nav { display: flex; align-items: stretch; align-self: stretch; gap: 27px; }
.top nav a { display: grid; align-items: center; position: relative; color: var(--muted); font-size: .92rem; font-weight: 650; white-space: nowrap; }
.top nav a[aria-current] { color: var(--accent); }
.top nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: #3b765f; }
.official { margin-left: auto; font-size: .86rem; font-weight: 680; white-space: nowrap; }
.official span { margin-left: 5px; }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; letter-spacing: .04em; margin-bottom: 12px; font-weight: 740; color: var(--accent); }
.eyebrow span { width: 8px; height: 8px; background: #b2cf78; border-radius: 2px; }
.page-heading p { margin-top: 12px; font-size: .98rem; }
.board-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin: 15px 0 10px; }
.board-heading h1 { font-size: clamp(1.65rem, 3vw, 2rem); letter-spacing: -.04em; }
.board-heading p { display: flex; flex-wrap: wrap; column-gap: 9px; font-size: .84rem; color: var(--muted); }
.board-heading nav { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; font-size: .88rem; font-weight: 650; }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 9px; }
.ops-panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 9px 13px; }
.ops-panel h2 { font-size: 1.1rem; }
.metrics { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; margin-top: 6px; }
.metric { min-width: 0; display: flex; flex-direction: column; align-items: start; gap: 3px; padding: 3px 6px 4px; border: 0; border-left: 1px solid var(--line); color: var(--ink); background: none; text-align: left; }
.metric:first-child { border-left: 0; padding-left: 2px; }
button.metric { cursor: pointer; }
button.metric:hover { background: var(--soft); }
.metric strong { font-size: clamp(1.55rem, 3vw, 2.35rem); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.06em; }
.metric span { font-size: .83rem; line-height: 1.32; font-weight: 640; }
.ops-panel:has(.phase-metrics) { display: flex; flex-direction: column; }
.phase-metrics { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; gap: 6px; }
.phase-metrics .metric { display: grid; grid-template-columns: minmax(2ch, auto) minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 9px; border: 0; border-left: 3px solid var(--tone-ink); border-radius: 4px; background: var(--tone); }
.phase-metrics .metric:hover { box-shadow: inset 0 0 0 1px var(--tone-ink); }
.phase-metrics .metric strong { color: var(--tone-ink); font-size: 1.65rem; }
.phase-metrics .metric .en { font-size: .73rem; }
.latest-panel { margin-top: 8px; }
.activity-list { list-style: none; margin: 4px 0 0; padding: 0; }
.activity-list li { display: grid; grid-template-columns: 52px minmax(145px, 15%) 1fr; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid #e9eee9; font-size: .9rem; line-height: 1.5; }
.activity-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-list time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .83rem; }
.activity-link { padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-weight: 720; text-align: left; }
.activity-link:hover { text-decoration: underline; }
#summary, #latest, #directory { scroll-margin-top: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 26px 0 12px; }
.arrow-link, .row-link { white-space: nowrap; font-weight: 690; }
.arrow-link { font-size: .86rem; }
.arrow-link span, .row-link span { margin-left: 4px; }
.workflow { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.workflow li { position: relative; min-width: 0; }
.workflow li:not(:last-child)::after { content: "›"; position: absolute; right: -12px; top: 50%; transform: translateY(-51%); color: #788c82; font-weight: 640; }
.tone-0 { --tone: #e3f4f5; --tone-ink: #086873; --tone-line: #a3d3d5; }
.tone-1 { --tone: #f1eafb; --tone-ink: #68419f; --tone-line: #ccbbe8; }
.tone-2 { --tone: #e7effe; --tone-ink: #245ba9; --tone-line: #b6ccef; }
.tone-3 { --tone: #fff0dc; --tone-ink: #974c09; --tone-line: #edc398; }
.tone-4 { --tone: #fff3cb; --tone-ink: #765800; --tone-line: #dfc579; }
.tone-5 { --tone: #e9ebff; --tone-ink: #45459a; --tone-line: #bec1e4; }
.tone-6 { --tone: #fceaf2; --tone-ink: #a03263; --tone-line: #e8b9cd; }
.tone-7 { --tone: #e4f4e9; --tone-ink: #18673e; --tone-line: #a9d4b8; }
.flow-step { min-height: 74px; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; padding: 11px 13px; color: var(--ink); background: var(--tone); border: 1px solid var(--tone-line); border-radius: 7px; }
.flow-step[aria-current="step"] { background: var(--tone-ink); color: white; border-color: var(--tone-ink); }
.flow-step[aria-current="step"] :is(.flow-number, .flow-note) { color: white; }
.flow-step[data-selected], .flow-step:hover { outline: 2px solid var(--tone-ink); outline-offset: 2px; text-decoration: none; }
.flow-number { font-size: .71rem; line-height: 1; color: var(--tone-ink); font-variant-numeric: tabular-nums; font-weight: 750; }
.flow-step strong { font-size: .95rem; }
.flow-note { color: var(--tone-ink); font-size: .78rem; line-height: 1.45; }

.inventory { margin-top: 14px; }
.inventory .section-head { margin: 0 0 7px; }
.sheet, .pane { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.sheet { overflow: hidden; }
.board-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.search, .select { min-height: 34px; display: flex; align-items: center; background: #fff; border: 1px solid #d9e3da; border-radius: 5px; }
.search { flex: 1 1 220px; gap: 10px; padding: 0 9px; }
.search span { width: 13px; height: 13px; border: 1.6px solid #63786d; border-radius: 50%; position: relative; display: block; flex-shrink: 0; }
.search span::after { content: ""; width: 5px; height: 1.6px; background: #63786d; position: absolute; right: -4px; bottom: -2px; transform: rotate(45deg); }
.search input, .select select { border: 0; background: transparent; min-width: 0; width: 100%; color: var(--ink); font-size: .85rem; }
.search input { min-height: 32px; outline: none; }
.search input::placeholder { color: #65736c; }
.search:focus-within, .select:focus-within { outline: 2px solid #276856; outline-offset: 1px; }
.select select { padding: 4px 7px; cursor: pointer; }
.select select:focus-visible { outline: 0; }
.plain-button { min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--accent); font-size: .84rem; font-weight: 660; cursor: pointer; }
.plain-button:hover { background: var(--soft); }
.plain-button:disabled { color: var(--muted); cursor: default; }
.phase-key { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; padding: 9px 0; font-size: .83rem; }
.phase-key > span { color: var(--muted); }
.phase-key a { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 650; }
.phase-key b { padding: 1px 5px; border-radius: 4px; background: var(--tone); color: var(--tone-ink); font-variant-numeric: tabular-nums; }
.phase-explanation { margin-left: auto; }
.scene-tree { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.scene-group + .scene-group { border-top: 1px solid #c5d3cb; }
.scene-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, 23%) max-content; align-items: center; gap: 6px 12px; padding: 9px 12px; border-inline-start: 5px solid var(--tone-ink); background: linear-gradient(90deg, var(--tone) 0%, #fbfcfa 60%); }
.scene-name { min-width: 0; }
.scene-name h3 { font-size: 1.19rem; line-height: 1.2; }
.scene-name h3 a { color: var(--ink); }
.scene-name p { display: block; color: var(--muted); font-size: .79rem; line-height: 1.3; margin-top: 3px; }
.phase-badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--tone-line); border-radius: 7px; background: var(--tone); color: var(--tone-ink); font-size: .94rem; line-height: 1.18; font-weight: 700; }
.phase-badge b { display: grid; place-items: center; min-width: 31px; min-height: 30px; border-radius: 5px; font-variant-numeric: tabular-nums; background: var(--tone-ink); color: white; }
.phase-badge small { display: block; margin-top: 2px; color: var(--muted); font-weight: 530; font-size: .8rem; }
.phase-cells { display: grid; grid-template-columns: repeat(8, 32px); gap: 6px; }
.phase-dot { width: 32px; height: 29px; position: relative; display: inline-grid; place-items: center; border-radius: 4px; font-size: .81rem; font-variant-numeric: tabular-nums; }
.phase-dot.current { background: var(--tone-ink); color: #fff; font-weight: 800; outline: 2px solid var(--tone-ink); outline-offset: 1px; }
.phase-dot.recorded { color: var(--tone-ink); background: var(--tone); border: 1px solid var(--tone-line); }
.phase-dot.recorded::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; bottom: 2px; }
.phase-dot.unrecorded { color: #617067; background: #f5f6f4; border: 1px dashed #c6cec8; }
.phase-dot:hover { box-shadow: inset 0 0 0 1px currentColor; text-decoration: none; }
.phase-dot:focus-visible, .flow-step:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.scene-branch > summary { display: list-item; padding: 6px 0 3px; margin-inline: 17px; width: max-content; color: var(--accent); cursor: pointer; font-size: .83rem; font-weight: 680; }
.tree-tasks { list-style: none; padding: 0 0 0 17px; margin: 0 12px 8px 22px; border-left: 1px solid #b8d0bf; }
.tree-tasks > li { position: relative; padding: 3px 0; line-height: 1.42; }
.tree-tasks > li::before { content: ""; position: absolute; width: 12px; border-top: 1px solid #b8d0bf; top: 14px; left: -17px; }
.tree-task summary, .tree-drafts summary { cursor: pointer; }
.tree-task summary { font-weight: 660; color: var(--ink); }
.tree-task summary::marker, .tree-drafts summary::marker { color: var(--accent); }
.tree-task[open] { background: #f7f9f7; border-radius: 5px; padding: 4px 8px 9px; }
.tree-task .task-content { padding: 6px 4px; }
.tree-task .task-header .quiet, .tree-task .task-header h3 { display: none; }
.tree-task-link { font-size: .82rem; }
.tree-tasks small { display: inline-block; margin-left: 9px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .76rem; font-weight: 540; vertical-align: middle; }
.tree-drafts summary { font-size: .86rem; color: var(--muted); }
.tree-drafts ul { margin: 4px 0 1px; padding-inline-start: 19px; font-size: .92rem; }
.tree-caption { font-size: .9rem; color: var(--muted); }
.table-scroller { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid #e5ebe4; padding: 11px 15px; }
.prior-table th { background: #eff3ed; color: var(--text); font-size: .81rem; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; font-size: .75rem; font-weight: 710; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.built { background: #f9eddc; color: #7a4e27; }
.refine { background: #e5eff8; color: #2c587c; }
.video { background: #e9f3e7; color: #356247; }
.unknown { background: #eef0ed; color: #5b6861; }
.quiet, .data-note { color: var(--muted); }
.result-count { font-size: .83rem; color: var(--muted); }
.data-note { margin-top: 10px; font-size: .78rem; }
.empty { padding: 20px 15px; color: var(--muted); }

.crumbs { display: flex; gap: 8px; margin: 23px 0; align-items: center; color: var(--muted); font-size: .82rem; }
.crumb-separator { color: #829287; }
.page-heading { padding: 13px 0 24px; border-bottom: 1px solid var(--line); }
.metadata { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; color: var(--muted); }
.stage-detail { display: flex; justify-content: space-between; align-items: flex-start; gap: 13px 26px; padding: 17px 18px; margin-top: 13px; border-left: 4px solid var(--tone-ink); }
.stage-detail p { margin-top: 5px; font-size: .9rem; }
#scene-tasks { scroll-margin-top: 16px; }
.count { font-size: .77rem; margin-left: 6px; font-weight: 550; }
.task-layout { display: grid; grid-template-columns: minmax(180px, 25%) 1fr; }
.task-nav { display: flex; flex-direction: column; gap: 5px; background: #fbfcf9; border-right: 1px solid var(--line); padding: 12px; }
.task-nav a { font-size: .86rem; padding: 9px 10px; border-radius: 5px; color: var(--text); font-weight: 640; }
.task-nav a[aria-current], .task-nav a:hover { background: var(--soft); color: var(--accent); text-decoration: none; }
.task-content { padding: 24px; min-width: 0; }
.task-header .quiet { font-size: .77rem; }
.task-header h3 { margin: 6px 0; font-size: 1.4rem; }
.task-header p { margin: 5px 0 12px; font-size: .9rem; }
.task-steps { list-style: none; display: grid; gap: 9px; margin: 16px 0 0; padding: 0; }
.task-steps li { position: relative; display: grid; grid-template-columns: 29px 1fr; align-items: start; gap: 9px; min-width: 0; }
.task-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 26px; bottom: -10px; border-left: 1px solid #b8d0bf; }
.task-steps li > span { display: grid; place-items: center; font-size: .77rem; height: 29px; font-weight: 750; color: var(--accent); background: var(--soft); border-radius: 50%; z-index: 1; }
.task-steps li p { padding: 4px 0; font-size: .92rem; }
.refs { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; font-size: .88rem; }
.refs summary { cursor: pointer; color: var(--accent); font-weight: 690; }
.refs li { margin-top: 7px; line-height: 1.65; }
.refs li p { color: var(--muted); font-size: .81rem; margin-top: 2px; }
.topic-reference { padding: 15px 20px; margin-top: 12px; }
.topic-reference h3 + p { margin-top: 6px; }
.topic-reference :is(p, ul) + h3 { margin-top: 15px; }
.topic-reference ul { margin-bottom: 0; padding-inline-start: 1.35em; line-height: 1.75; }
.media-section video { width: min(100%, 840px); aspect-ratio: 16 / 9; background: #17241f; border-radius: 8px; display: block; }
figcaption { margin-top: 7px; color: var(--muted); font-size: .86rem; }

.docs-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
  padding: 9px 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.docs-nav a { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 5px; color: var(--text); font-weight: 660; font-size: .89rem; }
.docs-nav a span { color: var(--muted); font-size: .74rem; }
.docs-nav a[aria-current], .docs-nav a:hover { background: var(--soft); color: var(--accent); text-decoration: none; }
.docs-content { display: grid; gap: 22px; max-width: 1000px; margin: 20px auto 0; }
.article { min-width: 0; padding: clamp(16px, 3vw, 34px); scroll-margin-top: 76px; }
.chapter-heading { display: flex; align-items: center; gap: 11px; }
.chapter-heading > span { display: grid; place-items: center; border-radius: 5px; min-width: 31px; padding-inline: 5px; height: 31px; flex: none; white-space: nowrap; background: var(--soft); color: var(--accent); font-size: .85rem; font-weight: 730; font-variant-numeric: tabular-nums; }
.article h2 { font-size: 1.8rem; }
.article-lede { margin-top: 8px; }
.article section { margin-top: 22px; }
.article section h3 { margin-bottom: 5px; }
.article section p { max-width: 75ch; }
.reference-links { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 18px; font-size: .88rem; font-weight: 680; }
.prior { border-top: 1px solid var(--line); }
.prior figure img { display: block; max-width: 100%; height: auto; }
.prior .section-head { font-size: .86rem; }
.prior-table { min-width: 360px; margin-top: 11px; }
.prior-table td { font-size: .82rem; vertical-align: top; }

.footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding: 17px 0 23px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) {
  .workflow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workflow li:nth-child(4n)::after { display: none; }
  .container, .top-inner { width: calc(100% - 40px); }
  .workflow { gap: 12px; }
  .workflow li:not(:last-child)::after { right: -10px; }
  .flow-step { padding-inline: 8px; }
  .top-inner { gap: 27px; }
  .top nav { gap: 19px; }
}
@media (max-width: 650px) {
  .container, .top-inner { width: calc(100% - 28px); }
  .top-inner { min-height: 0; flex-wrap: wrap; gap: 0; padding-top: 12px; }
  .top nav { width: 100%; min-height: 43px; order: 3; margin-top: 4px; }
  .board-heading { gap: 4px 8px; margin-top: 11px; }
  .board-heading nav { margin-left: 0; }
  .operations-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ops-panel { padding-inline: 8px; }
  .metric { padding-inline: 4px; }
  .metric span { font-size: .75rem; }
  
  .activity-list li { grid-template-columns: 48px 1fr; gap: 0 4px; }
  .activity-list li > span { grid-column: 2; }
  .board-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-filters .search, .board-filters .select:has(#batch) { grid-column: 1 / -1; }
  .board-filters .select { min-width: 0; }

  .phase-explanation { margin-left: 0; width: 100%; }
  .scene-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 7px 9px; }
  .phase-cells { grid-column: 1 / -1; }
  .section-head { margin-top: 20px; }
  .workflow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .workflow li:not(:last-child)::after { right: -7px; font-size: .75rem; }
  .workflow li:nth-child(4n)::after { display: none; }
  .flow-step { min-height: 63px; }
  .flow-step strong { font-size: .84rem; }
  .flow-note { font-size: .71rem; }
  .stage-detail { flex-direction: column; }
  .task-layout { grid-template-columns: 1fr; }
  .task-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .task-content { padding: 16px; }
  .docs-nav { flex-wrap: nowrap; overflow-x: auto; }
  .docs-nav a { padding: 8px; white-space: nowrap; }
  .docs-content { gap: 13px; }
}

.roster-metrics { padding-top: 7px; border-top: 1px solid var(--line); }
.roster-metrics .metric strong { font-size: 1.5rem; }
.scene-state { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; }
.subtask-list li { overflow-wrap: anywhere; }
.subtask-list small { color: var(--muted); font-size: .8rem; }


.activity-scroll { max-height: 9rem; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; margin-top: 5px; }
.activity-scroll:focus-visible { outline-offset: -2px; }
.en { font-size: .85em; font-weight: 480; color: var(--muted); }
.en::before { content: " / "; }
.scene-name h3 .en { margin-left: .25em; }
.metric .en, .phase-badge .en, .activity-list .en, .task-steps .en, .task-nav .en, .task-header p .en { display: block; }
.metric .en::before, .phase-badge .en::before, .activity-list .en::before, .task-steps .en::before, .task-nav .en::before, .task-header p .en::before { content: none; }
.metric span.en { line-height: 1.2; font-size: .76rem; font-weight: 480; margin-top: 2px; }
.activity-list li { align-items: start; }
.scene-name, .task-header, .metric, .tree-task summary { overflow-wrap: anywhere; }

.scene-state, .phase-badge { min-width: 0; max-width: 100%; }
.scene-state .status { white-space: normal; flex-wrap: wrap; }
.select { max-width: 100%; }
.chapter-prose { max-width: 77ch; }
.chapter-prose p { margin-block: .45rem; }
.chapter-prose h3 { margin: 1.25rem 0 .4rem; }
.chapter-prose img { max-width: 100%; height: auto; }
.docs-nav { align-items: stretch; }
.docs-nav a .en { width: auto; color: var(--muted); }
.activity-scroll { scrollbar-color: #93aa9a #f0f4ef; }
@media (max-width:650px) {
  .scene-state .status { display: block; }
  .scene-state .status::before { display: none; }
  .metadata .status { white-space: normal; }
  .phase-badge { overflow-wrap: anywhere; }
}

.scene-title, .scene-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; }
.note-link, .scene-nav a { font-weight: 650; }
.note-link { font-size: .86rem; color: var(--accent); border-bottom: 1px solid #a9bfb4; }
.scene-nav { margin-top: .8rem; }
.scene-nav [aria-current] { color: var(--ink); border-bottom: 2px solid var(--accent); }
.scene-notes { max-width: 76ch; margin: 1.25rem 0; }
.scene-notes p { margin: .6rem 0; line-height: 1.55; }
.board-empty { color: var(--muted); margin: 0; }
.task-flow { display: block; color: var(--text); font-size: 1rem; line-height: 1.65; font-weight: 450; margin: .14rem 0; overflow-wrap: anywhere; }
.flow-arrow { color: #648476; padding-inline: .1em; }
.tree-tasks > li + li, .draft-workflows > li + li { margin-top: .38rem; }
.tree-task > summary { padding-inline-start: .12rem; }
.draft-workflows li { padding-bottom: .2rem; }

@media (min-width:651px) and (max-width:1050px) {
  .operations-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .phase-metrics .metric { gap: 4px; padding-inline: 5px; }
}
@media (max-width:650px) {
  .phase-metrics .metric { display: flex; align-items: flex-start; gap: 1px; padding: 4px 6px; }
  .phase-metrics .metric strong { font-size: 1.34rem; }
  .scene-line { grid-template-columns: minmax(0, 1fr) auto; }
  .phase-cells { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
  .phase-cells .phase-dot { width: 100%; max-width: 36px; }
}

@media (max-width: 760px) {
  .operations-grid { grid-template-columns: minmax(0, 1fr); }
}
