/* osifont: ISO 3098 lettering for the Rapid Datum mark (LGPL 3 with font exception, see fonts/osifont-README.md) */
@font-face { font-family: 'osifont'; src: url('/s/509e84079d/fonts/osifont-lgpl3fe.ttf') format('truetype'); font-weight: normal; font-style: normal; font-display: swap; }
/* Inter, served from here instead of Google Fonts (a render-blocking stylesheet plus a second host to connect to).
   Variable font, latin subset (SIL OFL 1.1, see fonts/inter-LICENSE.txt). Not preloaded: on a slow link the preload
   competes with the stylesheet, script and hero image that paint the page, and the fallback below covers the wait.
   'Inter Fallback' is Arial resized to Inter's metrics, so the text does not jump when the real font arrives. */
@font-face { font-family: 'Inter'; src: url('/s/509e84079d/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107.64%; ascent-override: 89.79%; descent-override: 22.36%; line-gap-override: 0%; }

:root {
  --bg: #0e1116; --panel: #151a21; --panel2: #1b222b; --line: #27303b; --text: #e6e9ee; --dim: #8b95a3;
  --ok-text: var(--ok); --warn-text: var(--warn); --bad-text: var(--bad);
  --accent-text: var(--accent);   /* the accent as text: darkened on the light theme for 4.5:1 */
  --dim-hi: #9aa4b1; --turn-op: .85;   /* Describe's small dim text: 4.5:1 on the tinted cards, and the past answers, in the dark theme */
  --accent: #6ee1d2; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --A: #ffb000; --B: #00d4ff; --C: #ff4fd8; --cand: #93c5fd;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --cad-bg: #0b0e12; --sheet-bg: #2a2f36; --on-accent: #06202c;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--panel));
  --accent-hi: color-mix(in srgb, var(--accent) 65%, white);
  --accent-glow: color-mix(in srgb, var(--accent) 45%, transparent);
  --ok-soft: color-mix(in srgb, var(--ok) 18%, var(--panel));
  --bad-soft: color-mix(in srgb, var(--bad) 18%, var(--panel));
  color-scheme: dark;
}
/* light: the whole application on paper tones; mixed: the dark application with a light CAD view */
:root[data-theme="light"] {
  --bg: #f3f5f8; --panel: #ffffff; --panel2: #eef2f6; --line: #d7dde5; --text: #16202b; --dim: #5b6775; --dim-hi: var(--dim); --turn-op: .95; --accent-text: color-mix(in srgb, var(--accent) 84%, black);
  --ok-text: color-mix(in srgb, var(--ok) 55%, black); --warn-text: color-mix(in srgb, var(--warn) 55%, black); --bad-text: color-mix(in srgb, var(--bad) 68%, black);
  --cad-bg: #d6dce4; --sheet-bg: #cfd6de; --on-accent: #06202c;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--panel));
  --accent-hi: color-mix(in srgb, var(--accent) 60%, white);
  color-scheme: light;
}
:root[data-theme="mixed"] { --cad-bg: #d6dce4; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, 'Inter Fallback', system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }   /* read by screen readers, not seen */
button { font: inherit; border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 7px 14px; border-radius: 6px; cursor: pointer; }
button:hover { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; border-color: var(--line); }
button.primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--on-accent); border-color: var(--accent); font-weight: 600; box-shadow: 0 0 0 1px var(--accent-glow), 0 6px 18px -8px var(--accent-glow); }
button.primary:hover { filter: brightness(1.06); }
button.ghost { background: transparent; }
select, textarea, input[type=text], input[type=email] { font: inherit; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; }
textarea { width: 100%; resize: vertical; }
label { display: inline-flex; flex-direction: column; gap: 4px; }
label small { color: var(--dim); }
.chip { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--dim); }
.chip.ok { border-color: var(--ok); color: var(--ok-text); }
.chip.bad { border-color: var(--bad); color: var(--bad-text); }

.top { display: flex; justify-content: space-between; align-items: center; padding: 9px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #171d26, var(--panel)); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 400; font-family: 'osifont', Inter, 'Inter Fallback', system-ui, sans-serif; font-size: 17px; letter-spacing: .4px; display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }   /* the name in the same ISO lettering as the mark on the sheet */
.brand .logomark { width: 22px; height: 22px; display: block; color: var(--accent-text); }
.brand > span:first-of-type { position: relative; top: .12em; }   /* osifont's capitals sit high in its line box: drop the name onto the mark's centre */
.brand .sub { margin-left: 4px; font-weight: 400; color: var(--dim); font-size: 12px; }
.herologo { width: 46px; height: 46px; vertical-align: -10px; margin-right: 10px; color: var(--accent-text); }
.status { display: flex; align-items: center; gap: 12px; }
.status .mode { flex-direction: row; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; }

main { min-height: calc(100vh - var(--chrome, 50px)); }
.screen { display: none; }
.screen.active { display: block; }
/* before app.js has decided (index.html's head script): the landing page, not the app's upload screen */
html[data-first="land"] .screen.active { display: none; }
html[data-first="land"] #land.hidden { display: block !important; }

/* screen 1 */
.hero { text-align: center; padding: 44px 20px 10px; position: relative; }
.hero h1, .hero h2 { font-size: 30px; margin: 0 0 8px; font-weight: 700; letter-spacing: -.3px; }
#s0, #s1 { background: radial-gradient(900px 420px at 50% -10%, rgba(125, 211, 252, .10), transparent 70%), linear-gradient(transparent 0, transparent 100%); }
#s0::before, #s1::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(125,211,252,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(125,211,252,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%); }
#s0, #s1 { position: relative; }
#s0 > *, #s1 > * { position: relative; }
.hero p { margin: 0; color: var(--dim); }
.drop { margin: 22px auto 10px; width: min(820px, 92vw); height: 190px; border: 2px dashed #3b4654; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--dim); transition: border-color .15s, background .15s; }
.drop b { font-size: 20px; color: var(--text); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.unitsrow { text-align: center; color: var(--dim); font-size: 13px; }
.unitsrow label { flex-direction: row; align-items: center; gap: 8px; }
.panel { margin: 18px auto; width: min(820px, 92vw); background: linear-gradient(180deg, #171d26, var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 50px -30px rgba(0,0,0,.8); }
.panel h2 { margin: 0; font-size: 18px; }
.panel .row { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.warn { color: var(--warn-text); font-size: 13px; }
.prow .ok { color: var(--ok-text); font-size: 13px; font-weight: 600; }
.partwarn { padding: 6px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }

.signin .row { align-items: end; }
.signin input[type=text] { width: 100%; }
.hero .brandname { letter-spacing: 1px; font-family: 'osifont', Inter, 'Inter Fallback', system-ui, sans-serif; font-weight: 400; position: relative; top: .12em; }
.chip a, a.chip { text-decoration: none; }
/* screens 2 and 3 */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--panel); min-width: 0; }
.bar > div:first-child { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar > div:last-child { flex: none; }
.bar .dim { margin-left: 10px; }

/* working state */
.busy .box { width: min(560px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.busy .title { font-size: 16px; font-weight: 600; }
.busy .meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.busy .meter::after { content: ""; position: absolute; left: -40%; width: 40%; height: 100%; background: var(--accent); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { to { left: 100%; } }
.busy .lines { color: var(--dim); font-size: 13px; }
.busy .lines b { color: var(--text); font-weight: 500; }

/* recent parts */
.recent { margin: 0 auto 16px; width: min(820px, 92vw); }
.recent h3 { font-size: 13px; color: var(--dim); font-weight: 500; margin: 0 0 6px; }
.recent .item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; background: var(--panel); }
.recent .item .name { font-weight: 600; }
.recent .item .meta { color: var(--dim); font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unitsrow .declared { margin-left: 10px; color: var(--accent-text); }
.two { display: flex; flex: 1; min-height: 360px; }
#s1b.active, #s2.active, #s3.active { display: flex; flex-direction: column; height: calc(100vh - var(--chrome, 98px)); overflow: hidden; }
#s1b .bar, #s2 .bar, #s3 .studiobar, #s3 .toolbar, #s2 .foot, #s3 .foot { flex: none; }
.metabar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; background: var(--accent-soft); border-bottom: 1px solid var(--accent); font-size: 13px; }
.metabar button { flex: none; }
.viewer { flex: 1.25; position: relative; background: var(--cad-bg); min-width: 0; min-height: 0; overflow: hidden; }
.viewer.small { flex: 0.9; }
/* The canvas never gets to size its own container: its drawing buffer is
   devicePixelRatio times larger than its CSS box, and on a scaled display
   letting it set the box width loops the layout forever. */
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.two > * { min-width: 0; }
.viewer .hint { position: absolute; right: 12px; bottom: 10px; text-align: right; font: 400 11px/1.4 'osifont', Inter, 'Inter Fallback', system-ui, sans-serif; letter-spacing: .3px; text-transform: uppercase; color: var(--dim); pointer-events: none; }   /* the logo's ISO lettering, as on the drawing page */
.hud { position: absolute; left: 12px; top: 12px; background: rgba(14,17,22,.9); border: 1px solid var(--accent); border-radius: 8px; padding: 10px 12px; max-width: 360px; font-size: 13px; }
.hud.compact { left: 12px; right: 12px; top: auto; bottom: 34px; max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 10px; background: rgba(14,17,22,.82); }
.hud.compact .sel { margin: 0; }
.hud.compact .hint2, .hud.compact .hov { color: #9aa4b1; }   /* the bar is always dark, so a fixed light grey (4.6:1 or better on it, even over the light theme's viewer), not the theme's --dim */
.hud.compact .hint2 { font-size: 12px; white-space: nowrap; }
.hud.compact .grow { flex: 1; }
.hud.compact button { padding: 4px 12px; font-size: 13px; }
.hud.compact button.ghost { color: #e6edf3; border-color: #5b6775; }   /* Cancel stays readable on the dark bar in the light theme too */
.hud .sel { font-family: var(--mono); color: var(--accent-text); margin: 6px 0; }
.hud .row { display: flex; gap: 8px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.hud input[type=text] { flex: 1; min-width: 180px; }
.cards { flex: 1; overflow: auto; padding: 14px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel); transition: border-color .12s; }
.card:hover { border-color: #3b4654; }
.card.locked { border-color: var(--ok); }
.card.ask { border-color: var(--warn); }
.card .hd { display: flex; align-items: center; gap: 10px; }
.badge { font: 700 15px var(--mono); width: 30px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #0b0e12; }
.badge.A { background: var(--A); } .badge.B { background: var(--B); } .badge.C { background: var(--C); }
.card .type { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.card .conf { margin-left: auto; }
.conf.high { border-color: var(--ok); color: var(--ok-text); } .conf.medium { border-color: var(--warn); color: var(--warn-text); } .conf.low { border-color: var(--bad); color: var(--bad-text); }
.card .faces { font-size: 13px; font-weight: 500; margin: 6px 0 4px; }
.card .why { margin: 4px 0 8px; }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cand { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.cand:hover { border-color: var(--cand); }
.cand.sel { border-color: var(--accent); background: var(--accent-soft); }
.cand .tag { font: 11px var(--mono); color: var(--dim); white-space: nowrap; padding-top: 2px; }
.card.locked .lockline { color: var(--ok-text); font-size: 13px; }
.foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--panel); }

/* the drawing studio */
.studiobar { padding: 6px 20px; position: relative; }
.revpop { right: 20px; top: 46px; min-width: 360px; max-width: 520px; }
.revpop .ritem { cursor: default; }
.revpop .ritem button { border: 1px solid var(--line); padding: 2px 8px; font-size: 12px; }
.studiobar .partline { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studiobar .actions { display: flex; gap: 6px; flex: none; }
.toolbar { display: flex; align-items: stretch; gap: 0; padding: 4px 12px; border-bottom: 1px solid var(--line); background: var(--panel); overflow-x: auto; }
.toolbar .group { display: flex; flex-direction: column; justify-content: space-between; gap: 3px; padding: 0 10px 2px; border-right: 1px solid var(--line); }
.toolbar .group .tools { display: flex; align-items: flex-end; gap: 2px; }
.toolbar .group:last-child { border-right: none; }
.toolbar .group .gname { padding-left: 6px; line-height: 12px; white-space: nowrap; font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; }
.toolbar .tool { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 4px 6px; border: 1px solid transparent; background: transparent; border-radius: 6px; font-size: 11px; color: var(--text); cursor: pointer; touch-action: manipulation; }
.toolbar .tool svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.toolbar .tool.icononly { min-width: 36px; padding: 10px 6px; justify-content: center; }
.toolbar .tool.icononly svg { width: 20px; height: 20px; }
.fmt { display: flex; gap: 6px; flex: none; align-items: center; margin-right: 10px; }
.fmt select { padding: 4px 8px; font-size: 12px; border-radius: 999px; }
.vtl { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 9px; color: var(--dim); line-height: 1; cursor: pointer; }
.vtoggle { width: 16px; height: 28px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); position: relative; }
.vtoggle .knob { position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); transition: top .15s, background .15s; }
.vtoggle.down .knob { top: 14px; background: var(--dim); }
.vtoggle:disabled { opacity: .45; }
.toolbar .tool:hover { border-color: #3b4654; background: var(--panel2); }
.toolbar .tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.toolbar .tool.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.toolbar .tool.on svg { stroke: var(--accent); }
.toolbar .tool.active { color: var(--ok-text); }
.toolbar .tool kbd { font: 10px var(--mono); color: var(--dim); }
.studio { display: flex; flex: 1; min-height: 360px; }
.sheetwrap { flex: 1; min-width: 0; min-height: 0; background: var(--sheet-bg); position: relative; overflow: hidden; cursor: default; }
.sheetwrap svg.dwg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
.sheetmark { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; pointer-events: none; user-select: none; overflow: hidden; }
.sheetmark span { transform: rotate(-30deg); white-space: nowrap; font: 700 clamp(28px, 7vw, 110px)/1 Arial, Helvetica, sans-serif; color: rgba(120, 120, 120, .18); letter-spacing: .02em; }
.props .grid.one { grid-template-columns: 1fr; }
.props .grid.one textarea { width: 100%; }
.toolhint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); background: rgba(14,17,22,.92); border: 1px solid var(--accent); color: var(--text); font-size: 13px; padding: 6px 12px; border-radius: 8px; pointer-events: none; z-index: 4; }
.sheetwrap .inline-edit, .sheetwrap textarea.inline-edit, .sheetwrap input.inline-edit { position: absolute; z-index: 20; width: auto; font-family: Arial, Helvetica, sans-serif; background: #fff; color: #111; border: 1.5px solid #1d7bd8; border-radius: 3px; padding: 2px 5px; outline: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); resize: none; white-space: pre-wrap; }
.ctx { position: absolute; z-index: 7; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px; min-width: 190px; box-shadow: 0 8px 24px rgba(0,0,0,.4); display: flex; flex-direction: column; }
.ctx button { text-align: left; border: none; background: transparent; padding: 6px 10px; border-radius: 5px; font-size: 13px; }
.ctx button:hover { background: var(--panel2); }
.ctx button:disabled { opacity: .4; }
.ctx .sep { height: 1px; background: var(--line); margin: 4px 2px; }
.rail { width: 370px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--panel); font-size: 13px; min-height: 0; }
.rail .tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.rail .tabs button { flex: 1; border: none; border-bottom: 2px solid transparent; background: transparent; border-radius: 0; padding: 9px 4px; color: var(--dim); font-weight: 600; }
.rail .tabs button.on { color: var(--accent-text); border-bottom-color: var(--accent); }
.rail .tab { display: none; overflow: auto; flex: 1; min-height: 0; }
.rail .tab.on { display: block; }
.rail details { border-bottom: 1px solid var(--line); }
.rail summary { padding: 8px 12px; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; align-items: center; gap: 8px; }
.rail summary::before { content: "\25B8"; color: var(--dim); font-size: 11px; }
.rail details[open] summary::before { content: "\25BE"; }
.rail summary .count { margin-left: auto; color: var(--dim); font-weight: 400; font-size: 12px; }
.rlist { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 4px; }
.ritem { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.ritem:hover { border-color: #3b4654; }
.ritem.sel { border-color: var(--accent); background: var(--accent-soft); }
.ritem .lbl { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.ritem .why { color: var(--dim); font-size: 12px; flex: 1; min-width: 0; }
.ritem input[type=checkbox] { margin-top: 3px; }
.ritem .nec { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; color: var(--dim); white-space: nowrap; }
.ritem .nec.required { border-color: var(--ok); color: var(--ok-text); }
.ritem .nec.recommended { border-color: var(--accent); color: var(--accent-text); }
.ritem .nec.optional { border-color: var(--warn); color: var(--warn-text); }
.props { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.props h4 { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.props h4 .type { color: var(--dim); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.props .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.props label { font-size: 12px; }
.props input[type=text], .props select, .props textarea { width: 100%; padding: 5px 7px; font-size: 13px; }
.props .why { font-size: 12px; color: var(--dim); line-height: 1.5; }
.props .why b { color: var(--text); font-weight: 500; }
.props .cmds { display: flex; gap: 6px; flex-wrap: wrap; }
.props .cmds button { padding: 5px 10px; font-size: 12px; }
.props .empty { color: var(--dim); font-size: 13px; line-height: 1.6; }
.props .empty kbd { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; color: var(--text); }
.rail .field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; margin-bottom: 6px; }
.rail .field input[type=text], .rail .field select, .rail .field textarea { width: 100%; padding: 5px 7px; font-size: 13px; }
.rail .field.row { flex-direction: row; align-items: center; gap: 8px; }
.calls { padding: 4px 12px 10px; font-size: 12px; }
.foot .hint { font: 400 11px/1.4 'osifont', Inter, 'Inter Fallback', system-ui, sans-serif; letter-spacing: .3px; text-transform: uppercase; }
#s3 .foot { gap: 24px; }
#s2 #progress { font: 400 11px/1.4 'osifont', Inter, 'Inter Fallback', system-ui, sans-serif; letter-spacing: .3px; text-transform: uppercase; }   /* the drawing page's status lettering (Mitch, Datum list item 12) */
#s3 #s3status { flex: none; max-width: 45%; font: 400 11px/1.4 'osifont', Inter, 'Inter Fallback', system-ui, sans-serif; letter-spacing: .3px; text-transform: uppercase; }   /* a short status stays on one line; a long one (a chat summary, a save error, the revision banner) wraps inside its 45% rather than running over the hints, which take the rest: one line at 1280, two at 1024 */
#s3 .foot .hint { flex: 1 1 0; min-width: 0; text-align: right; }   /* the shortcut hints in the logo's ISO lettering */
/* chat */
#tab-chat { display: none; flex-direction: column; }
#tab-chat.on { display: flex; }
.chatlog { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.chatlog .msg { max-width: 92%; padding: 7px 10px; border-radius: 10px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.chatlog .msg.user { align-self: flex-end; background: var(--accent-soft); border: 1px solid var(--accent); }
.chatlog .msg.ai { align-self: flex-start; background: var(--panel2); border: 1px solid var(--line); }
.chatlog .msg .ops { margin-top: 5px; font-size: 11px; color: var(--ok-text); font-family: var(--mono); }
.chatlog .msg .errs { margin-top: 3px; font-size: 11px; color: var(--warn-text); font-family: var(--mono); }
.chatlog .empty { color: var(--dim); font-size: 13px; line-height: 1.6; padding: 6px; }
.chatform { flex: none; border-top: 1px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.chatform textarea { width: 100%; resize: none; }
.chatform .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }

/* datum cards: a colour stripe per letter, the reason on every card */
.card.dcard { border-left: 4px solid var(--dc); }
.card .why b { color: var(--dim); font-weight: 600; margin-right: 4px; }
.card .whymore { margin-top: 4px; font-size: 12px; color: var(--dim); }
.card .whymore summary { cursor: pointer; width: fit-content; }
.card .whymore div { margin-top: 4px; line-height: 1.5; }
.card .alts { margin-top: 8px; }
.card .selreason { width: 100%; margin: 6px 0 8px; }
.learned { font-size: 12px; padding: 2px 4px; }
.learned a { color: var(--accent-text); }
.decisions .decision { margin: 8px 0; }
.defaultline { margin: 2px 0 4px; font-size: 12px; }
.card.notes ul { margin: 6px 0 0; padding-left: 18px; color: var(--dim); font-size: 13px; }

/* the account page: what the AI has learned */
.lessons { display: flex; flex-direction: column; gap: 8px; }
.lesson { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.lesson .forget { margin-left: auto; flex: none; }
.lesson .small { font-size: 12px; margin-top: 2px; }

/* the feedback button lives bottom-left, so footers start to its right and the chat gets a clear link */
.foot { padding-left: 72px; }
.chatclear { display: flex; justify-content: flex-end; }
.chatclear button { font-size: 12px; padding: 3px 9px; }
.msg.greet { line-height: 1.5; }

/* the describe bar: inline labels so the bar stays one line tall */
.bar .mode { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; white-space: nowrap; }
.bar .mode select { max-width: 320px; }
.bar .row { display: flex; gap: 14px; align-items: center; }

/* the describe interview */
.interview { flex: 1; display: flex; flex-direction: column; border-left: 1px solid var(--line); min-width: 0; overflow: auto; }
.interview .ihead { padding: 14px 18px 10px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 2; }
.interview .ihead h2 { margin: 0 0 8px; font-size: 17px; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.progress .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--teal, #2dd4bf)); transition: width .4s; }
.ilog { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 0; }
.iturn { display: flex; gap: 10px; opacity: var(--turn-op); }
.iturn .q { font-weight: 500; }
.iturn .a { color: var(--dim); font-size: 13px; margin-top: 2px; }
.iturn .a.skipped { font-style: italic; }
.iturn.editable { cursor: pointer; border-radius: 8px; margin: -4px -6px; padding: 4px 6px; }
.iturn.editable:hover, .iturn.editable:focus-visible { background: var(--accent-soft); outline: none; }
.iturn.editing { background: var(--accent-soft); }
.icur .numrow { display: flex; gap: 10px; align-items: center; }
.icur .numfield { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elev, transparent); overflow: hidden; }
.icur .numfield:focus-within { border-color: var(--accent); }
.icur .numfield input { border: 0; background: transparent; width: 120px; padding: 9px 11px; font: 600 15px var(--mono); -moz-appearance: textfield; }
.icur .numfield input::-webkit-outer-spin-button, .icur .numfield input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.icur .numfield .unit { padding: 0 11px; color: var(--dim-hi); font-size: 13px; border-left: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; }
.idone .idone-note { margin-bottom: 6px; }
.idone .row { margin-top: 4px; }
.lbadge { flex: none; width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font: 700 14px var(--mono); background: var(--accent); color: var(--on-accent); }
.icur { margin: 14px 18px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 0 1px var(--accent-glow), 0 14px 40px -24px var(--accent-glow); }
.icur .qrow { display: flex; gap: 10px; align-items: flex-start; }
.icur .q { font-size: 15px; font-weight: 600; line-height: 1.4; }
.icur .why { color: var(--dim-hi); font-size: 12px; }
.cadq { margin: 12px 0 10px; display: grid; gap: 8px; }
.cadq .choices { display: flex; flex-wrap: wrap; gap: 6px; }
.cadq .choices button { padding: 5px 11px; font-size: 13px; border-radius: 999px; border: 1px solid var(--line); }
.cadq .choices button.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.cadq .cadq-help { font-size: 12.5px; max-width: 62ch; }
.cadq .cadq-rem { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.cadq .cadq-rem label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.cadq.cadq-line { display: block; font-size: 13px; margin: 6px 0; }
.cadq-line button.link { background: none; border: 0; padding: 0; color: var(--accent, #2b6cb0); text-decoration: underline; cursor: pointer; font: inherit; }
.icur .choices { display: flex; flex-wrap: wrap; gap: 6px; }
.icur .choices button { padding: 5px 11px; font-size: 13px; border-radius: 999px; }
.icur .choices button.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.icur input[type=text] { width: 100%; padding: 9px 11px; font-size: 14px; }
.icur .arow { display: flex; gap: 8px; align-items: center; }
.icur .arow .hintk { color: var(--dim-hi); font-size: 12px; margin-left: auto; }
.icur .thinking { color: var(--dim); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.icur .thinking .spinner { width: 14px; height: 14px; border-width: 2px; }
.idone { margin: 14px 18px; padding: 14px 16px; border: 1px solid var(--ok); border-radius: 12px; background: var(--ok-soft); display: flex; flex-direction: column; gap: 10px; }
.idone h3 { margin: 0; font-size: 15px; }
.idone .sum { color: var(--dim-hi); font-size: 13px; white-space: pre-wrap; max-height: 200px; overflow: auto; margin-top: 8px; }
.idone summary { cursor: pointer; font-size: 13px; }
.idone .dim { color: var(--dim-hi); }
.irow { display: flex; gap: 8px; padding: 6px 18px 16px; margin-top: auto; }
.vlabel { position: absolute; z-index: 3; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font: 700 14px var(--mono); display: flex; align-items: center; justify-content: center; pointer-events: none; box-shadow: 0 0 0 2px var(--cad-bg), 0 6px 16px -4px rgba(0,0,0,.8); }
.vlabel.dimmed { opacity: .45; }
.vlabel.back { opacity: .55; }
.vleaders { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.vleaders line { stroke-width: 1.5; }
.vleaders line.back { stroke-dasharray: 4 3; opacity: .6; }
.vleaders circle { stroke: var(--cad-bg); stroke-width: 1.5; }

/* header: navigation and the account menu */
.top .nav { display: flex; gap: 4px; margin-left: 18px; flex: 1; }
.top .nav a { color: var(--dim); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-weight: 500; }
.top .nav a:hover { color: var(--text); background: var(--panel2); }
.top .nav a.on { color: var(--accent-text); background: var(--accent-soft); }
.top.signedout .nav, .top.signedout .status { visibility: hidden; }
.acct { position: relative; }
.acctbtn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; }
.acctpic { display: inline-flex; align-items: center; }
.acctpic .av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; }
.acctbtn:has(.av) { padding-left: 5px; }
.acctbtn.on { border-color: var(--accent); color: var(--accent-text); }   /* on the account page */
.acct .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 18px 50px -20px rgba(0,0,0,.9); z-index: 30; display: flex; flex-direction: column; }
.acct .menu a, .acct .menu .menuitem { display: block; text-align: left; color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 7px; background: transparent; border: none; font: inherit; cursor: pointer; }
.acct .menu a:hover, .acct .menu .menuitem:hover { background: var(--panel2); }
.acct .menu .who { padding: 6px 10px 8px; color: var(--dim); font-size: 12px; }
.acct .menu .sep { height: 1px; background: var(--line); margin: 5px 4px; }
.acct .menu .proc { padding: 4px 10px 2px; display: flex; flex-direction: column; gap: 6px; }
.acct .menu .proc .ptitle { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .5px; }
.acct .menu .proc label { font-size: 12px; }
.acct .menu .proc select { width: 100%; }
/* the progress bar under the header on every signed-in screen: four segments, the current one wider, its explanation underneath */
.stepbar { display: flex; align-items: flex-start; gap: 18px; padding: 8px 20px 9px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.stepbar a { color: var(--dim); text-decoration: none; }
.stepbar a:hover { color: var(--text); }
.stepbar .crumb { display: flex; gap: 8px; align-items: center; min-width: 0; max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 5px; }
.stepbar .crumb b { color: var(--text); }
.stepbar .crumb > * { flex: none; }   /* a long part name shortens with an ellipsis; Rev stays whole */
.stepbar .crumb #sb-project, .stepbar .crumb b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stepbar .crumb #sb-project { flex-shrink: 1000; min-width: 4em; }   /* the project name gives way before the part's number and name */
.steps4 { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 6px; row-gap: 2px; }
.steps4[data-cur="1"] { grid-template-columns: 3.4fr 1fr 1fr 1fr; }
.steps4[data-cur="2"] { grid-template-columns: 1fr 3.4fr 1fr 1fr; }
.steps4[data-cur="3"] { grid-template-columns: 1fr 1fr 3.4fr 1fr; }
.steps4[data-cur="4"] { grid-template-columns: 1fr 1fr 1fr 3.4fr; }
.steps4 .stp { grid-row: 1; padding: 0; border: 0; background: none; color: var(--dim); font: inherit; text-align: left; cursor: default; min-width: 0; }
.steps4 .stp:disabled { opacity: 1; }
.steps4 .seg { display: block; height: 3px; border-radius: 2px; background: var(--line); margin-bottom: 6px; }
.steps4 .hd { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps4 .n { font-family: var(--mono); margin-right: 6px; }
.steps4 .stp.done { color: var(--text); cursor: pointer; }
.steps4 .stp.done .seg { background: var(--accent); opacity: .55; }
.steps4 .stp.done:hover .hd { color: var(--accent-text); }
.steps4 .stp.current { color: var(--accent-text); }
.steps4 .stp.current .seg { background: var(--accent); opacity: 1; }
@media (max-width: 760px) {
  .stepbar { padding: 7px 12px 8px; }
  .stepbar .crumb { display: none; }
  .steps4[data-cur] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps4 .hd { font-size: 11px; }
  .steps4 .n { margin-right: 4px; }
}
/* the contact page: the form on the left, the other ways in on the right */
.contact .hero p { max-width: 640px; margin: 0 auto; }
.cgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 18px; align-items: start; margin-top: 22px; }
.cform { margin: 0; width: auto; }
.cform .grid2 input[type=email] { width: 100%; }
.cform textarea { min-height: 140px; }
/* the waitlist form (web/waitlist_form.js): on /waitlist and on the private-beta screen */
.wlpanel { max-width: 640px; margin: 22px auto 0; }
.wlform .grid2 input[type=email] { width: 100%; }
.wlform input[readonly] { opacity: .75; }
.wlmsg { min-height: 1.4em; margin-top: 8px; font-size: 13px; color: var(--bad-text); }
.wlprivacy { flex: 1 1 260px; font-size: 12px; line-height: 1.45; }
.wldone h3 { margin: 4px 0 6px; }
.wlnote { margin-top: 18px; }
.waitlist .hero .betachip { display: inline-block; margin-bottom: 10px; }
#noaccess .wlform { margin-top: 14px; text-align: left; }
.cweb { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.crow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.crow .warn { color: var(--bad-text); }
.chint { margin-top: 2px; }
.cdone { padding: 12px 0 4px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cdone p { margin: 0; color: var(--dim); }
.cways { display: flex; flex-direction: column; gap: 10px; }
.cway { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #171d26, var(--panel)); color: var(--text); text-decoration: none; transition: border-color .12s, transform .12s; }
.cway svg { flex: none; color: var(--accent-text); }
.cway div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cway b { font-size: 15px; }
.cway span { color: var(--dim); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
a.cway:hover { border-color: var(--accent); transform: translateY(-1px); }
.cnotes { margin-top: 8px; padding: 4px 4px 0; }
.cnotes h3 { margin: 0 0 8px; font-size: 14px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.cnotes ul { margin: 0 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.cnotes p { margin: 0; font-size: 13px; }
@media (max-width: 760px) { .cgrid { grid-template-columns: 1fr; } .cform .grid2 { grid-template-columns: 1fr; } }

/* pages: projects, pricing, contact */
.page { width: min(1040px, 94vw); margin: 26px auto 70px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.pagehead h1 { margin: 0 0 4px; font-size: 24px; }
.pagehead p { margin: 0; }
.crumbs { display: flex; gap: 8px; color: var(--dim); font-size: 13px; margin-bottom: 10px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.editable-title { cursor: text; border-bottom: 1px dashed transparent; outline: none; }
.editable-title:hover, .editable-title:focus-visible { border-bottom-color: var(--accent); }
.editable-title.editing { cursor: text; outline: none; border-bottom-color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 4px; margin: 0 -4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.grid2 label { font-size: 12px; }
.grid2 input[type=text], .grid2 select { width: 100%; }
.grid2 .full { grid-column: 1 / -1; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pcard { display: block; background: linear-gradient(180deg, #171d26, var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--text); text-decoration: none; transition: border-color .12s, transform .12s; }
.pcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.pcard .ptop { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.pcard .ptop b { font-size: 15px; }
.pcard .pdesc { color: var(--dim); font-size: 13px; margin-top: 6px; }
.ptags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ptag { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--dim); font-family: var(--mono); }
.emptystate { color: var(--dim); text-align: center; padding: 30px; border: 1px dashed var(--line); border-radius: 12px; }
h2.section { font-size: 16px; margin: 20px 0 10px; }
.plist { display: flex; flex-direction: column; gap: 8px; }
.prow { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.prow .pmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prow .pmain b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.projctl { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }   /* units and Delete project on one line, the part count and age under them */
.projctl .row { display: flex; align-items: flex-end; gap: 12px; }
.projctl .unitsel { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); }
.steps3 { display: flex; gap: 4px; flex: none; }
.prow > .row { display: flex; gap: 10px; flex: none; align-items: center; }   /* Open drawing, Replace model and Delete sit apart (Mitch, 2026-11-11) */
button.danger { color: var(--bad-text); border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); background: var(--bad-soft); }   /* a soft red for the buttons that delete */
button.danger:hover:not(:disabled) { border-color: var(--bad); }
.prow .remove { margin-left: 8px; }
.steps3 span { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--dim); white-space: nowrap; }
.steps3 span.done { color: var(--ok-text); border-color: var(--ok); }
.drop.small { height: 120px; width: 100%; margin: 0 0 12px; }   /* the same width as the part rows below it (it sits outside the narrower Add a part panel) */
.suggest { font-size: 13px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 8px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.suggest .warn { color: var(--warn-text); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; width: min(900px, 94vw); margin: 10px auto 18px; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tier.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow), 0 20px 50px -30px rgba(125,211,252,.5); }
.tier h2 { margin: 0; font-size: 18px; }
.tier .price { font-size: 32px; font-weight: 700; }
.tier .price span { font-size: 13px; color: var(--dim); font-weight: 400; margin-left: 4px; }
.tier ul { margin: 0; padding-left: 18px; color: var(--dim); flex: 1; }
.tier li { margin: 4px 0; }
.tiers.four { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(1120px, 94vw); }
@media (max-width: 980px) { .tiers.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiers.four { grid-template-columns: 1fr; } }
.center { text-align: center; }
/* home: the last project */
.lastproject { margin: 10px auto 16px; width: min(820px, 92vw); background: linear-gradient(180deg, #171d26, var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.lastproject .lp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.lastproject .lp-pick { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.lastproject .lp-pick select { font-weight: 600; color: var(--accent-text); max-width: min(46vw, 340px); text-overflow: ellipsis; }
.lastproject .lp-head a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.lastproject .lp-head .dim a { color: var(--dim); }
.lastproject .prow { padding: 7px 10px; }
/* modal */
.modal { position: fixed; inset: 0; background: rgba(14,17,22,.78); display: flex; align-items: center; justify-content: center; z-index: 25; }
.modal .box { width: min(560px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.modal .box h2 { margin: 0; font-size: 17px; }
.modal .box input[type=text], .modal .box select { width: 100%; }
.cropbox { width: min(360px, 92vw); align-items: stretch; }
.cropstage { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: grab; touch-action: none; user-select: none; background: #fff; }
.cropstage:active { cursor: grabbing; }
.cropstage canvas { position: absolute; inset: 0; display: block; }
.cropmask { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 999px rgba(14,17,22,.62), inset 0 0 0 2px rgba(255,255,255,.85); }
.cropbox .cropzoom { display: flex; flex-direction: row; align-items: center; gap: 12px; font-size: 13px; color: var(--dim); }
.cropbox .cropzoom input { flex: 1; width: auto; min-width: 0; }
.cropbtns { justify-content: flex-end; }
input[aria-invalid=true] { border-color: var(--bad); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.fieldnote { font-size: 12px; }
.lblrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
/* sheet tabs in the studio bar */
.sheettabs { display: flex; gap: 4px; align-items: center; flex: none; }
.sheettabs button { padding: 4px 10px; font-size: 12px; border-radius: 999px; }
.sheettabs button.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.revbanner { color: var(--warn-text); }

/* feedback button and panel, every page */
.fb-btn { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 42px; height: 42px; padding: 0; border-radius: 999px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--accent); color: var(--accent-text); font-weight: 600; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.fb-btn span { display: none; }
.fb-btn:hover, .fb-btn:focus-visible { width: auto; padding: 0 14px; }
.fb-btn:hover span, .fb-btn:focus-visible span { display: inline; }
.fb-btn:hover { background: var(--accent-soft); }
.fb-panel { position: fixed; left: 16px; bottom: 66px; z-index: 41; width: min(380px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); display: flex; flex-direction: column; gap: 8px; }
.fb-panel .fb-head { display: flex; justify-content: space-between; align-items: center; }
.fb-panel .fb-close { padding: 2px 8px; font-size: 16px; line-height: 1; }
.fb-panel p { margin: 0; font-size: 13px; }
.fb-kinds { display: flex; gap: 12px; font-size: 13px; }
.fb-kinds label { flex-direction: row; align-items: center; gap: 5px; }
.fb-panel textarea { width: 100%; }
.fb-ctx { flex-direction: row; align-items: center; gap: 7px; font-size: 12px; color: var(--dim); }
.fb-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
@media print { .fb-btn, .fb-panel { display: none !important; } }

/* overlays */
.busy { position: fixed; inset: 0; background: rgba(14,17,22,.82); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 20; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--bad-soft); border: 1px solid var(--bad); color: var(--text); padding: 10px 14px; border-radius: 8px; max-width: 640px; z-index: 30; }
.toast.ok { background: var(--ok-soft); border-color: var(--ok); color: var(--text); }
.toast.hidden { display: block !important; opacity: 0; pointer-events: none; }   /* stays rendered while empty, so a screen reader sees its text arrive */
.unplaced { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); background: var(--bad-soft); border: 1px solid var(--bad); color: var(--text); padding: 10px 14px; border-radius: 8px; max-width: 760px; z-index: 29; font-size: 13px; line-height: 1.4; }

@media print {
  .top, .stepbar, .bar, .foot, .sitefoot, .rail, #s1, #s2 { display: none !important; }
  body { background: #fff; color: #000; }
  .studio { height: auto; display: block; }
  .sheetwrap { background: #fff; overflow: visible; }
}

/* appearance card on the account page */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 999px; border: 2px solid transparent; padding: 0; cursor: pointer; }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--panel); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.presets button { display: inline-flex; align-items: center; gap: 8px; }
.presets .dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; }

/* intake picks and the Review tab */
.pickrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.choices button.on { border-color: var(--accent); color: var(--accent-text); }
.review { padding: 8px 10px; font-size: 13px; overflow: auto; height: 100%; box-sizing: border-box; }
.review .rsec { margin-bottom: 12px; }
.review ul { margin: 4px 0 0; padding-left: 18px; }
.review li { margin: 4px 0; }
.review .rsum { white-space: pre-wrap; margin: 4px 0; }
.sev { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--dim); color: var(--dim); text-transform: uppercase; }
.sev.blocker { border-color: #ff5c5c; color: #ff5c5c; }
.sev.major, .sev.warning { border-color: #ffb000; color: #ffb000; }
/* The design-for-manufacturing card (web/dfm_card.js): under the model on Describe, above the datum cards on Datum, first in the studio's Review tab */
.vcol { flex: 1.25; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.vcol > .viewer { flex: 1 1 auto; }
.pcol { flex: 1 1 33px; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); }
.pcol > .cards { border-left: none; align-content: start; }   /* one datum card at its own height, the pager under it */
.dfmcard { flex: none; display: flex; flex-direction: column; padding: 12px 16px; background: var(--panel); border-top: 1px solid var(--line); max-height: 46%; }
.dfmcard > * { flex: none; }
.dfmcard > .dfm-list { flex: 0 1 auto; min-height: 0; overflow: auto; }   /* the list scrolls; the head and the buttons stay in view */
.dfmcard > .dfm-list.paged { overflow: visible; }   /* one flag at a time: nothing to scroll (Mitch's Datum list 3) */
.dfmcard:has(.dfm-list.paged) { max-height: none; }
.dfm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.dfm-foot .dfm-actions { margin-top: 0; }
.dfm-pager, .dpager { display: inline-flex; align-items: center; gap: 6px; }
.dfm-pager .pg, .dpager .pg { width: 30px; height: 30px; padding: 0; border-radius: 8px; font-size: 18px; line-height: 1; }
.dfm-pager .pg:disabled, .dpager .pg:disabled { opacity: .35; cursor: default; }
.pgn { font-size: 12px; color: var(--dim); min-width: 44px; text-align: center; }
.dpager { align-self: flex-start; }
.dpager .pgn { display: inline-flex; gap: 4px; min-width: 0; }
.pgl { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; border: 1px solid var(--line); font: 600 11px var(--mono); }
.pgl.done { color: var(--accent-text); }
.pgl.on { border-color: var(--accent); background: var(--panel2); color: var(--text); }
p.dfm-why { margin: 8px 0 0; }
.datummore .box { width: min(640px, 94vw); max-height: 86vh; }
.dmore-hd { display: flex; align-items: center; gap: 10px; }
.dmore-hd h2 { flex: 1; text-transform: capitalize; }
.dmore-x { width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; position: relative; }
.dmore-x::before, .dmore-x::after, .pf-x::before, .pf-x::after { content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 1px; transform: rotate(45deg); }   /* the × is drawn so it is centred in the circle in every font */
.dmore-x::before, .dmore-x::after { width: 12px; height: 2px; margin: -1px 0 0 -6px; }
.dmore-x::after, .pf-x::after { transform: rotate(-45deg); }
.dmore-body { overflow: auto; font-size: 14px; line-height: 1.5; }
.dmore-body h3 { margin: 14px 0 4px; font-size: 13px; color: var(--dim-hi); }
.dmore-body p, .dmore-body ul { margin: 0; }
.dmore-body ul { padding-left: 18px; }
.pcol > .dfmcard { border-top: none; border-bottom: 1px solid var(--line); max-height: 52%; }
.review .dfmcard { display: block; max-height: none; padding: 0; border: 0; background: none; }
.review .dfmcard > .dfm-list { overflow: visible; }
.dfmcard.hidden { display: none; }
.dfm-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dfm-head h2 { margin: 0; font-size: 15px; }
.dfm-sum { font-size: 12px; color: var(--dim); }
.dfm-sub { margin: 4px 0 8px; font-size: 12px; line-height: 1.4; }
.dfm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dfm-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 8px; background: var(--panel2); color: var(--text); font: inherit; font-size: 13px; line-height: 1.4; }
button.dfm-row { cursor: pointer; }
button.dfm-row:hover { border-color: var(--dim); }
.dfm-item.blocker .dfm-row { border-left-color: #ff5c5c; }
.dfm-item.warning .dfm-row { border-left-color: #ffb000; }
.dfm-item.on .dfm-row { outline: 2px solid var(--accent); outline-offset: 1px; }
.dfm-n { flex: none; width: 24px; height: 22px; margin-top: 1px; position: relative; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 1px; font: 700 12px var(--mono); color: #111; }
.dfm-n::before { content: ''; position: absolute; inset: 0; z-index: -1; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--dim); }
.dfm-n.blocker::before { background: #ff5c5c; }
.dfm-n.warning::before { background: #ffb000; }
.dfm-n { z-index: 0; }
.dfm-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dfm-rec { display: block; }
.dfm-body .sev { align-self: flex-start; }
.dfm-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; padding-top: 2px; }   /* the buttons sit at the card's right, clear of the feedback button at the page's bottom left (Mitch, 2026-11-12) */
.dfm-actions .dfm-why { margin-right: auto; }
.dfm-why { font-size: 12px; }
.vlabel.tri { background: transparent; box-shadow: none; width: 30px; height: 27px; border-radius: 0; align-items: flex-end; padding-bottom: 2px; color: #111; font-size: 13px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
.vlabel.tri::before { content: ''; position: absolute; inset: 0; z-index: -1; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--tri, #ffb000); }
.verdict { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; border: 1px solid var(--accent); color: var(--accent-text); text-transform: none; }
.verdict.revise { border-color: #ffb000; color: #ffb000; }
.verdict.escalate_to_human { border-color: #ff5c5c; color: #ff5c5c; }

/* auth pages: sign in, sign up, set password. One centred card on the home page's grid and glow. */
.authbody { min-height: 100vh; display: flex; flex-direction: column; }
.authtop .status .dim { font-size: 13px; }
.authtop .status a.chip { color: var(--text); padding: 5px 12px; }
.authtop .status a.chip:hover { border-color: var(--accent); color: var(--accent-text); }
.authmain { flex: 1; position: relative; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px 60px; background: radial-gradient(900px 420px at 50% -10%, rgba(125, 211, 252, .10), transparent 70%); }
.authmain::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(125,211,252,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(125,211,252,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%); }
.authwrap { position: relative; width: min(420px, 100%); display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.authtag { margin: 0 0 4px; text-align: center; color: var(--dim); font-size: 14px; }
.authcard { background: linear-gradient(180deg, #171d26, var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px 22px; box-shadow: 0 30px 70px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(110,225,210,.06); display: flex; flex-direction: column; gap: 14px; }
:root[data-theme="light"] .authcard { background: var(--panel); }
.authcard h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.authcard .lead { margin: -6px 0 0; font-size: 13px; }
.betachip { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; padding: 3px 9px; }
.oauth { display: flex; flex-direction: column; gap: 8px; }
.oauthbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px 14px; border-radius: 8px; font-weight: 500; background: var(--panel2); }
.oauthbtn:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel2)); }
.authdivider { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; }
.authdivider::before, .authdivider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.authform { display: flex; flex-direction: column; gap: 12px; }
.authform label { font-size: 13px; font-weight: 500; }
.authform input[type=email], .authform input[type=text], .authform input[type=password] { font: inherit; width: 100%; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-weight: 400; }
.authform input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.authform .labelrow { display: flex; justify-content: space-between; align-items: baseline; }
.authform a.minor { font-size: 12px; font-weight: 400; color: var(--dim); text-decoration: none; }
.authform a.minor:hover { color: var(--accent-text); }
.pwfield { position: relative; display: block; }
.pwfield input { padding-right: 62px; }
.pwtoggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 3px 9px; font-size: 12px; border-radius: 6px; background: transparent; color: var(--dim); }
.pwtoggle:hover { color: var(--accent-text); }
.authform label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 12px; color: var(--dim); }
.authform label.check input { margin-top: 2px; accent-color: var(--accent); }
.authform label.check a, .authfoot a, .authsmall a { color: var(--accent-text); text-decoration: none; }
.authform label.check a:hover, .authfoot a:hover, .authsmall a:hover { text-decoration: underline; }
.authsubmit { width: 100%; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-top: 2px; }
.authmsg { min-height: 18px; font-size: 13px; color: var(--dim); }
.authmsg.bad { color: var(--bad-text); }
.authmsg.ok { color: var(--ok-text); }
.authfoot { margin: 2px 0 0; text-align: center; font-size: 13px; color: var(--dim); }
.authsmall { margin: 0; text-align: center; font-size: 12px; line-height: 1.5; padding: 0 10px; }
@media (max-width: 480px) { .authcard { padding: 22px 18px 18px; } .authmain { padding: 24px 14px 40px; } .authtop .status .dim { display: none; } }

/* legal pages: terms and privacy, readable measure */
.legal { width: min(760px, 94vw); }
.legal h2 { font-size: 16px; margin: 26px 0 8px; }
.legal p, .legal li { line-height: 1.6; color: var(--text); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent-text); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

/* guides: long-form reading pages built by scripts/build_guides.py */
.guide { width: min(760px, 94vw); }
.guide h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.3px; margin: 8px 0 18px; }
.guide h2 { font-size: 20px; margin: 34px 0 10px; letter-spacing: -.1px; }
.guide h3 { font-size: 16px; margin: 24px 0 6px; }
.guide p, .guide li { line-height: 1.65; color: var(--text); }
.guide ul, .guide ol { padding-left: 22px; }
.guide li { margin: 6px 0; }
.guide a { color: var(--accent-text); text-decoration: none; }
.guide a:hover { text-decoration: underline; }
.guide code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.guide .crumbs { margin: 0; font-size: 13px; color: var(--dim); }
.guide .tablewrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.guide table { border-collapse: collapse; width: 100%; font-size: 14px; }
.guide th, .guide td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide th { background: var(--panel2); font-weight: 600; white-space: nowrap; }
.guide tr:last-child td { border-bottom: 0; }
.guide .faq h3 { margin: 18px 0 4px; }
.guide .faq p { margin: 0; }
.guide .guide-cta { margin: 36px 0 8px; padding: 18px 20px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.guide .guide-cta p { margin: 0; }
.guide .more { margin-top: 36px; border-top: 1px solid var(--line); }
.guide .more h2 { font-size: 15px; color: var(--dim); font-weight: 600; }
.guide .more ul { list-style: none; padding: 0; }
ul.guide-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.guide-cards li { margin: 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.guide-cards li:hover { border-color: var(--accent); }
.guide-cards h3 { margin: 0 0 4px; font-size: 18px; }
.guide-group h2 { font-size: 13px; margin: 28px 0 10px; color: var(--dim); font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.guide-cards p { margin: 0; color: var(--dim); }

/* guide figures: the box is sized by the image's own width and height attributes, so nothing jumps when it loads */
.gfig { margin: 18px 0 26px; }
.gfig a { display: block; }
.gfig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.gfig figcaption { margin-top: 8px; font-size: 13px; color: var(--dim); }

/* guide widgets: loaded by guides.js; the box holds its height while the 3D code downloads */
.gwidget { margin: 18px 0 24px; min-height: 420px; }
.gwidget.failed[data-widget] { min-height: 0; }
.gmore { margin: -12px 0 24px; font-size: 14px; }   /* under a guide's calculator: the way to the rest of the Toolbox */
.gwidget.failed::after { content: "This interactive part could not load. The text and tables above say the same thing."; display: block; color: var(--dim); font-size: 13px; padding: 12px 0; }
.gpicker { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.gpicker .gview { height: 420px; flex: none; border: 1px solid var(--line); border-radius: 10px; }
.gpicker .ginfo { display: flex; flex-direction: column; gap: 12px; }
.gpicker .gchips { display: flex; gap: 8px; }
.gpicker .gwhat { font-size: 14px; line-height: 1.55; min-height: 150px; }
.gpicker .gwhat p { margin: 8px 0 0; }
.gpicker .gdof { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gpicker .gdof li { margin: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; text-align: center; color: var(--dim); line-height: 1.3; }
.gpicker .gdof li.done { border-color: var(--dc); color: var(--text); background: color-mix(in srgb, var(--dc) 14%, transparent); }
.gpicker .gdof li.now { border-color: var(--dc); background: var(--dc); color: #06202c; font-weight: 600; }
.gpicker .gleft { font-size: 13px; }
@media (max-width: 720px) { .gwidget[data-widget="datum-picker"] { min-height: 670px; } .gpicker { grid-template-columns: 1fr; } .gpicker .gview { height: 300px; } .gpicker .gwhat { min-height: 130px; } }
.gwidget[data-widget="fit-calculator"] { min-height: 490px; }
.gwidget[data-widget="punch-calculator"] { min-height: 760px; }
.gwidget[data-widget="fastener-holes"] { min-height: 900px; }
.gwidget[data-widget="stack-up-calculator"] { min-height: 1100px; }
.gwidget[data-widget="fastener-position-calculator"] { min-height: 1000px; }
/* The fixed and floating fastener calculator (web/guide_fastener_position_calculator.js); shares .su-* result styles */
.gfp .fp-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.gfp .fp-tabs button { padding: 7px 12px; }
.gfp .fp-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.gfp input[type=text] { width: 120px; }
.gfp label[hidden], .gfp .gcontrols[hidden] { display: none; }
.gfp .fp-chk { flex-direction: row; align-items: center; gap: 6px; }
.gfp .fp-split input { width: 180px; }
.gfp .fp-datums { align-items: center; }
.gfp .fp-datums input { width: 46px; text-align: center; text-transform: uppercase; }
.gfp .fp-two { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.gfp .fp-two > div { flex: 1 1 260px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.gfp .fp-two > div.on { border-color: var(--accent); }
.gfp .fp-two p { margin: 4px 0; }
.gfp .su-big b { color: var(--accent-text); }
.gfp .fp-pic { max-width: 420px; }
.fp-svg { display: block; width: 100%; height: auto; }
.fp-svg .part { fill: var(--dim); fill-opacity: .25; stroke: var(--dim); }
.fp-svg .fast { fill: var(--accent); fill-opacity: .5; stroke: var(--accent); }
.fp-svg .thread { stroke: var(--dim); fill: none; }
.fp-svg .axis { stroke: var(--dim); stroke-dasharray: 8 3 2 3; }
.fp-svg .dim { stroke: var(--dim); fill: none; }
.fp-svg .lbl { font: 12px Inter, sans-serif; fill: var(--dim); }
.gfp .fp-calls { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.gfp .fp-call { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel2); }
.gfp .fp-call .fh-note { margin-bottom: 6px; overflow-x: auto; }
.gfp .fp-call .fp-copy { position: absolute; top: 8px; right: 8px; padding: 2px 10px; font-size: 12px; }
.gfp .fp-call .fh-ct { padding-right: 64px; }
.fcf { display: inline-flex; border: 1.5px solid var(--text); font: 600 15px/1 'osifont', var(--mono); color: var(--text); }
.fcf > span { padding: 6px 9px; border-left: 1.5px solid var(--text); white-space: nowrap; }
.fcf > span:first-child { border-left: 0; }
.fcf .hint { color: var(--dim); opacity: .55; }
.gfp .fp-caveat { margin-top: 16px; }
.gwidget[data-widget="surface-finish-converter"] { min-height: 760px; }
/* The surface finish converter (web/guide_surface_finish_converter.js); shares .su-* and .fp-* styles */
:is(.gsf, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) input[type=text] { width: 130px; }
:is(.gsf, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .sf-line { font-weight: 600; }
:is(.gsf, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .fp-calls { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
:is(.gsf, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .fp-call { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel2); }
:is(.gsf, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .fp-call .fh-ct { padding-right: 64px; font-size: 12px; color: var(--dim); }
:is(.gsf, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .fp-call .fp-copy { position: absolute; top: 8px; right: 8px; padding: 2px 10px; font-size: 12px; }
.sf-sym { display: block; height: 52px; width: auto; max-width: 100%; margin-top: 6px; }
.sf-sym path { stroke: var(--text); stroke-width: 1.6; }
.sf-sym text { font: 600 15px 'osifont', var(--mono); fill: var(--text); }
.gwidget[data-widget="bolt-circle-calculator"] { min-height: 1100px; }
/* The bolt circle calculator (web/guide_bolt_circle_calculator.js); shares .su-* and .fp-* styles */
.gbc input[type=text] { width: 120px; }
.gbc .bc-quick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.gbc .fp-datums { align-items: flex-end; }
.gbc .fp-datums > input { width: 46px; text-align: center; text-transform: uppercase; }
.gbc .fp-chk { flex-direction: row; align-items: center; gap: 6px; }
.gbc .bc-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 720px) { .gbc .bc-grid { grid-template-columns: minmax(0, 1fr); } .gwidget[data-widget="bolt-circle-calculator"] { min-height: 1500px; } }
.bc-svg { display: block; width: 100%; height: auto; max-width: 340px; }
.bc-svg .axis { stroke: var(--dim); stroke-dasharray: 8 3 2 3; fill: none; }
.bc-svg .arrow { fill: var(--dim); }
.bc-svg .bcd { fill: none; stroke: var(--dim); stroke-dasharray: 10 3 2 3; }
.bc-svg .hole { fill: var(--panel2); stroke: var(--text); stroke-width: 1.4; }
.bc-svg .hole.first { stroke: var(--accent); stroke-width: 2; }
.bc-svg .arc { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.bc-svg .bc-ray { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 3; }
.bc-svg .bc-ref { stroke: var(--accent); }
.bc-svg .bc-bbox { fill: var(--panel); stroke: var(--text); stroke-width: 1; }
.gbc .bc-eq { font-family: var(--mono, monospace); white-space: nowrap; }
.bc-svg .num, .bc-svg .lbl { font: 12px Inter, sans-serif; fill: var(--dim); }
.gbc .bc-tab td { font-variant-numeric: tabular-nums; }
/* Sheet metal springback calculator (Toolbox, /toolbox/springback) */
.gwidget[data-widget="sheet-metal-springback-calculator"] { min-height: 1300px; }
.gsb .sb-pic { max-width: 420px; }
.sb-svg { display: block; width: 100%; height: auto; }
.sb-svg .after { fill: color-mix(in srgb, var(--text) 18%, transparent); stroke: var(--text); stroke-width: 1.2; }
.sb-svg .under { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 5 3; }
.gsb .sb-key { font-size: 0.9rem; color: var(--dim); line-height: 1.7; }
.gsb .sb-sw { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 6px; border-top: 2px solid var(--text); }
.gsb .sb-sw.under { border-top: 2px dashed var(--accent); }
@media (max-width: 720px) { .gwidget[data-widget="sheet-metal-springback-calculator"] { min-height: 1700px; } }
/* ISO 2768 general tolerance lookup (Toolbox, /toolbox/iso-2768) */
.gwidget[data-widget="iso2768-lookup"] { min-height: 760px; }
.giso select { max-width: 100%; }
.giso input[type=text] { width: 160px; }
@media (max-width: 720px) { .gwidget[data-widget="iso2768-lookup"] { min-height: 1000px; } }
.gbc .bc-call { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel2); max-width: 520px; }
.gbc .bc-call .fp-copy { position: absolute; top: 8px; right: 8px; padding: 2px 10px; font-size: 12px; }
.gbc .bc-call .fh-note { margin: 0 70px 8px 0; overflow-x: auto; }
.gbc .bc-basics { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.bc-basic { display: inline-block; border: 1.5px solid var(--text); padding: 4px 8px; font: 600 15px/1 'osifont', var(--mono); color: var(--text); }
/* The tolerance stack-up calculator (web/guide_stackup_calculator.js) */
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-rows input[type=text] { width: 74px; padding: 5px 7px; font-variant-numeric: tabular-nums; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-rows input[data-f=name] { width: 130px; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-rows input[data-f=pm] { width: 56px; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-rows select { min-width: 0; width: auto; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-rows td, :is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-rows th { padding: 4px 5px; white-space: nowrap; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-rows tr.su-bad input[data-f=n], :is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-rows tr.su-bad input[data-f=u], :is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-rows tr.su-bad input[data-f=l] { border-color: #ffb000; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-x { padding: 2px 9px; }
.gstack .table-wrap { overflow-x: auto; max-width: 100%; position: relative; }
.gstack .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-addrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-help { margin: 8px 0 14px; font-size: 13px; color: var(--dim); }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-help summary { cursor: pointer; color: var(--text); }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-help ul { padding-left: 18px; margin: 6px 0 0; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-gaps { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-gaps > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); min-width: 180px; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-gaps span { font-size: 12px; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-gaps b { font-size: 20px; font-variant-numeric: tabular-nums; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-line code { font: 600 14px/1.5 'osifont', var(--mono); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); overflow-wrap: anywhere; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0 10px; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 12px; color: var(--dim); font-weight: 600; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-big { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 4px 0; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-verdict { font-weight: 600; margin: 6px 0; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-verdict.ok { color: var(--accent-text); }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-verdict.bad, :is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-warn { color: #ffb000; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-h { margin: 20px 0 8px; font-size: 16px; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-share td.su-bar { position: relative; min-width: 160px; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-share th { white-space: normal; }
@media (max-width: 480px) { :is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-share td.su-bar { min-width: 110px; } }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-bar span { display: inline-block; height: 10px; background: var(--accent); border-radius: 3px; vertical-align: middle; margin-right: 8px; max-width: calc(100% - 60px); }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-drawn { font: 600 14px/1.6 'osifont', var(--mono); padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); display: inline-block; min-width: 200px; margin: 0 10px 0 0; vertical-align: top; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-cta { margin: 18px 0 6px; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-share-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-hist { display: block; width: 100%; max-width: 640px; height: auto; margin: 6px 0; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-hist rect.in { fill: var(--accent); }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-hist rect.out { fill: #ffb000; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-hist .axis { stroke: var(--line); }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-hist .lim { stroke: var(--text); stroke-dasharray: 4 3; stroke-width: 1.2; }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-hist .lbl { font: 11px Inter, sans-serif; fill: var(--dim); }
:is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-reseed { padding: 2px 10px; font-size: 12px; margin-left: 4px; }
@media (max-width: 720px) { .gwidget[data-widget="stack-up-calculator"] { min-height: 1400px; } :is(.gstack, .gfp, .gsf, .gbc, .gsb, .giso, .gssp, .gfcf, .gvc, .gte, .gsg, .gsfc, .gpf, .guc, .gtc, .grg, .gbt, .gbf, .gnb, .gsp, .ggg, .gbl, .gps, .gcs, .gsd, .gcb, .gbd, .gfs, .gsc, .gbj, .gtc2, .gif, .gog, .gsp) .su-gaps > div { min-width: 0; flex: 1; } }
/* the fastener hole tool (web/guide_fastener_holes.js) and its pages (scripts/build_fastener_holes.py) */
.gfh [hidden] { display: none; }
.fh-tab td:last-child { font-size: 12px; max-width: 320px; }
.fh-tab th, .fh-tab td { text-align: left; vertical-align: top; }
.fh-tab tr.warnline td { color: var(--text); }
.fh-ok { color: var(--accent-text); font-size: 12px; margin-left: 6px; }
.fh-bad { color: #ffb000; font-weight: 600; }
.fh-h { margin: 20px 0 8px; font-size: 16px; }
.fh-calls { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.fh-call { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel2); }
.fh-ct { font-size: 12px; color: var(--dim); margin-bottom: 6px; padding-right: 64px; min-height: 22px; }
.fh-call { min-width: 0; }
.fh-call .fh-note { overflow-x: auto; }
.fh-note { margin: 0; font: 600 15px/1.5 'osifont', var(--mono); white-space: pre; color: var(--text); background: none; border: 0; padding: 0; }
.ysym { position: relative; display: inline-block; width: .62em; height: .95em; vertical-align: -.08em; margin: 0 .06em 0 .02em; }
.ysym svg { display: block; width: 100%; height: 100%; }
.ysym-t { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fh-copy { position: absolute; top: 8px; right: 8px; padding: 2px 10px; font-size: 12px; }
.fh .fh-note { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); display: inline-block; min-width: 220px; }
.fh-sizes { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; padding: 0; }
.fh-sizes a { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; text-decoration: none; }
.fh-values td:last-child { font-size: 12px; color: var(--dim); }
.fh .table-wrap { overflow-x: auto; }
.gcalc .gcontrols { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.gcalc label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); }
.gcalc input[type=number] { width: 150px; }
.gcalc select { min-width: 150px; }
.gcalc .gkind { margin: 0 0 10px; }
.gcalc .gnote { color: var(--dim); }
.gcalc .gtab { font-size: 14px; }
.gcalc .gtab th[scope=row] { white-space: nowrap; background: transparent; font-weight: 600; }
.gcalc .gtab td { font-variant-numeric: tabular-nums; }
.gcalc .gband { display: block; width: 100%; height: 150px; margin: 6px 0 4px; }
.gcalc .gband .b.hole { fill: var(--accent); }
.gcalc .gband .b.shaft { fill: #ffb000; }
.gcalc .gband .cls { font: 600 13px Inter, sans-serif; fill: #06202c; }
.gcalc .gband .v { font: 11px Inter, sans-serif; fill: var(--dim); }
.gcalc .gband .nom { font: 11px Inter, sans-serif; fill: var(--dim); }
.gcalc .gband .zero { stroke: var(--text); stroke-width: 1.2; stroke-dasharray: 4 3; }
.gcalc .gdraw { font-size: 13px; margin: 4px 0 0; }
@media (max-width: 720px) { .gwidget[data-widget="fit-calculator"] { min-height: 560px; } }

.gbendcalc .gbendin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.gbendcalc .gbendin input[type=number] { width: 100%; }
.gbendcalc .gbendin input[type=range] { width: 100%; }
.gbendcalc small { font-size: 12px; line-height: 1.35; color: var(--dim); }
.gbendcalc output { color: var(--text); font-weight: 600; margin-left: 6px; }
.gbendcalc .gbendout { margin-top: 10px; }
.gbendcalc .gbend { display: block; width: 100%; height: 300px; }
.gbendcalc .gbend .mat { fill: color-mix(in srgb, var(--text) 13%, transparent); stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; }
.gbendcalc .gbend .neutral { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 7 4; }
.gbendcalc .gbend .ba { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.gbendcalc .gbend .ctr { fill: var(--dim); }
.gbendcalc .gbend .dim { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 4 3; }
.gbendcalc .gbend .lbl { font: 600 13px Inter, sans-serif; fill: var(--text); }
.gbendcalc .gbend .lbl.sub { font-weight: 400; fill: var(--dim); }
.gbendcalc .gbend .lbl.ok { fill: var(--accent-text, var(--accent)); }
.gbendcalc .gtotal th, .gbendcalc .gtotal td { font-weight: 700; }
.gbendcalc .gbendh { margin: 18px 0 8px; font-size: 16px; }
@media (max-width: 720px) {  .gbendcalc .gbendin { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gbendcalc .gbend { height: 240px; } }
@media (max-width: 480px) {  .gbendcalc .gbendin { grid-template-columns: 1fr; } }

@media (max-width: 480px) { .gcalc .gtab th[scope=row] { white-space: normal; } }
@media (max-width: 359px) { .gwidget[data-widget="fit-calculator"] { min-height: 650px; } }

.gpunch .gcheck { flex-direction: row; align-items: center; gap: 8px; align-self: flex-end; }
.gpunch .gcontrols[hidden], .gpunch label[hidden] { display: none; }
.gpunch input[type=number] { width: 170px; }
.gpunch .gap { color: var(--dim); }
.gpunch .gtab td, .gpunch .gtab th { vertical-align: top; }
.gpunch .gnotes { font-size: 13px; padding-left: 18px; margin: 8px 0 0; }
.gpunch .gtotal th, .gpunch .gtotal td:nth-child(2) { font-weight: 700; }
.gpunch .gtab td:nth-child(2) { white-space: nowrap; }
@media (max-width: 720px) { .gwidget[data-widget="punch-calculator"] { min-height: 1100px; } .gpunch .gtab th[scope=row] { white-space: normal; } }

/* header: the sign-in chip a public page shows to a signed-out visitor */
.top .hdr-signin { color: var(--text); padding: 5px 12px; text-decoration: none; font-size: 13px; }
.top .hdr-signin:hover { border-color: var(--accent); color: var(--accent-text); }

/* the landing page: what a visitor sees at / before signing in */
.top .hdr-join { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--on-accent); border: 1px solid var(--accent); box-shadow: 0 0 0 1px var(--accent-glow), 0 6px 18px -8px var(--accent-glow); }
.top .hdr-join:hover { filter: brightness(1.06); }
.land { position: relative; }
.land::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 760px; pointer-events: none; background: radial-gradient(900px 420px at 50% -10%, rgba(125, 211, 252, .10), transparent 70%), linear-gradient(rgba(125,211,252,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(125,211,252,.045) 1px, transparent 1px); background-size: auto, 48px 48px, 48px 48px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent); }
.land > * { position: relative; }
.lhero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; width: min(1180px, 94vw); margin: 0 auto; padding: 54px 0 26px; }
.lhero h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.6px; margin: 12px 0 14px; font-weight: 800; }
.lsub { color: var(--dim); font-size: 16px; line-height: 1.55; margin: 0 0 18px; max-width: 520px; }
.ldrop { width: 100%; margin: 0 0 8px; height: 140px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.ldrop small { max-width: 420px; text-align: center; line-height: 1.5; }
.ldropmsg { min-height: 18px; font-size: 13px; color: var(--accent-text); margin: 0 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--panel2); font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow), 0 6px 18px -8px var(--accent-glow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { border-color: var(--accent); }
.lhero-fig { margin: 0; }
.lhero-fig img, .lshot img, .lexample img { width: 100%; display: block; background: #fff; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); }
.lhero-fig figcaption { color: var(--dim); font-size: 12px; margin-top: 10px; text-align: center; line-height: 1.5; }
.lsec { width: min(1180px, 94vw); margin: 0 auto; padding: 46px 0 10px; }
.lsec > h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.3px; }
.lsec > .lead { color: var(--dim); margin: 0 0 22px; max-width: 640px; line-height: 1.55; }
.lsec > .lead.wide { max-width: 860px; font-size: 15px; }
.lstep { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.lstep.flip { grid-template-columns: 1.5fr 1fr; }
.lstep.flip .ltext { order: 2; }
.lstep .n { font: 600 12px Inter, 'Inter Fallback', system-ui, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; display: inline-block; margin-bottom: 10px; }
.lstep h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.2px; }
.lstep p { color: var(--dim); margin: 0; line-height: 1.6; }
.lshot { margin: 0; }
.lshot.small { max-width: 520px; justify-self: center; }
.lexamples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lexample { margin: 0; }
.lexample img { aspect-ratio: 1.414; object-fit: cover; object-position: top left; }
.lexample a:hover img { border-color: var(--accent); }
.lexample figcaption { color: var(--dim); font-size: 13px; margin-top: 10px; line-height: 1.5; }
.lexample b { color: var(--text); }
.lmission { padding-top: 54px; }
.lvalues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.lvalues > div { background: linear-gradient(180deg, #171d26, var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
:root[data-theme="light"] .lvalues > div { background: var(--panel); }
.lvalues h3 { margin: 0 0 6px; font-size: 15px; }
.lvalues p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.55; }
.lpricing .tiers { width: 100%; margin: 6px 0 0; }
.lpricing .tier h2 { font-size: 18px; margin: 0; }
.lpricing .tier .btn { width: 100%; }
.sitefoot { border-top: 1px solid var(--line); margin: 50px auto 0; padding: 22px 0 80px; color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: min(1180px, 94vw); }
.sitefoot a { color: var(--dim); text-decoration: none; margin-right: 14px; }
.sitefoot nav { display: flex; flex-wrap: wrap; row-gap: 6px; }   /* seven links wrap on a phone instead of widening the page */
.sitefoot a:hover { color: var(--accent-text); }
.sitefoot div:first-child a { color: var(--accent-text); margin: 0; }
/* a link inside a sentence says it is a link by more than its colour */
.land p a:not(.btn), .sitefoot div:first-child a, .guide p a:not(.btn), .guide li a:not(.btn), .guide .guide-cta a, .legal p a, .legal li a, .authsmall a, .authfoot a, .authform label.check a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .lhero, .lstep, .lstep.flip { grid-template-columns: 1fr; gap: 20px; }
  .lstep.flip .ltext { order: 0; }
  .lexamples, .lvalues { grid-template-columns: 1fr; }
  .lhero { padding-top: 26px; }
  .lhero h1 { font-size: 30px; }
  .lsub { font-size: 15px; }
  .lsec { padding-top: 34px; }
  .lstep { padding: 20px 0; }
}
@media (max-width: 640px) {
  .top { padding: 9px 14px; }
  .ldrop { height: 120px; }
  .ldrop small { font-size: 11px; padding: 0 10px; }
}

/* phones: the pages a tester opens to reference files and projects. The header wraps, rows stack,
   tables scroll inside their card, the describe and datum screens put the model above the cards,
   and the studio shows the sheet alone (reading and downloading; editing is for a desktop). */
@media (max-width: 640px) {
  .top { flex-wrap: wrap; row-gap: 6px; }
  .top .nav { order: 3; width: 100%; margin-left: 0; gap: 2px; }
  .top .nav a { padding: 5px 9px; font-size: 13px; }
  .top .status { flex-wrap: wrap; justify-content: flex-end; }
  .brand .sub { display: none; }
}
@media (max-width: 380px) {   /* the sign-in chip and the waitlist button stay on the logo's row on the narrowest phones */
  .top .hdr-signin, .top .hdr-join { font-size: 12px; padding: 5px 9px; }
  .top .status { gap: 6px; }
}
@media (max-width: 760px) {
  .page { margin-top: 16px; }
  .pagehead { flex-direction: column; align-items: stretch; gap: 10px; }
  .pagehead > button, .pagehead > .row { align-self: flex-start; }
  .grid2 { grid-template-columns: 1fr; }
  .hero { padding: 26px 16px 8px; }
  .hero h1, .hero h2 { font-size: 26px; }
  .drop { height: 150px; }
  .drop small { padding: 0 12px; text-align: center; }
  .unitsrow label { flex-wrap: wrap; justify-content: center; }
  .lastproject .lp-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lastproject .lp-pick { flex-wrap: wrap; white-space: normal; }
  .lastproject .lp-pick select { max-width: 100%; }
  .prow { flex-wrap: wrap; gap: 8px 12px; }
  .prow .pmain { flex: 1 1 100%; }
  .prow .pmain b { white-space: normal; }
  .prow .steps3 { flex-wrap: wrap; }
  .prow > .row { width: 100%; display: flex; gap: 8px; }
  .prow > .row button { flex: 1; }
  .prow > button.primary { flex: 1 1 100%; }
  .wrap { padding-left: 12px; padding-right: 12px; }
  .wrap .card { padding: 14px 14px; }
  .wrap .card table { display: block; overflow-x: auto; }
  .wrap .kpi div { min-width: 0; flex: 1 1 40%; }
}
@media (max-width: 720px) {
  #s1b.active, #s2.active, #s3.active { height: auto; min-height: calc(100vh - var(--chrome, 98px)); overflow: visible; }
  .two { flex-direction: column; min-height: 0; }
  .viewer, .viewer.small { flex: none; height: 46vh; min-height: 280px; }
  .cards, .interview { flex: none; border-left: none; border-top: 1px solid var(--line); overflow: visible; }
  .vcol, .pcol { flex: none; }
  .pcol { border-left: none; border-top: 1px solid var(--line); }
  .pcol > .cards { border-top: none; }
  .dfmcard:not(.hidden), .pcol > .dfmcard:not(.hidden) { max-height: none; display: block; }
  .dfmcard > .dfm-list { overflow: visible; }
  .cards { grid-template-columns: 1fr; padding: 12px; }
  .bar { flex-wrap: wrap; padding: 8px 14px; }
  .bar > div:first-child { white-space: normal; }
  #s2meta, #dsub { display: none; }
  .bar .row { flex-wrap: wrap; gap: 8px; }
  .bar .mode select { max-width: 100%; }
  .foot { flex-direction: column; gap: 10px; align-items: stretch; padding: 10px 14px 10px 72px; }
  .foot .hint { display: none; }
  #s3 #s3status { max-width: none; }
  .foot > div:last-child { display: flex; gap: 8px; }
  .foot > div:last-child button { flex: 1; }
  #toolbar, #s3 .rail, #s3 .toolhint, #s3 .foot .hint { display: none; }
  .studio { flex-direction: column; }
  #sheet { width: 100%; height: 60vh; min-height: 0; flex: none; }
  .studiobar { flex-wrap: wrap; row-gap: 6px; padding: 6px 12px; }
  .studiobar .fmt { display: none; }
  .studiobar .partline { flex: 1 1 100%; white-space: normal; }
  .studiobar .actions { flex-wrap: wrap; }
  .sheettabs { flex-wrap: wrap; }
  .busy .box { width: 94vw; }
  .hud { max-width: calc(100vw - 24px); }
  .hud.compact { max-width: none; }
  .hud.compact .hint2, .hud.compact .hov { display: none; }   /* phone: the bar keeps the selection, Done and Cancel */
}
@media (max-width: 720px) {
  /* the describe bar: units and shop profile stack, each select the full width */
  #s1b .bar > .row { width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
  #s1b .bar .mode { display: flex; flex-direction: column; align-items: stretch; white-space: normal; gap: 3px; }
  #s1b .bar .mode select { width: 100%; max-width: 100%; min-width: 0; }
}

/* the hero, second form: slogan across the top, the model and the drawing side by side, the drop zone under them */
.lhero { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(1180px, 94vw); margin: 0 auto; padding: 40px 0 18px; }
.lhero h1 { text-align: center; max-width: 900px; margin: 2px 0 8px; }
.lhero .lherosub { text-align: center; max-width: 880px; margin: 0 0 6px; }
.lshow { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 12px; align-items: stretch; width: 100%; }
.lmodel { height: 380px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: var(--cad-bg); flex: none; }
.lposter { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lmodel:not(.live) { cursor: grab; }
.lmodel.failed::after { content: "The 3D model could not load."; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 13px; }
.larrow { display: flex; align-items: center; justify-content: center; color: var(--accent-text); filter: drop-shadow(0 0 10px var(--accent-glow)); }
.lsheet { display: block; height: 380px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.lsheet:hover { border-color: var(--accent); }
.lsheet img { width: 100%; height: 100%; object-fit: contain; display: block; border: none; border-radius: 0; box-shadow: none; }
.ldrop { width: min(820px, 100%); height: 140px; margin: 14px 0 0; }
.ldropmsg { width: 100%; text-align: left; margin: 0; }
@media (max-width: 900px) {
  .lshow { grid-template-columns: 1fr; gap: 6px; }
  .larrow svg { transform: rotate(90deg); width: 40px; height: 40px; }
  .lmodel, .lsheet { height: 300px; }
  .lhero { padding-top: 24px; }
  .lhero h1 { font-size: 30px; }
}
.lhero .betachip { align-self: center; }
@media (max-width: 640px) { .top .nav { flex: 1 1 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; } .top .nav a { flex: none; padding: 5px 7px; } }   /* five links fit a 390 px phone without pushing the page sideways */
/* The header is built by script, so before it runs the bar is empty and the page would start too high and jump down
   (the whole layout shift on the landing page). Hold the height the finished bar has, one row or two on a phone, while it is still empty (:empty, so headers
   that are never script-built keep their own height). */
.top:empty { min-height: 53.3px; }
@media (max-width: 640px) { .top:empty { min-height: 88.1px; } }

/* the hero, third form: the part in a CAD panel, the sheet is paper; the two make matching rectangles (Mitch, 2026-10-26) */
.lmodel { border: 1px solid var(--line); background: var(--cad-bg); border-radius: 0; box-shadow: 0 24px 60px -34px rgba(0,0,0,.9); height: auto; min-height: 340px; }
.lsheet { height: auto; border-radius: 0; border: 1px solid #c4cad2; box-shadow: 0 24px 60px -34px rgba(0,0,0,.9); align-self: center; }
.lsheet img { height: auto; }
@media (max-width: 900px) { .lmodel { min-height: 280px; } .lsheet { height: auto; } }

/* the walkthrough: the steps on the left scroll past a stage that stays put */
.lwalk-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 1.5fr; gap: 30px; align-items: start; }
.lstage { grid-column: 2; grid-row: 1; position: sticky; top: 70px; height: calc(100vh - 100px); min-height: 420px; }
.lstage.failed::after { content: "The demo could not load."; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); }
.wsteps { grid-column: 1; grid-row: 1; padding: 8vh 0 14vh; }
.wstep { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 0 20px 22px; border-left: 2px solid var(--line); opacity: .4; transition: opacity .25s, border-color .25s; cursor: pointer; }
.wstep.on { opacity: 1; border-left-color: var(--accent); }
.wstep .n { font: 600 12px Inter, 'Inter Fallback', system-ui, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: var(--accent-text); }
.wstep h3 { margin: 0; font-size: 24px; letter-spacing: -.3px; }
.wstep p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.55; }
.wstep .btn { align-self: flex-start; margin-top: 8px; }
.wmodel { position: absolute; inset: 0; background: transparent; }
.wask { position: absolute; left: 14px; right: 14px; bottom: 14px; max-width: 520px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 0 1px var(--accent-glow), 0 14px 40px -24px var(--accent-glow); }
.wask .qrow { display: flex; gap: 10px; align-items: flex-start; }
.wask .q { font-size: 15px; font-weight: 600; line-height: 1.4; }
.wask .why { color: var(--dim); font-size: 12px; margin-top: 2px; }
.wask .choices { display: flex; flex-wrap: wrap; gap: 6px; }
.wask .choices button { padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.wask .choices button.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); opacity: 1; }
.wdatums { position: absolute; left: 14px; top: 14px; max-width: 380px; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.wdatums .chips { display: flex; gap: 8px; }
.dchip { width: 40px; height: 40px; border-radius: 10px; font: 700 18px var(--mono); color: #06202c; background: var(--dc); border: 2px solid transparent; padding: 0; }
.dchip:hover, .dchip.on { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc) 45%, transparent); }
.wdatums .reason { font-size: 13px; color: var(--text); line-height: 1.5; min-height: 20px; }
.wdraw { position: absolute; inset: 0; display: flex; flex-direction: column; }
.wdraw .sheetwrap { flex: 1; border: 1px solid var(--line); }
.warm { position: absolute; left: 0; right: 0; top: 0; bottom: 40px; background: transparent; border: none; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 18px; border-radius: 0; }
.warm::after { content: "Click to try the editor"; background: var(--panel); border: 1px solid var(--accent); color: var(--accent-text); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.wtools { display: flex; align-items: center; gap: 12px; height: 40px; font-size: 13px; }
@media (max-width: 900px) {
  .lwalk-grid { grid-template-columns: 1fr; gap: 0; }
  .lstage { grid-column: 1; grid-row: 1; top: 0; height: 52vh; min-height: 320px; z-index: 3; background: var(--bg); }
  .wsteps { grid-column: 1; grid-row: 2; padding: 20px 0 8vh; }
  .wstep { min-height: 46vh; }
  .wstep h3 { font-size: 20px; }
  .wask { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
  .wdatums { left: 8px; top: 8px; }
}

/* the editor stage: the sheet keeps the paper's proportions, the arm button sits on the sheet */
.wdraw { justify-content: center; }
.wdraw .sheetwrap { flex: none; width: 100%; aspect-ratio: 420 / 297; max-height: calc(100% - 44px); position: relative; }
.warm { inset: 0; bottom: 0; z-index: 25; }

.gam-box .gprocs { display: flex; flex-wrap: wrap; gap: 8px; }
.gam-box .gprocs button { padding: 6px 12px; }
.gam-box .gprocs button[aria-checked=true] { border-color: var(--accent); color: var(--accent-text, var(--accent)); font-weight: 600; }
.gam-box .gangle { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); margin: 6px 0 8px; }
.gam-box .gangle output { color: var(--text); font-weight: 600; margin-left: 6px; }
.gam-box .gangle input { width: 100%; }
.gam-box .gam { display: block; width: 100%; height: 300px; color: var(--text); }
.gam-box .gam .plate { fill: color-mix(in srgb, var(--text) 30%, transparent); }
.gam-box .gam .mat { fill: color-mix(in srgb, var(--text) 13%, transparent); stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; }
.gam-box .gam .layers line { stroke: var(--text); stroke-opacity: .18; }
.gam-box .gam .gap { fill: none; }
.gam-box .gam .gap.bad { fill: url(#am-hbad); }
.gam-box .gam .gap.maybe { fill: url(#am-hmaybe); opacity: .55; }
.gam-box .gam .hat { stroke-width: 1.4; } .gam-box .gam .hat.bad { stroke: var(--bad); } .gam-box .gam .hat.maybe { stroke: var(--warn); }
.gam-box .gam .under { fill: none; stroke-width: 3; stroke-linecap: round; stroke: var(--ok); }
.gam-box .gam .under.bad { stroke: var(--bad); }
.gam-box .gam .under.maybe { stroke: var(--warn); }
.gam-box .gam .arc, .gam-box .gam .ref { fill: none; stroke: var(--dim); stroke-width: 1; stroke-dasharray: 4 3; }
.gam-box .gam .arrow { stroke: var(--dim); stroke-width: 1.4; color: var(--dim); }
.gam-box .gam .lbl { font: 600 13px Inter, sans-serif; fill: var(--text); }
.gam-box .gam .lbl.sub { font-weight: 400; fill: var(--dim); }
.gam-box .gam .lbl.ok { fill: var(--ok-text); } .gam-box .gam .lbl.bad { fill: var(--bad-text); } .gam-box .gam .lbl.maybe { fill: var(--warn-text); }
.gam-box .gverdict { margin: 4px 0 10px; min-height: 2.6em; }
.gam-box .gverdict.ok b { color: var(--ok-text); } .gam-box .gverdict.bad b { color: var(--bad-text); } .gam-box .gverdict.maybe b { color: var(--warn-text); }
.gam-box .gtab th[scope=row] { white-space: nowrap; background: transparent; font-weight: 600; vertical-align: top; }
.gam-box .gtab tr.gcur td, .gam-box .gtab tr.gcur th { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.gam-box .gdraw { font-size: 13px; margin: 4px 0 0; }
@media (max-width: 720px) { .gam-box .gam { height: 250px; } .gam-box .gtab th[scope=row] { white-space: normal; } }
/* the molding calculator and the draft component it shares with the casting guide */

.gtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.gtabs [role=tab] { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--dim); padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; margin-bottom: -1px; }
.gtabs [role=tab][aria-selected=true] { color: var(--text); border-bottom-color: var(--accent); }
.gdraftin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.gdraftin input[type=number] { width: 100%; }
.gpresets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.gpresets button[aria-pressed=true] { border-color: var(--accent); color: var(--accent-text, var(--accent)); font-weight: 600; }
.gdraft { display: block; width: 100%; height: auto; max-height: 300px; margin: 6px 0 4px; color: var(--text); }
.gdraft .mat { fill: color-mix(in srgb, var(--text) 13%, transparent); stroke: var(--text); stroke-width: 1.4; stroke-linejoin: round; }
.gdraft .dim, .gdraft .ang { fill: none; stroke: var(--dim); stroke-width: 1; stroke-dasharray: 4 3; }
.gdraft .ang { stroke: var(--accent); stroke-dasharray: none; stroke-width: 1.6; }
.gdraft .arrow { stroke: var(--dim); stroke-width: 1.4; }
.gdraft .lbl { font: 600 13px Inter, sans-serif; fill: var(--text); }
.gdraft .lbl.sub { font-weight: 400; fill: var(--dim); }
.gdraft .lbl.ok { fill: var(--accent-text, var(--accent)); }
@media (max-width: 560px) { .gdraftin { grid-template-columns: 1fr 1fr; } .gdraft { max-height: none; } }
/* the casting guide: the calculator (the draft component is the molding guide's) and the clickable datum targets */

.gtargets { grid-template-columns: minmax(0, 1fr); }   /* the picker's two columns, stacked: the figure is as wide as the one it replaces */
.gtargets .gtview { min-width: 0; }
.gtargets .gwhat { min-height: 110px; }
.gtargets .gtsvg { display: block; width: 100%; height: auto; color: var(--text); }
.gtargets .face { fill: color-mix(in srgb, var(--text) 10%, transparent); stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; }
.gtargets .face.top { fill: color-mix(in srgb, var(--text) 16%, transparent); }
.gtargets .face.right { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.gtargets .face.prior { fill: color-mix(in srgb, var(--dc) 10%, transparent); }
.gtargets .face.lit { fill: color-mix(in srgb, var(--dc) 24%, transparent); }
.gtargets .cap { font: 13px Inter, sans-serif; fill: var(--dim); }
.gtargets .tg { cursor: pointer; outline: none; }
.gtargets .tg .hit { stroke: transparent; stroke-width: 18; fill: transparent; }
.gtargets .tg .lead { stroke: var(--dim); stroke-width: 1; }
.gtargets .tg .mark { stroke: var(--dc); stroke-width: 2; fill: none; }
.gtargets .tg .bub { fill: var(--panel); stroke: var(--dc); stroke-width: 1.6; }
.gtargets .tg .bar { stroke: var(--dc); stroke-width: 1.6; }
.gtargets .tg text { font: 700 12px Inter, sans-serif; fill: var(--text); }
.gtargets .tg.set .bub, .gtargets .tg.prior .bub { fill: color-mix(in srgb, var(--dc) 22%, var(--panel)); }
.gtargets .tg.sel .bub { fill: var(--dc); stroke: var(--text); }
.gtargets .tg.sel text { fill: #06202c; }
.gtargets .tg.sel .mark { stroke-width: 3.4; }
.gtargets .tg:focus-visible .bub { stroke: var(--text); stroke-width: 2.6; }
/* the weld symbol: the drawing, a one-line reading of it, the caption of the part picked, and the ten parts as buttons */

.gweld { --hl: var(--accent-text, var(--accent)); }
.gweld .gcontrols { align-items: center; gap: 10px 18px; }
.gweld .wsides { display: flex; gap: 6px; flex-wrap: wrap; }
.gweld .wsides button[aria-checked=true] { border-color: var(--accent); color: var(--hl); font-weight: 600; }
.gweld .wcheck { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.gweld .wfig { margin-top: 4px; }
.gweld .wsvg { display: block; width: 100%; height: auto; max-height: 340px; color: var(--text); }
.gweld .wsvg .mat { fill: color-mix(in srgb, var(--text) 13%, transparent); stroke: var(--text); stroke-width: 1.6; }
.gweld .wp { stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linejoin: round; cursor: pointer; }
.gweld .wp.solid { fill: currentColor; stroke: none; }
.gweld .wp.sym { fill: var(--panel); }
.gweld .wp.txt { fill: currentColor; stroke: none; font: 15px Inter, sans-serif; }
.gweld .wp.txt.dimmed { fill: var(--dim); font-size: 13px; }
.gweld .wabsent { opacity: .16; }
.gweld .wp.on { color: var(--hl); stroke-width: 2.6; }
.gweld .wp.solid.on, .gweld .wp.txt.on { stroke: none; }
.gweld .wp.txt.on { font-weight: 700; }
.gweld .wreg { fill: transparent; cursor: pointer; }
.gweld .wreg.on { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.gweld .hit { stroke: transparent; stroke-width: 18; fill: transparent; cursor: pointer; }
.gweld .wcall { cursor: pointer; outline: none; }
.gweld .wcall circle { fill: var(--panel); stroke: var(--accent); stroke-width: 1.5; }
.gweld .wcall text { fill: var(--hl); font: 700 12px Inter, sans-serif; }
.gweld .wcall.on circle, .gweld .wcall:focus-visible circle { fill: var(--accent); }
.gweld .wcall.on text, .gweld .wcall:focus-visible text { fill: var(--on-accent, #06202c); }
.gweld .wcall:focus-visible circle { stroke: var(--text); stroke-width: 2.5; }
.gweld .wreads { margin: 6px 0 2px; font-weight: 600; }
.gweld .wcap { margin: 0 0 10px; min-height: 3.2em; color: var(--text); }
.gweld .wlist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.gweld .wbtn { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 7px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.gweld .wbtn.on { border-color: var(--accent); background: var(--accent-soft); }
.gweld .wnum { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--hl); font-size: 12px; font-weight: 700; }
.gweld .wbtn.on .wnum { background: var(--accent); color: var(--on-accent, #06202c); }
@media (max-width: 560px) { .gweld .wlist { grid-template-columns: 1fr; } .gweld .wsvg { max-height: none; } }
@media (max-width: 420px) {  .gweld .wcap { min-height: 4.8em; } }
.modal .box label.consent { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.modal .box label.consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.modal .box .solidlist { display: flex; flex-direction: column; gap: 8px; max-height: min(50vh, 340px); overflow-y: auto; }
.modal .box label.solidrow { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.modal .box .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }   /* the button row of every dialog */
.planline { margin: 6px 0 0; font-size: 13px; }

.gcnc-box .gcncin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; margin: 10px 0; }
.gcnc-box .gcncin input[type=number], .gcnc-box .gcncin select, .gcnc-box .gcncin input[type=range] { width: 100%; }
.gcnc-box [hidden] { display: none !important; }
.gcnc-box .gprocs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gcnc-box .gprocs button { padding: 6px 12px; }
.gcnc-box .gprocs button[aria-checked=true] { border-color: var(--accent); color: var(--accent-text, var(--accent)); font-weight: 600; }
.gcnc-box output { color: var(--text); font-weight: 600; margin-left: 6px; }
.gcnc-box .gcnc { display: block; width: 100%; height: 280px; color: var(--text); }
.gcnc-box .gcnc .mat { fill: color-mix(in srgb, var(--text) 13%, transparent); stroke: var(--text); stroke-width: 1.4; }
.gcnc-box .gcnc .pocket, .gcnc-box .gcnc .bore { fill: var(--bg); stroke: var(--ok); stroke-width: 2.5; stroke-linejoin: round; }
.gcnc-box .gcnc .pocket.bad, .gcnc-box .gcnc .bore.bad { stroke: var(--bad); }
.gcnc-box .gcnc .pocket.maybe, .gcnc-box .gcnc .bore.maybe { stroke: var(--warn); }
.gcnc-box .gcnc .want { fill: none; stroke: var(--dim); stroke-width: 1.4; stroke-dasharray: 5 4; }
.gcnc-box .gcnc .cutter { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 1.4; }
.gcnc-box .gcnc .ctr { fill: var(--accent); }
.gcnc-box .gcnc .mark { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 4 3; }
.gcnc-box .gcnc .thr { stroke-width: 6; stroke: var(--ok); stroke-dasharray: 2 3; }
.gcnc-box .gcnc .thr.bad { stroke: var(--bad); } .gcnc-box .gcnc .thr.maybe { stroke: var(--warn); }
.gcnc-box .gcnc .min { fill: none; stroke: var(--dim); stroke-width: 1.2; stroke-dasharray: 5 4; }
.gcnc-box .gcnc .wallbody { stroke-width: 1.4; fill: color-mix(in srgb, var(--ok) 35%, transparent); stroke: var(--ok); }
.gcnc-box .gcnc .wallbody.bad { fill: color-mix(in srgb, var(--bad) 35%, transparent); stroke: var(--bad); }
.gcnc-box .gcnc .wallbody.maybe { fill: color-mix(in srgb, var(--warn) 35%, transparent); stroke: var(--warn); }
.gcnc-box .gcnc .tool { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 1.4; }
.gcnc-box .gcnc .lbl { font: 600 13px Inter, sans-serif; fill: var(--text); }
.gcnc-box .gcnc .lbl.sub { font-weight: 400; fill: var(--dim); }
.gcnc-box .gcnc .lbl.ok { fill: var(--ok-text); } .gcnc-box .gcnc .lbl.bad { fill: var(--bad-text); } .gcnc-box .gcnc .lbl.maybe { fill: var(--warn-text); }
.gcnc-box .gtab th[scope=row] { white-space: nowrap; background: transparent; font-weight: 600; vertical-align: top; }
.gcnc-box .gtab tr.ok td:nth-child(2) { color: var(--ok-text); font-weight: 600; } .gcnc-box .gtab tr.bad td:nth-child(2) { color: var(--bad-text); font-weight: 600; } .gcnc-box .gtab tr.maybe td:nth-child(2) { color: var(--warn-text); font-weight: 600; }
.gcnc-box .gdraw { font-size: 13px; margin: 4px 0 0; }
@media (max-width: 720px) { .gcnc-box .gcnc { height: 240px; } .gcnc-box .gcncin { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gcnc-box .gtab th[scope=row] { white-space: normal; } }
@media (max-width: 480px) { .gcnc-box .gcncin { grid-template-columns: 1fr; } }
/* Reserved heights of the guide widgets, so a widget mounting does not move the page. Generated from the mounted height at every 5 px of width, 1300 down to 320 (first tab, default state), plus a little slack. */
.gwidget[data-widget="weld-symbol"] { min-height: 816px; }
@media (max-width: 644px) { .gwidget[data-widget="weld-symbol"] { min-height: 782px; } }
@media (max-width: 609px) { .gwidget[data-widget="weld-symbol"] { min-height: 806px; } }
@media (max-width: 564px) { .gwidget[data-widget="weld-symbol"] { min-height: 1072px; } }
.gwidget[data-widget="molding-calculator"] { min-height: 741px; }
@media (max-width: 749px) { .gwidget[data-widget="molding-calculator"] { min-height: 823px; } }
@media (max-width: 634px) { .gwidget[data-widget="molding-calculator"] { min-height: 902px; } }
@media (max-width: 629px) { .gwidget[data-widget="molding-calculator"] { min-height: 902px; } }
@media (max-width: 624px) { .gwidget[data-widget="molding-calculator"] { min-height: 902px; } }
@media (max-width: 564px) { .gwidget[data-widget="molding-calculator"] { min-height: 925px; } }
@media (max-width: 519px) { .gwidget[data-widget="molding-calculator"] { min-height: 959px; } }
@media (max-width: 409px) { .gwidget[data-widget="molding-calculator"] { min-height: 1026px; } }
@media (max-width: 404px) { .gwidget[data-widget="molding-calculator"] { min-height: 1041px; } }
@media (max-width: 399px) { .gwidget[data-widget="molding-calculator"] { min-height: 1041px; } }
@media (max-width: 394px) { .gwidget[data-widget="molding-calculator"] { min-height: 1041px; } }
@media (max-width: 389px) { .gwidget[data-widget="molding-calculator"] { min-height: 1041px; } }
@media (max-width: 344px) { .gwidget[data-widget="molding-calculator"] { min-height: 1076px; } }
.gwidget[data-widget="casting-calculator"] { min-height: 787px; }
@media (max-width: 749px) { .gwidget[data-widget="casting-calculator"] { min-height: 848px; } }
@media (max-width: 704px) { .gwidget[data-widget="casting-calculator"] { min-height: 869px; } }
@media (max-width: 624px) { .gwidget[data-widget="casting-calculator"] { min-height: 927px; } }
@media (max-width: 564px) { .gwidget[data-widget="casting-calculator"] { min-height: 989px; } }
@media (max-width: 514px) { .gwidget[data-widget="casting-calculator"] { min-height: 1026px; } }
@media (max-width: 464px) { .gwidget[data-widget="casting-calculator"] { min-height: 994px; } }
@media (max-width: 429px) { .gwidget[data-widget="casting-calculator"] { min-height: 1087px; } }
@media (max-width: 424px) { .gwidget[data-widget="casting-calculator"] { min-height: 1087px; } }
@media (max-width: 419px) { .gwidget[data-widget="casting-calculator"] { min-height: 1096px; } }
@media (max-width: 414px) { .gwidget[data-widget="casting-calculator"] { min-height: 1096px; } }
@media (max-width: 409px) { .gwidget[data-widget="casting-calculator"] { min-height: 1096px; } }
@media (max-width: 369px) { .gwidget[data-widget="casting-calculator"] { min-height: 1126px; } }
.gwidget[data-widget="datum-targets"] { min-height: 661px; }
@media (max-width: 704px) { .gwidget[data-widget="datum-targets"] { min-height: 612px; } }
@media (max-width: 594px) { .gwidget[data-widget="datum-targets"] { min-height: 562px; } }
@media (max-width: 484px) { .gwidget[data-widget="datum-targets"] { min-height: 512px; } }
@media (max-width: 374px) { .gwidget[data-widget="datum-targets"] { min-height: 462px; } }
.gwidget[data-widget="bend-calculator"] { min-height: 1162px; }
@media (max-width: 769px) { .gwidget[data-widget="bend-calculator"] { min-height: 1239px; } }
@media (max-width: 704px) { .gwidget[data-widget="bend-calculator"] { min-height: 1259px; } }
@media (max-width: 639px) { .gwidget[data-widget="bend-calculator"] { min-height: 1279px; } }
@media (max-width: 574px) { .gwidget[data-widget="bend-calculator"] { min-height: 1341px; } }
@media (max-width: 529px) { .gwidget[data-widget="bend-calculator"] { min-height: 1382px; } }
@media (max-width: 494px) { .gwidget[data-widget="bend-calculator"] { min-height: 1618px; } }
@media (max-width: 489px) { .gwidget[data-widget="bend-calculator"] { min-height: 1634px; } }
@media (max-width: 484px) { .gwidget[data-widget="bend-calculator"] { min-height: 1634px; } }
@media (max-width: 479px) { .gwidget[data-widget="bend-calculator"] { min-height: 1634px; } }
@media (max-width: 444px) { .gwidget[data-widget="bend-calculator"] { min-height: 1778px; } }
@media (max-width: 439px) { .gwidget[data-widget="bend-calculator"] { min-height: 1778px; } }
@media (max-width: 434px) { .gwidget[data-widget="bend-calculator"] { min-height: 1818px; } }
@media (max-width: 429px) { .gwidget[data-widget="bend-calculator"] { min-height: 1838px; } }
@media (max-width: 424px) { .gwidget[data-widget="bend-calculator"] { min-height: 1859px; } }
@media (max-width: 419px) { .gwidget[data-widget="bend-calculator"] { min-height: 1859px; } }
@media (max-width: 414px) { .gwidget[data-widget="bend-calculator"] { min-height: 1879px; } }
@media (max-width: 409px) { .gwidget[data-widget="bend-calculator"] { min-height: 1879px; } }
@media (max-width: 404px) { .gwidget[data-widget="bend-calculator"] { min-height: 1879px; } }
@media (max-width: 399px) { .gwidget[data-widget="bend-calculator"] { min-height: 1879px; } }
@media (max-width: 364px) { .gwidget[data-widget="bend-calculator"] { min-height: 2062px; } }
@media (max-width: 359px) { .gwidget[data-widget="bend-calculator"] { min-height: 2062px; } }
@media (max-width: 354px) { .gwidget[data-widget="bend-calculator"] { min-height: 2082px; } }
@media (max-width: 349px) { .gwidget[data-widget="bend-calculator"] { min-height: 2082px; } }
@media (max-width: 344px) { .gwidget[data-widget="bend-calculator"] { min-height: 2082px; } }
.gwidget[data-widget="print-explorer"] { min-height: 832px; }
@media (max-width: 724px) { .gwidget[data-widget="print-explorer"] { min-height: 782px; } }
@media (max-width: 654px) { .gwidget[data-widget="print-explorer"] { min-height: 845px; } }
@media (max-width: 619px) { .gwidget[data-widget="print-explorer"] { min-height: 885px; } }
@media (max-width: 579px) { .gwidget[data-widget="print-explorer"] { min-height: 927px; } }
@media (max-width: 424px) { .gwidget[data-widget="print-explorer"] { min-height: 1011px; } }
@media (max-width: 419px) { .gwidget[data-widget="print-explorer"] { min-height: 1011px; } }
@media (max-width: 414px) { .gwidget[data-widget="print-explorer"] { min-height: 1011px; } }
@media (max-width: 409px) { .gwidget[data-widget="print-explorer"] { min-height: 1011px; } }
@media (max-width: 404px) { .gwidget[data-widget="print-explorer"] { min-height: 1011px; } }
@media (max-width: 399px) { .gwidget[data-widget="print-explorer"] { min-height: 1031px; } }
@media (max-width: 394px) { .gwidget[data-widget="print-explorer"] { min-height: 1031px; } }
@media (max-width: 359px) { .gwidget[data-widget="print-explorer"] { min-height: 1073px; } }
@media (max-width: 324px) { .gwidget[data-widget="print-explorer"] { min-height: 1113px; } }
.gwidget[data-widget="cnc-explorer"] { min-height: 586px; }
@media (max-width: 724px) { .gwidget[data-widget="cnc-explorer"] { min-height: 643px; } }
@media (max-width: 499px) { .gwidget[data-widget="cnc-explorer"] { min-height: 718px; } }
@media (max-width: 494px) { .gwidget[data-widget="cnc-explorer"] { min-height: 718px; } }
@media (max-width: 489px) { .gwidget[data-widget="cnc-explorer"] { min-height: 740px; } }
@media (max-width: 484px) { .gwidget[data-widget="cnc-explorer"] { min-height: 740px; } }
@media (max-width: 384px) { .gwidget[data-widget="cnc-explorer"] { min-height: 780px; } }
@media (max-width: 329px) { .gwidget[data-widget="cnc-explorer"] { min-height: 801px; } }
.gposcalc .gpresets { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.gposcalc .gposin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.gposcalc .gposin input, .gposcalc .gposin select { width: 100%; min-width: 0; }
.gposcalc small { font-size: 12px; line-height: 1.35; color: var(--dim); }
.gposcalc .gposout { margin-top: 10px; }
.gposcalc .gposres { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.gposcalc .gpos { display: block; width: 100%; height: auto; }
.gposcalc .gpos .axis { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 4; }
.gposcalc .gpos .zone { fill: none; stroke-width: 1.6; }
.gposcalc .gpos .zone.stated { stroke: var(--dim); stroke-dasharray: 5 3; }
.gposcalc .gpos .zone.total { stroke: var(--accent); }
.gposcalc .gpos .off { stroke: var(--text); stroke-width: 1; }
.gposcalc .gpos .pt.ok { fill: var(--accent); }
.gposcalc .gpos .pt.bad { fill: #e5484d; }
.gposcalc .gpos .lbl { font: 600 12px Inter, sans-serif; fill: var(--text); }
.gposcalc .gpos .lbl.sub { font-weight: 400; fill: var(--dim); }
.gposcalc td.ok { color: var(--accent-text, var(--accent)); } .gposcalc td.low { color: #e5484d; }
.gposcalc .gtotal th, .gposcalc .gtotal td { font-weight: 700; }
@media (max-width: 720px) { .gposcalc .gposin { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gposcalc .gposres { grid-template-columns: 1fr; } }
.gwidget[data-widget="position-calculator"] { min-height: 520px; }
@media (max-width: 720px) { .gwidget[data-widget="position-calculator"] { min-height: 1170px; } }
@media (max-width: 560px) { .gwidget[data-widget="position-calculator"] { min-height: 1040px; } }
@media (max-width: 420px) { .gwidget[data-widget="position-calculator"] { min-height: 1110px; } }

.modal .box .generr { margin: 10px 0; padding-left: 18px; overflow-wrap: anywhere; }
.modal .box .generr li { margin-bottom: 8px; }
.modal .box .generr .dim { display: block; font-size: 12px; }

/* the layout check on the datum screen (web/app/preflight.js) */
.pfcard { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; background: var(--panel); border-top: 1px solid var(--line); font-size: 13px; max-height: 40%; overflow: auto; }
.pcol > .pfcard { flex: 1; max-height: none; }   /* the layout check stands in the datum box's place until closed */
.pfcard .dfm-head .pf-x { margin-left: auto; width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; position: relative; }
.pf-x::before, .pf-x::after { width: 11px; height: 2px; margin: -1px 0 0 -5.5px; }
.pf-foot { display: flex; justify-content: flex-end; margin-top: 6px; }
.pf-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.pf-bad { color: var(--warn-text); }
.carrybox ul { margin: 6px 0; padding-left: 18px; }
.carrybox .warnline { color: var(--warn, #b45309); }

/* the upload table: one row per file (web/upload_table.js) */
.modal .box.wide { width: min(780px, 94vw); max-height: 90vh; overflow-y: auto; }
.utable { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(110px, 1fr) minmax(140px, 1.4fr); gap: 8px 12px; align-items: center; max-height: min(46vh, 380px); overflow-y: auto; padding-right: 2px; }
.utable .uhead, .utable .urow { display: contents; }
.utable .uhead span { font-size: 12px; color: var(--dim); position: sticky; top: 0; background: var(--panel); padding-bottom: 2px; }
.utable .ufile { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utable .uerr { grid-column: 1 / -1; font-size: 12px; margin-top: -4px; }
.usuggest:empty { display: none; }
@media (max-width: 640px) {
  .utable { grid-template-columns: 1fr; gap: 6px; }
  .utable .uhead { display: none; }
  .utable .ufile { margin-top: 8px; font-weight: 600; }
}

.rmdrop { height: 96px; margin: 4px 0; }   /* the Replace model dialog's small drop box (Mitch, 2026-11-12) */
.rmdrop.filled { border-style: solid; border-color: var(--accent); }
.rmdrop b { font-size: 16px; overflow-wrap: anywhere; text-align: center; padding: 0 10px; }

/* The feature control frame builder (Toolbox) */
.gfcf .fcf-chs { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin-bottom: 12px; }
.gfcf .fcf-ch { display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); cursor: pointer; }
.gfcf .fcf-ch.on { border-color: var(--accent); background: var(--panel); }
.gfcf .fcf-g { font-size: 20px; width: 1.4em; text-align: center; flex: none; }
.gfcf .fcf-ctl { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.gfcf fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; margin: 0; }
.gfcf legend { padding: 0 6px; font-size: 13px; color: var(--dim); }
.gfcf .fcf-opt { display: block; margin: 4px 0; }
.gfcf .fcf-opt.off { opacity: .6; }
.gfcf .fcf-row { margin: 6px 0; }
.gfcf .fcf-row .fcf-opt { display: inline-block; margin-right: 12px; }
.gfcf .fcf-why { display: block; font-size: 12px; color: var(--dim); margin: 0 0 2px 22px; }
.gfcf .fcf-why.on { margin: 4px 0; }
.gfcf .fcf-hint { display: block; font-size: 12px; margin: 0 0 4px 22px; }
.gfcf input[type=text] { width: 90px; }
.gfcf .fcf-datum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.gfcf .fcf-datum input[type=text] { width: 44px; text-align: center; text-transform: uppercase; }
.gfcf .fcf-inl { margin-left: 8px; }
.gfcf .fcf-inl input { width: 64px; }
.gfcf .fcf-pic { margin: 12px 0 6px; overflow-x: auto; }
.gfcf .fcf-svg { display: block; max-width: 100%; border-radius: 4px; }
.gfcf .fcf-text { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.gfcf .fcf-text code { font-size: 16px; overflow-wrap: anywhere; }
.gfcf .fcf-problems { color: #ffb000; font-size: 13px; padding-left: 18px; }
.gfcf .fcf-read { line-height: 1.5; }
.gfcf select { width: auto; max-width: 100%; }
.gfcf .fcf-datum .fcf-opt { margin: 0; }

/* The sheet size and scale picker (Toolbox) */
.gssp input[type=text] { width: 80px; }
.gssp select { width: auto; max-width: 100%; }
.gssp .ssp-pic { margin: 10px 0; }
.gssp .ssp-svg { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 4px; }
.gssp .ssp-list { padding-left: 18px; }
.gssp .ssp-list li.rec { color: var(--accent-text); }

/* The virtual condition calculator (Toolbox) */
.gvc input[type=text] { width: 90px; }
.gvc select { width: auto; max-width: 100%; }
.gvc .vc-datum input[type=text] { width: 44px; text-align: center; }
.gvc .vc-pic { margin: 10px 0 4px; }
.gvc .vc-svg { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 4px; }
.gvc .vc-tw { overflow-x: auto; }
.gvc .vc-table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gvc .vc-table th, .gvc .vc-table td { padding: 4px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.gsfc .fc-svg { display: block; width: 100%; max-width: 340px; height: auto; border-radius: 4px; background: #0d1117; margin: 8px 0; }
.gsfc .fc-tw { overflow-x: auto; }
.gsfc .fc-table { border-collapse: collapse; width: 100%; }
.gsfc .fc-table th, .gsfc .fc-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gsfc .fc-note { font-size: 12px; color: var(--dim); margin-top: 2px; }
.gsfc .fc-mark { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--accent-text); border-radius: 10px; font-size: 12px; color: var(--accent-text); }
.gsfc .fc-chk { font-size: 13px; font-weight: 600; margin-top: 2px; }

/* The thread engagement calculator (Toolbox) */
.gte select { width: auto; max-width: 100%; }
.gte input[type=text] { width: 90px; }
.gte .te-typed { display: contents; }
.gte .te-typed[hidden] { display: none; }

/* The press fit calculator (Toolbox) */
.gpf select { width: auto; max-width: 100%; }
.gpf .pf-svg { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 4px; background: #0d1117; margin: 8px 0; }
.gpf .pf-ex { display: block; font-size: 11px; color: var(--dim); }

/* The limit and unit converter (Toolbox) */
.guc select { width: auto; max-width: 100%; }
.guc .uc-svg { display: block; width: 100%; max-width: 340px; height: auto; border-radius: 4px; background: #0d1117; margin: 8px 0; }
.guc .uc-in span { display: contents; }
.guc .uc-in span[hidden] { display: none; }

/* The thread callout builder (Toolbox) */
.gtc select { width: auto; max-width: 100%; }
.gtc .tc-svg { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 4px; background: #0d1117; margin: 8px 0; }
.gtc .tc-explain { padding-left: 18px; margin: 8px 0; font-size: 14px; }
.gtc .tc-drill, .gtc .tc-csk { display: contents; }
.gtc .tc-drill[hidden], .gtc .tc-csk[hidden], .gtc .tc-int[hidden] { display: none; }
.gtc .fh-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.grg .rg-pic { display: block; width: 100%; max-width: 420px; height: auto; margin: 8px 0; }
.grg .rg-cells > div { min-width: 150px; max-width: 280px; }
.grg .rg-help { font-size: 12px; color: var(--dim); }
.grg .fh-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.gbt .bt-ex { font-size: 12px; color: var(--dim); margin-left: 4px; }
.gbt .fh-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.gbt .sf-line { overflow-wrap: anywhere; }
.gbt [hidden] { display: none !important; }
.gbf [hidden] { display: none !important; }
.gbf .bf-rot { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.gbf .bf-rot legend { font-size: 13px; color: var(--dim); padding: 0 6px; }
.gbf .bf-opt { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.gbf .bf-opt input { flex: none; width: auto; }
.gbf .rf-thumb { flex: none; width: 52px; height: 52px; }
.gbf .rf-o { fill: none; stroke: #7f93a8; stroke-width: 2; } .gbf .rf-i { fill: none; stroke: #7f93a8; stroke-width: 2; } .gbf .rf-s { fill: #7f93a8; fill-opacity: .35; stroke: #7f93a8; stroke-width: 2; }
.gbf .rf-arrow { fill: none; stroke: #2bb3a3; stroke-width: 2.2; } .gbf .rf-load { fill: none; stroke: #ffb000; stroke-width: 2.2; }
.gbf .bf-src { padding-left: 18px; margin: 6px 0; }
.gbf .fh-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.gog .fh-note { white-space: pre-wrap; overflow-wrap: anywhere; }   /* the grooved-part finish note is a long line: wrap it, as the other tools' notes do */
.gbf label input[type=text] { max-width: 100%; }
.gbf .bf-opt { flex-direction: row; text-align: left; cursor: pointer; }
.gbf .bf-opt span { flex: 1; min-width: 0; }
.gnb [hidden] { display: none !important; }
.gnb .nb-panel { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.gnb .nb-tick { border-top: 1px solid var(--line); padding: 8px 0; }
.gnb .nb-tl { display: flex; flex-direction: row; gap: 8px; align-items: center; font-weight: 600; }
.gnb .nb-tl input { width: auto; flex: none; }
.gnb .nb-why { display: block; font-size: 13px; color: var(--dim); margin: 2px 0 0 26px; }
.gnb .nb-extra { margin: 6px 0 0 26px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.gnb .nb-ex { font-size: 12px; color: var(--dim); margin-left: 4px; }
.gnb .nb-mod { flex-direction: row; align-items: center; gap: 6px; }
.gnb .nb-mod input { width: auto; }
.gnb .nb-list { white-space: pre-wrap; overflow-wrap: anywhere; }
.gnb .fh-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.gnb .nb-tbl { display: inline-block; min-width: 260px; border: 1px solid var(--line); border-radius: 6px; padding: 0 0 4px; font: 600 14px/1.7 'osifont', var(--mono); }
.gnb .nb-tbl > div { padding: 0 12px; border-top: 1px solid var(--line); }
.gnb .nb-tbl .nb-tbl-h { border-top: 0; padding-bottom: 2px; }
.gnb .nb-frame { display: inline-flex; border: 1.5px solid currentColor; font: 600 16px/1 'osifont', var(--mono); }
.gnb .nb-frame span { padding: 8px 12px; border-left: 1.5px solid currentColor; } .gnb .nb-frame span:first-child { border-left: 0; }
.gnb .nb-sym { width: 160px; height: auto; display: block; margin: 6px 0; }

.gsp [hidden] { display: none !important; }
.gsp .sp-shapes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.gsp .sp-shape { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--panel2); cursor: pointer; font-size: 13px; }
.gsp .sp-shape.on { border-color: var(--accent-text); }
.gsp .sp-pic { display: block; width: 100%; max-width: 340px; height: auto; margin: 8px 0; }
.gsp .sp-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-variant-numeric: tabular-nums; }
.gsp .sp-table th, .gsp .sp-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: middle; }
.gsp .sp-table td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.gsp .sp-table td:last-child { width: 1%; text-align: right; }
.gsp .sp-table .fp-copy { padding: 2px 10px; font-size: 12px; }
.gsp .sp-table { table-layout: fixed; }
.gsp .sp-table td:nth-child(2) { width: 150px; }
.gsp .sp-table td:last-child { width: 72px; }
@media (max-width: 600px) {
  .gsp .sp-table, .gsp .sp-table tbody { display: block; }
  .gsp .sp-table tr { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); padding: 4px 0; }
  .gsp .sp-table th { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; border: 0; padding: 4px 8px 0; font-size: 14px; }
  .gsp .sp-table td { border: 0; width: auto !important; }
}
.ggg [hidden] { display: none !important; }
.ggg .gg-pic { display: block; width: 100%; max-width: 420px; height: auto; margin: 8px 0; }
.ggg .gg-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-variant-numeric: tabular-nums; }
.ggg .gg-table th, .ggg .gg-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-weight: 400; }
.ggg .gg-table thead th { font-weight: 600; }
.ggg .gg-table td { font-weight: 600; }
.ggg .fp-calls { grid-template-columns: 1fr; }   /* one box per row: a table line is 50 characters and must not wrap */
.ggg .fh-note { white-space: pre; overflow-x: auto; margin-right: 70px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ggg .gg-data { position: relative; }
.gbl [hidden] { display: none !important; }
.gbl .su-gaps > div .fp-copy { margin-left: 8px; padding: 2px 10px; font-size: 12px; }
.gps [hidden] { display: none !important; }
.gps .ps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.gps .ps-chip { border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; background: var(--panel2); font-variant-numeric: tabular-nums; font-size: 13px; }
.gps .ps-chip.on, .gps .ps-pick { border-color: var(--accent-text); font-weight: 700; }
.gps .ps-pick { background: var(--panel2); }
.gps .ps-table { width: 100%; max-width: 520px; border-collapse: collapse; margin: 8px 0; font-variant-numeric: tabular-nums; }
.gps .ps-table th, .gps .ps-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-weight: 400; }
.gps .ps-table thead th { font-weight: 600; }
.gps .su-gaps > div .fp-copy { margin-left: 8px; padding: 2px 10px; font-size: 12px; }
.gcs [hidden], .gsd [hidden], .gcb [hidden], .gbd [hidden] { display: none !important; }
.gcs .cs-svg, .gsd .sd-svg, .gcb .cb-svg, .gbd .bd-svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 8px 0; color: var(--dim); }
.gcs .cs-wire, .gcs .cs-coil, .gsd .sd-line, .gcb .cb-curve, .gcb .cb-col, .gbd .bd-curve { color: var(--accent-text); }
.gbd .bd-fig { margin: 8px 0; }
.gcb .cb-ends { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.gcb .cb-endc { display: inline-flex; align-items: center; gap: 8px; flex-direction: row; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--panel2); cursor: pointer; font-size: 13px; }
.gcb .cb-end { width: 28px; height: 42px; flex: none; color: var(--dim); }
.gcb .cb-col { stroke-width: 3; color: var(--accent-text); }
.gcb .cb-fix { fill: currentColor; }
.gcb .cb-pin { fill: none; stroke: currentColor; stroke-width: 2; }
.gcb .cb-typedc { margin-left: 8px; }
.gcb .cb-svg { max-width: 460px; }
.gcs svg text, .gsd svg text, .gcb svg text, .gbd svg text { fill: currentColor; font-size: 11px; }
.gcs svg .lbl, .gsd svg .lbl, .gcb svg .lbl, .gbd svg .lbl { fill: currentColor; }
.gsd .sd-pt, .gcb .cb-pt, .gcb .cb-ch { fill: var(--accent-text); stroke: none; }
.gcb .cb-ch { fill: var(--dim); }
.gcs svg .axis, .gsd svg .axis, .gcb svg .axis, .gbd svg .axis { stroke: currentColor; fill: none; }
.gcs svg circle { fill: var(--dim); }
.gfs [hidden] { display: none !important; }
.gfs .fs-svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 8px 0; color: var(--dim); }
.gfs .fs-svg text { fill: currentColor; font-size: 11px; }
.gfs .fs-svg .axis { stroke: currentColor; fill: none; }
.gfs .fs-good, .gfs .fs-comp { stroke: var(--accent-text); fill: none; stroke-width: 1.6; }
.gfs .fs-yield { stroke: #e0a458; fill: none; stroke-dasharray: 5 3; }
.gfs .fs-load { stroke: currentColor; fill: none; stroke-dasharray: 2 3; }
.gfs .fs-pt { fill: var(--accent-text); }
.gfs .fs-fail { fill: none; stroke: currentColor; }
.gfs .fs-gov { font-size: 11px; color: var(--accent-text); }
.gsc [hidden] { display: none !important; }
.gsc .sc-pic { display: block; width: 100%; max-width: 420px; height: auto; margin: 8px 0; }
.gbj [hidden] { display: none !important; }
.gbj .bj-pic, .gbj .bj-diag { display: block; width: 100%; max-width: 420px; height: auto; margin: 8px 0; color: var(--dim); }
.gbj svg text { fill: currentColor; font-size: 11px; }
.gbj svg .axis { stroke: currentColor; fill: none; }
.gbj .bj-plate { fill: currentColor; fill-opacity: .18; stroke: currentColor; }
.gbj .bj-bolt { fill: currentColor; fill-opacity: .5; stroke: currentColor; }
.gbj .bj-cone { fill: none; stroke: var(--accent-text); stroke-dasharray: 5 3; }
.gbj .bj-thread { stroke: var(--bg, #0d1117); stroke-width: 1.5; }
.gbj .bj-b, .gbj .bj-m { fill: none; stroke-width: 1.6; } .gbj .bj-b { stroke: var(--accent-text); } .gbj .bj-m { stroke: #e0a458; }
.gbj .bj-pre { stroke: currentColor; fill: none; stroke-dasharray: 2 3; }
.gbj .bj-pt { fill: currentColor; } .gbj .bj-wk { fill: var(--accent-text); }
.gbj .bj-tick { display: flex; align-items: center; gap: 6px; }
.gtc2 [hidden] { display: none !important; }
.gtc2 .tc-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 10px 0; }
.gtc2 .tc-list { border: 1px solid var(--border, #2a3140); border-radius: 8px; padding: 10px 14px; }
.gtc2 .tc-list ul { margin: 6px 0 0; padding-left: 18px; font-weight: 600; }
.gif [hidden] { display: none !important; }

/* The O-ring groove calculator (web/guide_o_ring_groove_calculator.js); shares the .su-*, .fp-* and :is(...) rules above */
.gog [hidden] { display: none !important; }
.gog .og-table { border-collapse: collapse; width: 100%; max-width: 620px; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.gog .og-table th, .gog .og-table td { background: none; text-align: left; padding: 5px 10px 5px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.gog .og-table thead th { font-size: 12px; color: var(--dim); }
.gog .og-table tbody th { font-weight: 600; }
.gog input[name=dash] { width: 80px; }
.gog .gcontrols label { min-width: 0; }

/* The setscrew holding power lookup (web/guide_setscrew_holding_power_lookup.js); shares the .su-*, .fp-* and :is(...) rules above */
.gsp [hidden] { display: none !important; }
.gsp .sp-table { display: table; table-layout: fixed; border-collapse: collapse; width: 100%; max-width: 620px; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.gsp .sp-table th, .gsp .sp-table td { background: none; text-align: left; padding: 5px 10px 5px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.gsp .sp-table tbody th { font-weight: 600; }
.gsp .fp-calls { grid-template-columns: 1fr; }
.gsp .fh-note { white-space: pre; overflow-x: auto; margin-right: 70px; }
.gsp .sp-out h4.su-h { margin: 14px 0 6px; font-size: 14px; }
.gsp .sp-table tbody th { width: 58%; }
.gsp .sp-table td { text-align: left !important; }
.gsp .sp-table tbody tr:last-child td, .gsp .sp-table tbody tr:last-child th { border-bottom: 1px solid var(--line); }
