:root {
  color-scheme: light;
  --page: #f4f3eb;
  --paper: #fffef8;
  --panel: #faf9f0;
  --ink: #182c32;
  --muted: #4d615d;
  --line: #ced4c8;
  --line-strong: #9caca1;
  --signal: #047857;
  --deep: #065f46;
  --signal-soft: #e5f2e9;
  --amber: #b45309;
  --amber-ink: #8a440d;
  --amber-soft: #fbf0dc;
  --red: #b91c1c;
  --red-soft: #f9e9e4;
  --diagram-paper: #f8f9f0;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--page); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: #04785724; }
a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.13; font-weight: 720; }
p, li { line-height: 1.55; }
svg { vertical-align: middle; }
.u-sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 5; top: 8px; left: 8px; padding: 10px; background: var(--paper); }
.shell { width: min(100% - 64px, 1240px); margin-inline: auto; }
.muted { color: var(--muted); }
.unit, .eyebrow { font-family: var(--mono); }
.eyebrow { color: var(--deep); font-size: .75rem; letter-spacing: .053em; font-weight: 650; text-transform: uppercase; }
.arrow-icon { flex: none; }

.site-header { background: var(--paper); border-top: 3px solid var(--deep); border-bottom: 1px solid var(--line); }
.masthead { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand span { font-size: 1.05rem; font-weight: 770; letter-spacing: -.035em; }
.brand-mark { flex: none; }
.masthead nav, .footer-content nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.masthead nav a, .footer-content nav a { color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; display: inline-flex; min-height: 42px; align-items: center; }
.masthead nav a:hover, .footer-content nav a:hover { color: var(--deep); text-decoration: underline; }
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-content { padding-block: 25px 30px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 30px; }
.footer-content strong { font-size: .91rem; }
.footer-content p { margin-top: 7px; max-width: 66ch; font-size: .83rem; color: var(--muted); }

.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 58px 46px; border-bottom: 1px solid var(--line-strong); }
.hero-eyebrow { display: flex; align-items: center; gap: 9px; }
.hero-eyebrow::before { width: 23px; height: 2px; content: ""; background: var(--deep); flex: none; }
.hero h1 { font-size: clamp(2.72rem, 4.85vw, 4.38rem); letter-spacing: -.045em; line-height: 1.01; margin-top: 15px; max-width: 13.5ch; text-wrap: balance; }
.hero-intro { font-size: clamp(1rem, 1.48vw, 1.18rem); line-height: 1.53; max-width: 39ch; color: var(--muted); margin-top: 22px; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 25px; }
.button { min-height: 45px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 4px; font-size: .9rem; font-weight: 680; text-decoration: none; }
.button-primary { background: var(--deep); border-color: var(--deep); color: var(--paper); }
.button-primary:hover { background: var(--signal); color: var(--paper); }
.button-secondary { border-color: var(--line-strong); background: var(--paper); color: var(--ink); }
.button-secondary:hover { border-color: var(--deep); color: var(--deep); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0 9px; align-items: center; color: var(--muted); font-size: .79rem; margin-top: 14px; }
.hero-plate { border: 1px solid var(--line-strong); border-radius: 5px; overflow: hidden; background: var(--paper); box-shadow: 4px 4px 0 #c4cec13a; }
.hero-plate figcaption { min-height: 50px; padding: 10px 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 9px; background: var(--paper); font-size: .88rem; border-bottom: 1px solid var(--line); }
.plate-indicator { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--signal); }
.plate-standard { font: .72rem var(--mono); color: var(--deep); margin-left: auto; }
.hero-plate .diagram { width: 100%; display: block; }
.plate-link { display: flex; min-height: 45px; padding: 8px 15px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--deep); font-size: .86rem; font-weight: 680; text-decoration: none; }
.plate-link:hover { background: var(--signal-soft); }
.catalog-section { margin-top: 33px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 15px; margin-bottom: 15px; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.05em; }
.section-heading p { font: .79rem var(--mono); color: var(--muted); }
.tool-index { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1.1fr) minmax(0, 3fr); gap: 15px; }
.tool-family { min-width: 0; }
.tool-family h3 { padding: 9px 0 8px; border-top: 2px solid var(--line-strong); color: var(--deep); font-size: .75rem; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase; }
.tool-family ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 8px; }
.tool-family li { flex: 1 1 0; min-width: 0; }
.tool-card { display: flex; flex-direction: column; min-height: 154px; height: 100%; padding: 12px 10px 11px; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; color: var(--ink); text-decoration: none; }
.tool-card:hover { border-color: var(--deep); background: var(--signal-soft); color: var(--deep); }
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2px; color: var(--deep); }
.tool-card-top .arrow-icon { margin: 1px 0 0 auto; }
.tool-icon { background: var(--signal-soft); border-radius: 4px; flex: none; }
.tool-card strong { margin: 10px 0 6px; font-size: .9rem; line-height: 1.22; letter-spacing: -.019em; }
.tool-card span { margin-top: auto; color: var(--muted); font-size: .715rem; line-height: 1.28; }
.example-index { margin-top: 52px; }
.example-index > p { margin: -2px 0 15px; color: var(--muted); }
.example-index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.example-list { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 13px; }
.example-list > summary, .output-details > summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 650; font-size: .88rem; line-height: 1.5; }
.example-list > summary span { float: right; font: .74rem/1.8 var(--mono); color: var(--muted); margin-left: 6px; }
.example-links { list-style: none; padding: 0; margin: 2px 0 10px; }
.example-links li + li { border-top: 1px solid var(--line); }
.example-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; min-height: 42px; font-size: .9rem; line-height: 1.35; text-decoration: none; }
.example-links a:hover { text-decoration: underline; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; font-size: .8rem; color: var(--muted); padding-top: 17px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 31px; }
.tool-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px 28px; padding-block: 12px 22px; }
.tool-header h1, .trust-head h1 { font-size: clamp(2.02rem, 4vw, 3.02rem); margin-top: 6px; line-height: 1.04; letter-spacing: -.038em; text-wrap: balance; }
.tool-description { margin-top: 10px; color: var(--muted); max-width: 73ch; line-height: 1.45; }
.unit-picker { display: flex; flex: none; background: #e7ebe0; border: 1px solid var(--line-strong); border-radius: 5px; padding: 3px; }
.unit-picker button { min-height: 40px; padding: 6px 11px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 3px; font-size: .82rem; font-weight: 680; }
.unit-picker button[aria-pressed="true"] { border-color: var(--line-strong); background: var(--paper); color: var(--deep); }
.workbench { display: grid; grid-template-columns: minmax(300px, .84fr) minmax(0, 1.7fr); gap: 18px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; min-width: 0; }
.inputs, .readout { padding: 16px 18px; }
.inputs { border-top: 3px solid var(--line-strong); }
.readout { border-top: 3px solid var(--deep); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin-bottom: 9px; }
.panel-heading h2 { font-size: 1.3rem; letter-spacing: -.037em; }
.input-actions { display: flex; align-items: center; gap: 12px; }
.quiet-button { min-height: 40px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--deep); font-size: .8rem; font-weight: 660; line-height: 1.3; }
.quiet-button:hover { background: var(--signal-soft); border-color: var(--deep); }
.quiet-button:disabled { cursor: default; opacity: .5; }
.entry-group { border: 0; border-top: 1px solid var(--line); padding: 10px 0 4px; margin: 11px 0 0; min-width: 0; }
.entry-group legend { padding: 0 7px 0 0; font: 650 .72rem/1.25 var(--mono); letter-spacing: .015em; text-transform: uppercase; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px 10px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 3px; font-size: .78rem; line-height: 1.3; font-weight: 650; }
.field small { display: block; color: var(--muted); margin-top: 4px; font-size: .74rem; line-height: 1.4; }
.number-box, .field select, .share-box input { min-height: 41px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fdfdf6; color: var(--ink); }
.number-box { display: flex; align-items: stretch; min-width: 0; }
.number-box:focus-within { outline: 2px solid var(--signal); outline-offset: 1px; }
.number-box input { width: 100%; min-width: 0; min-height: 40px; border: 0; outline: none; border-radius: 4px; appearance: textfield; background: transparent; color: inherit; font-family: var(--mono); font-size: .94rem; padding: 5px 7px; }
.number-box input::-webkit-inner-spin-button, .number-box input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.input-unit { display: flex; flex: none; align-items: center; padding: 0 6px; color: var(--muted); border-left: 1px solid var(--line); font: .72rem var(--mono); }
.field select { width: 100%; padding: 5px 8px; font-size: .9rem; line-height: 1.3; }
.number-box:has([aria-invalid="true"]), .field select[aria-invalid="true"] { border-color: var(--red); }
.entry-group input[type="range"] { display: block; width: 100%; min-height: 40px; margin: 1px 0 0; accent-color: var(--signal); }
.input-error { margin-top: 12px; padding: 8px 10px; color: var(--red); background: var(--red-soft); border-left: 3px solid var(--red); font-size: .85rem; }
.edit-shortcut { display: none; }

.telemetry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.tile { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); padding: 8px 9px 9px; }
.tile dt { font: 680 .69rem/1.25 var(--mono); letter-spacing: .01em; color: var(--deep); text-transform: uppercase; }
.tile dd { display: flex; align-items: baseline; gap: 2px 5px; flex-wrap: wrap; margin-top: 5px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tile strong { font-size: clamp(1.12rem, 1.95vw, 1.64rem); line-height: 1.12; color: var(--ink); letter-spacing: -.065em; overflow-wrap: anywhere; }
.tile-unit { font-size: .69rem; line-height: 1.15; color: var(--muted); }
.assessment { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border-left: 3px solid var(--deep); margin-top: 9px; background: var(--signal-soft); color: var(--deep); font-size: .84rem; }
.assessment.warn { color: var(--amber-ink); border-color: var(--amber); background: var(--amber-soft); }
.assessment.danger { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; margin-top: 5px; }
.assessment p { color: var(--ink); margin-top: 1px; font-size: .81rem; line-height: 1.37; }
.figure { margin-top: 12px; }
.figure-top h3 { font-size: .93rem; margin-bottom: 7px; }
.drawing { display: grid; place-items: center; background: var(--diagram-paper); border: 1px solid var(--line); border-radius: 4px; min-width: 0; overflow: hidden; }
.drawing .diagram { display: block; width: min(100%, 612px); height: auto; min-width: 0; }
.drawing-error { display: grid; place-items: center; min-height: 145px; padding: 20px; font-size: .9rem; color: var(--muted); text-align: center; }
.figure figcaption { margin-top: 6px; color: var(--muted); font-size: .77rem; line-height: 1.43; }
.export-bar { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 11px; }
.export-bar [data-action="print"] { margin-left: auto; }
.share-box { margin-top: 10px; }
.share-box label { display: block; font-size: .84rem; font-weight: 650; margin-bottom: 3px; }
.share-box input { width: 100%; padding: 6px 9px; font-family: var(--mono); font-size: .8rem; }
.share-box p, .export-status { margin-top: 4px; font-size: .78rem; color: var(--muted); }
.export-status:empty { display: none; }
.output-details { margin-top: 8px; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); font-size: .83rem; line-height: 1.35; padding: 5px 4px; }
th { text-align: left; font-weight: 550; }
td { font-family: var(--mono); text-align: right; overflow-wrap: anywhere; }

.diagram { font-family: var(--mono); overflow: hidden; }
.d-paper { fill: var(--diagram-paper); }
.d-grid { fill: none; stroke: #e5e9db; stroke-width: 1; }
.d-label { fill: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.d-value { fill: var(--ink); font-size: 15px; font-weight: 700; }
.d-axis, .d-pipe-thin { fill: none; stroke: #526c64; stroke-width: 1.5; }
.d-rule { fill: none; stroke: #aebeb0; stroke-width: 1; }
.d-marker { fill: none; stroke: #69867a; stroke-width: 1.15; stroke-dasharray: 3 3; }
.d-pipe { fill: none; stroke: #506865; stroke-width: 4; }
.d-valve { fill: var(--paper); stroke: var(--deep); stroke-width: 2.4; stroke-linejoin: round; }
.d-plate { fill: #536b62; }
.d-fluid { fill: #e6f0e4; }
.d-fluid-pipe { fill: #e6f0e4; stroke: #526c64; stroke-width: 1.5; }
.d-flow { fill: none; stroke: #669987; stroke-width: 1.6; }
.d-route { fill: none; stroke: var(--signal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.d-signal { fill: none; stroke: var(--signal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.d-back { fill: none; stroke: #315977; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.d-mid-dash { fill: none; stroke: #546c66; stroke-width: 1.65; stroke-dasharray: 5 4; }
.d-alarm-dash { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-dasharray: 6 4; }
.d-dim { fill: none; stroke: #638777; stroke-width: 1.6; stroke-dasharray: 3 3; }
.d-support { fill: #becdc0; stroke: #526c64; stroke-width: 1.4; }
.d-node, .d-node-good, .d-node-warn, .d-node-danger, .d-node-muted { fill: var(--paper); stroke: var(--signal); stroke-width: 2.2; }
.d-node-muted { stroke: #526c64; stroke-width: 1.6; }
.d-node-warn { stroke: var(--amber); }
.d-node-danger { stroke: var(--red); }
.d-band { fill: #edf1e6; }
.d-track { fill: #d1dbcf; }
.d-good { fill: var(--signal); }
.d-warn { fill: var(--amber); }
.d-danger { fill: var(--red); }
.d-threshold { stroke: var(--amber); stroke-width: 1.8; }
.d-axis-unit { fill: var(--muted); font-size: 11px; font-weight: 600; }

.worked, .method-brief, .tool-examples { padding: 17px 19px; }
.worked { margin-top: 18px; }
.worked h2, .supporting-content h2 { font-size: 1.21rem; letter-spacing: -.035em; margin-bottom: 7px; }
.worked p, .method-brief p { font-size: .9rem; line-height: 1.5; }
.worked-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; list-style: none; padding: 0; margin: 10px 0; }
.worked-steps li { min-width: 0; background: var(--panel); border: 1px solid var(--line); padding: 9px 10px; border-radius: 4px; }
.worked-steps strong { display: block; font-size: .82rem; font-weight: 650; }
.worked-steps span { font-family: var(--mono); font-size: .85rem; color: var(--deep); }
.supporting-content { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.method-brief p + p { margin-top: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; min-height: 40px; font-size: .88rem; font-weight: 650; }
.trust-head { padding-block: 32px 23px; }
.trust-head > p:last-child { color: var(--muted); margin-top: 12px; max-width: 70ch; }
.method-layout { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); align-items: start; gap: 18px; }
.method-nav { position: sticky; top: 15px; padding: 0 13px; border-top: 3px solid var(--deep); background: var(--paper); }
.method-nav ul, .reference-list, .formula-list { list-style: none; padding: 0; }
.method-nav ul { margin: 4px 0; }
.method-nav a { display: flex; align-items: center; min-height: 40px; padding: 4px 0; text-decoration: none; font-size: .85rem; }
.method-nav a:hover { text-decoration: underline; }
.method-list { display: grid; gap: 12px; }
.method-section, .privacy-body { padding: 19px 20px; }
.method-section h2, .privacy-body h2 { font-size: 1.45rem; letter-spacing: -.04em; margin: 5px 0 9px; }
.method-section h3 { font-size: .95rem; margin-top: 14px; }
.formula-list { display: grid; margin-block: 12px; gap: 4px; }
.formula-list li { padding: 6px 8px; background: var(--panel); border-left: 2px solid var(--line-strong); overflow-wrap: anywhere; }
.formula-list code { font: .86rem var(--mono); }
.reference-list { margin: 6px 0 0; font-size: .86rem; }
.reference-list a { display: inline-flex; align-items: center; min-height: 40px; }
.privacy-body { display: grid; gap: 18px; max-width: 720px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; }
.print-sheet { display: none; }

@media (max-width: 1080px) {
  .tool-index { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
  .tool-family-valves { grid-column: 1 / -1; }
  .tool-card { min-height: 115px; }
}
@media (max-width: 860px) {
  .shell { width: min(100% - 40px, 1240px); }
  .hero { gap: 24px; padding-block: 39px 34px; }
  .hero h1 { font-size: clamp(2.49rem, 5.75vw, 3.18rem); }
  .workbench { grid-template-columns: minmax(250px, .9fr) minmax(0, 1.45fr); gap: 11px; }
  .inputs, .readout { padding: 12px; }
  .tile { padding-inline: 6px; }
  .tile dt { font-size: .64rem; }
  .field label { font-size: .73rem; }
  .field-grid { column-gap: 6px; }
}
@media (max-width: 700px) {
  .masthead { flex-wrap: wrap; gap: 0 12px; }
  .masthead nav { gap: 0 16px; }
  .hero { grid-template-columns: 1fr; padding-block: 29px 28px; gap: 20px; }
  .hero h1 { max-width: 13.5ch; font-size: clamp(2.45rem, 8.5vw, 4rem); }
  .hero-intro { margin-top: 14px; }
  .hero-actions { margin-top: 16px; }
  .tool-header { display: grid; justify-items: start; }
  .workbench { display: flex; flex-direction: column; }
  .inputs, .readout { width: 100%; }
  .readout { order: -1; }
  .edit-shortcut { display: inline-flex; align-items: center; min-height: 40px; gap: 3px; font-size: .8rem; font-weight: 650; }
  .field label { font-size: .8rem; }
  .field-grid { gap: 9px 10px; }
  .tile strong { font-size: clamp(1.16rem, 3.2vw, 1.55rem); }
  .supporting-content { grid-template-columns: 1fr; gap: 11px; }
  .method-layout { grid-template-columns: 1fr; }
  .method-nav { position: static; }
  .method-nav ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 9px; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 30px); }
  .masthead { align-content: center; }
  .masthead .brand { margin-top: 2px; min-height: 42px; }
  .masthead nav { width: 100%; justify-content: space-between; gap: 0 8px; }
  .masthead nav a { min-height: 40px; font-size: .78rem; }
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(2.28rem, 9.3vw, 3rem); }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  .hero-actions .button { padding: 7px; gap: 5px; font-size: .78rem; white-space: nowrap; }
  .hero-actions .arrow-icon { width: 14px; height: 14px; }
  .hero-meta { font-size: .72rem; }
  .hero-plate figcaption { padding-inline: 10px; font-size: .77rem; }
  .plate-standard { font-size: .65rem; }
  .tool-index { grid-template-columns: 1fr; gap: 12px; }
  .tool-family ul { display: grid; grid-template-columns: 1fr 1fr; }
  .tool-family-metering ul { grid-template-columns: 1fr; }
  .tool-card { min-height: 106px; }
  .example-index-grid { grid-template-columns: 1fr; }
  .section-heading p { font-size: .68rem; }
  .tool-header { padding-block: 6px 11px; gap: 8px; }
  .tool-header h1 { font-size: 1.89rem; margin-top: 4px; }
  .tool-description { font-size: .875rem; margin-top: 6px; line-height: 1.4; }
  .breadcrumbs { padding-top: 3px; }
  .breadcrumbs a { min-height: 27px; }
  .readout { padding-top: 8px; }
  .readout .panel-heading { margin-bottom: 6px; }
  .telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .tile { padding: 5px 8px; }
  .tile dt { font-size: .67rem; }
  .tile dd { margin-top: 3px; }
  .assessment { padding: 6px 8px; margin-top: 7px; }
  .assessment p { font-size: .77rem; }
  .figure { margin-top: 9px; }
  .field select, .number-box input { font-size: 1rem; }
  .export-bar [data-action="print"] { margin-left: 0; }
  .worked-steps { grid-template-columns: 1fr; gap: 5px; }
  .worked-steps li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 9px; }
  .footer-content { flex-direction: column; }
}

@page { size: A4 portrait; margin: 10mm; }
@media print {
  :root, body { background: white; color: #151e20; }
  body:has(.print-sheet) .site-screen { display: none; }
  .print-sheet { display: block; font-size: 9pt; }
  .print-sheet p { line-height: 1.3; }
  .sheet-header { border-bottom: 1px solid #85938f; padding-bottom: 2mm; }
  .sheet-header p:first-child { font: bold 9pt var(--mono); color: #065f46; }
  .sheet-header .sheet-title { font-size: 16pt; line-height: 1.16; font-weight: 750; margin: 1mm 0; }
  .sheet-assessment { margin: 3mm 0 2mm; font-size: 8.5pt; line-height: 1.28; }
  .sheet-diagram { width: 125mm; margin: 0 auto 2mm; print-color-adjust: exact; }
  .sheet-diagram .diagram { width: 100%; height: auto; }
  .sheet-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
  .sheet-tables > div { min-width: 0; }
  .sheet-tables h2 { font-size: 10pt; margin: 1mm 0; }
  .sheet-tables th, .sheet-tables td { font-size: 7.5pt; line-height: 1.18; padding: .75mm .6mm; }
  .sheet-disclaimer { border-top: 1px solid #85938f; padding-top: 2mm; margin-top: 3mm; font-size: 8pt; }
}
