:root {
  color-scheme: light;
  --paper: #f5f7f3;
  --panel: #ffffff;
  --ink: #17352d;
  --muted: #52645b;
  --line: #d6dfd6;
  --leaf: #205a43;
  --pale: #eaf1e9;
  --accent: #ac3f32;
  --accent-pale: #f5e7de;
  --serif: "Noto Serif CJK SC", "Songti SC", SimSun, Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.72; }
main { flex: 1; min-width: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure { margin: 0; }
h2, h3, h4, .section-head h1 { line-height: 1.36; }
p + p { margin-top: .75rem; }
a { color: var(--leaf); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #885445; outline-offset: 3px; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
code { font: .88em ui-monospace, SFMono-Regular, Consolas, monospace; color: #15412d; overflow-wrap: anywhere; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-160%); background: white; padding: 8px 16px; }
.skip:focus { transform: none; }
/* Persistent left navigation shares the same chapter structure on every page. */
:root { --sidebar-width: 278px; --header-height: 75px; }
.masthead { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; gap: 25px; width: calc(100% - 36px); max-width: none; padding-block: 14px; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 245px; color: var(--ink); text-decoration: none; font-weight: 750; white-space: nowrap; }
.global-search { display: flex; width: min(100%, 540px); min-width: 0; background: white; border: 1px solid #b6c8bb; border-radius: 7px; overflow: hidden; }
.global-search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 8px 10px; font-size: .86rem; }
.global-search button { border: 0; border-left: 1px solid var(--line); padding: 8px 13px; border-radius: 0; background: var(--pale); color: var(--leaf); white-space: nowrap; }
.menu-toggle { display: none; align-items: center; gap: 7px; border: 1px solid #b7cabc; background: white; border-radius: 6px; padding: 8px 10px; color: var(--leaf); font-size: .85rem; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.knowledge-sidebar { position: fixed; z-index: 25; inset: var(--header-height) auto 0 0; width: var(--sidebar-width); padding: 18px 16px 30px; background: #f0f5ef; border-right: 1px solid #cbd9cc; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.directory-heading button { display: none; border: 1px solid var(--line); background: white; padding: 5px 10px; color: var(--leaf); border-radius: 4px; }
.directory-home { display: block; padding: 11px 8px; font-size: .88rem; text-decoration: none; }
.directory-group { margin: 0; border-top: 1px solid var(--line); padding: 0; }
.directory-group > summary { padding: 12px 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.directory-items { padding-bottom: 9px; }
.directory-items > a { display: block; padding: 9px 10px; min-height: 42px; font-size: .88rem; text-decoration: none; border-radius: 5px; color: var(--ink); }
.directory-home[aria-current="page"], .directory-items > a[aria-current="page"] { background: #dceadd; color: #164932; font-weight: 750; box-shadow: inset 3px 0 #205a43; }
.directory-items > a:hover, .directory-home:hover { background: #e3ece1; }
.sidebar-submenu { display: grid; gap: 2px; border-left: 1px solid #b6cabc; margin: 3px 0 8px 13px; padding-left: 9px; }
.sidebar-submenu > a { display: block; padding: 6px 8px; color: var(--muted); font-size: .79rem; text-decoration: none; border-radius: 3px; }
.sidebar-submenu > a[aria-current="location"] { color: #12472f; background: #e0ebdf; font-weight: 750; }
.sidebar-context { border-top: 1px solid #cbd9cc; padding: 17px 0; }
.sidebar-context h2 { font: 750 .86rem/1.4 var(--sans); margin-bottom: 12px; letter-spacing: 0; }
.sidebar-context label { display: grid; gap: 6px; font-size: .875rem; margin-top: 12px; color: var(--muted); }
.sidebar-context input, .sidebar-context select { width: 100%; min-width: 0; font-size: .94rem; font-weight: 400; min-height: 44px; padding: 8px; }
.sidebar-context > button { min-height: 44px; margin-top: 14px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--leaf); }
.sidebar-controlled { display: none !important; }
.current-context { font-size: .86rem; color: var(--leaf); background: #e7efe5; border-left: 3px solid #527d55; padding: 9px 12px; margin: -10px 0 22px; }
.current-context:empty { display: none; }
main, .site-footer { margin-left: var(--sidebar-width); }
.sidebar-shade { position: fixed; inset: 0; z-index: 39; background: #102c2380; }
.source-original { display: block; color: var(--ink); font: 650 .95rem/1.65 var(--sans); overflow-wrap: anywhere; margin: 7px 0 3px; }
.source-authors { display: block; color: var(--muted); font-size: .82rem; margin: 3px 0 8px; }

.hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: clamp(24px, 4vw, 48px); padding-block: 24px 30px; }
.eyebrow, .tag, .pill { color: var(--leaf); font-size: .82rem; font-weight: 720; letter-spacing: .07em; }
.eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 21px; }
.dot { background: var(--accent); height: 8px; width: 8px; border-radius: 50%; }
.hairline { width: 19px; height: 1px; background: #8f9e8f; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 3.2vw, 3.1rem); font-weight: 750; line-height: 1.24; letter-spacing: -.025em; }
.hero h1 span { color: var(--accent); display: block; font-size: .72em; margin-top: .16em; letter-spacing: -.025em; }
.lead { margin-top: 24px; max-width: 43ch; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 25px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; gap: 20px; padding: 11px 17px; border-radius: 8px; background: var(--leaf); color: white; text-decoration: none; font-weight: 720; }
.button:hover { background: #123828; color: white; }
.text-link { font-weight: 720; }
.hero-figure { border: 1px solid #cdd5c7; background: #e8eddf; border-radius: 10px; overflow: hidden; }
.hero-figure img { width: 100%; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 15px; border-top: 1px solid #cdd5c7; color: var(--muted); font-size: .82rem; letter-spacing: .045em; }

.section { padding-block: 26px 52px; }
.section-head { display: block; margin-bottom: 24px; }
h2, .section-head h1 { font-family: var(--serif); font-size: clamp(1.85rem, 3.4vw, 2.85rem); letter-spacing: -.03em; }
.section-head h1 { font-family: var(--sans); font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: 0; }
.section-head div > p, .subhead p { margin-top: .45rem; max-width: 78ch; color: var(--muted); }
h3 { font-size: clamp(1.17rem, 2vw, 1.49rem); font-weight: 750; }
h4 { font-size: 1.02rem; color: var(--leaf); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 2.4vw, 28px); min-width: 0; }
.panel h3 { margin-block: .42rem .75rem; }
.house-grid, .stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.house-card { border-top: 3px solid #82987d; }
.house-card:nth-child(2) { border-top-color: #9c875f; }
.house-card:nth-child(3) { border-top-color: #67877d; }
.panel dl { margin: .9rem 0 0; }
dt { font-weight: 750; color: var(--leaf); }
dd { margin: 0 0 .55rem; color: var(--muted); }
.note-row, .tools-grid, .source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.note-row { border-block: 1px solid var(--line); padding: 15px 0; margin-top: 22px; }
.note-row h3 { font-size: 1.04rem; }
.note-row p { color: var(--muted); margin-top: .33rem; }
.refs { color: var(--muted); font-size: .86rem; margin-top: 15px; }
.refs a { overflow-wrap: anywhere; }

.stage-section { background: #edf0e5; border-block: 1px solid var(--line); }
.stage-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.stage-tabs button { min-height: 54px; padding: 8px 5px; color: var(--ink); background: var(--panel); border: 1px solid #c9d5c6; border-radius: 8px; font-size: .93rem; font-weight: 680; }
.stage-tabs button span { font-size: .76rem; margin-right: .24em; font-variant-numeric: tabular-nums; }
.stage-tabs button:hover { border-color: var(--leaf); }
.stage-tabs [aria-selected="true"] { background: var(--leaf); color: white; border-color: var(--leaf); }
.stage-panel { margin-bottom: 12px; }
.stage-title { max-width: 80ch; margin-bottom: 17px; }
.stage-title h3 { margin: .43rem 0; }
.stage-title p { color: var(--muted); }
.pill { display: inline-block; border-radius: 99px; background: var(--pale); padding: 3px 9px; }
.stage-grid > div { border-top: 1px solid var(--line); padding-top: 12px; }
.stage-grid p { margin-top: 6px; }
.tools-grid { margin-top: 20px; }
.tool-card > p:not(.tag):not(.formula):not(.refs) { color: var(--muted); }
.vpd-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-block: 15px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .87rem; font-weight: 680; }
input, select { width: 100%; min-height: 41px; border: 1px solid #a7b5a7; border-radius: 6px; background: white; color: var(--ink); padding: 7px 9px; }
input:invalid { border-color: var(--accent); }
.vpd-readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vpd-readings div { background: var(--pale); padding: 8px; border-radius: 6px; }
.vpd-readings span, .vpd-readings strong { display: block; }
.vpd-readings span { font-size: .78rem; color: var(--muted); }
.vpd-readings strong { font-variant-numeric: tabular-nums; font-size: clamp(.9rem, 2.1vw, 1.25rem); line-height: 1.5; }
.vpd-readings.is-wet div:last-child { background: var(--accent-pale); color: var(--accent); }
.tool-card .tool-message { min-height: 1.6em; margin-top: 9px; font-size: .85rem; }
details { margin-top: 13px; }
summary { color: var(--leaf); font-weight: 700; }
details > p { margin-top: 8px; }
.formula { padding: 9px 11px; border-radius: 5px; background: var(--pale); color: var(--ink); font-size: .93rem; overflow-wrap: anywhere; margin-block: 10px; }
.water-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
.water-card dd { margin: 0; }

.table-scroll { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; overflow: auto; }
table { width: 100%; min-width: 600px; border-collapse: collapse; line-height: 1.6; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
thead th { background: #e7eee1; color: var(--leaf); white-space: nowrap; }
tbody th { color: var(--ink); font-weight: 720; min-width: 140px; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbfcf7; }
.inline-note { border-left: 3px solid var(--accent); background: var(--accent-pale); padding: 12px 16px; margin-top: 16px; border-radius: 0 8px 8px 0; }
.inline-note p { margin-top: 4px; }
.model-variants { margin-top: 15px; }
.model-variants .stage-grid { margin-top: 13px; }
.subhead { margin-block: 30px 12px; }
.filter-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 220px) auto; gap: 9px 15px; align-items: end; margin-bottom: 11px; }
.filter-row span { color: var(--muted); padding-bottom: 6px; font-size: .88rem; }
.empty-result { padding: 12px 15px; }

.mpc-section { border-block: 1px solid var(--line); background: #eff0e8; }
.control-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; counter-reset: flow; }
.control-flow li { background: var(--leaf); color: white; padding: 15px; border-radius: 8px; }
.control-flow li span { color: #d9edb8; font-size: .8rem; font-weight: 720; }
.control-flow strong { display: block; margin: 3px 0 6px; }
.control-flow p { color: #edf3e8; font-size: .89rem; }
.mpc-tools { margin-bottom: 18px; }
.mpc-tools select { margin: 6px 0 9px; max-width: 220px; }
.scenario-result { display: grid; gap: 8px; }
.scenario-result p { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 8px; padding: 8px 10px; background: var(--pale); border-radius: 6px; margin: 0; }
.scenario-result strong { color: var(--leaf); font-size: .88rem; }
.muted { font-size: .87rem; color: var(--muted); margin-top: 9px; }

.source-panel h3 { margin-top: 0; }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { padding-block: 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.source-list li:target { background: var(--pale); outline: 2px solid #789b7b; outline-offset: 4px; }
.source-list li > p { font-size: .87rem; color: var(--muted); }
.source-list a { font-size: .86rem; }
.site-footer { padding-block: 24px; background: #18382a; color: #f0f4ed; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer-inner p { color: #c9dfce; font-size: .87rem; }
.footer-inner a { color: #f0f4ed; }

.number-guide { margin-top: 18px; border-top: 3px solid var(--leaf); }
.guide-header { display: flex; align-items: start; justify-content: space-between; gap: 12px 22px; flex-wrap: wrap; }
.guide-header h3 { margin: 5px 0; }
.guide-header label { min-width: 135px; }
.guide-basis { margin-block: 14px; padding: 10px 14px; background: var(--pale); border-radius: 6px; color: var(--muted); font-size: .9rem; }
.guide-overview, .guide-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.temperature-figure, .guide-check { border: 1px solid var(--line); background: #f8faf3; border-radius: 9px; padding: 12px 14px; }
.temperature-figure figcaption { font-weight: 750; color: var(--leaf); margin-bottom: 9px; }
.guide-check p { margin-top: 6px; }
.temperature-axis, .temperature-row {
  display: grid; grid-template-columns: minmax(74px, 7.9em) minmax(64px, 1fr) minmax(70px, 7.9em); gap: 8px;
  align-items: center; font-size: .82rem;
}
.temperature-row { min-height: 33px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.temperature-row strong { color: var(--leaf); }
.temperature-row-label { font-weight: 700; }
.temperature-kind { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; }
.temperature-row-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.temperature-context, .temperature-reading-note, .temperature-supplement, .temperature-risk { font-size: .85rem; line-height: 1.65; }
.temperature-context { margin-block: 7px 13px; }
.temperature-reading-note { color: var(--muted); }
.temperature-supplement p, .temperature-risk p { margin-block: 5px; }
.temperature-risk { border-left: 3px solid #b78849; padding: 7px 10px; background: #f5f0e4; }
.temperature-figure h4 { margin-block: 17px 5px; font-size: .92rem; }
.temperature-figure details { margin-top: 17px; }
.temperature-figure details p { font-size: .85rem; }
.temperature-figure table { font-size: .79rem; }
.temperature-track.is-missing { background: repeating-linear-gradient(135deg, #e1e8dd, #e1e8dd 5px, #f8faf3 5px, #f8faf3 8px); }
.temperature-row[data-kind="missing"] strong { color: var(--muted); font-weight: 500; font-size: .78rem; }
.temperature-ticks { grid-column: 2; display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
.temperature-track { position: relative; height: 8px; background: #e1e8dd; border-radius: 12px; }
.temperature-band { position: absolute; height: 100%; background: var(--leaf); border-radius: 7px; }
.temperature-bound { position: absolute; width: 4px; height: 15px; top: -3px; background: var(--accent); border-radius: 2px; transform: translateX(-50%); }
.temperature-bound.is-target { width: 11px; height: 11px; top: -1px; border-radius: 50%; }
.temperature-bound.is-mean { width: 11px; height: 11px; top: -1px; border-radius: 50%; background: #4a7587; }
.temperature-bound.is-min { background: #a65d3f; }
.temperature-legend { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-top: 8px; color: var(--muted); font-size: .78rem; }
.temperature-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 3px; margin-right: 4px; }
.phenology-card { margin: 16px 0; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: #f2f6ed; }
.phenology-card h4 { margin: 3px 0 12px; color: var(--leaf); }
.phenology-card > p { margin: 10px 0 0; }
.phenology-readings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 8px; }
.phenology-readings p { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--panel); }
.phenology-readings span { display: block; color: var(--muted); font-size: .84rem; }
.phenology-readings strong { display: block; color: var(--leaf); }
.phenology-card details { margin-top: 12px; }
.phenology-card .table-scroll { margin-top: 10px; }
.phenology-card table { min-width: 0; }
.phenology-card th, .phenology-card td { padding: 8px 10px; }
#degree-result { align-self: end; color: var(--leaf); font-weight: 750; padding: 6px 0; }
.model-jumps, .field-jumps, .catalog-pages, .agent-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; }
.model-jumps { margin-top: 22px; }
.model-jumps a, .field-jumps a { padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; }
.field-jumps { gap: 5px; }
.field-jumps a { font: .83rem ui-monospace, Consolas, monospace; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr)); align-items: start; gap: 10px; }
.process-card { margin: 0; padding: 13px; }
.process-card p { margin: 10px 0; }
.process-card .formula { overflow-wrap: anywhere; }
.model-reference { margin: 24px 0; }
.model-reference h4 { margin: 18px 0 6px; }
.model-reference th, .model-reference td { min-width: 120px; }
.model-reference td:last-child { min-width: 230px; }
.catalog-filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1fr) auto; }
.catalog-scroll table { min-width: 730px; }
.catalog-scroll th:first-child { width: 23%; }
.catalog-scroll td:nth-child(2) { width: 19%; }
.catalog-scroll td:nth-child(3) { width: 38%; }
.catalog-scroll td p, .catalog-scroll th p { margin: 3px 0 0; font-weight: 400; }
.catalog-scroll th code { font-size: .93rem; }
.catalog-scroll td { overflow-wrap: anywhere; }
.catalog-expression pre, .answer-formula { white-space: pre-wrap; overflow-wrap: anywhere; background: #edf3e8; border: 1px solid var(--line); padding: 7px 9px; border-radius: 5px; }
.catalog-expression summary { overflow-wrap: anywhere; }
.catalog-pages { margin-top: 10px; }
.catalog-pages button, #param-download, .agent-controls button { font: inherit; color: var(--leaf); background: var(--panel); padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.catalog-pages button:disabled, #param-download:disabled, .agent-controls button:disabled { opacity: .6; cursor: default; }
.agent-controls { border-top: 1px solid var(--line); margin: 14px 0; padding-top: 10px; }
.agent-controls p { margin: 0; }
.agent-answer { margin-bottom: 13px; }
.agent-text { white-space: pre-wrap; }
.system-atlas, .phase-atlas, .handbook-lab { margin: 18px 0; }
.system-layout, .phase-overview, .handbook-tools, .issue-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.system-drawing { position: relative; width: 100%; min-width: 0; }
.system-drawing svg { display: block; width: 100%; height: auto; }
.system-key { display: flex; flex-wrap: wrap; gap: 5px 14px; padding-top: 8px; font-size: .82rem; color: var(--muted); }
.system-key span { display: inline-flex; gap: 6px; align-items: center; }
.system-key i { width: 19px; border-top: 3px solid; }
.system-key .key-shade { border-color: #ae7e37; border-top-style: dashed; }
.system-key .key-thermal { border-color: #637d77; border-top-style: dotted; }
.system-key .key-grow { border-color: #ba5638; }
.system-key .key-heat { border-color: #987153; }
.system-hotspots { position: absolute; inset: 0; pointer-events: none; }
.system-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #204b3c;
  color: #fff;
  font: 700 .8rem system-ui, sans-serif;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}
.system-dot[aria-pressed="true"] { background: var(--accent); box-shadow: 0 0 0 3px #ac4b3f55; }
.system-readout, .truss-card, .handbook-tools section, .issue-columns section {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f5f7ee;
  padding: 12px 14px;
  min-width: 0;
}
.system-readout h4, .truss-card h4, .handbook-tools h4, .issue-columns h4 { margin: 3px 0 7px; color: var(--leaf); }
.system-readout p { margin: 6px 0; }
#system-choices { margin-top: 12px; }
.device-choice, .truss-choice, .sample-steps button {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--leaf);
  background: var(--panel);
  font: inherit;
  padding: 4px 8px;
  cursor: pointer;
}
.device-choice[aria-pressed="true"], .truss-choice[aria-pressed="true"], .sample-steps button[aria-pressed="true"] {
  background: var(--leaf);
  color: #fff;
  border-color: var(--leaf);
}
.phase-marker { border-left: 4px solid var(--accent); background: #f2eee3; padding: 8px 10px; font-weight: 700; }
.truss-buttons { display: grid; gap: 6px; }
.truss-choice { display: flex; align-items: center; gap: 8px; text-align: left; }
.truss-choice small { margin-left: auto; }
.truss-choice::before { content: ""; width: .8em; height: .8em; flex: 0 0 auto; border-radius: 50%; background: #e1b45f; }
.truss-choice[data-truss="green"]::before { background: #7b9b58; }
.truss-choice[data-truss="ripe"]::before { background: #c46755; }
.truss-card > p { margin-bottom: 0; }
#phase-compare { margin-top: 14px; }
#phase-compare .table-scroll { margin-top: 10px; }
.weather-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.weather-band p { border-radius: 6px; background: #e6eee0; padding: 6px 8px; margin: 3px 0; }
.weather-band span { display: block; font-size: .78rem; color: var(--muted); }
.weather-band strong { display: block; color: var(--leaf); font-size: 1.14rem; }
.weather-panel h4 { margin: 5px 0; }
.sample-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.sample-steps button { display: flex; align-items: center; gap: 7px; min-height: 41px; text-align: left; }
.sample-steps b { font-size: .76rem; opacity: .8; }
.sample-readout { border-left: 3px solid #609480; background: #eaf0e4; padding: 8px 12px; }
.handbook-tools, .issue-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.handbook-tools p { margin: 8px 0; }
.handbook-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.handbook-form input { width: 100%; min-width: 0; }
.tool-result { display: block; padding: 7px 10px; margin-top: 8px; border-radius: 5px; font-weight: 750; background: #e0ebdb; color: var(--leaf); }
.handbook-lab details { margin-top: 12px; }
.issue-columns ul { padding-inline-start: 1.25rem; margin: 5px 0; }
.issue-columns li + li { margin-top: 4px; }
.issue-action { border-left: 4px solid #c39652; background: #f4eee1; padding: 8px 12px; }
.term-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr)); gap: 10px; }
.term-card { padding: 12px 14px; }
.term-card h3 { font-size: 1.04rem; }
.term-card p { margin: 4px 0; }
.term-unit { font-weight: 720; color: var(--leaf); }
.consult-answer > p { white-space: pre-line; }
@media (max-width: 760px) {
  .system-layout, .phase-overview, .handbook-tools, .issue-columns { grid-template-columns: minmax(0, 1fr); }
  .system-dot { width: 23px; height: 23px; font-size: .72rem; }
  .sample-steps button { flex-direction: column; align-items: start; gap: 2px; }
}
.band-swatch { background: var(--leaf); }
.bound-swatch { background: var(--accent); }
.guide-metrics { margin-top: 18px; }
.metric-list { padding: 0; margin: 5px 0 0; list-style: none; }
.metric-item { padding: 9px 0 8px; border-bottom: 1px solid var(--line); }
.metric-label { display: block; color: var(--muted); font-size: .81rem; }
.metric-item strong { display: block; margin-block: 2px; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric-item p:not(.refs) { color: var(--muted); font-size: .9rem; }
.source-links { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 5px; }
.unit-notes { border-radius: 6px; background: #f7f6ef; padding: 10px 12px; }
.unit-notes p { color: var(--muted); font-size: .9rem; }

.calculation-panel, .formulation { margin-top: 16px; }
.irrigation-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; margin-block: 14px; }
.water-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.water-results div { padding: 9px 13px; border-radius: 6px; background: var(--pale); }
.water-results span { display: block; color: var(--muted); font-size: .82rem; }
.water-results strong { color: var(--leaf); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.water-diagram { display: flex; height: 13px; border-radius: 20px; overflow: hidden; margin-top: 10px; background: var(--pale); }
#water-retained-bar { background: var(--leaf); }
#water-drain-bar { background: var(--accent); }
.formulation .table-scroll { margin-top: 12px; }
.formulation-table { min-width: 490px; font-variant-numeric: tabular-nums; }
.formulation-table td { text-align: center; }
.formulation-table thead th:not(:first-child) { text-align: center; }
.formula-contrast { margin-top: 13px; padding-bottom: 0; border-bottom: 0; }

.question-section { background: #eaf0e5; border-bottom: 1px solid var(--line); }
.consult-form {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(136px, 190px) auto; gap: 10px 14px; align-items: end;
}
.consult-form .button { min-height: 41px; justify-content: center; padding: 6px 15px; border: 1px solid var(--leaf); }
.question-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.question-examples button { color: var(--leaf); border: 1px solid #b7c7b4; border-radius: 100px; padding: 5px 9px; background: #f7fbf2; font-size: .84rem; }
.question-examples button:hover { background: var(--pale); border-color: var(--leaf); }
.consult-results { display: grid; gap: 10px; }
.consult-answer { border-left: 3px solid #82987d; border-radius: 0 8px 8px 0; background: #f6f8f0; padding: 12px 14px; margin-top: 5px; }
.consult-answer h3 { margin-block: 3px 7px; font-size: 1.13rem; }
.consult-answer > p:not(.tag):not(.refs):not(.muted) { margin-block: 5px; }
.answer-metrics { padding-left: 1.3em; margin-block: 8px; }
.answer-metrics li { margin-top: 6px; }
.answer-metrics p { font-size: .9rem; color: var(--muted); }
.answer-jump { display: inline-block; margin-top: 4px; font-size: .89rem; font-weight: 720; }

@media (max-width: 920px) {
  .wrap { width: min(100% - 44px, 1200px); }
  .hero { gap: 20px; }
  .section-head { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .stage-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  html { scroll-padding-top: 128px; }
  .wrap { width: calc(100% - 32px); }
  .hero, .section-head, .house-grid, .stage-grid, .tools-grid, .note-row, .source-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 3.65rem); }
  .hero-figure { margin-top: 4px; }
  .section-head { gap: 6px; margin-bottom: 20px; }
  .lead { margin-top: 17px; }
  .hero-actions { margin-top: 21px; }
  .control-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .filter-row span { grid-column: 1 / -1; padding-bottom: 0; }
  .stage-tabs button { font-size: .85rem; }
  .stage-tabs button span { margin-right: 0; }
  .vpd-form label { font-size: .77rem; }
  .guide-overview, .guide-metrics { grid-template-columns: minmax(0, 1fr); }
  .temperature-axis, .temperature-row { grid-template-columns: minmax(66px, 7em) minmax(46px, 1fr) minmax(66px, 6.6em); gap: 6px; font-size: .79rem; }
  .temperature-ticks { font-size: .62rem; }
  .irrigation-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consult-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .consult-form label:first-child { grid-column: 1 / -1; }
}
/* 内外含湿量与通风判断 */
.vent-panel { margin-top: 20px; }
.vent-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-block: 16px; }
.vent-form label { font-size: .82rem; }
.vent-readings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vent-readings div { background: var(--pale); padding: 9px 11px; border-radius: 6px; }
.vent-readings span, .vent-readings strong { display: block; }
.vent-readings span { font-size: .78rem; color: var(--muted); }
.vent-readings strong { font-variant-numeric: tabular-nums; font-size: clamp(.9rem, 1.8vw, 1.15rem); line-height: 1.5; }
.vent-chart { margin-top: 16px; display: grid; gap: 8px; }
.vent-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.vent-track { background: #e2e9dc; border-radius: 5px; height: 18px; overflow: hidden; }
.vent-bar { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .25s ease; }
.vent-bar.is-inside { background: #447d71; }
.vent-bar.is-outside { background: #ae7e37; }
.vent-scale { font-size: .78rem; margin-top: 6px; }
.vent-verdict { margin-top: 12px; padding: 10px 13px; border-radius: 7px; font-weight: 750; background: var(--pale); border-left: 4px solid #82987d; }
.vent-verdict.is-good { background: #e6f0e4; border-color: #3d7a52; color: #1d4b38; }
.vent-verdict.is-caution { background: #f7f0dc; border-color: #b08a33; color: #6a5218; }
.vent-verdict.is-bad { background: var(--accent-pale); border-color: var(--accent); color: #7d2b24; }
.vent-advice { margin: 10px 0 0; padding-left: 1.25rem; color: var(--muted); font-size: .9rem; }
.vent-advice li { margin-block: 5px; }

/* 温室类型与内部结构交互图 */
.structure-atlas { margin-top: 22px; }
.structure-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 14px; }
.structure-tabs button { border: 1px solid var(--line); background: var(--panel); color: var(--leaf); border-radius: 7px; padding: 7px 12px; font-weight: 700; font-size: .9rem; }
.structure-tabs button:hover { border-color: var(--leaf); }
.structure-tabs button[aria-pressed="true"] { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.structure-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.structure-figure { min-width: 0; margin: 0; }
.structure-canvas { position: relative; width: 100%; }
.structure-drawing svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #eef2e5; }
.structure-hotspots { position: absolute; inset: 0; pointer-events: none; }
.structure-dot { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #204b3c; color: #fff; font: 700 .78rem system-ui, sans-serif; transform: translate(-50%, -50%); cursor: pointer; pointer-events: auto; box-shadow: 0 2px 5px #0003; }
.structure-dot:hover, .structure-dot[aria-pressed="true"] { background: var(--accent); box-shadow: 0 0 0 3px #ac4b3f55; }
.structure-key { display: flex; flex-wrap: wrap; gap: 5px 14px; padding-top: 9px; font-size: .82rem; color: var(--muted); }
.structure-key span { display: inline-flex; gap: 6px; align-items: center; }
.structure-key i { width: 19px; border-top: 3px solid; }
.structure-readout { border: 1px solid var(--line); border-radius: 9px; background: #f5f7ee; padding: 12px 14px; min-width: 0; }
.structure-readout h4 { margin: 3px 0 7px; color: var(--leaf); }
.structure-readout p { margin: 6px 0; }
.structure-readout a { font-size: .88rem; }
#structure-caption { margin-top: 10px; font-size: .9rem; }
#structure-choices { margin-top: 12px; }

/* 自带模型（BYOK）配置 */
.temperature-plan, .stage-water-plan { border: 1px solid var(--line); border-radius: 9px; padding: 16px; margin-block: 18px; background: #f5f7ee; }
.temperature-plan .guide-header label { min-width: 150px; max-width: 220px; }
.temperature-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-block: 15px; }
.temperature-summary p { margin: 0; padding: 12px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); }
.temperature-summary span, .temperature-summary strong { display: block; }
.temperature-summary span { font-size: .84rem; color: var(--muted); }
.temperature-summary strong { color: var(--leaf); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.temperature-dayline { display: flex; border-radius: 6px; overflow: hidden; margin-bottom: 12px; min-height: 30px; color: #fff; font-size: .82rem; text-align: center; }
.temperature-dayline span { padding: 5px; background: #777546; }
.temperature-dayline span + span { background: #30584b; }
.water-plan-details { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px 14px; }
.water-plan-details dt { font-weight: 700; color: var(--leaf); }
.water-plan-details dd { margin: 0; }
.retrieval-options { border: 1px solid var(--line); border-radius: 8px; padding: 13px; margin-block: 12px; }
.retrieval-options > label { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.retrieval-options input[type="checkbox"] { width: auto; min-height: 0; }
.retrieval-options .byok-grid { margin-bottom: 0; }
.retrieval-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: .85rem; }
.retrieval-steps li { border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; background: #f5f7ee; }
.agent-evidence { margin-top: 10px; padding: 10px 12px; background: #f5f7ee; border: 1px solid var(--line); border-radius: 7px; }
.agent-evidence summary { font-size: .9rem; overflow-wrap: anywhere; }
.agent-evidence pre { white-space: pre-wrap; font: inherit; font-size: .85rem; max-height: 260px; overflow: auto; }
.agent-citation { font-size: .85em; font-weight: 700; margin-inline: 2px; }
.agent-warning { border-left: 3px solid #aa6541; padding-left: 10px; }
.byok-setup { border: 1px solid var(--line); border-radius: 9px; background: #f5f7ee; padding: 12px 15px; margin: 12px 0; }
.byok-setup > summary { font-size: 1rem; }
.byok-setup > p { margin-top: 9px; font-size: .9rem; }
.byok-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 13px; }
.byok-grid label { font-size: .85rem; }
.byok-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 9px; }
.byok-remember { flex-direction: row; align-items: center; gap: 7px; font-size: .85rem; }
.byok-remember input { width: auto; min-height: 0; }
.byok-actions button { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--leaf); padding: 7px 12px; font-weight: 700; }
.byok-actions button:hover { border-color: var(--leaf); }
.agent-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.agent-controls button { border: 1px solid var(--leaf); border-radius: 7px; background: var(--leaf); color: #fff; padding: 9px 15px; font-weight: 700; }
.agent-controls button:disabled { opacity: .55; }
.consult-answer { border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: 8px; background: var(--panel); padding: 13px 16px; margin-bottom: 12px; }
.consult-answer h3 { margin-bottom: 8px; }
.consult-answer h4 { margin-top: 12px; }
@media (max-width: 900px) {
  .vent-form, .vent-readings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .structure-layout, .byok-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 660px) {
  .temperature-summary { grid-template-columns: minmax(0, 1fr); }
  .water-plan-details { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .water-plan-details dd { margin-bottom: 9px; }
  .vent-form, .vent-readings { grid-template-columns: minmax(0, 1fr); }
  .structure-tabs button { font-size: .83rem; padding: 6px 9px; }
}
.start-here { padding-block: 12px 34px; }
.engineering-route { padding-block: 4px 48px; }
.engineering-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.engineering-flow > li { position: relative; padding: 23px 24px 23px 0; border-bottom: 1px solid var(--line); }
.engineering-flow h3 { margin: 6px 0 9px; font-size: 1.1rem; }
.engineering-flow h3 a { text-decoration: none; }
.engineering-flow p { color: var(--muted); font-size: .88rem; max-width: 34ch; margin-block: 8px; }
.flow-links { display: flex; flex-wrap: wrap; gap: 8px 15px; font-size: .82rem; }
.flow-feedback { border-left: 3px solid var(--leaf); padding: 9px 14px; color: var(--muted); background: var(--pale); font-size: .88rem; }
.reference-types { margin-block: 20px; }
.reference-types > p { color: var(--muted); font-size: .9rem; }
.reference-type-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.reference-type-grid button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px; border: 1px solid #c8d7ce; background: var(--panel); border-radius: 5px; text-align: left; color: var(--ink); font-size: .875rem; }
.reference-type-grid button[aria-pressed="true"] { border-color: var(--leaf); background: var(--pale); outline: 1px solid var(--leaf); }
.reference-type-grid button > span:not(.reference-count), .reference-type-grid small { display: none; }
.reference-count { color: #3d6d83; font-size: .8rem; font-weight: 600; }
.start-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.start-heading h2 { font-size: 1.65rem; margin: 0 0 6px; }
.start-heading p, .site-scope { color: var(--muted); font-size: .9rem; margin: 0; }
.start-heading > a { flex-shrink: 0; font-size: .86rem; }
.role-tabs { display: flex; border-bottom: 1px solid #b7cabc; gap: 6px; }
.role-tabs button { border: 1px solid transparent; border-bottom: 0; border-radius: 7px 7px 0 0; background: transparent; padding: 12px 22px; color: var(--muted); font-weight: 700; }
.role-tabs button[aria-selected="true"] { background: var(--leaf); color: white; }
.role-route-panel { padding: 24px 26px 18px; background: white; border: 1px solid #b7cabc; border-top: 0; border-radius: 0 0 9px 9px; }
.role-route-panel h3 { margin: 0 0 7px; font-size: 1.18rem; }
.route-intro { margin: 0; color: var(--muted); max-width: 76ch; }
.route-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px 26px; padding-left: 20px; margin: 22px 0 0; }
.route-steps li { padding-left: 3px; }
.route-steps li::marker { color: var(--accent); font-weight: 750; }
.route-steps a { font-size: .95rem; font-weight: 700; }
.route-steps p { color: var(--muted); font-size: .84rem; margin: 6px 0 0; }
.site-scope { margin-top: 12px; }
.daily-check, .triage-basics, .method-guide, .evidence-guide { margin-block: 20px; padding: 24px; }
.daily-checkboxes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 22px; margin-block: 18px; }
.check-context { display: grid; grid-template-columns: repeat(2,minmax(0,220px)); gap: 14px; margin-block: 15px; }
.check-context label { display: grid; gap: 5px; color: var(--muted); font-size: .85rem; }
.check-context select { width: 100%; min-width: 0; }
.daily-checkboxes label { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: .91rem; }
.daily-checkboxes input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 5px; accent-color: var(--leaf); }
.check-focus { border-left: 3px solid var(--leaf); padding-left: 12px; }
.check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#daily-check-copy { width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: .9rem/1.65 var(--sans); }
.triage-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; padding-left: 20px; }
.triage-steps p { color: var(--muted); font-size: .9rem; margin-block: 6px; }
.method-guide-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-block: 18px; }
.method-guide-form label { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.method-guide-form select { min-width: 0; width: 100%; }
.method-guide-result { border-left: 4px solid #3d6d83; background: #eff5f7; padding: 15px 18px; }
.method-guide-result h4 { margin: 0; color: #28536a; }
.evidence-types { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 26px; margin-block: 18px; }
.evidence-types p { color: var(--muted); font-size: .9rem; margin: 5px 0; }
.source-kind { display: block; color: #3d6d83; font-size: .76rem; margin-bottom: 4px; }
.source-filters { margin-top: 25px; }
#source-empty { padding: 18px; border: 1px dashed var(--line); }
@media (max-width: 1020px) {
  .route-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .engineering-flow, .reference-type-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 660px) {
  .hero { padding-block: 26px 20px; gap: 22px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-figure { max-width: 460px; }
  .hero-figure img { max-height: 260px; object-fit: contain; }
  .start-heading { align-items: start; flex-direction: column; gap: 8px; }
  .start-heading h2 { font-size: 1.4rem; }
  .role-tabs { gap: 0; }
  .role-tabs button { padding: 11px 8px; flex: 1; font-size: .82rem; }
  .role-route-panel { padding: 18px; }
  .route-steps { grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 17px; }
  .daily-check, .triage-basics, .method-guide, .evidence-guide { padding: 18px; }
  .daily-checkboxes, .triage-steps, .method-guide-form, .evidence-types { grid-template-columns: minmax(0,1fr); }
  .engineering-flow, .reference-type-grid { grid-template-columns: minmax(0,1fr); }
  .engineering-flow > li { padding: 19px 0; }
  .triage-steps { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print {
  .global-search, .menu-toggle, .role-tabs, .check-actions, .source-filters { display: none; }
  .masthead, .hero-actions, .stage-tabs, .filter-row, .skip, .consult-form, .question-examples { display: none; }
  .hero, .section { padding-block: 18px; }
  .wrap { width: 100%; }
  .stage-panel[hidden], #parameter-table tr[hidden] { display: revert !important; }
  .panel { break-inside: avoid; }
  table { min-width: 0; font-size: .8rem; }
  .table-scroll { overflow: visible; }
}

@media (max-width: 1250px) and (min-width: 961px) {
  main .hero { grid-template-columns: minmax(0,1fr); gap: 25px; }
  main .hero-copy { max-width: 650px; }
  main .hero-figure { width: min(100%, 580px); }
  main .hero h1 { font-size: 2.75rem; }
  main .house-grid { grid-template-columns: minmax(0,1fr); }
  main .structure-layout, main .system-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 960px) {
  :root { --header-height: 109px; }
  html { scroll-padding-top: 130px; }
  main, .site-footer { margin-left: 0; }
  .masthead-inner { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 14px; padding-block: 9px; }
  .menu-toggle { display: inline-flex; grid-column: 1; grid-row: 1; }
  .brand { grid-column: 2; grid-row: 1; justify-self: end; font-size: .88rem; gap: 7px; }
  .brand img { width: 24px; height: 24px; }
  .global-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .global-search input { padding: 6px 9px; }
  .knowledge-sidebar { z-index: 40; top: 0; width: min(320px, calc(100vw - 32px)); padding-top: 18px; box-shadow: 8px 0 40px #16372e30; }
  .knowledge-sidebar:not([data-open="true"]) { display: none; }
  .directory-heading button { display: block; }
  .sidebar-is-open { overflow: hidden; }
  .directory-items > a { min-height: 44px; }
  .current-context { margin-top: 0; }
}
@media (max-width: 390px) {
  .masthead-inner { gap: 7px; width: calc(100% - 24px); }
  .brand { font-size: .79rem; }
  .menu-toggle { font-size: .76rem; padding: 7px 8px; }
  .brand img { width: 22px; height: 22px; }
  .hero h1 { font-size: 2.18rem; }
}
@media print {
  .knowledge-sidebar, .sidebar-shade, .current-context { display: none !important; }
  main, .site-footer { margin-left: 0; }
  .sidebar-controlled { display: revert !important; }
}
.facility-photos, .research-toolchain { margin-block: 24px; }
.photo-filters { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin: 18px 0; }
.facility-photo-figure { margin: 20px 0; border: 1px solid var(--line); background: #e6eee5; border-radius: 8px; overflow: hidden; }
#photo-enlarge { display: block; position: relative; width: 100%; padding: 0; border: 0; background: #e6eee5; }
#photo-enlarge img { width: 100%; max-height: 580px; object-fit: contain; }
#photo-enlarge > span { position: absolute; right: 12px; bottom: 12px; color: white; background: #17352de8; padding: 5px 12px; border-radius: 4px; font-size: .82rem; }
.facility-photo-figure figcaption { padding: 12px 16px; background: var(--panel); color: var(--muted); font-size: .8rem; }
.photo-reading { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.photo-reading p { margin-top: 8px; font-size: .91rem; }
.photo-credits { font-size: .83rem; }
.photo-credits li { margin: 5px 0; }
.equipment-photo-title { margin: 27px 0 12px; }
.equipment-photo-links { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 22px; }
.equipment-photo-links > li { padding: 12px 0; border-top: 1px solid var(--line); }
.equipment-photo-links strong { display: block; font-size: .87rem; }
.equipment-photo-links a { display: block; margin: 5px 0; font-size: .9rem; }
.equipment-photo-links p { font-size: .83rem; color: var(--muted); }
#photo-dialog { width: min(1140px, calc(100% - 26px)); max-height: calc(100dvh - 28px); padding: 16px; border: 1px solid #88a08d; border-radius: 8px; background: var(--paper); color: var(--ink); }
#photo-dialog::backdrop { background: #102b23cc; }
#photo-dialog img { width: 100%; max-height: 78dvh; object-fit: contain; margin-top: 12px; }
#photo-dialog p { font-size: .85rem; margin-top: 10px; }
#photo-close { display: block; margin-left: auto; background: white; border: 1px solid var(--line); color: var(--leaf); padding: 7px 13px; border-radius: 4px; }
@media (max-width: 660px) {
  .photo-reading, .equipment-photo-links { grid-template-columns: minmax(0,1fr); gap: 14px; }
  #photo-enlarge img { max-height: 400px; }
}
/* Source filters, paged results and supporting guides have distinct positions. */
.source-grid { display: block; }
.source-panel { margin-top: 18px; }
.source-panel h2 { font: 700 1.15rem/1.5 var(--sans); letter-spacing: 0; margin-bottom: 14px; }
.source-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 28px; }
.source-purpose { margin-block: 10px 18px; color: var(--muted); font-size: .9rem; }
.source-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-block: 20px; }
.source-pagination button { min-height: 44px; padding: 8px 14px; background: #fff; color: var(--leaf); border: 1px solid var(--line); border-radius: 5px; }
.source-pagination button:disabled { color: var(--muted); opacity: .5; cursor: default; }
.source-pagination span { font-size: .875rem; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .source-list { grid-template-columns: minmax(0,1fr); } }

.directory-heading { position: sticky; top: -18px; z-index: 3; background: #f0f5ef; padding-top: 10px; }

/* Facilities selection and guided reading share the handbook's field layout. */
.engineering-controls, .learning-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-block: 22px; }
.engineering-controls label, .learning-controls label, .learning-questions label, .local-reading label { display: grid; gap: 7px; font-weight: 600; color: var(--leaf); min-width: 0; }
.engineering-controls select, .learning-controls select, .learning-controls input, .learning-questions input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font: inherit; }
.vendor-grid, .learning-resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-block: 20px; }
.vendor-card { min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--leaf); padding: 20px; border-radius: 6px; background: #fff; }
.vendor-card h4 { margin-top: 6px; font-size: 1.1rem; }
.vendor-card p, .vendor-card li { font-size: .92rem; overflow-wrap: anywhere; }
.vendor-card ul { padding-left: 1.2em; }
.mapping-row, .learning-note { padding-block: 16px; border-bottom: 1px solid var(--line); }
.mapping-row:last-child, .learning-note:last-child { border-bottom: 0; }
.cover-selection details, .learning-chapter-panel details { margin-top: 20px; }
.learning-catalog > summary { font-weight: 700; color: var(--leaf); font-size: 1.15rem; }
.learning-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.learning-resource-card { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; text-align: left; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 19px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; }
.learning-resource-card small { color: var(--muted); overflow-wrap: anywhere; }
.learning-resource-card:hover, .learning-resource-card[aria-pressed="true"] { border-color: var(--leaf); background: #edf4ea; }
.learning-workbench { border-top: 4px solid var(--leaf); }
.learning-coverage { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 20px; }
.learning-coverage span { padding: 4px 11px; background: #edf3e9; color: var(--leaf); border-radius: 3px; font-size: .86rem; }
.learning-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 22px; margin-block: 18px; }
.learning-actions button, .learning-questions button { padding: 10px 15px; border: 1px solid var(--leaf); border-radius: 5px; color: var(--leaf); background: #fff; cursor: pointer; font: inherit; }
.learning-actions button:disabled { opacity: .55; cursor: default; }
.chapter-index-row { display: grid; align-content: start; gap: 5px; width: 100%; text-align: left; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font: inherit; cursor: pointer; }
.chapter-index-row:hover { color: var(--leaf); background: #f0f5ed; }
.chapter-index-row small { color: var(--muted); font-size: .875rem; }
.chapter-index-row[aria-current="true"] { border-color: var(--leaf); background: var(--pale); }
.chapter-index-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.learning-resource-group + .learning-resource-group { margin-top: 32px; }
.learning-resource-heading { display: grid; gap: 5px; }
.learning-resource-heading strong { font-size: 1.04rem; }
.learning-resource-heading small { font-size: .875rem; }
.learning-resource-use { color: var(--muted); font-size: .9rem; }
.learning-resource-open { margin-top: auto; padding-top: 6px; color: var(--leaf); text-decoration: underline; text-underline-offset: .2em; font-size: .9rem; font-weight: 700; }
.learning-questions form { display: flex; align-items: end; gap: 14px; margin-block: 20px; }
.learning-questions label { flex: 1; }
.learning-questions button { color: #fff; background: var(--leaf); flex-shrink: 0; }
.learning-scope-banner { padding: 18px 22px; margin-bottom: 24px; background: #edf4ea; border-left: 3px solid var(--leaf); }
.local-reading iframe { width: 100%; height: 680px; border: 1px solid var(--line); margin-top: 20px; }
.learning-page-link { background: transparent; border: 0; padding: 5px 0; color: var(--leaf); text-decoration: underline; cursor: pointer; font: inherit; }
.learning-section .panel { scroll-margin-top: 76px; }
.nav-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; margin-right: 7px; vertical-align: middle; color: var(--leaf); }
.reading-toolbar { position: sticky; top: var(--header-height); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 16px; background: #edf4e9; border: 1px solid var(--line); border-radius: 6px; margin-block: 14px; }
.reading-toolbar button, .reading-toolbar a { min-height: 44px; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--leaf); padding: 5px 0; font: inherit; font-weight: 700; cursor: pointer; }
.reading-toolbar span { color: var(--muted); font-size: .85rem; }
.lab-form-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-block: 20px; }
.lab-form-grid label, .scenario-grid label { display: grid; gap: 7px; color: var(--leaf); font-size: .9rem; font-weight: 600; min-width: 0; }
.lab-form-grid input, .lab-form-grid select, .scenario-grid input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; font: inherit; background: #fff; color: var(--ink); }
.scenario-grid, .operation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-block: 22px; }
.scenario-grid fieldset { min-width: 0; border: 1px solid var(--line); padding: 20px; border-radius: 7px; display: grid; gap: 16px; }
.scenario-grid fieldset:nth-child(2) { background: #f4f7ed; }
.scenario-grid legend { color: var(--leaf); font-weight: 700; padding-inline: 8px; }
.lab-metrics, .scan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-block: 22px; }
.lab-metric { display: grid; align-content: start; gap: 10px; padding: 19px; border: 1px solid var(--line); border-top: 3px solid var(--leaf); border-radius: 5px; background: #f6f8f2; min-width: 0; }
.lab-metric > strong { font-size: 1.4rem; line-height: 1.4; color: var(--leaf); }
.lab-metric small { color: var(--muted); }
.lab-advice li { margin-bottom: 10px; }
.scan-chart { margin: 0; min-width: 0; padding: 13px 7px; border: 1px solid var(--line); border-radius: 6px; }
.scan-chart figcaption { color: var(--leaf); font-weight: 600; font-size: .9rem; padding: 5px 8px; }
.scan-chart svg { display: block; width: 100%; height: auto; }
.scan-chart text { fill: #526656; font: 13px system-ui,sans-serif; }
.operation-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.operation-card { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 20px; background: #fafbf7; }
.operation-heading { display: flex; align-items: flex-start; gap: 10px; font-size: 1.12rem; color: var(--leaf); }
.operation-heading input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--leaf); margin-top: 5px; }
.operation-card p { font-size: .91rem; }
@media (max-width: 1200px) { .lab-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .operation-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 640px) {
  .lab-form-grid, .scenario-grid, .lab-metrics, .scan-grid { grid-template-columns: minmax(0,1fr); }
  .reading-toolbar { padding: 9px 12px; } .reading-toolbar span { display: none; }
  .lab-metric > strong { font-size: 1.25rem; }
}
@media (max-width: 1050px) { .learning-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .engineering-controls, .learning-controls, .vendor-grid, .learning-resource-grid, .chapter-index-grid { grid-template-columns: minmax(0,1fr); }
  .learning-questions form { align-items: stretch; flex-direction: column; }
  .vendor-card { padding: 16px; }
  .local-reading iframe { height: 480px; }
}

/* Global destinations, this page's outline, then its controls. */
.site-directory { margin: 0; border-bottom: 1px solid var(--line); }
.site-directory > summary { padding: 13px 6px; min-height: 48px; font-size: .94rem; font-weight: 700; }
.directory-group > summary { min-height: 44px; font-size: .875rem; }
.directory-group .directory-items > a { padding-left: 33px; }
.sidebar-page-nav { padding-block: 18px 10px; }
.sidebar-page-nav h2 { font: 750 .94rem/1.5 var(--sans); letter-spacing: 0; }
.sidebar-page-nav .sidebar-submenu { margin: 12px 0 0 4px; padding-left: 8px; }
.sidebar-page-nav .sidebar-submenu > a { min-height: 40px; padding: 8px; font-size: .875rem; line-height: 1.6; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 20px; font-size: .875rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.reference-types h2, .reference-types h3 { font: 700 1.1rem/1.5 var(--sans); }
@media (max-width: 640px) {
  .sidebar-context input, .sidebar-context select, .global-search input { font-size: 1rem; }
  .reading-toolbar { flex-wrap: wrap; gap: 0 15px; font-size: .875rem; }
  .source-pagination { gap: 12px; }
}

/* ===== 可读性与操作优化层（在后覆盖，便于整段回滚） ===== */
:root {
  --muted: #43574b;
  --panel-shadow: 0 1px 2px rgba(23, 53, 45, .05), 0 10px 26px rgba(23, 53, 45, .045);
}
body { line-height: 1.78; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.26rem); line-height: 1.82; max-width: 52ch; text-wrap: pretty; }
.section-head div > p, .subhead p { font-size: 1.01rem; line-height: 1.82; max-width: 68ch; text-wrap: pretty; }
.house-card > p, .note-row p, .panel > p { font-size: .98rem; line-height: 1.8; }
.panel > p + p { margin-top: .7rem; }
.refs, .source-authors, .metric-label, .facility-photo-figure figcaption,
.learning-resource-use, .learning-resource-open, .unit-notes p, .source-purpose { font-size: .875rem; line-height: 1.72; }
.eyebrow, .tag, .pill { font-size: .84rem; letter-spacing: .045em; }
.vpd-readings span { font-size: .84rem; }
.vpd-readings strong { font-size: clamp(1rem, 2.1vw, 1.3rem); }
.muted { color: var(--muted); }

/* 卡片与层级：轻微抬升，不改变原有留白节奏 */
.panel { box-shadow: var(--panel-shadow); }
.panel h3 { letter-spacing: -.01em; }
.house-card { transition: border-color .18s ease, transform .18s ease; }
.house-card:hover { border-top-color: var(--leaf); }
.button, .question-examples button, .stage-tabs button, .source-pagination button { transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.button { box-shadow: 0 2px 8px rgba(23, 53, 45, .16); }
.question-examples button:hover, .stage-tabs button:hover { border-color: var(--leaf); }

/* 表格：加行距、斑马纹和表头底色，长表格更容易横向对照 */
th, td { padding: 13px 16px; line-height: 1.75; font-size: .95rem; }
thead th { background: #eef4ea; color: #254c3a; font-weight: 750; }
tbody tr:nth-child(even) { background: #fafcf8; }
tbody tr:hover { background: #f1f7ee; }
.table-scroll { scrollbar-width: thin; }

/* 定义列表改为松散排版，避免参数说明挤成一团 */
.panel dl { display: grid; gap: 2px 14px; }
.panel dt { font-size: .9rem; margin-top: .6rem; }
.panel dd { line-height: 1.78; margin-bottom: .4rem; }

/* 提示类区块统一为三种语气：常规说明 / 注意 / 结论 */
.inline-note, .unit-notes, .scenario-result, .current-context,
.learning-scope-banner, .lab-metric { border-radius: 8px; }
.inline-note, .unit-notes { border-left: 3px solid #7d9a7f; background: #f5f8f1; padding: 12px 16px; }
.scenario-result, .lab-metric { border-left: 3px solid var(--leaf); }
details > summary { font-weight: 700; color: var(--leaf); }
details > summary:hover { color: var(--accent); }
.calculation-warning, .simulation-caveat { border-left: 4px solid #b3603b; background: #fbeee6; border-radius: 8px; padding: 13px 17px; line-height: 1.78; }

/* 侧边栏：把「本页目录」和「快捷设置」在视觉上明确分开 */
.sidebar-page-nav { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.nav-section-label { display: block; font: 700 .72rem/1.4 var(--sans); letter-spacing: .12em; color: #6d8173; margin-bottom: 6px; }
.sidebar-page-nav h2 { font-size: .98rem; }
.sidebar-context {
  background: #e9f1e6; border-top: 1px solid #c6d7c5;
  margin: 0 -16px -30px; padding: 16px 16px 28px;
}
.sidebar-context h2 { font-size: .84rem; color: #345b48; letter-spacing: .02em; margin-bottom: 4px; }
.sidebar-context h2::before {
  content: ""; display: inline-block; width: 3px; height: .85em; margin-right: 8px;
  background: var(--leaf); border-radius: 2px; vertical-align: -1px;
}
.sidebar-context .context-hint { font-size: .79rem; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.sidebar-context label { color: var(--ink); font-weight: 650; font-size: .85rem; }
.sidebar-context > button { border-radius: 6px; font-weight: 650; }
.current-context { border-radius: 8px; font-size: .875rem; line-height: 1.7; }

/* 页内锚点与面包屑 */
.breadcrumbs { font-size: .875rem; line-height: 1.6; }
.field-jumps a, .jump-links a { min-height: 40px; display: inline-flex; align-items: center; }

/* 说明要点：把长段提示拆成可扫读的短条 */
.compact-notes { margin: 2px 0 12px; padding-left: 1.25em; color: var(--muted); font-size: .875rem; line-height: 1.75; }
.compact-notes li { margin-bottom: 3px; }
.calculation-warning strong { color: #8a3d28; }

/* 悬浮回顶按钮 */
.to-top {
  position: fixed; z-index: 28; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 9px 15px;
  border: 1px solid #b7cabc; border-radius: 999px;
  background: #fff; color: var(--leaf); font-size: .875rem; font-weight: 700;
  box-shadow: 0 6px 22px rgba(23, 53, 45, .16); cursor: pointer;
}
.to-top:hover { background: var(--pale); border-color: var(--leaf); }
.to-top svg { flex: 0 0 auto; }

@media (max-width: 660px) {
  .panel { padding: 18px; }
  .hero-figure img { max-height: 220px; }
  .vpd-form, .vpd-readings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpd-form label:last-child, .vpd-readings div:last-child { grid-column: 1 / -1; }
  .consult-form { grid-template-columns: minmax(0, 1fr); }
  .consult-form label:first-child { grid-column: auto; }
  .consult-form .button { width: 100%; white-space: nowrap; }
  th, td { padding: 11px 12px; }
  .to-top { right: 14px; bottom: 14px; padding: 9px 13px; }
}
@media print {
  .to-top, .nav-section-label { display: none !important; }
  .panel { box-shadow: none; }
  .sidebar-context { background: none; margin: 0; padding: 0; }
}

/* ===== v4：目录导航与参数控件 ===== */
/* 侧边栏只做导航。分组不再互斥，展开状态可见、可同时展开、可记住。 */
.directory-heading { font-size: 1rem; letter-spacing: .02em; }
.directory-heading strong { color: var(--ink); }
.nav-block { padding: 14px 0 6px; }
.nav-block > .nav-section-label { display: block; padding: 0 8px 8px; }
.directory-home { border-radius: 6px; font-weight: 650; padding: 10px 12px; }
.directory-groups { border-top: 1px solid var(--line); }
.directory-group { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 0; }
.directory-group > summary {
  display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
  min-height: 48px; padding: 9px 8px; border-radius: 6px;
  font-size: .92rem; font-weight: 700; color: #2c4a3a; letter-spacing: 0;
}
.directory-group > summary::-webkit-details-marker { display: none; }
.directory-group > summary::marker { content: ""; }
.directory-group > summary:hover { background: #e6efe4; }
.directory-group > summary .nav-icon { margin-right: 0; width: 18px; height: 18px; }
.directory-group > summary .group-name { flex: 1 1 auto; }
.group-count { flex: 0 0 auto; font: 700 .7rem/1 var(--sans); color: #5d7566; background: #e1ebe0; border-radius: 10px; padding: 4px 7px; }
.chevron { width: 15px; height: 15px; flex: 0 0 auto; color: #6d8173; transition: transform .18s ease; }
.directory-group[open] > summary .chevron { transform: rotate(90deg); }
.directory-group.is-current > summary { background: #dceadd; color: #164932; }
.directory-group.is-current > summary .group-count { background: #c3dbc3; color: #164932; }
.directory-items { padding: 2px 0 10px; }
.directory-items > a { padding-left: 30px; min-height: 44px; }
.directory-home[aria-current="page"], .directory-items > a[aria-current="page"] { background: #d3e4d1; box-shadow: inset 4px 0 #205a43; }
.directory-home[aria-current="page"]::after, .directory-items > a[aria-current="page"]::after {
  content: "当前"; float: right; margin-top: 2px; font-size: .68rem; font-weight: 700;
  color: #205a43; background: #fff; border: 1px solid #b7d0b8; border-radius: 10px; padding: 1px 7px;
}
.sidebar-page-nav { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 20px; }
.sidebar-page-nav .sidebar-submenu > a[aria-current="location"] { box-shadow: inset 3px 0 #205a43; }
.menu-toggle span { font-weight: 650; }

/* 参数区：状态条、范围提示、已改标记、选择结果 */
.control-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 18px; padding: 8px 12px; border: 1px solid #d3e2d2;
  border-radius: 8px; background: #f1f7f0; font-size: .84rem;
}
.control-bar-title { font-weight: 750; color: #2c4a3a; }
.control-bar-state { color: var(--muted); }
.control-bar-state.has-changes { color: #9a5b12; font-weight: 700; }
.control-bar-reset {
  margin-left: auto; min-height: 34px; padding: 5px 12px;
  border: 1px solid #b7cabc; border-radius: 6px; background: #fff;
  color: var(--leaf); font: 650 .8rem var(--sans); cursor: pointer;
}
.control-bar-reset:hover:not(:disabled) { background: var(--pale); border-color: var(--leaf); }
.control-bar-reset:disabled { opacity: .45; cursor: default; }
.field-range { display: block; margin-top: 3px; font-size: .75rem; font-weight: 400; color: #6d8173; }
input.is-touched, select.is-touched, textarea.is-touched { border-left: 3px solid #c8781f !important; background-color: #fffaf2; }
.choice-readout {
  margin: 0 0 12px; padding: 7px 12px; border-left: 3px solid #6b9a76;
  border-radius: 0 6px 6px 0; background: #edf5eb;
  font-size: .84rem; color: #2c4a3a; font-weight: 650;
}
.scroll-hint { display: none; }
@media (max-width: 760px) {
  .scroll-hint { display: block; margin: 0 0 7px; font-size: .78rem; color: #6d8173; }
}
@media (max-width: 660px) {
  .control-bar { gap: 8px; padding: 8px 10px; }
  .control-bar-reset { margin-left: 0; min-height: 38px; }
  .directory-group > summary { min-height: 50px; }
}
@media print {
  .control-bar, .choice-readout, .field-range { display: none !important; }
}
