:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --panel: #edf1f5;
  --ink: #111827;
  --muted: #45546a;
  --line: #d2dbe5;
  --line-strong: #a3b1c2;
  --grid: #dce4ed;
  --grid-strong: #a7b7c8;
  --head: #111827;
  --head-text: #f7f9fb;
  --head-muted: #becbd9;
  --orange: #ea580c;
  --orange-text: #a73708;
  --teal: #0f766e;
  --teal-soft: #e2f3ee;
  --warn: #915009;
  --warn-soft: #fff1da;
  --fail: #dc2626;
  --fail-text: #ae2027;
  --fail-soft: #fee9e8;
  --blue: #315f96;
  --blue-soft: #dce7f4;
  --focus: #2365a9;
  --node-fill: #ffffff;
  --radius: 9px;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131b28;
  --surface: #1b2636;
  --panel: #212e41;
  --ink: #f0f5fa;
  --muted: #b7c5d6;
  --line: #394b60;
  --line-strong: #64758c;
  --grid: #2c3b4e;
  --grid-strong: #50647c;
  --head: #0b111b;
  --head-text: #f7f9fb;
  --head-muted: #c4d0df;
  --orange: #ff8949;
  --orange-text: #ffab7d;
  --teal: #68d6c4;
  --teal-soft: #213f41;
  --warn: #ffd088;
  --warn-soft: #443925;
  --fail: #ff767b;
  --fail-text: #ff999d;
  --fail-soft: #442c37;
  --blue: #93bdef;
  --blue-soft: #293e57;
  --focus: #9dd1ff;
  --node-fill: #172235;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: var(--sans); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.56;
}
button, input, select { font: inherit; }
a { color: var(--teal); text-underline-offset: 0.17em; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.48; }
:is(a, button, input, select, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -0.025em; }
p { overflow-wrap: anywhere; }
ul { margin: 0; }
svg { display: block; max-width: 100%; }
.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  z-index: 10;
  margin: 8px;
  background: var(--surface);
  padding: 10px 14px;
}
.site-head {
  color: var(--head-text);
  background: var(--head);
  border-bottom: 3px solid var(--orange);
}
.head-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}
.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-weight: 760;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.035em;
}
.brand svg { width: 29px; height: 29px; color: var(--orange); }
.head-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 24px; margin-inline-start: auto; }
.head-nav a { color: var(--head-muted); text-decoration: none; font-size: 0.85rem; font-weight: 650; min-height: 40px; display: grid; align-items: center; }
.head-nav a:hover, .head-nav a[aria-current="page"] { color: var(--head-text); text-decoration: underline; text-decoration-color: var(--orange); }
.theme-button {
  color: var(--head-text);
  background: transparent;
  border: 1px solid #64748b;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.theme-button svg { width: 20px; height: 20px; }
.theme-button:hover { background: #334155; }
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 0.89rem;
}
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { min-height: 40px; display: flex; align-items: center; }
.breadcrumb { color: var(--muted); font-size: 0.84rem; margin-block: 21px 12px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; align-items: center; }
.breadcrumb li + li::before { content: '/'; padding-right: 10px; color: var(--line-strong); }
.button {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.button:hover:enabled, a.button:hover { border-color: var(--teal); background: var(--teal-soft); }
.button.primary { background: var(--head); border-color: var(--head); color: var(--head-text); }
.button.primary:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.button svg { width: 16px; height: 16px; flex: none; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 86px);
  padding: clamp(36px, 6.5vw, 94px) 0 clamp(30px, 5.8vw, 82px);
  align-items: center;
}
.home-hero h1 { font-size: clamp(2.7rem, 5.2vw, 5.35rem); letter-spacing: -0.069em; line-height: 0.99; max-width: 13ch; }
.home-hero h1 span { color: var(--teal); }
.home-hero p { font-size: clamp(1rem, 1.5vw, 1.19rem); color: var(--muted); margin-top: 21px; max-width: 45ch; }
.home-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.home-board { min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.board-title {
  padding: 13px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
}
.board-title strong { font-size: 0.97rem; }
.board-title a { font-size: 0.8rem; font-weight: 730; }
.home-board .telemetry { padding-inline: 12px; margin: 12px 0 0; }
.home-board .plot { margin-top: 9px; border: 0; border-radius: 0; }
.home-board .plot figcaption { display: none; }
.home-section { padding-block: clamp(28px, 4.5vw, 56px); border-top: 1px solid var(--line-strong); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); }
.section-heading p { color: var(--muted); max-width: 52ch; }
.tool-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.tool-card:hover { border-color: var(--teal); }
.tool-card .tool-icon { width: 44px; height: 44px; padding: 8px; border-radius: 6px; color: var(--orange-text); background: var(--panel); }
.tool-card h3 { font-size: 1.1rem; margin-bottom: 5px; }
.tool-card p { color: var(--muted); font-size: 0.87rem; }
.tool-card .arrow-icon { width: 19px; height: 19px; color: var(--teal); }
.example-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 8px 18px; margin-block: 0 22px; }
.example-filter label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 700; width: min(100%, 360px); }
.example-filter output { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.example-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.example-group, .side-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; }
.example-group h3 { color: var(--ink); font-size: 1.02rem; margin: 3px 0 6px; }
.example-group ul, .side-panel ul { list-style: none; padding: 0; }
.example-group li + li, .side-panel li + li { border-top: 1px solid var(--line); }
.example-group a, .side-panel li a { display: flex; min-height: 40px; align-items: center; font-size: 0.9rem; font-weight: 650; }
.workspace-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: end; margin-bottom: 20px; }
.workspace-head h1 { font-size: clamp(2rem, 3.9vw, 3.55rem); letter-spacing: -0.055em; }
.workspace-head p { max-width: 65ch; color: var(--muted); margin-top: 8px; }
.header-actions { display: flex; gap: 7px; justify-content: flex-end; flex-wrap: wrap; }
.header-actions .jump { display: none; }
.workspace { display: grid; grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.75fr); gap: 19px; align-items: start; }
.input-panel, .result-panel { min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.input-panel { padding: 15px 16px 16px; }
.result-panel { padding: 15px; }
.workspace-side { min-width: 0; display: grid; gap: 14px; }
.panel-heading {
  display: flex;
  gap: 7px 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.panel-heading h2 { font-size: 1.12rem; }
.unit-toggle { display: inline-flex; gap: 0; border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px; background: var(--panel); }
.unit-toggle button { min-height: 40px; min-width: 45px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 0.8rem; font-weight: 760; }
.unit-toggle button[aria-pressed="true"] { background: var(--head); color: var(--head-text); }
.context {
  border-left: 3px solid var(--orange);
  padding: 12px 14px;
  background: var(--panel);
  border-radius: 0 6px 6px 0;
}
.context h2 { font-size: 1rem; margin-bottom: 6px; }
.context p { font-size: 0.91rem; color: var(--muted); }
.context p + p { margin-top: 7px; }
.context .button { margin-top: 12px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset + fieldset { margin-top: 14px; }
fieldset legend { width: 100%; padding: 5px 6px; color: var(--ink); background: var(--panel); font: 700 0.72rem/1.25 var(--mono); margin-bottom: 8px; text-transform: uppercase; }
.input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; line-height: 1.25; margin-bottom: 4px; overflow-wrap: anywhere; }
input, select {
  min-height: 42px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 7px 8px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 1rem;
}
.unit-field { display: flex; align-items: center; gap: 4px; }
.unit-field input { font-family: var(--mono); letter-spacing: -0.025em; }
.unit-field span { flex: 0 0 auto; max-width: 41%; font-size: 0.72rem; line-height: 1.1; color: var(--muted); overflow-wrap: anywhere; }
.unit-field span:empty { display: none; }
input[aria-invalid="true"] { border-color: var(--fail); box-shadow: 0 0 0 1px var(--fail); }
.input-error { background: var(--fail-soft); color: var(--fail-text); padding: 8px; margin: 10px 0; font-size: 0.9rem; border-radius: 5px; }
.reset-row { margin-top: 14px; }
.side-panel h2 { font-size: 1rem; margin: 2px 0 4px; }
.readout-head .export-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.readout-head .button { padding-inline: 9px; }
.share-panel { padding: 10px; margin-bottom: 10px; background: var(--panel); border-radius: 6px; }
.share-panel label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.share-panel .share-row { display: flex; align-items: stretch; gap: 6px; }
.share-panel input { font-family: var(--mono); }
.action-feedback:empty { display: none; }
.action-feedback { margin-bottom: 9px; color: var(--muted); font-size: 0.85rem; }
.verdict {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-radius: 6px;
  padding: 10px 12px;
  border-inline-start: 4px solid;
  margin: 0 0 11px;
  font-size: 0.88rem;
}
.verdict strong { font: 800 0.75rem/1 var(--mono); text-transform: uppercase; display: inline-block; border: 1px solid currentColor; border-radius: 4px; padding: 4px; flex: none; }
.verdict p { color: var(--ink); }
.verdict-pass { background: var(--teal-soft); color: var(--teal); }
.verdict-warn { background: var(--warn-soft); color: var(--warn); }
.verdict-fail { background: var(--fail-soft); color: var(--fail-text); }
.telemetry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 10px;
}
.reading { min-width: 0; padding: 8px 9px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.reading dt { color: var(--muted); font: 700 0.72rem/1.3 var(--mono); overflow-wrap: anywhere; }
.reading dd { margin: 4px 0 0; color: var(--ink); font: 760 clamp(0.95rem, 1.7vw, 1.36rem)/1.15 var(--mono); letter-spacing: -0.055em; overflow-wrap: anywhere; }
.reading-unit { font-size: 0.75em; font-weight: 650; color: var(--muted); letter-spacing: -0.02em; }
.plot { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.plot figcaption { font-size: 0.84rem; font-weight: 740; padding: 8px 10px; color: var(--ink); background: var(--panel); border-bottom: 1px solid var(--line); }
.plot-canvas { background: var(--bg); }
.plot svg { width: 100%; height: auto; }
.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 21px; padding: 8px 10px; color: var(--muted); font-size: 0.73rem; border-top: 1px solid var(--line); }
.legend li { display: inline-flex; align-items: center; gap: 5px; }
.legend span { display: inline-block; width: 12px; height: 3px; border-radius: 2px; background: var(--orange); }
.legend li:nth-child(2) span { background: var(--teal); }
.legend li:nth-child(3) span { background: var(--blue); }
.legend-jacobian li:first-child span, .legend-gripper li:first-child span { background: var(--teal); }
.legend-jacobian li:nth-child(3) span, .legend-gripper li:nth-child(2) span { background: var(--orange); }
.legend-jacobian li:nth-child(2) span { background: var(--blue); }
.legend-torque li:first-child span { background: var(--teal); }
.legend-torque li:nth-child(2) span { background: var(--blue); }
.legend-torque li:nth-child(3) span { background: var(--orange); }
.legend-trajectory li:nth-child(2) span { background: var(--blue); }
.legend-trajectory li:nth-child(3) span { background: var(--line-strong); }
.legend-vision li:nth-child(2) span { background: var(--line-strong); }

.plot svg :is(polyline, path, line, circle, rect) { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plot svg .gridline { stroke: var(--grid); stroke-width: 0.85; }
.plot svg .grid-strong { stroke: var(--grid-strong); stroke-width: 0.8; }
.plot svg .axis-soft { stroke: var(--grid-strong); stroke-width: 1.15; stroke-dasharray: 4 4; }
.plot svg .plot-label { fill: var(--ink); font: 720 13px var(--sans); }
.plot svg .plot-sub { fill: var(--muted); font: 720 11.8px var(--mono); letter-spacing: 0.04em; }
.plot svg .arm-outline { stroke: var(--ink); stroke-width: 10; }
.plot svg .arm { stroke: var(--orange); stroke-width: 6; }
.plot svg .arm-node { stroke: var(--ink); fill: var(--node-fill); stroke-width: 2.5; }
.plot svg .node-plain { fill: var(--ink); }
.plot svg .node-teal, .plot svg .mass-node { fill: var(--teal); }
.plot svg .node-blue, .plot-torque svg .mass-node { fill: var(--blue); }
.plot svg .ring { fill: var(--teal-soft); fill-opacity: 0.36; stroke: var(--teal); stroke-width: 1.2; stroke-dasharray: 3 4; }
.plot svg .inner-ring { fill: var(--bg); stroke: var(--fail); stroke-width: 1.1; stroke-dasharray: 3 4; }
.plot svg .branch-up { stroke: var(--teal); stroke-width: 3.1; stroke-dasharray: 6 5; }
.plot svg .branch-down { stroke: var(--blue); stroke-width: 2.7; stroke-dasharray: 3 4; }
.plot svg .faded { opacity: 0.45; }
.plot svg .target { stroke: var(--fail); stroke-width: 1.9; }
.plot svg .wrist { stroke: var(--teal); fill: var(--node-fill); stroke-width: 2; }
.plot svg :is(.axis-x, .axis-y, .axis-z) { stroke-width: 2.6; }
.plot svg .axis-x { stroke: var(--orange); }
.plot svg .axis-y { stroke: var(--teal); }
.plot svg .axis-z { stroke: var(--blue); }
.plot svg .faint { opacity: 0.6; stroke-width: 1.7; }
.plot svg .ellipse-fill { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2; }
.plot svg .ellipse-axis { stroke: var(--blue); stroke-width: 1.3; stroke-dasharray: 5 4; }
.plot svg .chart-smooth { stroke: var(--orange); stroke-width: 2.4; }
.plot svg .chart-trap { stroke: var(--blue); stroke-width: 1.8; stroke-dasharray: 4 4; }
.plot svg .segment-marker { stroke: var(--line-strong); stroke-width: 0.8; stroke-dasharray: 2 5; }
.plot svg :is(.bracket, .wheel) { fill: var(--ink); stroke: var(--ink); stroke-width: 1; }
.plot svg :is(.load-block, .vehicle) { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.6; }
.plot svg .pivot { stroke: var(--teal); stroke-width: 2.1; }
.plot svg .cup { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2; }
.plot svg .icr-line { stroke: var(--teal); stroke-width: 1.7; stroke-dasharray: 5 4; }
.plot svg .optic-ray { stroke: var(--orange); stroke-width: 2.4; }
.plot svg :is(.lens, .target-grid) { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.6; }
.plot svg .dof-band { fill: var(--teal-soft); }
.plot svg .sensor { stroke: var(--ink); stroke-width: 4; }
.plot svg .feature { fill: var(--orange); stroke: var(--orange-text); stroke-width: 1.1; }
.plot svg .meter-track { fill: var(--grid-strong); }
.plot svg .meter-band { fill: var(--teal); fill-opacity: 0.32; }
.plot svg .meter-limit { stroke: var(--ink); stroke-width: 1.3; }
.plot svg .meter-dot { stroke: var(--node-fill); stroke-width: 1.2; }
.plot svg .meter-pass { fill: var(--teal); }
.plot svg .meter-warn { fill: var(--warn); }
.plot svg .meter-fail { fill: var(--fail); }

.readout-tables { display: grid; min-width: 0; gap: 15px; margin-top: 16px; }
.data-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.86rem; }
.data-table caption { font-weight: 770; font-size: 0.94rem; text-align: left; padding-bottom: 5px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 6px 7px; overflow-wrap: anywhere; }
.data-table thead th { background: var(--panel); color: var(--muted); font-size: 0.73rem; }
.data-table tbody th { font-weight: 630; }
.data-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.data-table tr:nth-child(even) { background: var(--bg); }
.data-table th:first-child { width: 27%; }
.data-table th:first-child:nth-last-child(2) { width: 57%; }
.data-table th:first-child:nth-last-child(5) { width: 15%; }
.trace, .sensitivity { margin-top: 20px; }
.trace h2, .sensitivity h2 { font-size: 1.16rem; margin-bottom: 7px; }
.formula-list { margin: 0; padding-left: 25px; }
.formula-list li { padding: 7px 0; }
.formula-list h3 { font-size: 0.92rem; }
.formula { font: 0.82rem/1.55 var(--mono); padding: 6px 8px; background: var(--panel); border-radius: 4px; margin-top: 5px; }
.working { display: flex; flex-wrap: wrap; gap: 2px 13px; font: 690 0.79rem/1.5 var(--mono); color: var(--teal); margin-top: 5px; }
.dimensional, .sensitivity p { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.sensitivity { padding: 11px 12px; border-left: 3px solid var(--orange); background: var(--panel); }
.editorial { max-width: 870px; }
.editorial h1 { font-size: clamp(2.1rem, 4.2vw, 3.9rem); letter-spacing: -0.055em; margin: 8px 0 12px; }
.editorial .lead { color: var(--muted); max-width: 68ch; font-size: 1.1rem; }
.editorial section { padding: 17px 0; border-bottom: 1px solid var(--line); }
.editorial section:first-of-type { margin-top: 12px; }
.editorial section h2 { font-size: 1.35rem; margin-bottom: 6px; }
.editorial section p + p { margin-top: 8px; }
.editorial section ol { padding-left: 24px; }
.editorial section ol li + li { margin-top: 6px; }
.print-sheet { display: none; }

@media (max-width: 870px) {
  .wrap { width: calc(100% - 38px); }
  .head-row { gap: 15px; }
  .head-nav { gap: 1px 14px; }
  .workspace { grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.25fr); gap: 12px; }
  .telemetry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-head { grid-template-columns: minmax(0, 1fr); }
  .header-actions { justify-content: start; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 24px); }
  .head-row { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: 6px 2px; gap: 0 8px; }
  .brand { min-height: 42px; }
  .brand svg { width: 25px; height: 25px; }
  .theme-button { grid-row: 1; grid-column: 2; }
  .head-nav { grid-column: 1 / -1; margin: 0; gap: 0 15px; }
  .head-nav a { min-height: 40px; font-size: 0.78rem; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-block: 34px 27px; gap: 23px; }
  .home-hero h1 { font-size: clamp(2.55rem, 10vw, 3.55rem); }
  .home-hero p { margin-top: 14px; }
  .home-actions { margin-top: 17px; }
  .example-library, .tool-list, .workspace { grid-template-columns: minmax(0, 1fr); }
  .tool-card { grid-template-columns: 41px minmax(0, 1fr) 18px; gap: 10px; padding: 13px; }
  .tool-card .tool-icon { width: 40px; height: 40px; }
  .workspace { grid-template-areas: 'input' 'output' 'examples'; }
  .workspace-side { display: contents; }
  .input-panel { grid-area: input; }
  .result-panel { grid-area: output; }
  .tool-examples { grid-area: examples; }
  .header-actions .jump { display: inline-flex; }
  .workspace-head { gap: 11px; margin-bottom: 13px; }
  .breadcrumb { margin-block: 13px 7px; }
  .breadcrumb ol { gap: 2px 7px; }
  .breadcrumb li + li::before { padding-right: 7px; }
  .panel-heading { margin-bottom: 10px; }
  .context { grid-area: input-context; }
  .workspace:has(.context) { grid-template-areas: 'input-context' 'input' 'output' 'examples'; }
  .input-panel, .result-panel { padding: 11px; }
  .verdict { padding: 8px; gap: 6px; }
  .legend { justify-content: flex-start; gap: 4px 13px; }
  .plot svg .plot-label { font-size: 17px; }
  .plot svg .plot-sub { font-size: 17.5px; letter-spacing: 0.01em; }
  .data-table { font-size: 0.79rem; }
  .data-table th, .data-table td { padding: 5px 4px; }
  .data-table thead th { font-size: 0.71rem; }
  .site-foot { margin-top: 35px; }
}
@media (max-width: 480px) {
  .readout-tables .joint-solutions,
  .readout-tables .joint-solutions :is(caption, tbody) { display: block; }
  .readout-tables .joint-solutions thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .readout-tables .joint-solutions tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    padding: 4px 5px;
  }
  .readout-tables .joint-solutions tr:has(td:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .readout-tables .joint-solutions tbody th:first-child,
  .readout-tables .joint-solutions td:last-child { grid-column: 1 / -1; width: auto; }
  .readout-tables .joint-solutions tbody :is(th, td) { border-bottom: 0; padding: 3px 4px; }
  .readout-tables .joint-solutions td::before {
    content: attr(data-heading);
    display: block;
    color: var(--muted);
    font: 700 0.69rem/1.2 var(--sans);
  }
  .readout-tables .joint-solutions td:last-child::before { display: inline; margin-right: 6px; }
}
@media (max-width: 350px) {
  .home-actions { gap: 6px; }
  .button { padding-inline: 9px; }
  .input-grid { gap: 7px; }
  .field label { font-size: 0.74rem; }
  .tool-card { padding-inline: 10px; }
}

@page { size: A4 portrait; margin: 10mm 12mm; }
@media print {
  :root, :root[data-theme="dark"] {
    color-scheme: light;
    --bg: #fff;
    --surface: #fff;
    --panel: #f0f3f6;
    --ink: #111827;
    --muted: #37465a;
    --line: #c9d4e0;
    --line-strong: #8799aa;
    --grid: #e4ebf2;
    --grid-strong: #a7b7c8;
    --teal: #0f766e;
    --teal-soft: #e4f4ef;
    --orange: #c34a0b;
    --orange-text: #963507;
    --fail: #bf2424;
    --fail-text: #9f171d;
    --fail-soft: #fae8e8;
    --warn: #794708;
    --warn-soft: #f8eedc;
    --blue: #315f96;
    --blue-soft: #e0ebf6;
    --node-fill: #fff;
  }
  body:has(.print-sheet) > :not(.print-sheet) { display: none !important; }
  .print-sheet { display: block; color: var(--ink); font-size: 8.1pt; line-height: 1.19; print-color-adjust: exact; }
  .print-heading { border-bottom: 1.2pt solid var(--ink); padding-bottom: 2.5mm; margin-bottom: 2.5mm; }
  .print-heading h1 { margin: 1mm 0; font-size: 18pt; }
  .print-heading p { color: var(--muted); }
  .print-sheet h2 { font-size: 10pt; margin-bottom: 1.3mm; }
  .print-sheet .verdict { font-size: 8.1pt; padding: 1.5mm 2mm; margin-bottom: 2.5mm; }
  .print-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5mm; margin-bottom: 2.6mm; }
  .print-inputs div { display: flex; justify-content: space-between; gap: 1.2mm; border-bottom: 0.4pt solid var(--line); padding: 1mm 0.3mm; }
  .print-inputs dt { font-weight: 620; }
  .print-inputs dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
  .print-sheet .telemetry { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5mm; margin-bottom: 2.7mm; }
  .print-sheet .reading { padding: 1.5mm; }
  .print-sheet .reading dt { font-size: 7.3pt; }
  .print-sheet .reading dd { font-size: 10pt; }
  .print-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3mm; align-items: start; }
  .print-sheet .plot { break-inside: avoid; }
  .print-sheet .plot figcaption, .print-sheet .legend { font-size: 7.1pt; padding: 1.25mm; gap: 1mm 2mm; }
  .print-sheet .data-table { font-size: 7.1pt; break-inside: avoid; margin-bottom: 2.4mm; }
  .print-sheet .data-table caption { font-size: 8.5pt; padding-bottom: 1mm; }
  .print-sheet .data-table th, .print-sheet .data-table td { font-size: 7.1pt; padding: 0.9mm 0.75mm; }
  .print-note { padding-top: 2mm; border-top: 0.5pt solid var(--line); font-size: 7.2pt; color: var(--muted); }
}
