/* SPDX-License-Identifier: Apache-2.0 · Copyright 2026 Neer Patel */
/* FusionSpace product tokens. Generated by tools/build/kit_product.py; edit there, not here. */
/* Themes: light (default), dark (follows the system unless data-theme is set), field (outdoor, high contrast). */
/* Use: <html data-theme="light|dark|field"> to force one; no attribute follows prefers-color-scheme. */

:root {
  color-scheme: light dark;
  --fs-font-display: 'Cascadia Mono', ui-monospace, Menlo, monospace;
  --fs-font-text: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-font-mono: 'Cascadia Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --fs-type-label: 400 12px/16px var(--fs-font-mono);  /* + uppercase, 0.06em tracking */
  --fs-type-small: 400 14px/20px var(--fs-font-text);
  --fs-type-body: 400 16px/24px var(--fs-font-text);
  --fs-type-lead: 400 20px/28px var(--fs-font-text);
  --fs-type-subtitle: 600 20px/24px var(--fs-font-display);
  --fs-type-heading: 600 14px/20px var(--fs-font-display);  /* + uppercase, 0.04em tracking */
  --fs-type-title: 600 28px/32px var(--fs-font-display);
  --fs-type-display: 600 40px/44px var(--fs-font-display);
  --fs-type-hero: 600 56px/60px var(--fs-font-display);
  --fs-type-readout: 400 28px/32px var(--fs-font-mono);
  --fs-type-readout-l: 400 40px/44px var(--fs-font-mono);
  --fs-type-code: 400 14px/20px var(--fs-font-mono);
  --fs-space-2: 2px;
  --fs-space-4: 4px;
  --fs-space-8: 8px;
  --fs-space-12: 12px;
  --fs-space-16: 16px;
  --fs-space-24: 24px;
  --fs-space-32: 32px;
  --fs-space-48: 48px;
  --fs-space-64: 64px;
  --fs-space-96: 96px;
  --fs-line-thin: 1px;
  --fs-line-thick: 2px;
  --fs-line-heavy: 4px;
  --fs-chamfer-s: 4px;
  --fs-chamfer-m: 8px;
  --fs-dur-quick: 100ms;
  --fs-dur-base: 160ms;
  --fs-dur-slow: 240ms;
  --fs-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --fs-ease-exit: cubic-bezier(0.3, 0, 1, 1);
  --fs-target-web: 24px;
  --fs-target-touch: 44px;
  --fs-target-field: 96px;
  --fs-target-glove: 128px;
  --fs-target-field-pointer: 64px;
  --fs-measure: 68ch;
  --fs-gradient: linear-gradient(90deg,#DA7C30 0%,#D07D7A 35%,#A188CB 65%,#768DF5 100%);
  --fs-hatch: repeating-linear-gradient(-45deg, var(--fs-ink-faint) 0 1px, transparent 1px 6px);
}

:root, :root[data-theme="light"] {
  --fs-canvas: #F3F4F7;
  --fs-surface: #FFFFFF;
  --fs-rule: #D6DAE4;
  --fs-rule-strong: #566079;
  --fs-ink: #0B0F1C;
  --fs-ink-muted: #566079;
  --fs-ink-faint: #98A1B8;
  --fs-action: #3350D6;
  --fs-on-action: #FFFFFF;
  --fs-focus: #3350D6;
  --fs-danger: #AC001E;
  --fs-caution: #B34F0C;
  --fs-ok: #0A6355;
  --fs-predicted: #A22488;
  --fs-danger-fill: #AC001E;
  --fs-on-danger-fill: #FFFFFF;
  --fs-caution-fill: #F5AF20;
  --fs-on-caution-fill: #0B0F1C;
  --fs-ok-fill: #0A6355;
  --fs-on-ok-fill: #FFFFFF;
  --fs-info-fill: #3350D6;
  --fs-on-info-fill: #FFFFFF;
  --fs-series-1: #0B0F1C;
  --fs-series-2: #3350D6;
  --fs-series-3: #566079;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --fs-canvas: #0B0F1C;
    --fs-surface: #141A2B;
    --fs-rule: #2A3248;
    --fs-rule-strong: #6D7790;
    --fs-ink: #F3F4F7;
    --fs-ink-muted: #98A1B8;
    --fs-ink-faint: #566079;
    --fs-action: #768DF5;
    --fs-on-action: #0B0F1C;
    --fs-focus: #768DF5;
    --fs-danger: #FB8083;
    --fs-caution: #F5AF20;
    --fs-ok: #6AD5B6;
    --fs-predicted: #ED89D2;
    --fs-danger-fill: #AC001E;
    --fs-on-danger-fill: #FFFFFF;
    --fs-caution-fill: #F5AF20;
    --fs-on-caution-fill: #0B0F1C;
    --fs-ok-fill: #0A6355;
    --fs-on-ok-fill: #FFFFFF;
    --fs-info-fill: #3350D6;
    --fs-on-info-fill: #FFFFFF;
    --fs-series-1: #F3F4F7;
    --fs-series-2: #768DF5;
    --fs-series-3: #98A1B8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --fs-canvas: #0B0F1C;
  --fs-surface: #141A2B;
  --fs-rule: #2A3248;
  --fs-rule-strong: #6D7790;
  --fs-ink: #F3F4F7;
  --fs-ink-muted: #98A1B8;
  --fs-ink-faint: #566079;
  --fs-action: #768DF5;
  --fs-on-action: #0B0F1C;
  --fs-focus: #768DF5;
  --fs-danger: #FB8083;
  --fs-caution: #F5AF20;
  --fs-ok: #6AD5B6;
  --fs-predicted: #ED89D2;
  --fs-danger-fill: #AC001E;
  --fs-on-danger-fill: #FFFFFF;
  --fs-caution-fill: #F5AF20;
  --fs-on-caution-fill: #0B0F1C;
  --fs-ok-fill: #0A6355;
  --fs-on-ok-fill: #FFFFFF;
  --fs-info-fill: #3350D6;
  --fs-on-info-fill: #FFFFFF;
  --fs-series-1: #F3F4F7;
  --fs-series-2: #768DF5;
  --fs-series-3: #98A1B8;
}
:root[data-theme="field"] {
  color-scheme: light;
  --fs-canvas: #FFFFFF;
  --fs-surface: #FFFFFF;
  --fs-rule: #98A1B8;
  --fs-rule-strong: #0B0F1C;
  --fs-ink: #0B0F1C;
  --fs-ink-muted: #2A3248;
  --fs-ink-faint: #566079;
  --fs-action: #3350D6;
  --fs-on-action: #FFFFFF;
  --fs-focus: #3350D6;
  --fs-danger: #AC001E;
  --fs-caution: #B34F0C;
  --fs-ok: #0A6355;
  --fs-predicted: #A22488;
  --fs-danger-fill: #AC001E;
  --fs-on-danger-fill: #FFFFFF;
  --fs-caution-fill: #F5AF20;
  --fs-on-caution-fill: #0B0F1C;
  --fs-ok-fill: #0A6355;
  --fs-on-ok-fill: #FFFFFF;
  --fs-info-fill: #3350D6;
  --fs-on-info-fill: #FFFFFF;
  --fs-series-1: #0B0F1C;
  --fs-series-2: #3350D6;
  --fs-series-3: #566079;
}
:root[data-theme="light"] { color-scheme: light; }

/* Print: always the light values, whatever the theme (browsers don't print page backgrounds, and dark inks fail on white). */
@media print {
  :root, :root[data-theme] {
    color-scheme: light;
    --fs-canvas: #FFFFFF;
    --fs-surface: #FFFFFF;
    --fs-rule: #D6DAE4;
    --fs-rule-strong: #566079;
    --fs-ink: #0B0F1C;
    --fs-ink-muted: #566079;
    --fs-ink-faint: #98A1B8;
    --fs-action: #3350D6;
    --fs-on-action: #FFFFFF;
    --fs-focus: #3350D6;
    --fs-danger: #AC001E;
    --fs-caution: #B34F0C;
    --fs-ok: #0A6355;
    --fs-predicted: #A22488;
    --fs-danger-fill: #AC001E;
    --fs-on-danger-fill: #FFFFFF;
    --fs-caution-fill: #F5AF20;
    --fs-on-caution-fill: #0B0F1C;
    --fs-ok-fill: #0A6355;
    --fs-on-ok-fill: #FFFFFF;
    --fs-info-fill: #3350D6;
    --fs-on-info-fill: #FFFFFF;
    --fs-series-1: #0B0F1C;
    --fs-series-2: #3350D6;
    --fs-series-3: #566079;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fs-canvas); color: var(--fs-ink);
  font: var(--fs-type-body); font-kerning: normal; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
:where(h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote, table) { margin: 0; }
:where(h1, h2, h3) { font-family: var(--fs-font-display); font-weight: 600; text-wrap: balance; }
h1 { font: var(--fs-type-title); letter-spacing: -0.005em; }
h2 { font: var(--fs-type-subtitle); }
h3 { font: var(--fs-type-heading); text-transform: uppercase; letter-spacing: 0.04em; }
p, li { max-width: var(--fs-measure); text-wrap: pretty; }
a { color: var(--fs-action); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fs-focus); outline-offset: 2px; }
::selection { background: color-mix(in oklab, var(--fs-action) 22%, transparent); }
code, kbd, samp, pre { font-family: var(--fs-font-mono); font-size: 0.875em; }
kbd { padding: 0 4px; border: 1px solid var(--fs-rule-strong); border-bottom-width: 2px; }
pre { padding: 12px 16px; border: 1px solid var(--fs-rule); background: var(--fs-surface); overflow-x: auto; line-height: 20px; }
hr { border: 0; border-top: 1px solid var(--fs-rule); margin: 24px 0; }
img, svg, video { max-width: 100%; }
.fs-num, .fs-mono { font-family: var(--fs-font-mono); font-variant-numeric: tabular-nums slashed-zero; }
.fs-muted { color: var(--fs-ink-muted); }
.fs-small { font: var(--fs-type-small); }
.fs-label { font: var(--fs-type-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--fs-ink-muted); }
.fs-lead { font: var(--fs-type-lead); color: var(--fs-ink-muted); }
.fs-label .u, .fs-table th .u, .fs-field > label .u, .fs-status .u, .fs-titleblock .k .u { text-transform: none; letter-spacing: 0; }
.fs-scroll-hint { display: none; font: var(--fs-type-small); color: var(--fs-ink-muted); }
@media (max-width: 640px) { .fs-scroll-hint { display: block; } }
.fs-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ page frame: strip, header, sheets, title block */
.fs-strip { height: 4px; background: var(--fs-gradient); }
.fs-page { max-width: 1120px; margin: 0 auto; padding: 0 16px 64px; }
@media (min-width: 720px) { .fs-page { padding-inline: 32px; } }
.fs-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--fs-rule); }
.fs-header .fs-logo { display: flex; align-items: center; height: 24px; color: inherit; }
.fs-header .fs-logo svg { height: 24px; width: auto; }
/* Under 32 px tall on a light background the lockup is one color (brand rule); the gradient lockup is for dark. */
.fs-logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .fs-logo .on-dark { display: block; } :root:not([data-theme]) .fs-logo .on-light { display: none; } }
:root[data-theme="dark"] .fs-logo .on-dark { display: block; }
:root[data-theme="dark"] .fs-logo .on-light { display: none; }
.fs-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font: 400 14px/20px var(--fs-font-mono); }
.fs-nav a { color: var(--fs-ink-muted); text-decoration: none; padding: 2px 0; min-height: 24px; }
.fs-nav a:hover, .fs-nav a[aria-current="page"] { color: var(--fs-ink); box-shadow: inset 0 -2px 0 var(--fs-ink); }

/* A sheet is one section of a page: a 2 px rule on top (the sheet edge), a rail with its number and name, then content. */
.fs-sheet { border-top: 2px solid var(--fs-ink); padding: 24px 0 48px; display: grid; gap: 16px 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .fs-sheet { grid-template-columns: 184px minmax(0, 1fr); } }
.fs-sheet-rail { display: grid; gap: 8px; align-content: start; }
.fs-sheet-no { font: var(--fs-type-label); letter-spacing: 0.06em; color: var(--fs-ink-muted); }
.fs-sheet-body { display: grid; gap: 24px; min-width: 0; }
.fs-stack { display: grid; gap: 16px; }
.fs-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fs-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.fs-split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .fs-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .fs-split > .fs-sticky { position: sticky; top: 16px; align-self: start; } }
.fs-panel { background: var(--fs-surface); border: 1px solid var(--fs-rule); padding: 16px; }

/* Title block: the footer of every page, the "about" of every app, the corner of every printout (ISO 7200 fields). */
.fs-titleblock { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); border: 2px solid var(--fs-ink);
  background: var(--fs-surface); margin-top: 48px; }
.fs-titleblock > div { padding: 6px 10px 8px; border-right: 1px solid var(--fs-rule-strong); border-bottom: 1px solid var(--fs-rule-strong);
  display: grid; gap: 2px; min-width: 0; margin: 0 -1px -1px 0; }
.fs-titleblock dt, .fs-titleblock .k { font: 400 12px/16px var(--fs-font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--fs-ink-muted); }
.fs-titleblock dd, .fs-titleblock .v { margin: 0; font: 400 14px/20px var(--fs-font-mono); overflow-wrap: anywhere; }
.fs-titleblock .wide { grid-column: span 2; }
.fs-titleblock .mark svg { height: 20px; width: auto; }

/* Designation tag: FS · SW · TOOL 002. The one chamfered corner points where the mark points (up and right, 45 degrees). */
.fs-tag { --c: var(--fs-chamfer-s); display: inline-flex; width: fit-content; white-space: nowrap; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; min-height: 24px;
  font: 400 12px/16px var(--fs-font-mono); letter-spacing: 0.04em; color: var(--fs-ink); border: 1px solid var(--fs-rule-strong);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
  background: linear-gradient(225deg, transparent calc(var(--c) * 0.7071 - 1px), var(--fs-rule-strong) 0 calc(var(--c) * 0.7071), transparent 0); }
.fs-tag[data-tone="action"] { color: var(--fs-action); border-color: currentColor;
  background: linear-gradient(225deg, transparent calc(var(--c) * 0.7071 - 1px), currentColor 0 calc(var(--c) * 0.7071), transparent 0); }

/* ------------------------------------------------------------------ controls */
.fs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  font: 600 14px/20px var(--fs-font-mono); letter-spacing: 0; text-decoration: none; cursor: pointer; white-space: nowrap;
  color: var(--fs-canvas); background: var(--fs-ink); border: 2px solid var(--fs-ink); border-radius: 0;
  transition: background-color var(--fs-dur-quick) var(--fs-ease-standard), border-color var(--fs-dur-quick) var(--fs-ease-standard); }
.fs-btn:hover { background: var(--fs-action); border-color: var(--fs-action); color: var(--fs-on-action); }
.fs-btn svg { width: 16px; height: 16px; flex: none; }
.fs-btn[data-variant="secondary"] { background: transparent; color: var(--fs-ink); }
.fs-btn[data-variant="secondary"]:hover { border-color: var(--fs-action); color: var(--fs-action); }
.fs-btn[data-variant="quiet"] { background: transparent; border-color: transparent; color: var(--fs-action); padding-inline: 4px; }
.fs-btn[data-variant="quiet"]:hover { text-decoration: underline; text-underline-offset: 4px; }
.fs-btn[data-variant="danger"] { background: var(--fs-danger-fill); border-color: var(--fs-danger-fill); color: var(--fs-on-danger-fill); }
.fs-btn[data-variant="danger"]:hover { background: var(--fs-danger-fill); border-color: var(--fs-danger-fill); color: var(--fs-on-danger-fill);
  outline: 2px solid var(--fs-ink); outline-offset: 2px; }
.fs-btn:disabled, .fs-btn[aria-disabled="true"] { cursor: not-allowed; color: var(--fs-ink-faint); background: transparent; border-color: var(--fs-rule); }
/* Pad controls: 64 px with a mouse, 96 px (about 15 mm) on a touch screen. */
.fs-btn[data-size="field"] { min-height: var(--fs-target-field-pointer); padding-inline: 24px; font-size: 16px; }
@media (pointer: coarse) { .fs-btn[data-size="field"] { min-height: var(--fs-target-field); } }

.fs-field { display: grid; gap: 6px; align-content: start; }
.fs-field > label, .fs-field > .fs-field-label { font: var(--fs-type-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--fs-ink-muted); }
.fs-input, .fs-select { width: 100%; min-height: 44px; padding: 0 12px; font: 400 16px/24px var(--fs-font-text); color: var(--fs-ink);
  background: var(--fs-surface); border: 1px solid var(--fs-rule-strong); border-radius: 0; appearance: none; }
.fs-input[inputmode="decimal"], .fs-input[inputmode="numeric"], .fs-input.fs-num { font-family: var(--fs-font-mono); font-variant-numeric: tabular-nums slashed-zero; }
.fs-select { background-image: linear-gradient(45deg, transparent 50%, var(--fs-ink) 50%), linear-gradient(135deg, var(--fs-ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.fs-input:focus-visible, .fs-select:focus-visible { outline: 2px solid var(--fs-focus); outline-offset: 0; border-color: var(--fs-focus); }
.fs-input-group { display: flex; align-items: stretch; background: var(--fs-surface); border: 1px solid var(--fs-rule-strong); }
.fs-input-group > .fs-input { border: 0; min-width: 0; flex: 1; }
.fs-input-group > .fs-input:focus-visible { outline: 0; }
.fs-input-group:focus-within { outline: 2px solid var(--fs-focus); outline-offset: 0; border-color: var(--fs-focus); }
.fs-unit { display: flex; align-items: center; padding: 0 12px; font: 400 14px/20px var(--fs-font-mono); color: var(--fs-ink-muted);
  border-left: 1px solid var(--fs-rule); white-space: nowrap; }
.fs-help { font: var(--fs-type-small); color: var(--fs-ink-muted); }
.fs-field[data-invalid] .fs-input-group, .fs-field[data-invalid] > .fs-input { border: 2px solid var(--fs-danger); }
.fs-error { display: flex; gap: 6px; align-items: flex-start; font: var(--fs-type-small); color: var(--fs-danger); }
.fs-error svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--fs-ink); width: 18px; height: 18px; margin: 0; }
.fs-check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.fs-input::placeholder { color: var(--fs-ink-muted); opacity: 1; }

/* Segmented control: one choice of a few (units, theme, flight). */
.fs-seg { display: inline-flex; border: 1px solid var(--fs-rule-strong); }
.fs-seg button { min-height: 44px; padding: 0 12px; font: 400 14px/20px var(--fs-font-mono); color: var(--fs-ink-muted); background: transparent;
  border: 0; border-left: 1px solid var(--fs-rule); cursor: pointer; }
.fs-seg button:first-child { border-left: 0; }
.fs-seg button[aria-pressed="true"], .fs-seg button[aria-selected="true"] { background: var(--fs-ink); color: var(--fs-canvas); }

.fs-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--fs-rule); overflow-x: auto; }
.fs-tabs [role="tab"] { padding: 10px 0; font: 400 14px/20px var(--fs-font-mono); color: var(--fs-ink-muted); background: none; border: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.fs-tabs [role="tab"][aria-selected="true"] { color: var(--fs-ink); border-bottom-color: var(--fs-ink); }

/* ------------------------------------------------------------------ data: readouts, tables, balloons, hatching */
.fs-readout { display: grid; gap: 4px; align-content: start; }
.fs-readout .fs-value { font: var(--fs-type-readout-l); font-variant-numeric: tabular-nums slashed-zero; display: flex; align-items: baseline; gap: 0.3em; flex-wrap: wrap; }
.fs-readout[data-size="m"] .fs-value { font: var(--fs-type-readout); }
.fs-readout .fs-value .u { font: 400 16px/24px var(--fs-font-mono); color: var(--fs-ink-muted); }
.fs-readout .fs-qual { font: var(--fs-type-small); color: var(--fs-ink-muted); }
.fs-readout[data-kind="predicted"] .fs-value > span:first-child { text-decoration: underline dashed var(--fs-predicted) 2px; text-underline-offset: 8px; }
/* Stale or unavailable: muted, with a hatched block before the value (hatching never goes behind text). */
.fs-readout[data-kind="stale"] .fs-value { color: var(--fs-ink-muted); }
.fs-readout[data-kind="stale"] .fs-value::before { content: ""; width: 10px; align-self: stretch; background-image: var(--fs-hatch); border: 1px solid var(--fs-rule-strong); }
.fs-readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); border-top: 1px solid var(--fs-rule); }
.fs-readouts > .fs-readout { padding: 12px 16px 16px 0; border-bottom: 1px solid var(--fs-rule); }

.fs-table-wrap { overflow-x: auto; }
.fs-table { width: 100%; border-collapse: collapse; font: var(--fs-type-body); }
.fs-table caption { text-align: left; caption-side: top; padding-bottom: 8px; font: var(--fs-type-small); color: var(--fs-ink-muted);
  position: sticky; left: 0; max-width: min(100%, calc(100vw - 32px)); }
.fs-table th { font: var(--fs-type-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--fs-ink-muted); text-align: left;
  padding: 8px 12px 8px 0; border-bottom: 2px solid var(--fs-ink); vertical-align: bottom; }
.fs-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--fs-rule); vertical-align: top; }
.fs-table td.fs-mono { white-space: nowrap; }
.fs-table .n { text-align: right; font-family: var(--fs-font-mono); font-variant-numeric: tabular-nums slashed-zero; white-space: nowrap; }
.fs-table th.n { font: var(--fs-type-label); }
.fs-table tbody tr:hover { background: color-mix(in oklab, var(--fs-action) 6%, transparent); }

.fs-balloon { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%;
  font: 400 12px/1 var(--fs-font-mono); flex: none; }
.fs-hatch { background-image: var(--fs-hatch); }
.fs-dim { display: flex; align-items: center; gap: 8px; font: 400 12px/16px var(--fs-font-mono); color: var(--fs-ink-muted); }
.fs-dim::before, .fs-dim::after { content: ""; flex: 1; border-top: 1px solid currentColor; }

/* ------------------------------------------------------------------ status: word + shape + color, never color alone */
.fs-status { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 8px; font: 600 12px/16px var(--fs-font-mono);
  text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid transparent; white-space: nowrap; }
.fs-status svg { width: 14px; height: 14px; flex: none; }
.fs-status[data-state="danger"]  { background: var(--fs-danger-fill);  color: var(--fs-on-danger-fill); }
.fs-status[data-state="caution"] { background: var(--fs-caution-fill); color: var(--fs-on-caution-fill); }
.fs-status[data-state="ok"]      { background: var(--fs-ok-fill);      color: var(--fs-on-ok-fill); }
.fs-status[data-state="info"]    { background: transparent; color: var(--fs-action); border-color: currentColor; }
.fs-status[data-state="off"]     { background: transparent; color: var(--fs-ink-muted); border-color: var(--fs-rule-strong); }
.fs-status[data-state="stale"]   { background: var(--fs-surface); color: var(--fs-ink-muted); border-color: var(--fs-rule-strong); padding-left: 0; }
.fs-status[data-state="stale"]::before { content: ""; width: 8px; align-self: stretch; margin: -2px 0; background-image: var(--fs-hatch); border-right: 1px solid var(--fs-rule-strong); }
.fs-status[data-state="predicted"] { background: transparent; color: var(--fs-predicted); border: 1px dashed currentColor; }
.fs-status[data-flash="warning"] svg { animation: fs-flash-warning 333ms steps(1, end) infinite; }

/* Notes follow the safety-label layout: the signal word in its own panel above the message (ANSI Z535.4). */
.fs-note { border: 1px solid var(--fs-rule-strong); background: var(--fs-surface); }
.fs-note > .fs-note-head { display: flex; align-items: center; gap: 8px; padding: 4px 12px; font: 600 12px/16px var(--fs-font-mono);
  text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--fs-rule-strong); color: var(--fs-ink-muted); }
.fs-note > .fs-note-head svg { width: 14px; height: 14px; }
.fs-note > .fs-note-body { padding: 12px; display: grid; gap: 8px; }
.fs-note[data-kind="caution"] { border-color: var(--fs-caution-fill); }
.fs-note[data-kind="caution"] > .fs-note-head { background: var(--fs-caution-fill); color: var(--fs-on-caution-fill); border-color: var(--fs-caution-fill); }
.fs-note[data-kind="warning"] { border: 2px solid var(--fs-danger-fill); }
.fs-note[data-kind="warning"] > .fs-note-head { background: var(--fs-danger-fill); color: var(--fs-on-danger-fill); border-color: var(--fs-danger-fill); }
.fs-note[data-kind="trust"] > .fs-note-head { color: var(--fs-ink); }
.fs-note[data-kind="danger"] { border: 2px solid var(--fs-danger-fill); }
.fs-note[data-kind="danger"] > .fs-note-head { background: var(--fs-danger-fill); color: var(--fs-on-danger-fill); border-color: var(--fs-danger-fill); }
.fs-note[data-kind="notice"] > .fs-note-head { background: var(--fs-info-fill); color: var(--fs-on-info-fill); border-color: var(--fs-info-fill); font-style: italic; }

/* Irreversible or energetic actions get a hazard border: 45 degree Void and Sodium bands (NASA-STD-3001, ISO 3864). */
.fs-hazard { padding: 6px; background: repeating-linear-gradient(-45deg, var(--fs-caution-fill) 0 8px, #0B0F1C 8px 16px); }
.fs-hazard > * { background: var(--fs-surface); }

.fs-progress { height: 4px; background: var(--fs-rule); overflow: hidden; }
.fs-progress > span { display: block; height: 100%; background: var(--fs-ink); width: var(--value, 0%); transition: width var(--fs-dur-base) linear; }
.fs-progress[data-indeterminate] > span { width: 30%; animation: fs-scan 1400ms linear infinite; }

.fs-toast { position: fixed; left: 16px; bottom: 16px; max-width: min(440px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; background: var(--fs-surface); border: 2px solid var(--fs-ink); font: var(--fs-type-small); z-index: 10; }
dialog.fs-dialog { max-width: min(560px, calc(100vw - 32px)); padding: 0; color: var(--fs-ink); background: var(--fs-surface); border: 2px solid var(--fs-ink); }
dialog.fs-dialog::backdrop { background: color-mix(in oklab, #0B0F1C 55%, transparent); }
dialog.fs-dialog > header { padding: 12px 16px; border-bottom: 1px solid var(--fs-rule); }
dialog.fs-dialog > div { padding: 16px; display: grid; gap: 12px; }
dialog.fs-dialog > footer { padding: 12px 16px; border-top: 1px solid var(--fs-rule); display: flex; gap: 12px; justify-content: flex-end; }

.fs-empty { display: grid; gap: 12px; justify-items: start; padding: 32px; border: 1px dashed var(--fs-rule-strong);
  background-image: repeating-linear-gradient(-45deg, var(--fs-rule) 0 1px, transparent 1px 10px); }
.fs-empty > * { background: var(--fs-canvas); padding: 2px 6px; }
.fs-icon { width: 20px; height: 20px; vertical-align: -4px; }

/* Charts drawn inline: see product/data.md. Classes the chart SVGs use, so they follow the theme. */
.fs-chart { width: 100%; height: auto; overflow: visible; font-family: var(--fs-font-mono); }
.fs-chart text { fill: var(--fs-ink-muted); font-size: 12px; }
.fs-chart .t-ink { fill: var(--fs-ink); paint-order: stroke; stroke: var(--fs-canvas); stroke-width: 4px; stroke-linejoin: round; }
.fs-chart .grid { stroke: var(--fs-rule); stroke-width: 1; }
.fs-chart .axis { stroke: var(--fs-rule-strong); stroke-width: 1; }
.fs-chart .measured { fill: none; stroke: var(--fs-ink); stroke-width: 2; stroke-linejoin: round; }
.fs-chart .series-2 { fill: none; stroke: var(--fs-series-2); stroke-width: 2; }
.fs-chart .series-3 { fill: none; stroke: var(--fs-series-3); stroke-width: 2; }
.fs-chart .predicted { fill: none; stroke: var(--fs-predicted); stroke-width: 2; stroke-dasharray: 8 4; }
.fs-chart .band { fill: var(--fs-predicted); fill-opacity: 0.10; }
.fs-chart .reference { fill: none; stroke: var(--fs-ink-muted); stroke-width: 1; stroke-dasharray: 24 3 1 3; }
.fs-chart .event { stroke: var(--fs-ink-muted); stroke-width: 1; stroke-dasharray: 1 3; }
.fs-chart .limit { stroke: var(--fs-danger); stroke-width: 2; }
.fs-chart .balloon circle { fill: var(--fs-canvas); stroke: var(--fs-ink); stroke-width: 1; }
.fs-chart .balloon text { fill: var(--fs-ink); font-size: 12px; text-anchor: middle; }
.fs-chart .hatch-fill { fill: url(#fs-hatch); }
.fs-chart .hatch-line { stroke: var(--fs-ink-faint); stroke-width: 1; }

/* ------------------------------------------------------------------ motion, contrast modes, print */
@keyframes fs-flash-warning { 50% { visibility: hidden; } }
@keyframes fs-scan { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
@media (forced-colors: active) {
  .fs-status, .fs-tag, .fs-btn, .fs-note, .fs-titleblock { border: 1px solid CanvasText; forced-color-adjust: auto; }
  .fs-strip { background: CanvasText; }
}
@media print {
  body { font-size: 11pt; line-height: 1.4; }
  .fs-nav, .fs-noprint, .fs-toast { display: none !important; }
  .fs-sheet { break-inside: avoid-page; padding-bottom: 16pt; }
  .fs-table tr, .fs-readout, .fs-note { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font: 9pt var(--fs-font-mono); color: #566079; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
