/* fastener dimension lookup: on top of calc.css */
@media (min-width: 641px) { header.bar .bar-right { flex: none; } header.bar .title { min-width: 0; flex-wrap: wrap; } }
main.fz { --hl: var(--sel); --hlbg: var(--x-eef3fe, #eef3fe); --df: var(--warn); --dfbg: var(--warn-bg); }

/* ---------- picker ---------- */
.fz-pick { padding: 14px 16px 12px; display: grid; gap: 10px; min-width: 0; }
.fz-tools { display: flex; align-items: center; gap: 10px; }
.fz-find { position: relative; flex: 1 1 auto; min-width: 0; max-width: 640px; }
.fz-q { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--surface); color: var(--text-3); }
.fz-q:focus-within { border-color: var(--sel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sel) 12%, transparent); color: var(--sel); }
.fz-q svg { flex: none; }
.fz-q input { border: 0; outline: 0; background: none; padding: 9px 0; font-size: 14px; width: 100%; min-width: 0; color: var(--text); }
.fz-q input::placeholder { color: var(--steel-550); }
.fz-res { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); max-height: 360px; overflow-y: auto; }
.fz-res[hidden] { display: none; }
.fz-res li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.fz-res li.on, .fz-res li:hover { background: var(--sel-bg); }
.fz-res li b { font-weight: 600; font-size: 13.5px; }
.fz-res li span { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.fz-res li small { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); }
.fz-res li.info { cursor: default; background: none; font-size: 12.5px; color: var(--text-3); display: block; }
.fz-types { justify-self: start; max-width: 100%; }
.fz-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: start; }
.fz-lab { font-size: 12px; color: var(--text-3); padding-top: 6px; }
.fz-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.fz-chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px; padding: 4px 10px 5px; cursor: pointer; color: var(--text-2); display: grid; text-align: left; line-height: 1.25; }
.fz-chip b { font-weight: 600; font-size: 12.5px; color: var(--text); }
.fz-chip small { font-size: 11.5px; color: var(--text-3); }
.fz-chip:hover { border-color: var(--line-2); }
.fz-chip[aria-pressed="true"] { border-color: var(--text-2); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.fz-sizes { gap: 4px; }
.fz-sz { border: 1px solid var(--line); background: var(--surface-2); border-radius: 7px; padding: 3px 9px; cursor: pointer; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.fz-sz.np { color: var(--text-3); border-style: dashed; }
.fz-sz:hover { border-color: var(--line-2); }
.fz-sz[aria-pressed="true"] { background: var(--text); color: var(--on-accent); border-color: var(--text); }

/* ---------- stage ---------- */
.fz-stage { padding: 14px 16px 12px; min-width: 0; }
.fz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; flex-wrap: wrap; }
.fz-title { min-width: 0; flex: 1 1 340px; }
.fz-title h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.fz-title p { margin: 3px 0 0; }
.fz-hact { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fz-len { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.fz-len[hidden] { display: none; }
.fz-len select { width: auto; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); }
.fz-draw { margin-top: 8px; min-width: 0; }
#draw { display: block; max-width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
#draw .g-o { fill: none; stroke: var(--ink); stroke-linejoin: round; }
#draw .g-f { fill: var(--steel-50); }
#draw .g-hatch { fill: var(--steel-150); }
#draw .g-s { fill: var(--surface); }
#draw .g-e, #draw .g-t { fill: none; stroke: var(--text-4); stroke-width: .8; }
#draw .g-h { fill: none; stroke: var(--text-4); stroke-width: .9; stroke-dasharray: 4 3; }
#draw .cl { fill: none; stroke: var(--x-a3a8b0, #a3a8b0); stroke-width: .7; stroke-dasharray: 12 3 2 3; }
#draw .dx, #draw .dl, #draw .ld { fill: none; stroke: var(--x-6a6d73, #6a6d73); stroke-width: .85; }
#draw .ah, #draw .ldot { fill: var(--x-6a6d73, #6a6d73); }
#draw .pl { fill: var(--surface); stroke: var(--line-2); }
#draw .pt { fill: var(--text); font-family: var(--font); }
#draw .psym, #draw .ps { font-weight: 600; font-style: italic; }
#draw .pv { font-weight: 500; }
#draw .dim { cursor: default; }
#draw .dim.hl .dl, #draw .dim.hl .dx, #draw .dim.hl .ld { stroke: var(--hl); stroke-width: 1.2; }
#draw .dim.hl .ah, #draw .dim.hl .ldot { fill: var(--hl); }
#draw .dim.hl .pl { stroke: var(--hl); fill: var(--hlbg); }
#draw .hdl { cursor: ew-resize; }
#draw .hdl circle { fill: var(--surface); stroke: var(--sel); stroke-width: 1.6; }
#draw .hdl path { fill: none; stroke: var(--sel); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#draw .hdl:focus { outline: none; }
#draw .hdl:focus circle { stroke-width: 2.4; }
#draw.dragging { cursor: ew-resize; }
.fz-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 10px 2px 2px; border-top: 1px solid var(--line); margin-top: 6px; }
.fz-kv { display: grid; gap: 0; min-width: 0; }
.fz-kv span { font-size: 11.5px; color: var(--text-3); }
.fz-kv b { font-size: 13.5px; font-weight: 600; }

/* ---------- tables ---------- */
.fz-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; min-width: 0; }
.fz-tw { min-width: 0; }
table.fz-dt, table.fz-ct, table.fz-at { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.fz-dt th, .fz-ct th, .fz-at th { font-weight: 500; font-size: 12px; color: var(--text-3); text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line-2); }
.fz-dt th:nth-child(2), .fz-dt th:first-child { text-align: left; }
.fz-dt td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: baseline; }
.fz-dt td:first-child { text-align: left; font-style: italic; font-weight: 600; width: 48px; white-space: nowrap; }
.fz-dt td:nth-child(2) { text-align: left; color: var(--text-2); }
.fz-dt td.tl { text-align: left; font-weight: 600; color: var(--text); }
.fz-dt tr.sub td { font-size: 12px; color: var(--text-3); border-bottom-style: dotted; padding-top: 2px; padding-bottom: 3px; }
.fz-dt tr.sub td:nth-child(2) { padding-left: 14px; color: var(--text-3); }
.fz-dt tr.hl td, .fz-ct tr.hl th, .fz-ct tr.hl td { background: var(--hlbg); }
.fz-dt .note { font-size: 11.5px; }
.fz-dnote { margin: 8px 0 0; }
.fz-gr .seg button { font-size: 12px; }
.fz-dl { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 13px; }
.fz-dl dt { color: var(--text-3); font-size: 12.5px; }
.fz-dl dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* compare */
.fz-cmp .fz-chips { margin-bottom: 10px; align-items: center; }
.fz-cmp .fz-lab { padding-top: 0; margin-right: 4px; }
.fz-cmpdraw { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 12px; }
.fz-cmpdraw:empty { display: none; }
.fz-fig { margin: 0; display: grid; gap: 2px; justify-items: center; }
.fz-fig svg { display: block; max-width: 100%; height: auto; }
.fz-fig .g-o { fill: none; stroke: var(--ink); }
.fz-fig .g-f { fill: var(--steel-50); }
.fz-fig .g-hatch { fill: var(--steel-150); }
.fz-fig .g-s { fill: var(--surface); }
.fz-fig .g-e, .fz-fig .g-t { fill: none; stroke: var(--steel-500); stroke-width: .6; }
.fz-fig .g-h { fill: none; stroke: var(--steel-500); stroke-width: .6; stroke-dasharray: 3 2; }
.fz-fig figcaption { font-size: 12px; color: var(--text-3); }
.fz-fig figcaption b { color: var(--text); font-weight: 600; }
.fz-ct th:first-child { text-align: left; color: var(--text-2); font-size: 12.5px; font-weight: 400; }
.fz-ct thead th { text-align: right; color: var(--text); font-weight: 600; font-size: 12.5px; }
.fz-ct thead th small { display: block; font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.fz-ct thead th:first-child { text-align: left; }
.fz-ct td, .fz-ct tbody th { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.fz-ct tbody th { text-align: left; }
.fz-ct td .sy { color: var(--text-3); font-style: italic; font-size: 12px; margin-right: 2px; }
.fz-ct td.na { color: var(--text-3); }
.fz-ct tr.df td, .fz-ct tr.df th { background: var(--dfbg); }
.fz-tag { display: inline-block; font-size: 11px; color: var(--warn-ink); border: 1px solid var(--x-ecd6a8, #ecd6a8); background: var(--surface); border-radius: 999px; padding: 0 7px; margin-left: 6px; font-weight: 500; vertical-align: 1px; }

/* all sizes */
.fz-at { table-layout: auto; }
.fz-at thead th { position: sticky; top: var(--fb-top, 0px); background: var(--surface); font-style: italic; }
.fz-at thead th:first-child { text-align: left; font-style: normal; }
.fz-at tbody th { text-align: left; font-weight: 600; color: var(--text); font-size: 12.5px; padding: 4px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fz-at td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; line-height: 1.25; }
.fz-at td .mx, .fz-at td .mn { display: block; }
.fz-at td .mn { color: var(--text-3); font-size: 12px; }
.fz-at tbody tr { cursor: pointer; }
.fz-at tbody tr:hover td, .fz-at tbody tr:hover th { background: var(--bg); }
.fz-at tbody tr.on td, .fz-at tbody tr.on th { background: var(--hlbg); }
.fz-at tbody tr.np th { color: var(--text-3); }

/* links */
.fz-lk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fz-link { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text-2); font-size: 12.5px; }
.fz-link b { font-weight: 600; color: var(--text); font-size: 13.5px; }
.fz-link:hover { border-color: var(--line-2); background: var(--surface-2); }

/* ---------- wedge-locking washers: how it works ---------- */
.fz-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 12px 24px; align-items: center; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }
.fz-how[hidden] { display: none; }
.fz-how h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.fz-how p { margin: 0 0 8px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.fz-how p.note { font-size: 12px; color: var(--text-3); }
.fz-how svg { display: block; width: 100%; height: auto; }
.fz-how .jt { fill: url(#nlh); stroke: var(--text-4); stroke-width: .8; }
.fz-how .hz { stroke: var(--steel-400); stroke-width: 1; }
.fz-how .wl { fill: var(--steel-150); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.fz-how .wu { fill: var(--steel-50); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.fz-how .nt { fill: var(--steel-100); stroke: var(--ink); stroke-width: 1.2; }
.fz-how .tt { fill: none; stroke: var(--x-6a6d73, #6a6d73); stroke-width: .8; }
.fz-how .th { fill: none; stroke: var(--hl); stroke-width: 1.6; stroke-dasharray: 6 3; }
.fz-how .ar { fill: none; stroke: var(--x-6a6d73, #6a6d73); stroke-width: 1.2; }
.fz-how .ah2 { fill: var(--x-6a6d73, #6a6d73); }
.fz-how .lb { font-size: 12px; fill: var(--text-3); font-family: var(--font); }
.fz-how .an { fill: var(--text); font-style: italic; font-weight: 600; }
.fz-how .nl-up { animation: nlclimb 3.2s ease-in-out infinite alternate; }
@keyframes nlclimb { from { transform: translate(0, 0); } 35% { transform: translate(0, 0); } to { transform: translate(30px, -6.9px); } }
@media (prefers-reduced-motion: reduce) { .fz-how .nl-up { animation: none; } }
@media (max-width: 900px) { .fz-how { grid-template-columns: minmax(0, 1fr); } }

/* ---------- identify ---------- */
.fz-pick [hidden] { display: none !important; }
.fz-mode { flex: none; }
.fz-id { display: grid; gap: 12px; min-width: 0; }
.fz-idhead { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.fz-idhead .note { margin: 0; flex: 1 1 320px; }
.fz-idact { display: flex; gap: 8px; align-items: center; }
.fz-shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.fz-shape { display: grid; justify-items: center; gap: 2px; padding: 6px 10px 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); cursor: pointer; color: var(--text-2); font-size: 12px; line-height: 1.2; }
.fz-shape:hover { border-color: var(--line-2); }
.fz-shape[aria-pressed="true"] { border-color: var(--text-2); background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.fz-shape svg { display: block; }
.fz-shape .g-o { fill: none; stroke: var(--ink); }
.fz-shape .g-f, .fz-shape .g-hatch { fill: var(--steel-100); }
.fz-shape .g-s { fill: var(--surface); }
.fz-shape .g-e, .fz-shape .g-t, .fz-shape .g-h { fill: none; stroke: var(--steel-500); stroke-width: .5; }
.fz-shape .any { font-size: 20px; fill: var(--text-3); font-weight: 500; }
.fz-idgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px 22px; align-items: start; min-width: 0; }
.fz-idf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-content: start; min-width: 0; }
.fz-idf label { display: grid; gap: 3px; font-size: 12px; color: var(--text-3); min-width: 0; }
.fz-idf input, .fz-idf select { width: 100%; min-width: 0; box-sizing: border-box; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.fz-idf input:focus, .fz-idf select:focus { outline: none; border-color: var(--sel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sel) 12%, transparent); }
.fz-pin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; }
.fz-pin select { width: auto; }
.fz-idl { display: grid; gap: 14px; align-content: start; min-width: 0; }
.fz-idout { display: grid; gap: 8px; min-width: 0; }
.fz-next p { margin: 0; font-size: 13px; color: var(--text-2); background: var(--sel-bg); border-radius: 8px; padding: 8px 11px; line-height: 1.45; }
.fz-next p b { color: var(--text); font-weight: 600; }
.fz-next .note { background: none; padding: 0; }
.fz-cands { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fz-cand { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px 8px; display: grid; gap: 4px; min-width: 0; }
.fz-cand.on { border-color: var(--text-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.fz-cpick { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; min-width: 0; width: 100%; font: inherit; }
.fz-cn { display: grid; min-width: 0; line-height: 1.3; }
.fz-cn b { font-size: 13.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.fz-cn small { font-size: 12px; color: var(--text-3); }
.fz-pct { display: flex; align-items: center; gap: 8px; flex: none; }
.fz-pct b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.fz-pct .fz-bar { display: inline-block; width: 64px; height: 5px; border-radius: 3px; background: var(--steel-blue); overflow: hidden; }
.fz-pct .fz-bar i { display: block; height: 100%; background: var(--text-2); border-radius: 3px; }
.fz-why { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.fz-why li { font-size: 11.5px; line-height: 1.35; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-variant-numeric: tabular-nums; }
.fz-why li.ok { border-color: var(--x-cfe3d6, #cfe3d6); background: var(--x-f3faf5, #f3faf5); color: var(--x-2f6b45, #2f6b45); }
.fz-why li.wn { border-color: var(--x-ecd6a8, #ecd6a8); background: var(--x-fdf8ee, #fdf8ee); color: var(--x-8a5a12, #8a5a12); }
.fz-why li.no { border-color: var(--x-efc9c4, #efc9c4); background: var(--bg); color: var(--x-9b3326, #9b3326); }
.fz-open { justify-self: start; background: none; border: 0; padding: 2px 0; font-size: 12.5px; color: var(--sel); cursor: pointer; }
.fz-open:hover { text-decoration: underline; }
.fz-idnotes .note { margin: 0 0 4px; font-size: 12px; }
.fz-ov { margin: 0; display: grid; justify-items: center; gap: 4px; min-width: 0; }
.fz-ov:empty { display: none; }
.fz-ov svg { display: block; max-width: 100%; height: auto; }
.fz-ov .g-o { fill: none; stroke: var(--ink); }
.fz-ov .g-f, .fz-ov .g-hatch { fill: var(--steel-50); }
.fz-ov .g-s { fill: var(--surface); }
.fz-ov .g-e, .fz-ov .g-t { fill: none; stroke: var(--steel-500); stroke-width: .6; }
.fz-ov .g-h { fill: none; stroke: var(--steel-500); stroke-width: .6; stroke-dasharray: 3 2; }
.fz-ov .ov { fill: none; stroke: var(--rust); stroke-width: 1.5; stroke-dasharray: 5 3; }
.fz-ov figcaption { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fz-ov figcaption > span { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.fz-ov .lg { display: inline-block; width: 18px; height: 0; border-top: 1.6px solid var(--ink); }
.fz-ov .lg.m { border-top: 1.6px dashed var(--rust); margin-left: 10px; }
@media (max-width: 900px) {
  .fz-idgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fz-shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fz-idf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fz-pct .fz-bar { display: none; }
}

@media (max-width: 1100px) {
  .fz-lk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fz-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fz-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fz-lab { padding-top: 0; }
  .fz-types { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .fz-types button { white-space: normal; }
  .fz-tools { flex-wrap: wrap; }
  .fz-lk { grid-template-columns: minmax(0, 1fr); }
  .fz-dt td:nth-child(2) { font-size: 12px; }
  .fz-dt th, .fz-dt td { padding-left: 3px; padding-right: 3px; }
  .fz-dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .fz-dl dd { margin-bottom: 6px; }
}
@media (max-width: 640px) {
  .fz-dt th:nth-child(6), .fz-dt td:nth-child(6) { display: none; }
  .fz-dt tr.sub td:nth-child(5) { display: table-cell; }
  .fz-dt td:first-child { width: 34px; }
  .fz-dt { font-size: 12.5px; }
}

/* theme-auto:start · generated by scripts/theme/hexmap.py: dark values (the rule of scripts/theme/colour.py) for
   colours that are not tokens, written as var(--x-rrggbb, #rrggbb): light is the fallback, unchanged */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --x-2f6b45: #7fb08d; --x-6a6d73: #84868b; --x-6e7177: #85827f; --x-8a5a12: #c89e6b; --x-9b3326: #e08576;
    --x-a3a8b0: #56595f; --x-cfe3d6: #2c3931; --x-ecd6a8: #453615; --x-eef3fe: #25282f; --x-efc9c4: #4d3532;
    --x-f3faf5: #272522; --x-fdf8ee: #27241e;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-2f6b45: #7fb08d; --x-6a6d73: #84868b; --x-6e7177: #85827f; --x-8a5a12: #c89e6b; --x-9b3326: #e08576;
    --x-a3a8b0: #56595f; --x-cfe3d6: #2c3931; --x-ecd6a8: #453615; --x-eef3fe: #25282f; --x-efc9c4: #4d3532;
    --x-f3faf5: #272522; --x-fdf8ee: #27241e;
  }
}
/* theme-auto:end */
