/* FreeBody calculators — one typeface, quiet chrome; colour is reserved for loads and margins. Light and dark themes:
   every colour is a token (theme block below, generated from scripts/theme/palette.json). */
/* theme:start · generated by scripts/theme/palette.py from scripts/theme/palette.json (edit the JSON, not this
   block). Light is the default; Auto follows the system (prefers-color-scheme) unless the visitor chose Light;
   data-theme="dark" on <html> is an explicit Dark choice. Exports and reports stay light (FB.LIGHT_VARS). */
:root {
  /* paper */
  --bg: #f6f6f4; --surface: #ffffff; --surface-2: #fafaf8; --raised: #ffffff; --fill-1: #f0f0ed; --fill-2: #e9e9e4;
  --line: #e5e5e1; --line-2: #d4d4cf; --grid: #efefec; --grid-0: #dcdcd7; --text: #17181a; --text-2: #55575c;
  --text-3: #67696f; --text-4: #8b8d92; --text-5: #9a9ca1; --faint: #c3c5c9; --halo: #ffffff; --on-accent: #ffffff;
  --primary: #17181a; --primary-hover: #33363b; --mark: #fdeba8;
  /* drawing */
  --ink: #2b2f36; --steel-50: #f3f4f6; --steel-100: #eef0f2; --steel-150: #e9ebee; --steel-200: #e4e7ea; --steel-250: #dfe3e7;
  --steel-300: #d5d9de; --steel-350: #c9cdd3; --steel-400: #b7bcc2; --steel-450: #aeb5bd; --steel-500: #9aa0a8; --steel-550: #8b939b;
  --steel-600: #7f878f; --steel-650: #6b737c; --steel-700: #5b6472; --steel-750: #4b525a; --steel-800: #3b4b5f; --steel-850: #3a3f46;
  /* signals */
  --load: #e0562b; --load-ink: #b8411c; --load-bg: #fbe9e2; --sel: #2563eb; --sel-ink: #1f4fb8; --sel-bg: #f3f6fe;
  --sel-bg-2: #e8eefc; --sel-line: #dfe6f7; --moment: #3b5ba5; --moment-bg: #e4e9f5; --clamp: #2c7a72; --good: #2f7d55;
  --good-bg: #e6f2eb; --good-ink: #2a7149; --warn: #b7791f; --amber: #d4962a; --warn-bg: #fbf0dc; --warn-ink: #946014;
  --bad: #cf3b2c; --bad-bg: #fbe5e2; --bad-ink: #b83225; --bad-deep: #7a2a20; --wip-bg: #fbe3a8; --wip-line: #e9c46a;
  --wip-ink: #7a4f0a; --pick-bg: #17181a; --pick-ink: #ffffff; --pick-line: #17181a; --pick-sub: #c9cbd0; --live: #2f9e5b;
  /* materials */
  --concrete: #eceae4; --soil: #f5f1e8; --soil-2: #ece6da; --sand: #eadfcb; --rock: #e7e3dc; --soil-ink: #6b5d45;
  --soil-line: #a99b7e; --soil-dot: #c9bfa8; --water: #cfe0f3; --water-line: #3b82c4; --water-ink: #255f96; --weld: #f4c98a;
  --steel-blue: #e9eef4; --heat: #c8553d;
  /* hues */
  --blue: #3b6fb0; --blue-2: #2f6fb2; --blue-3: #2c5590; --blue-4: #2f5fd0; --blue-5: #9db3e0; --purple: #7a4fb5;
  --violet: #6d5a8f; --teal: #0f766e; --brown: #a05a2c; --ochre: #8a6a3c; --orange: #c4622d; --rust: #c2410c;
  --olive: #22603f; --slate: #6b7280;
  /* semantic */
  --part: var(--steel-100); --part-2: var(--steel-150); --part-3: var(--steel-200); --section: var(--steel-250); --outline: var(--steel-700);
  --dim: var(--steel-550); --hatch: var(--steel-400); --centre: var(--steel-500); --steel: var(--steel-100); --chart-1: var(--sel);
  --chart-2: var(--load); --chart-3: var(--good); --chart-4: var(--moment); --chart-5: var(--purple); --chart-6: var(--teal);
  --chart-7: var(--brown); --chart-ok: var(--good-bg);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .08);
  --shadow-pop: 0 12px 32px rgba(20, 22, 28, .14);
  --shadow-card: 0 4px 14px rgba(0, 0, 0, .06);
  --shadow-dialog: 0 20px 60px rgba(0, 0, 0, .18);
  --scrim: rgba(20, 22, 26, .28);
  color-scheme: light;
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1917; --surface: #22211e; --surface-2: #262522; --raised: #2a2926; --fill-1: #2e2d2a; --fill-2: #363531;
    --line: #383733; --line-2: #4b4945; --grid: #2e2d2a; --grid-0: #45433f; --text: #ebe8e2; --text-2: #bdb9b1;
    --text-3: #a29e95; --text-4: #6e6c69; --text-5: #63615d; --faint: #464441; --halo: #22211e; --on-accent: #161513;
    --primary: #e4e0d8; --primary-hover: #f2efe9; --mark: #5c4a17; --ink: #d9d4ca; --steel-50: #25282b; --steel-100: #272a2e;
    --steel-150: #2a2d32; --steel-200: #2c3034; --steel-250: #2e3238; --steel-300: #34383f; --steel-350: #3b4047; --steel-400: #464c53;
    --steel-450: #4a515a; --steel-500: #596069; --steel-550: #626a73; --steel-600: #6b737d; --steel-650: #7a838e; --steel-700: #8e98a7;
    --steel-750: #969faa; --steel-800: #98a7ba; --steel-850: #a9b0ba; --load: #ee8b5b; --load-ink: #f19c72; --load-bg: #3a2820;
    --sel: #7fa3eb; --sel-ink: #97b5f0; --sel-bg: #252b38; --sel-bg-2: #2c3549; --sel-line: #3a4560; --moment: #8fa5dd;
    --moment-bg: #293043; --clamp: #6eb5ae; --good: #72b98f; --good-bg: #20302a; --good-ink: #88c9a2; --warn: #d9a85e;
    --amber: #e2b46c; --warn-bg: #342b1c; --warn-ink: #e6bd79; --bad: #e77b72; --bad-bg: #3a2422; --bad-ink: #f0958d;
    --bad-deep: #f4b0a6; --wip-bg: #47391a; --wip-line: #8c7238; --wip-ink: #e9c27a; --pick-bg: #2c3549; --pick-ink: #dbe6fb;
    --pick-line: #7fa3eb; --pick-sub: #a8bde6; --live: #6fc391; --concrete: #2f2d2a; --soil: #2b2923; --soil-2: #332f27;
    --sand: #393225; --rock: #33312d; --soil-ink: #9d917c; --soil-line: #716650; --soil-dot: #4f4837; --water: #2b3642;
    --water-line: #7fb8f1; --water-ink: #77a6d7; --weld: #6d4e1d; --steel-blue: #282b31; --heat: #f7947e; --blue: #81ade6;
    --blue-2: #7aaee9; --blue-3: #7ca0d5; --blue-4: #7ca6fd; --blue-5: #91a2c7; --purple: #b695ed; --violet: #ac9ccc;
    --teal: #71b5ad; --brown: #d99b76; --ochre: #bb9f79; --orange: #f19c73; --rust: #f58d6c; --olive: #79ab8c;
    --slate: #7c828e;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-pop: 0 14px 36px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .03);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, .35);
    --shadow-dialog: 0 24px 70px rgba(0, 0, 0, .6);
    --scrim: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --bg: #1a1917; --surface: #22211e; --surface-2: #262522; --raised: #2a2926; --fill-1: #2e2d2a; --fill-2: #363531;
    --line: #383733; --line-2: #4b4945; --grid: #2e2d2a; --grid-0: #45433f; --text: #ebe8e2; --text-2: #bdb9b1;
    --text-3: #a29e95; --text-4: #6e6c69; --text-5: #63615d; --faint: #464441; --halo: #22211e; --on-accent: #161513;
    --primary: #e4e0d8; --primary-hover: #f2efe9; --mark: #5c4a17; --ink: #d9d4ca; --steel-50: #25282b; --steel-100: #272a2e;
    --steel-150: #2a2d32; --steel-200: #2c3034; --steel-250: #2e3238; --steel-300: #34383f; --steel-350: #3b4047; --steel-400: #464c53;
    --steel-450: #4a515a; --steel-500: #596069; --steel-550: #626a73; --steel-600: #6b737d; --steel-650: #7a838e; --steel-700: #8e98a7;
    --steel-750: #969faa; --steel-800: #98a7ba; --steel-850: #a9b0ba; --load: #ee8b5b; --load-ink: #f19c72; --load-bg: #3a2820;
    --sel: #7fa3eb; --sel-ink: #97b5f0; --sel-bg: #252b38; --sel-bg-2: #2c3549; --sel-line: #3a4560; --moment: #8fa5dd;
    --moment-bg: #293043; --clamp: #6eb5ae; --good: #72b98f; --good-bg: #20302a; --good-ink: #88c9a2; --warn: #d9a85e;
    --amber: #e2b46c; --warn-bg: #342b1c; --warn-ink: #e6bd79; --bad: #e77b72; --bad-bg: #3a2422; --bad-ink: #f0958d;
    --bad-deep: #f4b0a6; --wip-bg: #47391a; --wip-line: #8c7238; --wip-ink: #e9c27a; --pick-bg: #2c3549; --pick-ink: #dbe6fb;
    --pick-line: #7fa3eb; --pick-sub: #a8bde6; --live: #6fc391; --concrete: #2f2d2a; --soil: #2b2923; --soil-2: #332f27;
    --sand: #393225; --rock: #33312d; --soil-ink: #9d917c; --soil-line: #716650; --soil-dot: #4f4837; --water: #2b3642;
    --water-line: #7fb8f1; --water-ink: #77a6d7; --weld: #6d4e1d; --steel-blue: #282b31; --heat: #f7947e; --blue: #81ade6;
    --blue-2: #7aaee9; --blue-3: #7ca0d5; --blue-4: #7ca6fd; --blue-5: #91a2c7; --purple: #b695ed; --violet: #ac9ccc;
    --teal: #71b5ad; --brown: #d99b76; --ochre: #bb9f79; --orange: #f19c73; --rust: #f58d6c; --olive: #79ab8c;
    --slate: #7c828e;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-pop: 0 14px 36px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .03);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, .35);
    --shadow-dialog: 0 24px 70px rgba(0, 0, 0, .6);
    --scrim: rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
/* theme:end */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page-max: 1380px;       /* one page width for every calculator (library pages and the hub set their own) */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.45 var(--font); font-feature-settings: "tnum", "cv11"; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- header ---------- */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; }
.title { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.title a { color: var(--text-3); text-decoration: none; font-weight: 400; }
.title a:hover { color: var(--text); }
.title .sep { color: var(--line-2); }
.title h1 { font: inherit; margin: 0; letter-spacing: inherit; }   /* the page name in the breadcrumb is the page's h1 */

main { max-width: var(--page-max); margin: 0 auto; padding: 0 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }

/* ---------- segmented controls ---------- */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill-1); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); font-weight: 500; }
.seg.small button { padding: 4px 10px; font-size: 12.5px; }
.seg.full { display: grid; width: 100%; grid-auto-columns: minmax(0, 1fr); }

/* ---------- workspace ---------- */
.work { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: stretch; }
.stage { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.hint { color: var(--text-3); font-size: 12.5px; text-align: right; }
#view { display: block; width: 100%; height: auto; flex: 1; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
#view.orbit { cursor: grab; }
#view.dragging, #view.dragging * { cursor: grabbing !important; }
.stage-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.legend-heat { display: flex; align-items: center; gap: 10px; }
.legend-heat .scale { display: grid; gap: 2px; }
.legend-heat .bar-scale { width: 180px; height: 8px; border-radius: 4px; }
.legend-heat .ticks { position: relative; width: 180px; height: 13px; font-size: 10.5px; color: var(--text-3); }
.legend-heat .ticks span { position: absolute; transform: translateX(-50%); top: 0; white-space: nowrap; }
.legend-dots { display: flex; gap: 14px; }
.legend-types { display: flex; gap: 14px; }
.legend-types span { display: inline-flex; align-items: center; gap: 5px; }
.legend-types svg { flex: none; }
.legend-dots span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- panel ---------- */
.panel { display: flex; flex-direction: column; min-height: 0; contain: size; }   /* takes the stage's height and scrolls inside */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); padding: 0 8px; }
.tabs button { border: 0; background: none; padding: 12px 4px 10px; cursor: pointer; color: var(--text-3); font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.panel-body { overflow: auto; padding: 4px 16px 16px; scrollbar-width: thin; }
.grp { padding: 14px 0 6px; }
.grp + .grp { border-top: 1px solid var(--line); }
.grp-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.grp-h h3 { margin: 0; font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.grp-h .aside { font-size: 12px; color: var(--text-3); }
.f { display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: center; gap: 10px; padding: 3px 0; }
.f > label { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: baseline; color: var(--text-2); font-size: 13px; min-width: 0; }
.f > label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f > label i { font-style: normal; color: var(--text-3); white-space: nowrap; }
.f > label i sub { font-size: .72em; vertical-align: -.25em; line-height: 0; }
.f.sel { grid-template-columns: 120px minmax(0, 1fr); }
.num { position: relative; }
.num input, .cell input {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 7px;
  padding: 6px 9px; font-size: 13px; text-align: right; outline: none; transition: border-color .1s;
}
.num input { padding-right: calc(10px + var(--u, 0px)); }
.num .u { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 11.5px; color: var(--text-3); pointer-events: none; }
input:hover, select:hover { border-color: var(--line-2); }
input:focus, select:focus { border-color: var(--text-2); }
select { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 6px 8px; font-size: 13px; outline: none; }
.f.wide { grid-template-columns: 1fr; }
.readout { text-align: right; font-size: 13px; font-weight: 500; padding-right: 9px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); padding: 6px 0; cursor: pointer; }
.check input { accent-color: var(--text); width: 15px; height: 15px; }
.btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 7px; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--text); }
.btn:hover { border-color: var(--text-2); }
.btn.block { width: 100%; margin-top: 8px; }
.ghost { border: 0; background: none; color: var(--text-2); cursor: pointer; font-size: 13px; padding: 4px 8px; border-radius: 6px; }
.ghost:hover { background: var(--fill-1); color: var(--text); }
.x { border: 0; background: none; color: var(--text-3); cursor: pointer; width: 26px; height: 26px; border-radius: 6px; font-size: 15px; line-height: 1; }
.x:hover { background: var(--bad-bg); color: var(--bad); }
.small-note { font-size: 12px; color: var(--text-3); margin: 6px 0 0; }

/* coordinate tables in the panel */
.ctable { width: 100%; border-collapse: collapse; }
.ctable th { font-size: 11.5px; font-weight: 500; color: var(--text-3); text-align: right; padding: 0 2px 4px; }
.ctable th:first-child { text-align: left; }
.ctable td { padding: 2px; }
.ctable td.id { font-size: 12.5px; color: var(--text-2); width: 28px; cursor: pointer; }
.ctable tr.sel td.id { color: var(--sel); font-weight: 600; }
.ctable .cell input { padding: 5px 7px; }
.ctable td:last-child { width: 28px; text-align: right; }

.load { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.load-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.load-h b { font-weight: 600; font-size: 13px; color: var(--load); }
.load-h span { font-size: 12px; color: var(--text-3); margin-left: 8px; }
.trip { display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); gap: 4px; align-items: center; }
.trip .lab { font-size: 12px; color: var(--text-3); }
.trip .hd { font-size: 11px; color: var(--text-3); text-align: center; }

/* ---------- summary ---------- */
.summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: stretch; }
.verdict { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; min-width: 240px; }
.verdict .k { font-size: 12px; color: var(--text-3); }
.verdict .v { font-size: 28px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.verdict .s { font-size: 13px; color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 14px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .k { font-size: 12px; color: var(--text-3); }
.stat .v { font-size: 15px; font-weight: 500; margin-top: 2px; }
.stat .s { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.warns { grid-column: 1 / -1; margin: 0; padding: 10px 16px; list-style: none; font-size: 13px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 10px; }
.warns li + li { margin-top: 2px; }
.warns .fix { margin-left: 8px; border: 1px solid currentColor; background: var(--surface); color: var(--warn-ink); border-radius: 7px; padding: 2px 10px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.warns .fix:hover { background: var(--warn); color: var(--on-accent); }

/* ---------- blocks ---------- */
.block { padding: 16px 20px 18px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
.note { font-size: 12.5px; color: var(--text-3); }

.table-wrap { overflow-x: auto; margin: 0 -8px; }
table.margins { width: 100%; border-collapse: collapse; font-size: 13px; }
.margins th { font-weight: 500; font-size: 12px; color: var(--text-3); text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); }
/* headers may wrap ("Axial F_A" over "[kN]") so a wide table fits its card instead of scrolling; a table that fits keeps one line */
.margins th.l, .margins td.l { text-align: left; }
.margins th.gs, .margins td.gs { border-left: 1px solid var(--line); }
.margins td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--fill-1); white-space: nowrap; }
.margins tbody tr { cursor: pointer; }
.margins tbody tr:hover { background: var(--surface-2); }
/* margins-ui.js lockCols: while the pointer or focus is in a margins table its measured column widths are reserved */
table:has(> colgroup[data-mui-lock]) { table-layout: fixed; width: var(--mui-w, 100%); }
.margins tbody tr.sel { background: var(--sel-bg); }
.margins tbody tr.sel td.l { color: var(--sel); }   /* colour and background only: a weight change would re-measure the table */
.ms { display: inline-block; min-width: 62px; padding: 2px 8px; border-radius: 999px; font-weight: 500; font-size: 12.5px; text-align: center; }
.ms.good { color: var(--good-ink); background: var(--good-bg); }
.ms.warn { color: var(--warn-ink); background: var(--warn-bg); }
.ms.bad { color: var(--bad-ink); background: var(--bad-bg); }
.ms.none { color: var(--text-3); }
.ms.min { box-shadow: inset 0 0 0 1.5px currentColor; }
.muted { color: var(--text-3); }

/* ---------- detail figures ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fig { padding: 12px 14px 10px; display: flex; flex-direction: column; }
.fig-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fig-head h2 { font-size: 14px; }
.fig-head span { font-size: 12px; color: var(--text-3); }
.fig svg { width: 100%; height: auto; display: block; margin-top: 4px; }
.cap { font-size: 12px; color: var(--text-2); margin: 4px 0 0; line-height: 1.45; }
.cap b { font-weight: 600; color: var(--text); }


/* ---------- svg drawing language ---------- */
svg { font-family: var(--font); font-size: 12px; }
svg text { fill: var(--text-2); }
.halo { paint-order: stroke; stroke: var(--halo); stroke-width: 3.5px; stroke-linejoin: round; }
.ln { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.ln-thin { stroke: var(--ink); stroke-width: .7; fill: none; }
.ln-cl { stroke: var(--text-3); stroke-width: .6; stroke-dasharray: 10 3 2 3; fill: none; }
.ln-dim { stroke: var(--text-3); stroke-width: .7; fill: none; }
.t-dim { fill: var(--text-2); font-size: 11px; }
.grid { stroke: var(--grid); stroke-width: 1; }
.grid-0 { stroke: var(--grid-0); stroke-width: 1; }
.handle { cursor: grab; }
.handle .hit { fill: transparent; }
.handle:hover .knob { stroke-width: 2.6; }
.bolt { cursor: grab; }

/* ---------- calculation steps ---------- */
details.step { border-top: 1px solid var(--line); }
details.step:first-child { border-top: 0; }
details.step > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 14px; gap: 10px; align-items: center; padding: 11px 0; }
details.step > summary::-webkit-details-marker { display: none; }
.step .n { font-size: 12px; color: var(--text-3); }
.step .t { font-weight: 500; }
.step .t small { font-weight: 400; color: var(--text-3); margin-left: 8px; font-size: 12.5px; }
.step .chev { color: var(--text-3); font-size: 11px; transition: transform .15s; }
details.step[open] .chev { transform: rotate(90deg); }
.step .body { padding: 0 0 14px 32px; }
.step .why { color: var(--text-2); max-width: 72ch; margin: 0 0 6px; }
.step .eq { margin: 8px 0; overflow-x: auto; overflow-y: hidden; }
.step .eq .katex-display { margin: 6px 0; text-align: left; }
.step .eq .katex-display > .katex { text-align: left; }
/* long display formulas wrap at their relations and operators (KaTeX splits the line there) instead of scrolling;
   a part that still does not fit is scaled down by ui.js (fitMath), so a formula never scrolls inside its box */
.katex-display > .katex, .katex-display > .katex > .katex-html { white-space: normal; }
.katex-display > .katex > .katex-html > .base { margin: 2px 0; }
.katex-display > .katex > .katex-html > .tag { position: static; margin-left: .6em; }
.km-wrap .katex, .km-wrap .katex-html, .km-wrap .base { white-space: normal; }
.eq > .katex { white-space: normal; }
.step .eq.raw { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; white-space: pre-wrap; }
.step .src { font-size: 12px; color: var(--text-3); margin: 8px 0 0; }
.step .src a { color: var(--text-2); }

.refs details > summary { list-style: none; cursor: pointer; }
.refs details > summary::-webkit-details-marker { display: none; }
.refs details > summary h2::after { content: "  +"; color: var(--text-3); font-weight: 400; }
.refs details[open] > summary h2::after { content: "  −"; }
.refs-body { color: var(--text-2); font-size: 13px; }
.refs-body h3 { font-size: 13px; font-weight: 600; color: var(--text); margin: 16px 0 6px; }
.refs-body ul, .refs-body ol { margin: 0; padding-left: 20px; }
.refs-body li { margin: 4px 0; }
.sources li:target { background: var(--warn-bg); }

@media (max-width: 1040px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .panel { contain: none; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .summary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .bar, main { padding-left: 16px; padding-right: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .hint { display: none; }
  .step .body { padding-left: 0; }
  .block { padding: 14px; }
}

.bar-right { display: flex; align-items: center; gap: 16px; }
/* phones: the header wraps instead of pushing controls off-screen (tool sheets may refine this) */
@media (max-width: 640px) { .bar { flex-wrap: wrap; row-gap: 8px; } .bar-right { flex-wrap: wrap; row-gap: 8px; min-width: 0; max-width: 100%; } }
.export { display: flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--text-3); }
.export span { margin-right: 4px; }
/* plain-text input */
.say { margin-bottom: 18px; }
.say-row { display: flex; gap: 8px; }
.say-row input { flex: 1; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; font-size: 14px; outline: none; background: var(--surface); }
.say-row input:focus { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 6%, transparent); }
.say-row .btn { padding: 0 16px; }
.say-preview { min-height: 20px; font-size: 13px; color: var(--text-2); padding: 6px 4px 0; display: grid; gap: 2px; }
.say-preview b { font-weight: 600; }
.say-f { color: var(--load); } .say-m { color: var(--moment); } .say-b { color: var(--text); }
.say-err { color: var(--warn); } .say-ok { color: var(--good); }
.say-examples { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.chip:hover { border-color: var(--line-2); color: var(--text); }

/* spreadsheets */
.sheets { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 28px; align-items: start; }
table.sheet { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; border: 1px solid var(--line); border-radius: 8px; }
.sheet col.rn { width: 36px; } .sheet col.del { width: 30px; } .sheet col.msc { width: 30%; } .sheet col.tcol { width: 22%; }
.sheet col.kind { width: 84px; } .sheet col.lname { width: 16%; } .sheet col.mag { width: 11%; } .sheet col.dir { width: 34px; }
.sheet col.pre { width: 26%; } .sheet col.cnt { width: 54px; }
.sheet th { font-weight: 500; font-size: 12px; color: var(--text-2); text-align: right; padding: 7px 8px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet th span { color: var(--text-3); font-weight: 400; margin-left: 2px; }
.sheet thead tr.groups th { text-align: center; font-size: 11.5px; color: var(--text-3); padding: 5px 8px 0; border-bottom: 0; }
.sheet th.l, .sheet td.l { text-align: left; }
.sheet th.rn, .sheet td.rn { text-align: left; color: var(--text-3); font-size: 12px; padding: 0 8px; }
.sheet td.rn { cursor: pointer; }
.sheet .gs { border-left: 1px solid var(--line); }
.sheet td { padding: 0; height: 32px; border-bottom: 1px solid var(--grid); border-left: 1px solid var(--fill-1); font-variant-numeric: tabular-nums; }
.sheet td:first-child { border-left: 0; }
.sheet tbody tr:last-child td { border-bottom: 0; }
.sheet td.l { padding: 0 6px; }
.sheet td.na { color: var(--text-3); font-size: 12px; text-align: center; font-style: italic; }
.sheet td.mag { text-align: right; padding: 0 8px; color: var(--text); font-weight: 500; }
.sheet td.dir { text-align: center; padding: 0; }
.sheet td.dir svg { vertical-align: middle; }
.sheet td.pre, .sheet td.cnt { text-align: right; padding: 0 8px; color: var(--text-2); font-size: 12.5px; }
.sheet input { width: 100%; height: 31px; border: 0; background: transparent; padding: 0 8px; text-align: right; font-size: 13px; outline: none; border-radius: 0; font-variant-numeric: tabular-nums; }
.sheet input:hover { background: var(--surface-2); }
.sheet input:focus { background: var(--surface); box-shadow: inset 0 0 0 2px var(--sel); position: relative; }
.sheet input.name { text-align: left; font-weight: 500; color: var(--text); padding-left: 4px; }
.sheet input.name::placeholder { color: var(--text); font-weight: 500; opacity: .55; }
.sheet tr.sel td { background: var(--sel-bg); }
.sheet tr.sel td.rn { color: var(--sel); font-weight: 600; }
.sheet tr.ghost td { background: var(--surface-2); }
.sheet tr.ghost input::placeholder { color: var(--faint); } .sheet tr.ghost td.rn { color: var(--text-3); }
.sheet .x { opacity: 0; }
.sheet tr:hover .x, .sheet .x:focus { opacity: 1; }
.sheet select.tsel { border: 0; background: transparent; padding: 4px 0; font-size: 12.5px; width: 100%; }
select.tpill { border: 0; border-radius: 999px; padding: 3px 6px 3px 9px; font-size: 12px; font-weight: 500; width: 100%; max-width: 120px;
  color: var(--tc); background: color-mix(in srgb, var(--tc) 11%, var(--surface)); }
.tchip { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11.5px; color: var(--on-accent); background: var(--tc); }
.msbar { position: relative; height: 22px; margin: 0 8px; border-radius: 6px; background: var(--fill-1); overflow: hidden; display: flex; align-items: center; justify-content: flex-end; }
.msbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; opacity: .22; }
.msbar span { position: relative; padding: 0 8px; font-size: 12px; font-weight: 600; }
.msbar.good i { background: var(--good); } .msbar.good span { color: var(--good-ink); }
.msbar.warn i { background: var(--warn); } .msbar.warn span { color: var(--warn-ink); }
.msbar.bad i { background: var(--bad); opacity: .3; } .msbar.bad span { color: var(--bad-ink); }
.msbar.none span { color: var(--text-3); }
button.kind { width: auto; max-width: 74px; border: 0; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 500; cursor: pointer; }
button.kind.f { color: var(--load-ink); background: var(--load-bg); }   /* the load orange, darkened for text on its tint (AA) */
button.kind.m { color: var(--moment); background: var(--moment-bg); }
.sheet-actions { display: flex; gap: 6px; margin-top: 6px; }
.paste-note { font-size: 12.5px; color: var(--good); min-height: 18px; margin: 6px 0 0; opacity: 0; transition: opacity .2s; }
.paste-note.on { opacity: 1; }
.sheet-hint { margin: 6px 0 0; max-width: 110ch; }

/* recommend */
.btn.primary { background: var(--text); color: var(--on-accent); border-color: var(--text); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.small { padding: 4px 10px; font-size: 12.5px; white-space: nowrap; }
.stage-bar .hint { flex: 1; }
dialog#rec { border: 0; border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 32px)); box-shadow: var(--shadow-dialog); color: var(--text); background: var(--raised); }
dialog#rec::backdrop { background: var(--scrim); }
.rec-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px; }
.rec-body { padding: 4px 20px 18px; display: grid; gap: 10px; }
.rec-body p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.rec-card { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.rec-info { display: grid; gap: 2px; font-size: 13px; color: var(--text-2); }
.rec-info .k { font-size: 11.5px; color: var(--text-3); }
.rec-info > b { font-size: 15px; color: var(--text); font-weight: 600; }
.rec-sub { font-size: 13px; font-weight: 600; margin: 10px 0 0; }
.rec-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rec-table th { text-align: left; font-weight: 500; color: var(--text-3); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.rec-table td { padding: 5px 6px; border-bottom: 1px solid var(--fill-1); white-space: nowrap; }
.rec-table td:last-child { text-align: right; }
dialog#rec { max-height: calc(100vh - 40px); }
.rec-body { max-height: calc(100vh - 120px); overflow: auto; }
.rec-card.no { grid-template-columns: 90px minmax(0, 1fr); opacity: .75; }
.rec-fail { background: var(--bad-bg); color: var(--bad-deep); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.rec-fail b { color: var(--bad); }
.rec-progress { display: grid; gap: 8px; font-size: 13px; color: var(--text-2); padding: 8px 0; }
.rec-progress .bar { height: 6px; background: var(--fill-1); border-radius: 3px; overflow: hidden; }
.rec-progress .bar i { display: block; height: 100%; background: var(--text); transition: width .1s; }
/* recommended-bolts list (rec-list.js): the dialog sizes to the list; text blocks wrap to it instead of widening it */
dialog#rec.rec-fit { overflow: visible; width: fit-content; min-width: min(520px, calc(100vw - 32px)); max-width: min(720px, calc(100vw - 32px)); }
dialog#rec.rec-fit .rec-body { padding-top: 0; scroll-padding-top: 34px; }
dialog#rec.rec-fit .rec-body.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 32px), transparent); mask-image: linear-gradient(#000 calc(100% - 32px), transparent); }
dialog#rec.rec-fit .rec-head { padding-bottom: 4px; }
.rec-intro, .rec-note, dialog#rec.rec-fit .rec-fail, dialog#rec.rec-fit .rec-progress { contain: inline-size; }
.rec-body p.rec-intro { margin: 0 0 2px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.rec-body p.rec-note { margin: 2px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.45; }
.rec-list { display: grid; grid-template-columns: auto auto auto auto minmax(max-content, 1fr); column-gap: 18px; font-size: 13px; margin: 0 -8px; }
/* 2D (thumbnails): tags sit under the bolt so the width goes to layout and torque */
.rec-list.thumbs { grid-template-columns: auto min-content auto auto auto minmax(max-content, 1fr); }
.rec-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: 7px 8px; border-bottom: 1px solid var(--fill-1); outline: none; }
.rec-row.top, .rec-row[data-key]:focus { border-radius: 8px; }
.rec-list .nw, .c-bolt > b { white-space: nowrap; }
.rec-meta { display: contents; }
.rec-hd { position: sticky; top: 0; z-index: 1; background: var(--surface); border-radius: 0; padding-top: 8px; padding-bottom: 6px; border-bottom-color: var(--line); color: var(--text-3); font-size: 12px; font-weight: 500; }
.rec-row.top { background: var(--bg); border-bottom-color: transparent; margin-bottom: 2px; }
.rec-row[data-key] { cursor: default; }
.rec-row[data-key]:hover { background: var(--x-f4f4f1, #f4f4f1); }
.rec-row[data-key]:focus { background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--line-2); }
.rec-row.no { color: var(--text-2); }
.c-bolt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.c-bolt > b { font-weight: 600; color: var(--text); white-space: nowrap; }
.rec-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rec-tag { font-style: normal; font-size: 11px; font-weight: 500; line-height: 18px; padding: 0 8px; border-radius: 999px; background: var(--fill-2); color: var(--text-2); white-space: nowrap; }
.c-tq small, .c-ms small { font-size: 12px; color: var(--text-3); }
.rec-list .c-tq small { display: block; line-height: 1.3; }   /* "+ washers" sits under its torque */
.rec-list.thumbs { column-gap: 14px; }
.c-tq, .c-ms { font-variant-numeric: tabular-nums; }
.c-ms > b { font-weight: 600; }
.c-thumb svg { display: block; width: 36px; height: 36px; }
.c-act { justify-self: end; }
.rec-apply { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--sel); padding: 4px 10px; margin: -4px -6px -4px 0; border-radius: 6px; cursor: pointer; }
.rec-apply:hover { background: var(--sel-bg-2); }
.rec-apply:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--line-2); }
@media (max-width: 600px) {
  .rec-list { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; margin: 0 -6px; }
  .rec-list.thumbs { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rec-hd { display: none; }
  .rec-row { padding: 8px 6px; row-gap: 2px; }
  .rec-row > .c-thumb { grid-row: 1 / span 2; }
  .rec-row > .c-act { grid-column: -2; grid-row: 1 / span 2; }
  .rec-list .c-tq small { display: inline; }
  .rec-meta { display: flex; flex-wrap: wrap; gap: 0 10px; grid-column: -3 / -2; font-size: 12px; color: var(--text-2); }
  .rec-list:not(.thumbs) .rec-meta { grid-column: 1; }
  .rec-list.thumbs .rec-meta { grid-column: 2; }
  dialog#rec.rec-fit .rec-body { scroll-padding-top: 0; }
}

/* sponsor: one quiet native card */
.sponsor[hidden] { display: none; }
.sp { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .15s; }
.sp:hover { border-color: var(--line-2); }
.sp-logo img, .sp-mono { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; object-fit: cover; }
.sp-mono { background: var(--fill-1); font-weight: 600; color: var(--text-2); }
.sp-body { display: grid; gap: 1px; min-width: 0; }
.sp-k { font-size: 11px; color: var(--text-3); letter-spacing: .02em; }
.sp-h { font-weight: 600; font-size: 14px; }
.sp-t { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-cta { font-size: 13px; font-weight: 500; color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; white-space: nowrap; }
.sp:hover .sp-cta { border-color: var(--text-2); }
/* third-party ad units, restyled to the same quiet card */
.sp-ext { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.sp-ext [data-ea-publisher] .ea-placement, .sp-ext [data-ea-publisher] .ea-content { background: transparent !important; box-shadow: none !important; border: 0 !important; margin: 0 !important; max-width: none !important; }
.sp-ext [data-ea-publisher] .ea-content { display: flex !important; align-items: center; gap: 14px; font: 400 13px/1.45 var(--font) !important; color: var(--text-2) !important; }
.sp-ext [data-ea-publisher] .ea-content a { color: var(--text) !important; }
.sp-ext [data-ea-publisher] .ea-content strong { color: var(--text) !important; font-weight: 600; }
.sp-ext [data-ea-publisher] .ea-callout a { color: var(--text-3) !important; font-size: 11px !important; }
.sp-ext [data-ea-publisher] img { border-radius: 8px; }
.sp-carbon #carbonads { display: flex; font: 400 13px/1.45 var(--font); color: var(--text-2); max-width: none; }
.sp-carbon #carbonads a { color: var(--text); text-decoration: none; }
.sp-carbon #carbonads .carbon-wrap { display: flex; gap: 14px; align-items: center; }
.sp-carbon #carbonads .carbon-img img { border-radius: 8px; display: block; }
.sp-carbon #carbonads .carbon-poweredby { color: var(--text-3); font-size: 11px; margin-left: auto; align-self: flex-end; }
@media (max-width: 560px) { .sp { grid-template-columns: 40px minmax(0, 1fr); } .sp-cta { grid-column: 1 / -1; justify-self: start; } .sp-t { white-space: normal; } }
@media (max-width: 1040px) { .sheets { grid-template-columns: minmax(0, 1fr); } }
.sheet.types col.tsz { width: 116px; } .sheet.types col.pre { width: 84px; }
/* phones: a sheet marked .cards becomes one card per row (no sideways scroll, no squeezed columns). Cells stay on the
   first line; .k2 cells go to a second line (.l2) and .k3 cells to a third (.l3); data-h labels a cell, data-u adds a unit */
@media (max-width: 760px) {
  .sheet.cards, .sheet.cards tbody { display: block; width: 100%; min-width: 0; border: 0; }
  .sheet.cards colgroup, .sheet.cards thead { display: none; }
  .sheet.cards tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 8px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .sheet.cards.l2 tr::before, .sheet.cards.l3 tr::before, .sheet.cards.l3 tr::after { content: ""; flex-basis: 100%; height: 0; order: 2; }
  .sheet.cards.l3 tr::after { order: 4; }
  .sheet.cards td { display: flex; align-items: center; gap: 4px; height: auto; padding: 0; border: 0; background: none; order: 1; min-width: 0; white-space: nowrap; }
  .sheet.cards td.k2 { order: 3; } .sheet.cards td.k3 { order: 5; }
  .sheet.cards td.fill { flex: 1 1 0; }
  .sheet.cards td.rn { padding: 0; min-width: 16px; }
  .sheet.cards td.del { margin-left: auto; }
  .sheet.cards td:empty { display: none; }
  .sheet.cards td[data-h]::before { content: attr(data-h); font-size: 11.5px; color: var(--text-3); }
  .sheet.cards td[data-u]::after { content: attr(data-u); font-size: 11.5px; color: var(--text-3); margin-left: 3px; }
  .sheet.cards td input { flex: 1 1 auto; width: 64px; min-width: 64px; height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
  .sheet.cards td input.name { border-color: transparent; padding-left: 4px; }
  .sheet.cards td.na, .sheet.cards td.pre, .sheet.cards td.cnt, .sheet.cards td.mag { padding: 0; text-align: left; }
  .sheet.cards td.msc > * { flex: 1; }
  .sheet.cards tr.sel { background: var(--sel-bg); border-color: var(--sel-line); }
  .sheet.cards tr.sel td { background: none; }
  .sheet.cards tr.ghost { background: var(--surface-2); border-style: dashed; }
  .sheet.cards .x { opacity: .55; }
}
/* phones: a margins table marked .cards becomes one card per row. td.c-head is the card's title line, td.c-ms cells (a
   margin) sit two per line with their data-h name on the left, other cells flow on one line; data-h labels a cell, data-u
   adds a unit, and a span.c-lab (hidden on wider screens) is a label with markup such as subscripts */
table.margins .c-lab { display: none; }
@media (max-width: 760px) {
  table.margins.cards, table.margins.cards tbody { display: block; width: 100%; }
  table.margins.cards thead, table.margins.cards colgroup { display: none; }
  table.margins.cards tr { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 14px; padding: 8px 10px; margin: 0 8px 6px; border: 1px solid var(--line); border-radius: 8px; }
  table.margins.cards td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; }
  table.margins.cards td:empty, table.margins.cards td.c-hide { display: none; }
  table.margins.cards tbody tr td { background: none; }   /* a selected row tints its whole card, not cell by cell */
  table.margins.cards tbody tr.cur, table.margins.cards tbody tr.sel { background: var(--sel-bg); border-color: var(--sel-line); }
  table.margins.cards td[data-h]::before { content: attr(data-h) "\00a0"; font-size: 11.5px; color: var(--text-3); }
  table.margins.cards .c-lab { display: inline; font-size: 11.5px; color: var(--text-3); margin-right: 4px; }
  table.margins.cards td[data-u]::after { content: "\00a0" attr(data-u); font-size: 11.5px; color: var(--text-3); }
  table.margins.cards td.c-head { flex-basis: 100%; font-weight: 500; white-space: normal; }
  table.margins.cards td.c-wide { flex-basis: 100%; white-space: normal; }
  table.margins.cards td.c-ms { flex: 1 1 calc(50% - 7px); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  table.margins.cards td.c-ms.c-one { flex-basis: 100%; }
}

/* hub */
main.hub { max-width: 1180px; gap: 18px; }
/* what's new (generated into the hub by scripts/build_footer.py from versions.js): one line per change, grouped by day */
.hub-news { padding: 14px 20px 8px; }
.hub-news-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.hub-news-h h2 { font-size: 15px; font-weight: 600; margin: 0; }
.hub-day, .hub-older { border-top: 1px solid var(--line); }
.hub-day > summary, .hub-older > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 9px 0; font-size: 13.5px; }
.hub-day > summary::-webkit-details-marker, .hub-older > summary::-webkit-details-marker { display: none; }
.hub-day > summary::before, .hub-older > summary::before { content: "▸"; display: inline-block; width: 10px; color: var(--text-3); font-size: 10px; transition: transform .15s; }
.hub-day[open] > summary::before, .hub-older[open] > summary::before { transform: rotate(90deg); }
.hub-day > summary time { font-weight: 600; color: var(--text); }
.hub-day > summary span { color: var(--text-3); font-size: 12.5px; }
.hub-older > summary { color: var(--text-2); }
.hub-older .hub-day { margin-left: 22px; }
.hub-day ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 22px; display: grid; gap: 6px; }
.hub-day li { font-size: 13px; line-height: 1.45; color: var(--text-2); }
.hub-day li a { font-weight: 500; color: var(--text); text-decoration: none; margin-right: 8px; }
.hub-day li a:hover { text-decoration: underline; }
.hub-new { display: inline-flex; align-items: center; line-height: 1; font-size: 10.5px; font-weight: 500; color: var(--good); background: var(--good-bg); border-radius: 999px; padding: 2px 8px; margin-right: 8px; vertical-align: 1px; }
.sf-upd { color: inherit; }
.hub-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.hub h1 { font-size: 26px; font-weight: 600; margin: 0 0 2px; letter-spacing: -.01em; }
.hub-tools { display: flex; align-items: center; gap: 14px; }
.hub-tools input[type=search] { border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 12px; font-size: 13.5px; width: 240px; outline: none; background: var(--surface); }
.hub-tools input[type=search]:focus { border-color: var(--text); }
.hub-group { margin-bottom: 18px; }
.hub-group h2 { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }
.hub-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.hub-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.hub-row:hover { border-color: var(--line-2); }
/* the hover shadow lives on its own layer and only fades its opacity: the card never repaints its shadow while the icon
   animates (a box-shadow repainted under an animating layer flickers) */
a.hub-row { position: relative; isolation: isolate; will-change: transform; }
a.hub-row::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--shadow-card);
  opacity: 0; transition: opacity .15s; pointer-events: none; z-index: -1; will-change: opacity; }
a.hub-row:hover::after { opacity: 1; }
.hub-ico { width: 56px; height: 56px; border-radius: 8px; background: var(--surface-2); display: block; }
.hub-txt { display: grid; gap: 1px; min-width: 0; }
.hub-txt b { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hub-txt > span { font-size: 12.5px; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.hub mark, .mats mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; margin: 0 -1px; }
.hub-txt i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.st { font-style: normal; font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 1px 8px; }
.st.wip { color: var(--wip-ink); background: var(--wip-bg); border: 1px solid var(--wip-line); }
.st.plan { color: var(--text-3); background: var(--fill-1); }
.hub-row.wip { border: 1.5px dashed var(--warn); background: var(--x-fffdf7, #fffdf7); }
.hub-row.wip .hub-ico { background: repeating-linear-gradient(-45deg, var(--x-fffaf0, #fffaf0), var(--x-fffaf0, #fffaf0) 6px, var(--warn-bg) 6px, var(--warn-bg) 12px); }
.hub-row.planned { opacity: .55; background: transparent; border-style: dashed; cursor: default; }
@media (max-width: 560px) { .hub-tools input[type=search] { width: 100%; } .hub-tools { width: 100%; } }
/* hub icon animations: hub.js adds .play while a ready/WIP card is hovered or keyboard-focused. Every loop starts and
   ends at the drawn rest state, so finishing the current loop on leave brings the icon back without a jump. */
.hub-ico { isolation: isolate; transform: translateZ(0); }   /* one stable layer: nothing is promoted or demoted when a loop starts or ends */
.hub-ico svg { display: block; overflow: hidden; will-change: transform; }
.hub-ico .a-hot, .hub-ico .a-fe { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hub-row .a-swing, .hub-row .a-tilt { transform-box: view-box; }
  .hub-row .a-swing { transform-origin: 28px 28px; }
  .hub-row .a-tilt { transform-origin: 28px 24px; }
  .hub-row .a-pulse { transform-box: fill-box; transform-origin: center; }
  .hub-row .a-turn { transform-box: view-box; transform-origin: 28px 32px; }
  .hub-row .a-fe { transform-box: view-box; transform-origin: 28px 21.5px; }
  .play .a-swing { animation: hub-swing 1.6s linear infinite; }
  .play .a-hot { animation: hub-hot 1.6s ease-out infinite; }
  .play .a-turn { animation: hub-turn 1.6s ease-in-out infinite; }
  .play .a-pulse { animation: hub-pulse 1.6s ease-in-out infinite; }
  .play .a-sweep { animation: hub-sweep 1.4s ease-in-out infinite; }
  .play .a-tilt { animation: hub-tilt 1.6s ease-in-out infinite; }
  .play .a-fe { animation: hub-fe 1.6s ease-in-out infinite; }
  .play .a-rod { animation: hub-rod 1.6s ease-in-out infinite; }
  .play .a-oil { animation: hub-oil 1.6s ease-in-out infinite; }
  .play .a-flow { animation: hub-flow .8s linear infinite; }
  .play .a-flow.slow { animation-duration: 1.4s; }
  .play .a-scan { animation: hub-scan 1.6s ease-in-out infinite; }
  .play .a-read { animation: hub-read 1.6s ease-in-out infinite; }
  .play .a-tick { animation: hub-tick 1.6s ease-in-out infinite; }
  .play .a-slide { animation: hub-slide 1.6s ease-in-out infinite; }
  .play .a-draw { stroke-dasharray: 1 1; animation: hub-draw 1.6s ease-in-out infinite; }
  .play .a-screw { animation: hub-screw .9s linear infinite; }
}
@keyframes hub-swing { to { transform: rotate(-360deg); } }
@keyframes hub-hot { 0% { opacity: 0; } 8% { opacity: .75; } 45%, 100% { opacity: 0; } }
@keyframes hub-turn { 0%, 100% { transform: none; } 50% { transform: skewY(-5deg) scaleX(.92); } }
@keyframes hub-pulse { 0%, 30%, 70%, 100% { transform: none; } 50% { transform: scale(1.35); } }
@keyframes hub-sweep { 0% { transform: translateX(0); } 100% { transform: translateX(61px); } }
@keyframes hub-tilt { 0%, 100% { transform: none; } 40%, 65% { transform: rotate(32deg); } }
@keyframes hub-fe { 0%, 100% { opacity: 0; transform: scale(.55); } 40%, 65% { opacity: .9; transform: scale(1) translate(2px, 0); } }
@keyframes hub-rod { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
@keyframes hub-oil { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
@keyframes hub-flow { to { stroke-dashoffset: -7; } }
@keyframes hub-scan { 0% { opacity: 0; transform: none; } 10%, 28% { opacity: .1; transform: none; } 40%, 58% { opacity: .1; transform: translateY(8px); } 70%, 88% { opacity: .1; transform: translateY(16px); } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes hub-read { 0%, 100% { transform: none; } 35% { transform: translateY(-8px); } 70% { transform: translateY(7px); } }
@keyframes hub-tick { 0%, 100% { transform: none; } 30%, 75% { transform: translateY(var(--d, 0px)); } }
@keyframes hub-slide { 0%, 100% { transform: none; } 62% { transform: translate(7.2px, -3.4px); } 72% { transform: translate(7.6px, -3.6px); } }
@keyframes hub-draw { 0% { stroke-dashoffset: 0; } 45% { stroke-dashoffset: -1; } 100% { stroke-dashoffset: -2; } }
@keyframes hub-screw { to { transform: translateY(6px); } }

/* material library */
main.mat { max-width: 1480px; }
.mat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mat-head h1 { font-size: 26px; font-weight: 600; margin: 4px 0 2px; letter-spacing: -.01em; }
.mat-tools { display: flex; gap: 8px; align-items: center; }
.mat-tools input { border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 12px; font-size: 13.5px; width: 280px; outline: none; background: var(--surface); }
.mat-tools input:focus { border-color: var(--text); }
.mat-fams { display: flex; flex-wrap: wrap; gap: 6px; }
.mat-fams .chip span { color: var(--text-3); margin-left: 2px; }
.mat-fams .chip.on { background: var(--pick-bg); color: var(--pick-ink); border-color: var(--pick-line); }
.mat-fams .chip.on span { color: var(--pick-sub); }
.mat-legend { display: flex; flex-wrap: wrap; align-items: center; min-height: 24px; gap: 6px 18px; font-size: 12px; color: var(--text-2); }
.mat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 10px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.lg.pub { background: var(--surface); } .lg.typ { background: var(--surface-2); } .lg.edit { background: var(--x-fbecd0, #fbecd0); } .lg.cited { background: var(--sel-bg-2); } .lg.new { background: var(--good-bg); }
.mat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.mat-sheet { padding: 0; overflow: hidden; }
.mat-sheet .table-wrap { margin: 0; max-height: 78vh; overflow: auto; }
table.mats { border: 0; border-radius: 0; font-size: 12px; width: 100%; table-layout: auto; }
.mats td.mv { min-width: 0; font-variant-numeric: tabular-nums; }
.mats td.mv { max-width: 68px; }
.mats .rg { font-size: 11px; letter-spacing: -.02em; }
.mats td.mname { max-width: 165px; } .mats td.mstd { max-width: 84px; }
.mats thead th { position: sticky; top: 0; z-index: 1; }
.mats th span { display: block; font-size: 10px; color: var(--text-3); font-weight: 400; margin: 0; }
.mats thead th { padding: 6px 5px; white-space: normal; line-height: 1.25; vertical-align: bottom; }
.mats td { height: 28px; padding: 0 5px; text-align: right; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mats td.l { text-align: left; }
.mats td.mname b { font-weight: 500; }
.mats td.mstd { color: var(--text-3); font-size: 11.5px; }
.mats tr:hover td { background: var(--surface-2); }
.mats tr.sel td { background: var(--sel-bg); }
.mats td.c-typ { font-style: italic; color: var(--text-2); }
.mats td.c-edit { background: var(--x-fbecd0, #fbecd0) !important; color: var(--x-8a5a00, #8a5a00); font-weight: 600; }
.mats td.c-cited { background: var(--sel-bg-2) !important; color: var(--sel-ink); font-weight: 600; }
.mats td.c-new { background: var(--good-bg) !important; color: var(--good); font-weight: 600; }
.mats input.mcell { width: 100%; border: 0; outline: 2px solid var(--sel); text-align: right; font-size: 12.5px; padding: 4px; border-radius: 3px; }
.tag { font-style: normal; font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.tag.new { color: var(--good-ink); background: var(--good-bg); } .tag.edit { color: var(--warn-ink); background: var(--warn-bg); } .tag.sec { color: var(--text-3); background: var(--fill-1); }
.mat-detail { padding: 16px 18px; position: sticky; top: calc(var(--fb-top, 0px) + 16px); max-height: calc(100vh - 32px - var(--fb-top, 0px)); overflow: auto; font-size: 13px; }
.md-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.md-head h2 { font-size: 17px; }
.md-head span { color: var(--text-3); font-size: 12px; }
.md-meta { display: grid; grid-template-columns: 90px 1fr; gap: 2px 10px; margin: 10px 0; }
.md-meta dt { color: var(--text-3); } .md-meta dd { margin: 0; }
.md-notes { color: var(--text-2); font-size: 12.5px; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.mat-detail h3 { font-size: 13px; font-weight: 600; margin: 16px 0 6px; } .mat-detail h3 span { color: var(--text-3); font-weight: 400; }
.md-props, .md-comp { width: 100%; border-collapse: collapse; }
.md-props th, .md-comp th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 11.5px; padding: 4px; border-bottom: 1px solid var(--line); }
.md-props td, .md-comp td { padding: 5px 4px; border-bottom: 1px solid var(--fill-1); vertical-align: top; }
.md-props .r, .md-comp .r { text-align: right; }
.md-props small, .md-comp small { display: block; color: var(--text-3); font-size: 11px; }
.md-props td i { font-style: normal; color: var(--text-3); }
.md-props tr.focus td { background: var(--sel-bg); }
.md-props .vcond { color: var(--text-2); font-weight: 500; background: var(--surface-2); font-size: 12px; }
.md-props a, .md-comp a { color: var(--text-2); }
.nocite { color: var(--warn); font-weight: 600; font-size: 12px; }
.usersrc { color: var(--sel-ink); font-size: 12px; }
.srcin { width: 100%; margin-top: 4px; border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 6px; font-size: 12px; }
.md-src { padding-left: 18px; margin: 0; } .md-src li { margin: 3px 0; } .md-src a { color: var(--text); }
@media (max-width: 1100px) { .mat-grid { grid-template-columns: minmax(0, 1fr); } .mat-detail { position: static; max-height: none; } }


/* material detail: clean property rows and the composition chart */
.mat-detail h3 { margin-top: 14px; }
.md-notes { font-size: 12px; color: var(--text-2); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; }
.md-notes summary { cursor: pointer; color: var(--text-3); font-size: 11.5px; }
.props { display: grid; }
.pr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; padding: 6px 0; border-bottom: 1px solid var(--fill-1); align-items: baseline; }
.pr.focus { background: var(--sel-bg); margin: 0 -8px; padding: 6px 8px; border-radius: 6px; }
.pr-l { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-l i { font-style: normal; color: var(--text-3); margin-left: 3px; }
.pr-v { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.pr-v small { font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.pr-v em { font-style: normal; font-weight: 500; font-size: 10.5px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--fill-1); color: var(--text-3); vertical-align: 1px; }
.pr-v em.b-min { background: var(--good-bg); color: var(--good-ink); } .pr-v em.b-max { background: var(--bad-bg); color: var(--bad-ink); }
.pr-v em.b-typical { background: var(--steel-100); color: var(--text-2); } .pr-v em.b-your { background: var(--x-fbecd0, #fbecd0); color: var(--x-8a5a00, #8a5a00); }
.pr-n { grid-column: 1 / -1; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.pr .srcin { grid-column: 1 / -1; }
.pr-group { font-size: 11.5px; font-weight: 600; color: var(--text-2); padding: 10px 0 2px; }
.srcs { display: inline-flex; flex-wrap: wrap; gap: 3px; vertical-align: 1px; }
.srcs a { font-size: 10.5px; text-decoration: none; color: var(--text-2); background: var(--fill-1); border-radius: 4px; padding: 0 5px; }
.srcs a:hover { background: var(--text); color: var(--on-accent); }
.comp { display: grid; gap: 3px; }
.comp-axis, .comp-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 82px; gap: 8px; align-items: center; }
.comp-scale { position: relative; height: 12px; }
.comp-scale i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 9.5px; color: var(--text-3); }
.el { display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; font-size: 11.5px; color: var(--on-accent); background: var(--ec); }
.comp-bar { position: relative; height: 10px; border-radius: 5px; background: var(--fill-1); }
.comp-bar > i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rng { position: absolute; top: 1px; bottom: 1px; border-radius: 4px; background: var(--ec); }
.rng.maxonly { background: linear-gradient(90deg, transparent, var(--ec)); }
.comp-v { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; color: var(--text); white-space: nowrap; }
.comp-note { font-size: 11px; color: var(--text-3); margin: -1px 0 3px 42px; }
.comp-src { font-size: 11.5px; color: var(--text-3); margin: 8px 0 0; }
.md-src li { font-size: 12px; }
.md-src .sid { font-size: 10.5px; color: var(--text-3); background: var(--fill-1); border-radius: 4px; padding: 0 5px; }

/* material comparison */
.mats td.mcmp, .mats th.mcmp { width: 34px; text-align: center; padding: 0 4px; }
.mats td.mcmp { overflow: visible; line-height: 0; }
.cmpbox { display: inline-grid; place-items: center; width: 16px; height: 16px; padding: 0; margin: 0; vertical-align: middle; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; font-size: 10px; font-weight: 700; line-height: 1; color: var(--on-accent); cursor: pointer; }
.cmpbox:hover { border-color: var(--text-2); }
.cmpbox.on { background: var(--cc); border-color: var(--cc); }
.cmpbox:focus-visible { outline: 2px solid var(--sel); outline-offset: 1px; }
.mats tr.cmp td { background: color-mix(in srgb, var(--cc) 6%, var(--surface)); }
.mats tr.cmp td.mname { box-shadow: inset 3px 0 0 var(--cc); }
/* own fixed-height line: ticking a box never moves the table */
.cmp-bar { display: flex; align-items: center; height: 22px; gap: 10px; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; margin-top: -6px; }
.cmp-bar > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cmp-bar em { color: var(--text-3); font-style: normal; font-size: 12px; }
.cmp-bar .ghost { padding: 0 6px; font-size: 12px; }
.cmp-head { display: grid; gap: 6px; margin: 10px 0 6px; }
.cmp-name { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; }
.cmp-name b { width: 22px; height: 22px; border-radius: 6px; background: var(--cc); color: var(--on-accent); display: grid; place-items: center; font-size: 12px; }
.cmp-name span { font-weight: 600; font-size: 13.5px; }
.cmp-name small { display: block; font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.crows { display: grid; }
.crow { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(var(--n), minmax(0, 1fr)); gap: 2px 10px; padding: 5px 0; border-bottom: 1px solid var(--fill-1); align-items: start; }
.crow .cl { font-size: 12.5px; color: var(--text-2); }
.crow .cl i { font-style: normal; color: var(--text-3); }
.cv { display: grid; gap: 1px; justify-items: end; text-align: right; }
.cv .srcs a { font-size: 9.5px; padding: 0 4px; }
.cd { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.dd { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--cc); background: color-mix(in srgb, var(--cc) 10%, var(--surface)); border-radius: 999px; padding: 0 6px; }
.dd.same { color: var(--text-3); background: var(--fill-1); }
.mats th.sortable { cursor: pointer; user-select: none; }
.mats th.sortable:hover { color: var(--text); }
.mats th .sorted { color: var(--sel); font-size: 9px; margin-right: 2px; }
.cv b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--cc); }
.cv b small { font-weight: 400; color: var(--text-3); font-size: 10.5px; }
.cv em { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 999px; background: var(--fill-1); color: var(--text-3); }
.cv em.b-min { background: var(--good-bg); color: var(--good-ink); } .cv em.b-max { background: var(--bad-bg); color: var(--bad-ink); }
.cv.none { color: var(--text-3); }

.dbar { position: relative; display: block; height: 14px; background: linear-gradient(90deg, transparent calc(50% - .5px), var(--line-2) calc(50% - .5px), var(--line-2) calc(50% + .5px), transparent calc(50% + .5px)); }
.dbar i { position: absolute; top: 4px; height: 6px; border-radius: 3px; opacity: .75; }
.dbar u { position: absolute; right: 0; top: -1px; text-decoration: none; font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.crow .cc { grid-column: 1 / -1; font-size: 11px; color: var(--text-3); }
.comp-row.multi { align-items: center; }
.comp-stack { display: grid; gap: 2px; }
.comp-bar.thin { height: 6px; }
.comp-bar.thin.empty { background: transparent; }
.comp-v.multi { display: grid; gap: 0; font-size: 10.5px; line-height: 1.15; }
.cmp-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-name span { min-width: 0; }

.hist { display: inline-flex; gap: 2px; }
.hist .ghost { font-size: 16px; line-height: 1; padding: 3px 8px; }
.hist .ghost:disabled { opacity: .3; cursor: default; background: none; }

/* 3D bolts: selection toolbar, axis cell, pattern form */
.stage { position: relative; }
.selbar { position: absolute; left: 14px; top: 58px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: 9px; padding: 4px 8px; box-shadow: 0 2px 8px rgba(0,0,0,.05); max-width: calc(100% - 28px); }
.selbar b { font-weight: 600; margin-right: 2px; }
.selbar .ghost { padding: 2px 6px; font-size: 12px; }
.selbar .ghost.danger { color: var(--bad); }
.selbar .sb-g { display: inline-flex; align-items: center; gap: 1px; color: var(--text-3); }
.selbar .sb-g .ghost { min-width: 22px; color: var(--text); }
input.axisin { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12.5px; }
input.axisin:hover { border-color: var(--line); }
input.axisin:focus { border-color: var(--text); background: var(--surface); outline: none; }
input.axisin.bad, .patform input.bad { border-color: var(--bad); }
.ghost.on { background: var(--pick-bg); color: var(--pick-ink); }
.patform { margin-top: 10px; border: 1px dashed var(--sel); border-radius: 10px; padding: 10px 12px; background: var(--x-fbfcff, #fbfcff); display: grid; gap: 8px; }
.pf-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.pf { display: grid; gap: 2px; font-size: 11.5px; color: var(--text-2); }
.pf .num { width: 92px; }
.pf input[data-pat="axis"] { width: 120px; }
.pf select { font: inherit; font-size: 12.5px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.pf-u { font-size: 12px; color: var(--text-3); margin-left: -8px; padding-bottom: 7px; }
.pf-act { justify-content: flex-end; }
.pf-act .note { margin-right: auto; }
.sheet.bolts3 col.ax { width: 22%; } .sheet.bolts3 col.ty { width: 92px; } .sheet.bolts3 col.ms3 { width: 64px; }
.sheet.bolts3 .tpill { max-width: 100%; }
.selbar[hidden] { display: none; }
.stage-bar { flex-wrap: wrap; }
.stage-bar .hint { flex: 1 1 260px; min-width: 0; font-size: 12px; line-height: 1.4; }

/* friction table */
.fr .chip.small { font-size: 11.5px; padding: 2px 9px; }
.fr-lubes { margin-top: -6px; }
.frt col.fp { width: 24%; } .frt col.fs { width: 14%; } .frt col.fl { width: 13%; } .frt col.fv { width: 64px; }
.frt col.fbar { width: 110px; } .frt col.fstd { width: 15%; } .frt col.fsrc { width: 60px; }
.frt td { height: auto; padding: 5px 5px; }
.frt td.fp b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; }
.frt td.fs, .frt td.fl, .frt td.fstd { color: var(--text-2); font-size: 11.5px; max-width: 0; }
.fcat { display: block; font-size: 10.5px; color: var(--text-3); }
.fcat.c-slip { color: var(--blue-2); } .fcat.c-thread { color: var(--x-7c3aed, #7c3aed); } .fcat.c-K { color: var(--x-c26a1d, #c26a1d); } .fcat.c-design { color: var(--good); }
.frt th.fscale { position: relative; font-size: 10px; color: var(--text-3); font-weight: 400; }
.frt th.fscale span { position: absolute; bottom: 7px; transform: translateX(-50%); }
.frt th.fscale span:nth-child(1) { left: 6px; transform: none; } .frt th.fscale span:nth-child(2) { left: 50%; } .frt th.fscale span:nth-child(3) { right: 6px; left: auto; transform: none; }
.frbar { position: relative; display: block; height: 14px; background: var(--x-f4f4f1, #f4f4f1); border-radius: 3px; }
.frbar .tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--surface); }
.frbar .fb { position: absolute; border-radius: 2px; min-width: 3px; }
.frbar .fb.s { top: 2px; height: 5px; background: var(--blue-2); }
.frbar .fb.k { top: 8px; height: 4px; border: 1.2px solid var(--blue-2); background: var(--surface); box-sizing: border-box; }
.frbar .fb.K { top: 3px; height: 8px; background: repeating-linear-gradient(-45deg, var(--x-c26a1d, #c26a1d), var(--x-c26a1d, #c26a1d) 2px, var(--x-f2dcc6, #f2dcc6) 2px, var(--x-f2dcc6, #f2dcc6) 4px); }
.frbar .fb.pt { width: 3px !important; margin-left: -1px; }
.fr-key { display: inline-block; width: 16px; height: 6px; border-radius: 2px; }
.fr-key.s { background: var(--blue-2); } .fr-key.k { border: 1.2px solid var(--blue-2); height: 5px; } .fr-key.K { background: repeating-linear-gradient(-45deg, var(--x-c26a1d, #c26a1d), var(--x-c26a1d, #c26a1d) 2px, var(--x-f2dcc6, #f2dcc6) 2px, var(--x-f2dcc6, #f2dcc6) 4px); height: 8px; }
.srcs a.sec { font-style: italic; color: var(--text-3); }
.sec-tag { font-style: normal; font-size: 10.5px; color: var(--text-3); background: var(--fill-1); border-radius: 999px; padding: 0 6px; }
.fr .mat-detail h3 { margin-top: 14px; }
table.frt { table-layout: fixed; }
.frt td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frt td.fs, .frt td.fl, .frt td.fstd { max-width: none; }
.frt td.fbar { padding: 0 8px; }
.frt td.fsrc { white-space: normal; }
table.frt { min-width: 760px; }
.frt col.fp { width: 26%; } .frt col.fc { width: 27%; } .frt col.fstd { width: 20%; } .frt col.fbar { width: 104px; } .frt col.fsrc { width: 54px; } .frt col.fv { width: 66px; }
.frt td.fc { font-size: 11.5px; color: var(--text-2); }
.frt td.fc span { display: block; overflow: hidden; text-overflow: ellipsis; }
.frt td.fc .flube { color: var(--text); }
.frt td.fstd small { display: block; color: var(--text-3); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
.flube.lc-dry { color: var(--text-2) !important; }
.flube.lc-oiled, .flube.lc-greased { color: var(--x-8a5a00, #8a5a00) !important; }
.flube.lc-MoSsolidfilm, .flube.lc-antiseize { color: var(--x-6d28d9, #6d28d9) !important; }
.flube.lc-water { color: var(--blue-2) !important; }

/* searchable picker (picker.js) */
.pk { position: relative; display: inline-block; width: 100%; min-width: 0; vertical-align: middle; }
.pk-native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; width: 100% !important; }
.pk-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 26px 6px 9px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Ccircle cx='4.2' cy='4.2' r='3' fill='none' stroke='%239a9ca1' stroke-width='1.3'/%3E%3Cpath d='M6.5 6.5 9 9' stroke='%239a9ca1' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center; text-overflow: ellipsis; outline: none; }
.pk-in:hover { border-color: var(--line-2); }
.pk-in:focus { border-color: var(--text); }
.sheet .pk-in { border-color: transparent; background-color: transparent; padding: 4px 22px 4px 6px; font-size: 12.5px; }
.sheet .pk-in:hover { border-color: var(--line); }
.sheet .pk-in:focus { border-color: var(--text); background-color: var(--surface); }
.pk-list { position: fixed; z-index: 1000; overflow: auto; background: var(--raised); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 4px; font-size: 13px; }
.pk-g { position: sticky; top: -4px; background: var(--raised); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 8px 8px 3px; }
.pk-i { display: flex; align-items: baseline; gap: 8px; padding: 5px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.pk-i span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pk-i small { color: var(--text-3); font-size: 11.5px; flex: none; }
.pk-i em { margin-left: auto; font-style: normal; color: var(--text-3); font-size: 11px; flex: none; }
.pk-i.cur span { font-weight: 600; }
.pk-i.on { background: var(--x-eef3fd, #eef3fd); }
.pk-i mark { background: var(--mark); color: inherit; border-radius: 2px; }
.pk-none { padding: 10px; color: var(--text-3); }

/* friction value picker (friction-pick.js) */
.fpick-btn { margin-left: 6px; border: 0; background: none; padding: 0 2px; font: inherit; font-size: 11px; color: var(--sel); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sel) 30%, transparent); text-underline-offset: 2px; }
.fpick-btn:hover { text-decoration-color: currentColor; }
.fpick { position: fixed; z-index: 1000; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 10px 10px 4px; font-size: 12.5px; }
.fp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.fp-h a { font-size: 11.5px; color: var(--text-2); }
.fp-q { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font: inherit; outline: none; }
.fp-q:focus { border-color: var(--text); }
.fp-hint { margin: 6px 2px; color: var(--text-3); font-size: 11.5px; }
.fp-list { overflow: auto; min-height: 0; flex: 1; margin: 0 -4px; }
.fp-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 6px; border-top: 1px solid var(--fill-1); }
.fp-t { display: grid; min-width: 0; }
.fp-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-t span { color: var(--text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-t small { color: var(--text-3); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-t small a { color: var(--text-3); }
.fp-v { flex: none; display: flex; align-items: center; gap: 3px; }
.fp-v i { font-style: normal; color: var(--text-3); }
.fp-v small { color: var(--text-3); font-size: 10.5px; margin-left: 4px; }
.fpv { border: 1px solid var(--line); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; }
.fpv:hover { background: var(--text); color: var(--on-accent); border-color: var(--text); }

/* fixed column widths: hundreds of rows lay out instantly */
table.mats { table-layout: fixed; width: 100%; min-width: 900px; }
.mats col.mcmp { width: 30px; } .mats col.mname { width: 15%; } .mats col.mfam { width: 8%; } .mats col:not([class]) { width: auto; }
.mats td.mname, .mats td.mstd { max-width: none; }
.mats colgroup col:nth-child(4), .mats colgroup col:nth-child(5) { width: 7.5%; }
.mats td.mv { padding: 0 4px; } .mats .rg { letter-spacing: -.035em; }
.mats .hsc { font-size: 9.5px; color: var(--text-3); margin-left: 2px; letter-spacing: 0; }
.mats colgroup col:nth-child(14) { width: 8%; }

/* hardness converter */
main.hd { max-width: 1180px; }
.hd-stage { padding: 0; overflow: hidden; }
.hd-inputs { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hd-in { display: grid; grid-template-columns: auto; gap: 2px; font-size: 11.5px; color: var(--text-2); width: 84px; }
.hd-in span { font-weight: 600; color: var(--text); }
.hd-in input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.hd-in input:focus { border-color: var(--text); }
.hd-in input.bad { border-color: var(--bad); }
.hd-in small { color: var(--text-3); font-size: 10.5px; }
#hdView { display: block; width: 100%; height: auto; cursor: ns-resize; touch-action: none; user-select: none; }
#hdView:focus { outline: none; }
.hd-axis { stroke: var(--steel-350); stroke-width: 1.4; }
.hd-tick { stroke: var(--steel-350); }
.hd-tl { font-size: 10px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.hd-h { font-size: 12px; font-weight: 600; fill: var(--text); }
.hd-u { font-size: 10px; fill: var(--text-3); }
.hd-line { stroke: var(--sel); stroke-width: 1.6; }
.hd-dot { fill: var(--surface); stroke: var(--sel); stroke-width: 2; }
.hd-v { font-size: 12.5px; font-weight: 600; fill: var(--sel); font-variant-numeric: tabular-nums; }
.hd-na { font-size: 10px; fill: var(--text-3); font-style: italic; }
#hdView .handle .knob { fill: var(--sel); stroke: var(--halo); stroke-width: 1.5; }
#hdView .handle .hit { fill: transparent; }
.hd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .hd-grid { grid-template-columns: 1fr; } }
#hdRows tr.sel td { background: var(--sel-bg); font-weight: 600; }
#hdMats td a { color: var(--text); }
.mats .rg { font-size: 10.5px; letter-spacing: -.04em; }
/* the rows table carries every scale (up to 13 columns), so it takes the wider share; both stack before anything clips */
.hd-grid { grid-template-columns: minmax(300px, 2fr) minmax(0, 3fr); }
.hd-grid > * { min-width: 0; }
@media (max-width: 1360px) { .hd-grid { grid-template-columns: minmax(0, 1fr); } }
#hdRows th, #hdRows td { padding-left: 6px; padding-right: 6px; white-space: nowrap; }
/* names wrap, family truncates, the published value always shows */
#hdMats { table-layout: fixed; width: 100%; }
#hdMats th:nth-child(1) { width: 52%; } #hdMats th:nth-child(2) { width: 24%; } #hdMats th:nth-child(3) { width: 24%; }
#hdMats td { white-space: normal; overflow-wrap: anywhere; }
#hdMats td:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hdMats td:last-child { white-space: nowrap; }
.hd-in small:empty { display: none; }

.hd-in { width: 96px; grid-template-rows: auto auto auto; }
.hd-in small { display: block; min-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-3); font-size: 10.5px; margin-bottom: 2px; }
.hd-in small:empty { display: block; }
.hd-in span i { font-style: normal; font-weight: 400; color: var(--text-3); font-size: 10.5px; }
.hd-pick { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.hd-mat { width: 260px; }
.hd-tbl { min-width: 0; }
.hd-tbtn { display: grid; text-align: left; gap: 1px; width: 340px; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a9ca1' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center; padding: 5px 28px 5px 10px; font: inherit; cursor: pointer; }
.hd-tbtn:hover { border-color: var(--line-2); }
.hd-tbtn b, .hd-mi b { font-weight: 500; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-tbtn small, .hd-mi small { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-mi span { display: grid; gap: 1px; min-width: 0; }
.hd-why { margin: -6px 0 0; font-size: 13px; color: var(--text); min-height: 18px; }
.hd-why span { color: var(--text-2); }
.hd-band { fill: color-mix(in srgb, var(--sel) 9%, transparent); stroke: color-mix(in srgb, var(--sel) 22%, transparent); stroke-width: .8; }
.hd-sp { stroke: var(--halo); stroke-width: 1; }
.hd-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 6px; font-size: 11.5px; color: var(--text-2); }
.hd-legend button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; font: inherit; color: var(--text-2); cursor: pointer; }
.hd-legend button:hover { color: var(--text); text-decoration: underline; }
.hd-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pk-i { display: grid; gap: 0; white-space: normal; align-items: start; }
.pk-i .pk-n { overflow: visible; white-space: normal; line-height: 1.3; }
.pk-i .pk-m { display: block; color: var(--text-3); font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-tbtn small.hd-match { color: var(--good); }
.hd-tbtn.flash { animation: hdflash 1.2s ease-out; }
@keyframes hdflash { 0% { border-color: var(--good); box-shadow: 0 0 0 3px rgba(47, 125, 85, .18); } 100% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(47, 125, 85, 0); } }

/* ---------- site footer (generated by scripts/build_footer.py) ---------- */
.site-foot { max-width: var(--page-max); margin: 0 auto; padding: 0 24px 36px; color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.site-foot::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 28px; }   /* the rule spans the content, not the gutters */
main.hub ~ .site-foot, main.hd ~ .site-foot { max-width: 1180px; }
main.mat ~ .site-foot { max-width: 1480px; }
main.fx ~ .site-foot { max-width: none; padding-left: 16px; padding-right: 16px; }
.site-foot h2 { font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }
.site-foot h2 a { color: inherit; text-decoration: none; }
.site-foot h3 { font-size: 12.5px; font-weight: 500; color: var(--text); margin: 0 0 3px; }
.site-foot p { margin: 0 0 6px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 3px; }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.site-foot a[aria-current] { color: var(--text); }
.sf-about { max-width: 78ch; margin-bottom: 26px; }
.sf-about > p { font-size: 13px; }
.sf-faq { margin: 4px 0 8px; }
.sf-faq > summary { cursor: pointer; color: var(--text-3); width: max-content; }
.sf-faq > summary:hover { color: var(--text); }
.sf-faq dl { margin: 8px 0 0; }
.sf-faq dt { color: var(--text); font-weight: 500; margin-top: 10px; }
.sf-faq dd { margin: 2px 0 0; }
.sf-rel { color: var(--text-3); }
.sf-rel a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.sf-cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.sf-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 24px; }
.sf-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: 28px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-3); }
.sf-base a { color: inherit; }
@media (max-width: 1040px) { .sf-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sf-tools { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-foot { padding: 0 16px 28px; } .site-foot::before { margin-bottom: 24px; } .sf-cols { grid-template-columns: minmax(0, 1fr); } }

/* suggestion lists for free-text fields: one line per entry, the note at the right */
.pk-list.sg .pk-i { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.pk-list.sg .pk-i em { margin-left: auto; font-style: normal; color: var(--text-3); font-size: 11.5px; }

/* version badge beside the tool name, and the "what changed" list it opens */
.title h1 { display: inline-flex; align-items: center; gap: 8px; }
.ver { border: 1px solid var(--line); background: var(--surface); color: var(--text-3); font: inherit; font-size: 11px; font-weight: 500;
  font-variant-numeric: tabular-nums; border-radius: 999px; padding: 1px 8px; cursor: pointer; line-height: 1.5; }
.ver:hover, .ver[aria-expanded="true"] { color: var(--text); border-color: var(--line-2); }
main h1 .ver { font-size: 12px; vertical-align: middle; margin-left: 4px; }
.ver-pop { position: absolute; z-index: 1000; width: 340px; max-width: calc(100vw - 16px); max-height: 60vh; overflow: auto; background: var(--raised);
  border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 12px 14px; font-size: 12.5px; color: var(--text-2); }
.ver-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ver-h b { color: var(--text); font-weight: 600; font-size: 13px; }
.ver-h span { color: var(--text-3); font-size: 11.5px; }
.ver-pop ol { margin: 0; padding-left: 26px; display: grid; gap: 3px; }
.ver-pop li::marker { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 11px; }
.ver-pop li:first-child { color: var(--text); }
.ver-s { position: absolute; top: 5px; left: 6px; z-index: 1; font-style: normal; font-size: 10px; font-weight: 500; color: var(--text-3);
  font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; line-height: 1.45; pointer-events: none; }
a.hub-row:hover .ver-s { color: var(--text-2); }
/* "✓ 14 published checks" beside the version, and the table of worked examples it opens (versions.js, verified.js) */
.title h1 { flex-wrap: wrap; row-gap: 4px; }
.ver.vf b { color: var(--good); font-weight: 600; }
.ver.vf-bad { color: var(--bad); border-color: var(--bad-bg); }
.vf-pop { width: 620px; padding: 12px 14px 8px; }
.vf-pop .ver-h { gap: 12px; }
.vf-pop .ver-h span { white-space: nowrap; }
.vf-note { margin: 0 0 8px; color: var(--text-3); font-size: 11.5px; line-height: 1.45; }
.vf-scroll { overflow-x: auto; }
.vf-t { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.vf-t th { text-align: left; font-weight: 500; font-size: 11px; color: var(--text-3); padding: 0 6px 4px 0; }
.vf-t td { padding: 5px 6px 5px 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--text); }
.vf-t .n { text-align: right; white-space: nowrap; padding-left: 8px; }
.vf-t td.n small { color: var(--text-3); font-size: 10.5px; margin-left: 3px; }
.vf-w a { display: block; color: var(--text-3); font-size: 11px; text-decoration: none; margin-top: 1px; }
.vf-w a:hover { color: var(--text); text-decoration: underline; }
.vf-d { color: var(--text-2); }
/* Δ is a number column like Published and Ours (header and figures right-aligned on the same edge); the tick sits in
   its own narrow column so it never pushes the figures off that edge */
.vf-t .vf-ok { width: 18px; padding: 5px 0 5px 4px; text-align: center; }
.vf-t th.vf-ok { padding: 0; }
.vf-ok i { font-style: normal; color: var(--good); font-weight: 600; }
.vf-t tr.bad td { background: var(--bad-bg); }
.vf-t tr.bad .vf-ok i { color: var(--bad); }
.ver-s .vf-n { font-style: normal; color: var(--good); margin-left: 4px; }
@media (max-width: 560px) {
  .vf-l { display: none; }
  .vf-pop { padding: 10px 10px 6px; }
  .vf-pop .ver-h { flex-direction: column; gap: 1px; }
  .vf-t { font-size: 11.5px; }
  .vf-t td.n small { display: block; margin: 0; }
}

/* a page that isn't finished: a striped band across the top (the same stripes as work-in-progress cards on the hub)
   that fades into the page */
.proto-band { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 24px 26px; font-size: 13px; color: var(--x-6b4a0e, #6b4a0e); text-align: center;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--warn-bg) 95%, transparent) 0 10px, color-mix(in srgb, var(--surface) 95%, transparent) 10px 20px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  border-top: 3px solid var(--wip-line); }
.proto-band a { color: inherit; font-weight: 600; }
.proto-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wip-ink);
  background: var(--wip-bg); border: 1px solid var(--wip-line); border-radius: 999px; padding: 1px 9px; }
.proto-band + .bar { margin-top: -14px; }
/* hub search: what the search did, and why a result is there */
.hub-hint { font-size: 12.5px; color: var(--text-3); margin: 0 0 10px; }
.hub-hint b { color: var(--text-2); font-weight: 600; }
.hub-txt i.hub-why { color: var(--sel); }
/* hub intro: the count line changes length with the filters ("· 66 planned"); a fixed two-column grid keeps the search
   box and toggle in place, and a stable scrollbar gutter stops the page shifting when the list gets shorter or longer */
html { scrollbar-gutter: stable; }
.hub-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.hub-intro > div:first-child { min-width: 0; }
.hub-tools { justify-self: end; flex-wrap: nowrap; }
.hub-tools .check { white-space: nowrap; flex: none; }   /* "Show planned" stays on one line; the search box gives way */
.hub-tools .hub-q { min-width: 0; }
@media (max-width: 760px) { .hub-intro { grid-template-columns: minmax(0, 1fr); } .hub-tools { justify-self: stretch; } }
@media (max-width: 760px) { .hub-intro.hinting .hub-tools { margin-top: 34px; } }   /* room for the one-time search hint's label */
#hubCount { display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the author's X profile in the footer: the one coloured link there */
.site-foot a.sf-x { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px;
  color: #1a73e8; background: linear-gradient(135deg, rgba(29, 155, 240, .10), rgba(26, 115, 232, .14)); border: 1px solid rgba(26, 115, 232, .28);   /* theme: keep (the X brand blue) */
  font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.site-foot a.sf-x:hover { color: #0b57d0; background: linear-gradient(135deg, rgba(29, 155, 240, .16), rgba(26, 115, 232, .22)); border-color: rgba(11, 87, 208, .45); }   /* theme: keep (the X brand blue) */
.site-foot a.sf-x svg { flex: none; }
.site-foot li:has(> a.sf-x) { margin-bottom: 6px; }
/* undo / redo: rounded line icons, a soft round hover, and a site-styled tooltip with the shortcut (ui.js) */
button.ui-hist { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
button.ui-hist svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button.ui-hist:hover:not(:disabled) { background: var(--x-eeeeea, #eeeeea); color: var(--text); }
button.ui-hist:focus-visible { outline: 2px solid var(--sel); outline-offset: 1px; }
button.ui-hist:disabled { color: var(--faint); cursor: default; background: transparent; }
.ui-tip { position: absolute; z-index: 1001; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 10px; border-radius: 8px;
  background: var(--raised); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); font-size: 12px; color: var(--text-2); white-space: nowrap; pointer-events: none; }
.ui-tip kbd { font: inherit; font-size: 11px; font-weight: 600; color: var(--text); background: var(--x-f4f4f1, #f4f4f1); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 0 5px; min-width: 18px; text-align: center; line-height: 1.6; }
.ui-tip kbd + kbd { margin-left: -2px; }

/* "Link to this calculation" strip at the very top of every tool (ui.js) */
.ui-share { display: flex; align-items: center; gap: 10px; max-width: var(--page-max, 1380px); margin: 0 auto; padding: 10px 24px 0; }
.ui-share-l { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.ui-share-i { flex: 1; min-width: 0; font: inherit; font-size: 12px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; text-overflow: ellipsis; outline: none; }
.ui-share-i:focus { border-color: var(--text-2); }
.ui-share-i.short { color: var(--text); font-weight: 500; }
.ui-share-b { font: inherit; font-size: 12.5px; font-weight: 500; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; }
.ui-share-b:hover { border-color: var(--text-2); }
.ui-share-b.ok { color: var(--good); border-color: var(--good); }
.proto-band + .ui-share { padding-top: 0; }
header.bar + .ui-share { padding-top: 2px; padding-bottom: 10px; }
/* ui.js adds the strip, and compact-report.js the Compact button (83.5 px + 4 px margin + 2 px gap, before PDF), after the
   first paint; hold their space until they arrive so the tool below does not jump (layout shift) */
header.bar:has(> .title > a[href="../"]):not(:has(+ .ui-share)) { margin-bottom: 44.125px; }
.export:not(:has(> .cr-mode)) > #exportPdf { margin-left: 89.5px; }
/* likewise versions.js's badges beside the h1: the version (~34 px) and "✓ N published checks" (every tool but the
   standards finder has checks; the footer that says so is parsed after the first paint, so it can't be asked) */
.title h1:not(:has(.ver))::after { content: ""; width: 182.5px; height: 20.5px; }
@media (max-width: 560px) { .title h1:not(:has(.ver))::after { width: 128px; } }
body:has(> main.sd) .title h1:not(:has(.ver))::after { width: 34px; }
.ui-share-i.stale { color: var(--text-3); }
@media (max-width: 640px) { .ui-share { padding: 8px 16px 0; } .ui-share-l { display: none; } }
/* Favourite calculators (ui.js draws the chips, favbar.js keeps them): a slim strip pinned to the top of the viewport on
   every calc page, the same place and size everywhere, so it is always one move away. Chips on the left (a track like
   the segmented controls, the page you are on raised in it, one row that scrolls sideways inside itself), "Find a
   calculator" on the right. Its room is kept from the first paint (the body's top padding), so nothing moves when ui.js
   adds it; anchors and the tools' own sticky panels sit below it (--fb-top). Pinned on phones too, at 38 px: hiding it
   while scrolling down would take it away exactly when you are deep in a tool, and move every sticky panel with it.
   Never printed. Above sticky panels and the page's popovers; below the drag previews, scrims, menus and dialogs. */
:root { --fs-h: 40px; }
:root:has(> body > header.bar) { --fb-top: var(--fs-h); scroll-padding-top: calc(var(--fb-top) + 8px); }
body:has(> header.bar) { padding-top: var(--fs-h); }
.ui-fs { position: fixed; z-index: 39; top: 0; left: 0; right: 0; height: var(--fs-h); background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .15s ease, box-shadow .15s ease; }
.ui-fs.sc { border-bottom-color: var(--line); box-shadow: 0 1px 8px rgba(20, 22, 28, .05); }
.ui-fs-in { height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 8px; }
.ui-fs-r { flex: none; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ui-fs .fbk-open { padding-top: 5px; padding-bottom: 5px; }
.ui-favs { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; }
.ui-fav-row { display: flex; align-items: center; gap: 2px; min-width: 0; margin: 0; padding: 2px; list-style: none; border-radius: 9px; background: var(--fill-1);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.ui-fav-row::-webkit-scrollbar { display: none; }
.ui-fav-row > li { flex: none; display: flex; }
.ui-fav { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 3px; border-radius: 7px; color: var(--text-2); font-size: 12.5px; font-weight: 500;
  line-height: 1; text-decoration: none; white-space: nowrap; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ui-fav:hover { color: var(--text); background: var(--surface-2); }
.ui-fav[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: 0 1px 2px rgba(20, 22, 28, .08), 0 0 0 1px var(--line); }
.ui-fav:focus-visible, .ui-fav-add:focus-visible, .ui-fav-hint:focus-visible { outline: 2px solid var(--sel); outline-offset: 1px; }
.ui-fav-i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; overflow: hidden; }
.ui-fav-i svg { display: block; }
.ui-fav-add, .ui-fav-hint { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--text-3); font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1; cursor: pointer; }
.ui-fav-add { width: 30px; padding: 0; }
.ui-fav-hint { padding: 0 10px; }
.ui-fav-add:hover, .ui-fav-hint:hover { color: var(--text); background: var(--fill-1); }
.ui-fav-add svg, .ui-fav-hint svg { display: block; flex: none; }
/* the star by a tool's name (ui.js puts it in place, account.js keeps it) */
.title h1 > .fba-star { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -6px -4px -6px -3px; padding: 0; border: 0; border-radius: 7px;
  background: none; color: var(--text-3); cursor: pointer; }
.title h1 > .fba-star:hover, .title h1 > .fba-star:focus-visible { color: var(--text); background: var(--fill-1); }
.title h1 > .fba-star[aria-pressed="true"] { color: var(--amber); }
.title h1 > .fba-star svg { display: block; }
@media (max-width: 640px) {
  :root { --fs-h: 38px; }
  .ui-fs-in { padding: 0 16px; gap: 6px; }
}
@media print { body:has(> header.bar) { padding-top: 0; } .ui-fs { display: none; } }
/* Charts (shared standard, helper ../chart.js): viewBox = pixel size, so text is real px at every width.
   Heights: 280 px standard, 180 px compact, 220 px on phones (container < 600 px). Margins l 62, r 20, t 16, b 44; a right gutter for curve labels when needed. */
svg.fb-chart { display: block; width: 100%; height: auto; overflow: hidden; }   /* nothing a chart draws may leave its box */
svg.fb-chart .ch-t { font-size: 11px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
svg.fb-chart .ch-a { font-size: 12px; fill: var(--text-2); }
svg.fb-chart .ch-l { font-size: 12px; font-weight: 600; }

/* hub search shortcut hint */
.hub-q { position: relative; display: inline-flex; }
.hub-tools .hub-q input[type=search] { padding-right: 52px; }
.hub-tools .hub-q input[type=search]:focus, .hub-tools .hub-q input[type=search]:not(:placeholder-shown) { padding-right: 8px; }
/* Clear button: drawn, centred, at the field's right edge (the native one floated mid-field) */
.hub-tools input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0 0 0 8px; border-radius: 50%; cursor: pointer; background: var(--text-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 6l6 6M12 6l-6 6' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.hub-tools input[type=search]::-webkit-search-cancel-button:hover { background-color: var(--text); }
@media (max-width: 560px) { .hub-q { width: 100%; } }
.hub-kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 500 11px/1 Inter, system-ui, sans-serif; color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; background: var(--surface, var(--surface)); pointer-events: none; }
.hub-q input:focus + .hub-kbd, .hub-q input:not(:placeholder-shown) + .hub-kbd { display: none; }
@media (hover: none) { .hub-kbd { display: none; } }

/* viewers: "3 viewing now · 12,480 views" */
.ui-live { order: 99; display: none; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-left: 8px; white-space: nowrap; }
.ui-live.on { display: inline-flex; }
.ui-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(47,158,91,.45); animation: ui-live-pulse 2.4s ease-out infinite; display: inline-block; }
@keyframes ui-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(47,158,91,.45); } 70% { box-shadow: 0 0 0 6px rgba(47,158,91,0); } 100% { box-shadow: 0 0 0 0 rgba(47,158,91,0); } }
@media (prefers-reduced-motion: reduce) { .ui-live-dot { animation: none; } }
.ver-s .hub-live { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line); font-size: inherit; font-weight: inherit; color: inherit; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hub-live > span { display: inline-flex; align-items: center; gap: 3px; }
.hub-live svg { width: 11px; height: 11px; }
.hub-live .ui-live-dot { width: 5px; height: 5px; }
@media (max-width: 560px) { .ui-live { margin-left: 0; } }
/* the shared 3D axis gizmo (gizmo.js): click a letter to look along that axis */
svg .gizmo .gz { cursor: pointer; }
svg .gizmo .gz:hover circle.gzb { fill: var(--fill-1); }
/* the corner pill (version · checks · viewers) gets its own line, so it never sits on the card's title */
a.hub-row:has(.ver-s) { padding-top: 26px; }
/* versions.js adds that pill after the first paint (deferred): every tool card gets one (the #anchor aliases do not), so
   they take its padding from the start and the cards do not grow under the reader (layout shift) */
a.hub-row[href]:not([href*="#"]) { padding-top: 26px; }
#hubList:empty { min-height: 100vh; }   /* hub.js fills the list; until then "What's new" must not paint where the list goes */
a.hub-row:has(.ver-s) .ver-s { top: 6px; left: 8px; }

/* the corner pill is one centred row: version, checks and viewers share a centre line (never text baselines vs icons) */
.ver-s { display: inline-flex; align-items: center; gap: 0; height: 18px; line-height: 1; }
.ver-s .vf-n, .ver-s .hub-live, .ver-s .hub-live > span { display: inline-flex; align-items: center; line-height: 1; }
.ver-s .hub-live svg, .ver-s .ui-live-dot { display: block; flex: none; }

/* keyboard focus (T134): one visible ring site-wide in the selection blue, only for keyboard focus; drawing handles
   (made focusable by ui.js) get the same ring around their shape */
:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
svg :focus-visible { outline: none; filter: drop-shadow(0 0 1px var(--sel)) drop-shadow(0 0 1.5px var(--sel)); }   /* SVG parts: a blue halo round the shape (outlines do not paint on SVG groups) */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }   /* fields show focus by their border (site rule) */
/* reduced motion: CSS animations and transitions stop (SVG animations are paused by ui.js) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
/* the tools' amber margin colour (MS 0-20 %) is too light for text (2.6:1 on white): written inline as text colour it
   takes the darker ink; drawings, bars and fills keep the amber */
:not(svg):not(svg *)[style*="color:#d4962a" i], :not(svg):not(svg *)[style*="color: #d4962a" i], :not(svg):not(svg *)[style*="color: rgb(212, 150, 42)"], :not(svg):not(svg *)[style*="color:var(--amber)"], :not(svg):not(svg *)[style*="color: var(--amber)"],
:not(svg):not(svg *)[style*="color:#b7791f" i], :not(svg):not(svg *)[style*="color: #b7791f" i], :not(svg):not(svg *)[style*="color: rgb(183, 121, 31)"], :not(svg):not(svg *)[style*="color:var(--warn)"], :not(svg):not(svg *)[style*="color: var(--warn)"] { color: var(--warn-ink) !important; }
svg text[fill="#d4962a" i], svg text[style*="fill:#d4962a" i], svg text[style*="fill: rgb(212, 150, 42)"], svg text[fill="var(--amber)"], svg text[style*="fill:var(--amber)"],
svg text[fill="#b7791f" i], svg text[style*="fill:#b7791f" i], svg text[style*="fill: rgb(183, 121, 31)"], svg text[fill="var(--warn)"], svg text[style*="fill:var(--warn)"] { fill: var(--warn-ink) !important; }

/* ---------- appearance: Light / Dark / Auto (ui.js themeToggle; the tokens are the theme block at the top) ---------- */
.ui-theme { position: relative; display: inline-flex; margin: -4px 0; }   /* never makes the header taller */
header.bar > .ui-theme { margin: -6px -6px -6px 0; }   /* a header with only the breadcrumb (hub, libraries) keeps its height */
.ui-th-b { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: none;
  color: var(--text-3); cursor: pointer; }
.ui-th-b:hover, .ui-th-b[aria-expanded="true"] { background: var(--fill-1); color: var(--text); }
.ui-th-b:focus-visible, .ui-th-menu button:focus-visible { outline: 2px solid var(--sel); outline-offset: 1px; }
.ui-theme svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ui-theme .ui-th-fill { fill: currentColor; stroke: none; }
.ui-th-menu { position: absolute; z-index: 1001; top: calc(100% + 6px); right: 0; display: grid; gap: 1px; min-width: 196px; padding: 4px;
  background: var(--raised); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-pop); }
.ui-th-menu[hidden] { display: none; }
.ui-th-menu button { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 7px;
  background: none; color: var(--text-2); font-size: 13px; text-align: left; cursor: pointer; }
.ui-th-menu button small { font-size: 11.5px; color: var(--text-3); text-align: right; }
.ui-th-menu button:hover { background: var(--fill-1); color: var(--text); }
.ui-th-menu button[aria-checked="true"] { color: var(--text); font-weight: 500; background: var(--sel-bg); }
.ui-th-menu button[aria-checked="true"] svg { color: var(--sel); }

/* theme-auto:start · generated by scripts/theme/hexmap.py: dark values (the rule of scripts/theme/colour.py) for
   colours that are not tokens, written as var(--x-rrggbb, #rrggbb): light is the fallback, unchanged */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --x-1f4f9e: #739ee4; --x-1f5fbf: #71a6f9; --x-2f68b8: #7aaaf0; --x-2f8f9d: #7ac1cd; --x-3c8c4a: #82c289;
    --x-3f63a8: #85a6e3; --x-474b51: #a1a4aa; --x-4f8a5b: #8ebf96; --x-4f9a68: #8bc89c; --x-5a5e64: #909399;
    --x-5aa673: #90cda2; --x-5b4a33: #af9f8a; --x-5b7fa8: #8cabce; --x-6b4a0e: #b7996d; --x-6d28d9: #a793f1;
    --x-6e7177: #85827f; --x-6f5530: #af9878; --x-6f9fb5: #6d93a4; --x-6fb08a: #9bd0b0; --x-7b4fa6: #b995e1;
    --x-7c3aed: #af9af8; --x-7f98b5: #677b91; --x-7f9fc4: #809ab8; --x-7fa3c6: #7c99b6; --x-83a5cb: #839fbe;
    --x-8a4b22: #cd9473; --x-8a5a00: #c89e66; --x-8a5a0e: #c89e6a; --x-8a5a12: #c89e6b; --x-8a5a36: #c69b7d;
    --x-8a7f6a: #7e7565; --x-8f2d1a: #d98370; --x-8f8064: #847862; --x-8f8c83: #706d66; --x-8fa6bf: #556679;
    --x-9a5a2a: #d49c75; --x-9a6b4c: #c59c82; --x-9b2318: #e47e6e; --x-9cbf4e: #b9d77e; --x-9cc7ae: #61826f;
    --x-9db7e6: #9bb0d7; --x-9fc0e3: #6f89a4; --x-a3401f: #e38b70; --x-a39b8f: #666057; --x-a8865e: #b79a79;
    --x-a9b1b9: #4e545a; --x-a9cbe8: #4b6479; --x-b0321f: #ef8470; --x-b3a465: #cec28e; --x-b4544a: #e99489;
    --x-b5482d: #ed8e76; --x-b8cde3: #354452; --x-b9864a: #deb382; --x-b9b7ae: #504e48; --x-b9cde3: #354352;
    --x-b9dcc7: #2c4537; --x-bfcbd8: #3b434b; --x-c08425: #e4b16d; --x-c26a1d: #eda16b; --x-c46a3e: #efa17d;
    --x-c4b08a: #857659; --x-c4c2b9: #484741; --x-c8443a: #f98c7f; --x-c8b48e: #837457; --x-c98a2a: #e9b46e;
    --x-c98a5b: #e9b38c; --x-c99a5b: #e4bd8a; --x-c9ae7b: #c5af85; --x-c9c2d6: #46414f; --x-c9d6ee: #323a4a;
    --x-c9d8ec: #303a47; --x-c9dcbf: #333f2c; --x-cfd2d6: #3e3c39; --x-cfd4d9: #3d3b38; --x-cfd5dc: #373b40;
    --x-cfd6e4: #353a43; --x-d0aa4c: #e5c67d; --x-d24b33: #fc907b; --x-d7e6f3: #29323b; --x-d8ccb1: #473f2d;
    --x-d9533c: #fd9681; --x-d9a57e: #e3b797; --x-d9d6cc: #3c3a33; --x-d9dde1: #373532; --x-d9e4ef: #2c333a;
    --x-dccfb2: #463d2a; --x-dcd6c8: #3d3930; --x-ddd2bd: #423b2d; --x-dfe7f0: #2b3036; --x-e07b2e: #fea870;
    --x-e0a84a: #f1c37b; --x-e0b43c: #eeca71; --x-e2b23a: #f0c970; --x-e2c044: #ddc265; --x-e2c48f: #a18a61;
    --x-e2cda0: #5c4e2d; --x-e2efed: #262e2d; --x-e3b931: #efcd6b; --x-e3dccb: #3a352a; --x-e3e8d6: #2f3226;
    --x-e3e8f1: #2c2f34; --x-e4dccb: #3a352a; --x-e58a3a: #fdb174; --x-e6dac3: #3d3526; --x-e7ad8b: #edbca0;
    --x-e7b48f: #dbb193; --x-e7c9a6: #5d482f; --x-e7c9b1: #513d2d; --x-e8907a: #fdb29f; --x-e8a07f: #f9bca0;
    --x-e9b493: #d6ab90; --x-e9c77d: #967c43; --x-e9e4f0: #312e35; --x-ead7b8: #423520; --x-ecd6a6: #453613;
    --x-ecd6a8: #453615; --x-ecdcb6: #3f341a; --x-edf3e4: #282b22; --x-eeeeea: #2d2b28; --x-eef3fc: #25282e;
    --x-eef3fd: #25282e; --x-eef3fe: #25282f; --x-efc9ad: #573d2a; --x-efd9d5: #3e312e; --x-efe4c8: #37301e;
    --x-efe6d2: #342f22; --x-f0b46a: #f2c186; --x-f0d77c: #443802; --x-f1d2b8: #473422; --x-f1dfb6: #3d3215;
    --x-f1dfc4: #3c301f; --x-f1e6c9: #362f1c; --x-f1ede4: #2e2b26; --x-f2c9bd: #50352e; --x-f2d9bd: #42321f;
    --x-f2dcc4: #3f3121; --x-f2dcc6: #3e3022; --x-f2dfa3: #3f3201; --x-f3c58e: #826137; --x-f3d9cf: #403029;
    --x-f3e2c7: #3a2f1d; --x-f3ead9: #322c21; --x-f3ebe0: #302b24; --x-f4dccb: #3e2f24; --x-f4f4f1: #292724;
    --x-f6d3c4: #463027; --x-f6d9a8: #45320c; --x-f6e6dc: #352b25; --x-f8e1de: #392b2a; --x-f8ecd6: #322a1c;
    --x-fbecd0: #332a18; --x-fbfcff: #24221f; --x-fdf0c4: #32290a; --x-fdf8ee: #27241e; --x-fff1c7: #31280b;
    --x-fff3e0: #2d261a; --x-fffaf0: #26231d; --x-fffdf7: #24221f;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-1f4f9e: #739ee4; --x-1f5fbf: #71a6f9; --x-2f68b8: #7aaaf0; --x-2f8f9d: #7ac1cd; --x-3c8c4a: #82c289;
    --x-3f63a8: #85a6e3; --x-474b51: #a1a4aa; --x-4f8a5b: #8ebf96; --x-4f9a68: #8bc89c; --x-5a5e64: #909399;
    --x-5aa673: #90cda2; --x-5b4a33: #af9f8a; --x-5b7fa8: #8cabce; --x-6b4a0e: #b7996d; --x-6d28d9: #a793f1;
    --x-6e7177: #85827f; --x-6f5530: #af9878; --x-6f9fb5: #6d93a4; --x-6fb08a: #9bd0b0; --x-7b4fa6: #b995e1;
    --x-7c3aed: #af9af8; --x-7f98b5: #677b91; --x-7f9fc4: #809ab8; --x-7fa3c6: #7c99b6; --x-83a5cb: #839fbe;
    --x-8a4b22: #cd9473; --x-8a5a00: #c89e66; --x-8a5a0e: #c89e6a; --x-8a5a12: #c89e6b; --x-8a5a36: #c69b7d;
    --x-8a7f6a: #7e7565; --x-8f2d1a: #d98370; --x-8f8064: #847862; --x-8f8c83: #706d66; --x-8fa6bf: #556679;
    --x-9a5a2a: #d49c75; --x-9a6b4c: #c59c82; --x-9b2318: #e47e6e; --x-9cbf4e: #b9d77e; --x-9cc7ae: #61826f;
    --x-9db7e6: #9bb0d7; --x-9fc0e3: #6f89a4; --x-a3401f: #e38b70; --x-a39b8f: #666057; --x-a8865e: #b79a79;
    --x-a9b1b9: #4e545a; --x-a9cbe8: #4b6479; --x-b0321f: #ef8470; --x-b3a465: #cec28e; --x-b4544a: #e99489;
    --x-b5482d: #ed8e76; --x-b8cde3: #354452; --x-b9864a: #deb382; --x-b9b7ae: #504e48; --x-b9cde3: #354352;
    --x-b9dcc7: #2c4537; --x-bfcbd8: #3b434b; --x-c08425: #e4b16d; --x-c26a1d: #eda16b; --x-c46a3e: #efa17d;
    --x-c4b08a: #857659; --x-c4c2b9: #484741; --x-c8443a: #f98c7f; --x-c8b48e: #837457; --x-c98a2a: #e9b46e;
    --x-c98a5b: #e9b38c; --x-c99a5b: #e4bd8a; --x-c9ae7b: #c5af85; --x-c9c2d6: #46414f; --x-c9d6ee: #323a4a;
    --x-c9d8ec: #303a47; --x-c9dcbf: #333f2c; --x-cfd2d6: #3e3c39; --x-cfd4d9: #3d3b38; --x-cfd5dc: #373b40;
    --x-cfd6e4: #353a43; --x-d0aa4c: #e5c67d; --x-d24b33: #fc907b; --x-d7e6f3: #29323b; --x-d8ccb1: #473f2d;
    --x-d9533c: #fd9681; --x-d9a57e: #e3b797; --x-d9d6cc: #3c3a33; --x-d9dde1: #373532; --x-d9e4ef: #2c333a;
    --x-dccfb2: #463d2a; --x-dcd6c8: #3d3930; --x-ddd2bd: #423b2d; --x-dfe7f0: #2b3036; --x-e07b2e: #fea870;
    --x-e0a84a: #f1c37b; --x-e0b43c: #eeca71; --x-e2b23a: #f0c970; --x-e2c044: #ddc265; --x-e2c48f: #a18a61;
    --x-e2cda0: #5c4e2d; --x-e2efed: #262e2d; --x-e3b931: #efcd6b; --x-e3dccb: #3a352a; --x-e3e8d6: #2f3226;
    --x-e3e8f1: #2c2f34; --x-e4dccb: #3a352a; --x-e58a3a: #fdb174; --x-e6dac3: #3d3526; --x-e7ad8b: #edbca0;
    --x-e7b48f: #dbb193; --x-e7c9a6: #5d482f; --x-e7c9b1: #513d2d; --x-e8907a: #fdb29f; --x-e8a07f: #f9bca0;
    --x-e9b493: #d6ab90; --x-e9c77d: #967c43; --x-e9e4f0: #312e35; --x-ead7b8: #423520; --x-ecd6a6: #453613;
    --x-ecd6a8: #453615; --x-ecdcb6: #3f341a; --x-edf3e4: #282b22; --x-eeeeea: #2d2b28; --x-eef3fc: #25282e;
    --x-eef3fd: #25282e; --x-eef3fe: #25282f; --x-efc9ad: #573d2a; --x-efd9d5: #3e312e; --x-efe4c8: #37301e;
    --x-efe6d2: #342f22; --x-f0b46a: #f2c186; --x-f0d77c: #443802; --x-f1d2b8: #473422; --x-f1dfb6: #3d3215;
    --x-f1dfc4: #3c301f; --x-f1e6c9: #362f1c; --x-f1ede4: #2e2b26; --x-f2c9bd: #50352e; --x-f2d9bd: #42321f;
    --x-f2dcc4: #3f3121; --x-f2dcc6: #3e3022; --x-f2dfa3: #3f3201; --x-f3c58e: #826137; --x-f3d9cf: #403029;
    --x-f3e2c7: #3a2f1d; --x-f3ead9: #322c21; --x-f3ebe0: #302b24; --x-f4dccb: #3e2f24; --x-f4f4f1: #292724;
    --x-f6d3c4: #463027; --x-f6d9a8: #45320c; --x-f6e6dc: #352b25; --x-f8e1de: #392b2a; --x-f8ecd6: #322a1c;
    --x-fbecd0: #332a18; --x-fbfcff: #24221f; --x-fdf0c4: #32290a; --x-fdf8ee: #27241e; --x-fff1c7: #31280b;
    --x-fff3e0: #2d261a; --x-fffaf0: #26231d; --x-fffdf7: #24221f;
  }
}
/* theme-auto:end */
