
  /* AXLE WEIGHT CHECKER, MOBILE BAND (owner, 2026-11-16): the title on the left and the Embed chip on the right share ONE row, 12px above the
     bottom row: the Free / No signup badges on the left and a larger preview of the tool on the right, using the height the re-stacked title freed. */
  @media (max-width: 767px) {
    /* The whole tool uses the full screen width on a phone (owner, 2026-11-17): the card loses its side border, radius and margin, and keeps a 12px inner pad. */
    .qtt-axle .qtt-tool.qtt-tool { margin-left: -16px; margin-right: -16px; padding: 12px; border-left: 0; border-right: 0; border-radius: 0; }
    .qtt-axle .qtt-band.qtt-band .qtt-band-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title embed" "foot foot"; align-items: center; column-gap: var(--bp-gap); }
    .qtt-axle .qtt-band.qtt-band .qtt-band-row, .qtt-axle .qtt-band.qtt-band .qtt-band-copy { display: contents; }
    .qtt-axle .qtt-band.qtt-band h1 { grid-area: title; margin: 0 0 12px; }
    .qtt-axle .qtt-band.qtt-band .qtt-embed { grid-area: title; grid-column: 2; grid-row: 1; margin: 0 0 12px; align-self: center; }
    .qtt-axle .qtt-band.qtt-band .qtt-tags { display: none; }
    .qtt-axle .qtt-band.qtt-band .qtt-band-foot { grid-area: foot; align-items: flex-end; }
    .qtt-axle .qtt-band.qtt-band .qtt-badges { align-self: flex-end; }
    .qtt-axle .qtt-thumb { width: 170px; height: 78px; border-radius: 8px;
      -webkit-mask-image: linear-gradient(to right, transparent 0, rgb(15 23 42 / 1) 24%), linear-gradient(135deg, rgb(15 23 42 / 1) 70%, rgb(15 23 42 / 0.15) 100%);
      mask-image: linear-gradient(to right, transparent 0, rgb(15 23 42 / 1) 24%), linear-gradient(135deg, rgb(15 23 42 / 1) 70%, rgb(15 23 42 / 0.15) 100%);
      -webkit-mask-composite: source-in; mask-composite: intersect; }
    .qtt-axle .qtt-thumb img { height: 100%; object-fit: cover; }
  }
  .axi { display: grid; gap: 24px; margin: 0 0 24px; }
  .axi-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .axi-step { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); background: var(--surface); }
  .axi-ico { flex: 0 0 auto; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #EFF6FF; color: #2563EB; }
  html[data-theme="dark"] .axi-ico { background: #1E293B; color: #60A5FA; }
  .axi-step h3 { margin: 0 0 4px; font-size: 15px; line-height: 20px; }
  .axi-step p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
  .axi-scope { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); background: var(--surface); display: grid; gap: 16px; }
  .axi-h { margin: 0; font-size: 16px; line-height: 24px; }
  .axi-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .axi-kpi { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 8px; background: var(--surface-2); }
  .axi-kpi strong { font-size: 20px; line-height: 24px; font-variant-numeric: tabular-nums; }
  .axi-kpi span { font-size: 12px; line-height: 16px; color: var(--muted); }
  .axi-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .axi-checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
  .axi-tick { flex: 0 0 auto; width: 20px; height: 20px; color: #16A34A; }
  .axi-more { margin: 0; font-size: 14px; } .axi-more a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
  .axi-checks a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

  /* ── Toolbar: ONE row (units | rig preset | share + print), then the two drawing/state selectors ── */
  .axc.axc[data-mode="axle"] .heading-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 8px; }
  .axc.axc[data-mode="axle"] .heading-actions .setup-bar { display: contents; }
  .axc.axc[data-mode="axle"] .heading-actions .units-field { grid-column: 1; grid-row: 1; }
  .axc.axc[data-mode="axle"] .heading-actions .setup-bar > label.vis-field:not(.axc-field) { grid-column: 2 / 4; grid-row: 1; min-width: 0; margin: 0; }
  .axc.axc[data-mode="axle"] .heading-actions .history-actions { grid-column: 4; grid-row: 1; display: flex; gap: 8px; justify-self: end; }
  .axc.axc[data-mode="axle"] .heading-actions .setup-bar .axc-field { flex: none; margin: 0; min-width: 0; }
  .axc.axc[data-mode="axle"] .heading-actions .setup-bar .axc-field select#qt-state, .axc.axc[data-mode="axle"] .heading-actions .setup-bar .axc-field select#axc-trailer { width: 100%; max-width: none; }
  .axc.axc[data-mode="axle"] .heading-actions .setup-bar select#axc-preset { width: 100%; max-width: none; }
  @media (max-width: 720px) {
    .axc.axc[data-mode="axle"] .heading-actions { grid-template-columns: auto minmax(0, 1fr) auto; }
    .axc.axc[data-mode="axle"] .heading-actions .setup-bar > label.vis-field:not(.axc-field) { grid-column: 2; }
    .axc.axc[data-mode="axle"] .heading-actions .history-actions { grid-column: 3; }
    .axc.axc[data-mode="axle"] .heading-actions .setup-bar > label.vis-field:not(.axc-field) .vis-word { display: none; }
    .axc.axc[data-mode="axle"] .heading-actions .setup-bar select#axc-preset { padding-left: 32px; }
  }

  /* ── The rig stays ONE horizontal strip on a phone, as on a desktop: it scrolls sideways (a finger, or a mouse drag on empty space) ── */
  .axc #axle-units { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .axc #axle-units.is-pannable, .axc #axc-fit.is-pannable { cursor: grab; } .axc #axle-units.is-panning, .axc #axle-units.is-panning *, .axc #axc-fit.is-panning { cursor: grabbing; user-select: none; }
  .axc-swipe { display: none; font-weight: 600; }
  @media (max-width: 720px) { .axc-swipe { display: inline; } }
  /* ── Spacing (owner's sketch): a dashed line joins the wheel hubs, the distance is plain text under it, a click draws a box to type ── */
  .axc:not(.axs) #axle-units .axle-art { position: relative; height: 224px; }
  .axc-spans { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
  .axc-span { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0.7; }
  .axc-span-end { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
  .axc-hub { fill: none; stroke: var(--muted); stroke-width: 1.5; opacity: 0.55; }
  /* The hub drag handles are HTML buttons over the drawing: touch-action works on them, so a finger on a hub drags the axle and
     never pans the strip. A hub's is invisible (the ring is drawn in the SVG); the coupling's is the ring itself. */
  /* A site-wide button rule sets touch-action: manipulation (it allows panning), so these two say none with !important. */
  #axle-units .axc-hub-h, #axle-units .axc-cpl-handle { touch-action: none !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; box-shadow: none !important; border-radius: 50% !important; }
  #axle-units .axc-hub-h { width: 44px !important; height: 44px !important; background: transparent !important; border: 0 !important; }
  #axle-units .axc-cpl-handle { width: 20px !important; height: 20px !important; background: var(--surface) !important; }
  .axc-hub-h { position: absolute; z-index: 2; width: 44px; height: 44px; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: ew-resize; touch-action: none; -webkit-tap-highlight-color: transparent; }
  .axc-cpl-handle { position: absolute; z-index: 2; width: 20px; height: 20px; transform: translate(-50%, -50%); padding: 0; box-sizing: border-box; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--surface); cursor: ew-resize; touch-action: none; outline: none; -webkit-tap-highlight-color: transparent; }
  .axc-cpl-handle::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
  .axc-cpl-handle:hover, .axc-cpl-handle:focus-visible { border-color: var(--accent) !important; border-width: 2.5px !important; }
  .axc-cpl-handle::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; pointer-events: none; }
  .axc-hint-on .axc-cpl-handle::after { animation: axc-hub-pulse 1.8s ease-out 3; }
  /* ── It is draggable, and it says so: hub rings pulse a few times on first sight (until the first drag), light up on hover,
        and go accent-coloured while held, with the distances they change. ── */
  .axc-hub-pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
  .axc-hint-on .axc-hub-pulse { animation: axc-hub-pulse 1.8s ease-out 3; animation-delay: calc(var(--d, 0) * 0.3s); }
  @keyframes axc-hub-pulse { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.2); } }
  .axc-hub.is-live { stroke: var(--accent); stroke-width: 3; opacity: 1; }
  .axc-cpl-handle.is-live { border-color: var(--accent) !important; border-width: 3px !important; }
  .axc #axle-units .diagram-wheel:hover .diagram-tire, .axc #axle-units .diagram-wheel:focus-visible .diagram-tire { stroke: var(--accent); stroke-width: 3; }
  .axc #axle-units.is-dragging .diagram-wheel, .axc #axle-units.is-dragging .axc-cpl-handle, .axc #axle-units.is-dragging .axc-hub-h { cursor: grabbing; }
  /* THE CHECK BUTTON: under the schematic, full width, royal blue. */
  #axc .axc-cta { display: block; width: 100%; min-height: 52px; margin: 16px 0 0; padding: 0 24px; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0.01em; color: var(--surface); background: #2563EB; border: 0; border-radius: 8px; box-shadow: none; cursor: pointer; }
  html[data-theme="light"] #axc .axc-cta, :root:not([data-theme="light"]) #axc .axc-cta { color: #FFFFFF; }
  #axc .axc-cta:hover { background: #1D4ED8; }
  #axc .axc-cta:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
  #axc .axc-cta:disabled { opacity: 0.6; cursor: progress; }
  .axc-fit { width: 100%; max-width: 100%; overflow-x: clip; }
  .axc-fit #axle-units.is-fit { overflow: visible; }
  .axc-tip { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .axc-hint-on .axc-hub-pulse { animation: none; } #editor #axle-units .axc-gap.is-live input { transition: none; } }
  .axc #axle-units .diagram-wheel { cursor: ew-resize; }
  .axc-gap { position: absolute; bottom: 8px; width: var(--gap-w, 72px); transform: translateX(-50%); display: block; margin: 0; }
  #editor #axle-units .axc-gap input { display: block; width: 100%; height: 28px; min-height: 28px; box-sizing: border-box; margin: 0; padding: 0 4px; border: 1px solid transparent !important; border-radius: 6px; background: transparent !important; box-shadow: none; color: var(--ink); font-size: 13px; font-weight: 400; text-align: center; font-variant-numeric: tabular-nums; cursor: text; }
  #editor #axle-units .axc-gap input:hover { border-color: var(--border) !important; }
  /* THE DIGITS ARE NEVER BOLD, and turn blue while they are in use: focused or clicked, selected, or while their axle is moving. */
  #editor #axle-units .axc-gap input:focus, #editor #axle-units .axc-gap input:focus-visible { outline: none; color: #2563EB; border-color: #2563EB !important; background: var(--surface) !important; }
  #editor #axle-units .axc-gap.is-live input { color: #2563EB; font-size: 15px; font-weight: 400; background: var(--surface) !important; border-color: #2563EB !important; transition: font-size 0.12s ease; }
  #editor #axle-units .axc-gap.is-selected input { color: #2563EB; }
  #editor #axle-units .axc-weight input { font-weight: 400; }
  #editor #axle-units .axc-weight input:focus, #editor #axle-units .axc-weight input:focus-visible, #editor #axle-units .axc-weight.is-selected input, #editor #axle-units .axc-weight.is-live input { color: #2563EB; }
  #editor #axle-units .axc-weight.is-live input { border-color: #2563EB; }
  html[data-theme="dark"] #editor #axle-units .axc-gap input:focus, html[data-theme="dark"] #editor #axle-units .axc-gap.is-live input, html[data-theme="dark"] #editor #axle-units .axc-gap.is-selected input, html[data-theme="dark"] #editor #axle-units .axc-weight input:focus, html[data-theme="dark"] #editor #axle-units .axc-weight.is-selected input, html[data-theme="dark"] #editor #axle-units .axc-weight.is-live input { color: #60A5FA; }
  .axc-gap.is-clamped input { border-color: var(--ink) !important; border-style: dashed !important; }
  /* A weight over the legal single-axle limit tints as it is typed. */
  .axc #axle-units .axc-weight.is-over input { border-color: #DC2626; color: #B91C1C; box-shadow: inset 0 0 0 1px #DC2626; }
  html[data-theme="dark"] .axc #axle-units .axc-weight.is-over input { color: #F87171; }
  .axc-gap.is-selected input { background: var(--surface-2) !important; }
  /* ── The three buttons under the title stay on ONE line ── */
  .axc.axc[data-mode="axle"] .axle-panel .axc-actions { flex-wrap: nowrap; width: 100%; gap: 8px; }
  .axc.axc[data-mode="axle"] .axle-panel .axc-actions button { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .axl-state { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .axl-state h3 { margin: 0 0 8px; font-size: 15px; }
  .axl-state ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .axl-sl { display: grid; gap: 4px; padding: 8px; border-radius: 8px; background: var(--surface-2); font-size: 13px; line-height: 18px; }
  .axl-sl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .axl-sl-t { font-weight: 600; }
  .axl-sl-b { padding: 4px 8px; border-radius: 9999px; font-size: 11px; font-weight: 700; background: #16A34A; }
  .axl-sl-b.is-over { background: #DC2626; } .axl-sl-b.is-unknown { background: #F59E0B; }
  .axl-sl-c, .axl-sl-r { font-size: 12px; color: var(--muted); } .axl-sl-c a, a.axl-sl-c { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
  .qtt-axle #faq { padding-bottom: 84px; }
  @media (max-width: 720px) {
    .axi-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .axi-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

/* AXLE CHECKER, BRIDGE CALCULATOR AND SOLVER: presentation fixes from the 1440 / 1024 / 390 audit.
   Linked after builder.css. Tokens only: no colour literals, spacing on the 4/8/12/16/24 ramp.
   Nothing here touches a figure or a verdict. */

/* ── 1. A result that no longer matches the inputs is dimmed and says so ─────────────────────────────────────────── */
.axc-results.is-stale,
#qt-static.is-stale,
#stats.is-stale,
#axs-results.is-stale { opacity: 0.45; transition: opacity 0.15s ease; }
.axc-status, .axs-stale { margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; }
.axc-status[data-mode="invalid"], .axc-status[data-mode="throttled"] { border-color: var(--warn); background: var(--warn-bg); }
.axc-fail { display: grid; gap: 8px; justify-items: start; }
.axc-fail .button { min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

/* ── 2. Invalid input: outline, a sentence that says why ─────────────────────────────────────────────────────────── */
.axc #axle-units input[aria-invalid="true"],
.axc.axs .setup-bar input[aria-invalid="true"] { outline: 2px solid var(--error) !important; outline-offset: 1px; border-color: var(--error) !important; background: var(--error-bg) !important; }
.axc-field-err, .axc.axs .axs-err { margin: 8px 0 0; padding: 8px 12px; border: 1px solid var(--error); border-radius: 6px; background: var(--error-bg); color: color-mix(in srgb, var(--error) 70%, var(--ink)); font-size: 13px; font-weight: 600; line-height: 1.5; }
.axc.axs .axs-err { flex: 1 1 100%; width: 100%; box-sizing: border-box; margin: 0; }

/* ── 4. Only the drawing scales; the controls keep their real size ───────────────────────────────────────────────── */
.axc #axle-units { --axc-k: 1; --axc-inv: 1; }
.axc #axle-units .axc-weights { height: calc((52px + (var(--rows, 1) - 1) * 48px) * var(--axc-inv)); }
.axc #axle-units .axc-weight { width: var(--axc-w, 56px); transform: translate(-50%, calc(var(--row, 0) * 48px * var(--axc-inv))) scale(var(--axc-inv)); transform-origin: 50% 0; }
.axc #axle-units .axc-weight input { font-size: 12px; min-width: 0; text-overflow: clip; }
.axc #axle-units .axc-gap { transform: translateX(-50%) scale(var(--axc-inv)); transform-origin: 50% 100%; }
.axc #axle-units .axle-unit header { min-height: calc(32px * var(--axc-inv)); }
/* UI2 (owner 2026-11-29): the +/- (and x) buttons are small and light: a 24 px outline chip (an inset ring, no border, so the ::after is exactly 32 px), the touch target is the 32 px ::after around it (8 px gaps, so neighbours never overlap). */
.axc #axle-units .axle-count { gap: calc(8px * var(--axc-inv, 1)); } /* the buttons are scaled by 1/k here, so the gap is too (phone: layout-rule.css scales the whole column and sets 8px) */
.axc #axle-units .axle-count button { position: relative; box-sizing: border-box; width: 24px; height: 24px; min-width: 24px; padding: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--muted); background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--border); transform: scale(var(--axc-inv)); transform-origin: 50% 50%; margin: 0 calc((var(--axc-inv) - 1) * 12px); }
.axc #axle-units .axle-count button::after { content: ""; position: absolute; inset: -4px; }
.axc #axle-units .axle-count button:hover:not(:disabled), .axc #axle-units .axle-count button:focus-visible { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (pointer: coarse) {
  .axc #axle-units .axle-unit header { min-height: calc(44px * var(--axc-inv)); }
  .axc #axle-units .axc-weight, .axc #axle-units .axc-gap { position: absolute; }
  .axc #axle-units .axc-weight::after, .axc #axle-units .axc-gap::after { content: ""; position: absolute; inset: -8px 0; }
  .axc .axc-marks-toggle { min-height: 44px; }
}

/* ── 6. Status colour: text that passes AA, a word and an icon for every state ──────────────────────────────────── */
.axc-results .axl-card.is-at { --axl-c: var(--warn); }
.axc-results .axl-card .axl-room,
.axc-results .axl-sl .axl-sl-b { display: inline-flex; align-items: center; gap: 4px; border: 1px solid currentColor; white-space: normal; text-align: left; }
.axc-results .axl-room .hh-r3-ico, .axc-results .axl-sl-b .hh-r3-ico { width: 14px; height: 14px; flex: none; }
.axc-results .axl-room.is-ok, .axc-results .axl-sl-b.is-ok { background: var(--success-bg); color: color-mix(in srgb, var(--success) 60%, var(--ink)) !important; }
.axc-results .axl-room.is-at, .axc-results .axl-room.is-near, .axc-results .axl-sl-b.is-at, .axc-results .axl-sl-b.is-unknown { background: var(--warn-bg); color: color-mix(in srgb, var(--warn) 60%, var(--ink)) !important; }
.axc-results .axl-room.is-over, .axc-results .axl-sl-b.is-over { background: var(--error-bg); color: color-mix(in srgb, var(--error) 70%, var(--ink)) !important; }
.axc-results .axl-figs .axl-pct.is-ok { color: color-mix(in srgb, var(--success) 60%, var(--ink)); }
.axc-results .axl-figs .axl-pct.is-at, .axc-results .axl-figs .axl-pct.is-near { color: color-mix(in srgb, var(--warn) 60%, var(--ink)); }
.axc-results .axl-figs .axl-pct.is-over { color: color-mix(in srgb, var(--error) 70%, var(--ink)); }
.qt-vd--ok { color: color-mix(in srgb, var(--success) 60%, var(--ink)); }
.qt-vd--at, .qt-vd--no { color: color-mix(in srgb, var(--warn) 60%, var(--ink)); }
.qt-unit-note { margin: 0 0 8px; font-size: 12px; color: var(--muted); }

/* ── 3 + 8. Ladders: the arithmetic is a full-width row; below 600px every row is a card with its verdict beside the name ─── */
.qt-work-row td { padding-top: 0; }
.qt-work-row .qt-work-x { max-width: none; }
@media (max-width: 600px) {
  #qt-ladder .qh-tablewrap, #qt-permits .qh-tablewrap { overflow: visible; border: 0; background: none; }
  .qt-ltable, .qt-ltable tbody { display: block; width: 100%; }
  .qt-ltable colgroup { display: none; }
  .qt-ltable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .qt-ltable tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 0 0 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .qt-ltable tbody tr.is-over { border-color: var(--warn); background: var(--warn-bg); }
  .qt-ltable tbody tr.is-clears { border-color: var(--success); background: var(--success-bg); }
  .qt-ltable tbody td { display: block; min-width: 0; padding: 0; border: 0 !important; box-shadow: none !important; background: none !important; text-align: left; white-space: normal; }
  .qt-ltable td.qh-st { grid-column: 1; grid-row: 1; }
  .qt-ltable td.qt-vcell { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  .qt-ltable td[data-label] { grid-column: 1 / -1; font-size: 13px; }
  .qt-ltable td[data-label]::before { content: attr(data-label) ": "; font-family: var(--font-sans, inherit); font-size: 12px; font-weight: 600; color: var(--muted); }
  .qt-ltable td.num { font-family: inherit; text-align: left; white-space: normal; }
  .qt-ltable tbody tr:has(+ .qt-work-row) { margin-bottom: 0; border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .qt-ltable tbody tr.qt-work-row { display: block; margin: 0 0 8px; padding: 0 12px 4px; border-top: 0; border-radius: 0 0 12px 12px; }
  .qt-ltable tbody tr.qt-work-row td { padding: 0; }
}

/* ── 5. Solver: label above the input on a phone, so the value is never hidden under it ──────────────────────────── */
@media (max-width: 720px) {
  .axc.axs .setup-bar label.axs-field { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .axc.axs .axs-field .vis-prefix { position: static; transform: none; }
  .axc.axs .setup-bar label.axs-field input[type="number"] { height: 44px; padding-left: 12px; font-size: 16px; }
}

/* ── 8. Scroll cue on the rig picker, cards that do not stretch their neighbour ──────────────────────────────────── */
.axc .axc-pop-list { scrollbar-width: thin;
  background:
    linear-gradient(var(--axp-bg), var(--axp-bg)) bottom / 100% 24px local no-repeat,
    linear-gradient(to top, color-mix(in srgb, var(--ink) 22%, transparent), transparent) bottom / 100% 24px scroll no-repeat,
    var(--axp-bg); }
.axc-results .hh-r3-groups { align-items: start; }

/* ── 10. Focus rings on the drag handles, the foldable group list, the bridge title ─────────────────────────────── */
.axc #axle-units .diagram-wheel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.axc #axle-units .axc-cpl-handle:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }
.axc .axc-marks-toggle { position: absolute; left: calc(8px * var(--mk, 1)); transform: scale(var(--mk, 1)); transform-origin: 0 0; min-height: 32px; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; pointer-events: auto; }
.axc .axc-marks-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body:has(.axc) .qtt-band.qtt-band h1 { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* ── Batch 2 · F15: axle labels on the solver cards. The drawing scales with its card, so the label size is set per card width to render at 10px or more;
   8+ axles show one average line instead of per-axle weights (the weights stay in the figure's aria-label). ────────────── */
.axs-draw .ax-w { font-size: 16px; }
.axs-draw .ax-n { font-size: 14px; }
.axs-draw .ax-avg { font-weight: 700; }
@media (max-width: 1100px) {
  .axs-draw { max-width: 360px; margin-inline: auto; }
  .axs-draw .ax-w { font-size: 11px; }
  .axs-draw .ax-n { font-size: 10px; }
}

/* ── Batch 2 · F16: the breakdown cards in one row share a height and put their bars at the same y; the rig stage no longer leaves a 24px margin
   (plus the stats' own 12px) between the drawing and the figures. ─────────────────────────────────────────────────────── */
.axc-results .hh-r3-groups { align-items: stretch; }
.axc-results .axl-card { align-content: start; }
.axc-results .axl-card .axl-head { min-height: 68px; }
.axc #axle-units { margin-bottom: 0; }
.axc[data-mode="bridge"] #stats { margin-top: 0; }

/* ── Batch 2 · F17: bridge formula on a phone. One column of controls with the same label-in-field look as the other pickers; the stats rule runs the
   full width of the panel; the check ladder drops its middle card, and each row's verdict sits under its title instead of squeezing it. ─── */
@media (max-width: 720px) {
  .axc[data-mode="bridge"] .heading-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; width: 100%; }
  .axc[data-mode="bridge"] .heading-actions .setup-bar { display: contents; }
  .axc[data-mode="bridge"] .heading-actions .units-field { grid-column: 1; grid-row: 1; }
  .axc[data-mode="bridge"] .heading-actions .history-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .axc[data-mode="bridge"] .heading-actions .setup-bar .vis-field { grid-column: 1 / -1; width: 100%; }
  .axc[data-mode="bridge"] .heading-actions .setup-bar .vis-field select { width: 100%; height: 44px; padding-left: 120px; font-size: 13px; }
  .axc[data-mode="bridge"] .heading-actions .setup-bar .vis-field .vis-prefix .vis-word { display: inline; }
  .axc[data-mode="bridge"] .heading-actions .setup-bar .vis-field .vis-prefix svg { display: none; }
  .axc[data-mode="bridge"] #stats { margin-inline: 0; }
  #qt-ladder.qt-note { padding: 0; border: 0; background: none; }
}
@media (max-width: 600px) {
  .qt-ltable td.qt-vcell { grid-column: 1 / -1; grid-row: 2; justify-self: start; text-align: left; }
}

/* AXLE CHECKER: the layout cards (Tractor / Connection / Flatbed ...). Linked after builder.css and fixes.css. Tokens only: no colour literals.

   ┌─ THE INLINE ROW RULE (owner, 2026-11-21: a hard rule, keep it when editing) ──────────────────────────────────────────────────────┐
   │ In every layout card the WEIGHT row and the DISTANCE row are each ONE line, whatever the card width, the screen width or the axle   │
   │ count. Never wrap them onto a second row (no flex-wrap, no auto-fit/auto-fill grid, no staggered "--row" offsets), never truncate a  │
   │ number. A crowded row gets SMALLER cells: app.mjs adjustControls() sets --axc-w / --gap-w (the on-screen width each box may have,    │
   │ from the room between neighbouring axles) and the font size below is derived from that width. Each weight box stays centred under   │
   │ its own axle; the distances sit on a row of their own under the wheels, so they never overlap the wheels or the weight row.          │
   └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ */

/* ── The two rows: single line, no wrapping, cells shrink (min-width: 0), input fills its cell. ───────────────────────────────────── */
.axc #axle-units .axc-weights { display: block; white-space: nowrap; flex-wrap: nowrap; overflow: visible; }
.axc #axle-units .axc-weight { flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
.axc #editor #axle-units .axc-weight input[data-k] { width: 100%; min-width: 0; box-sizing: border-box; padding: 0; text-overflow: clip; font-size: clamp(8px, calc((var(--axc-fw, var(--axc-w, 64px)) - 6px) / 3.8), 12px); }
.axc #axle-units .axc-weight small { white-space: nowrap; }
/* The unit label shows under every weight, narrow cells included (owner, 2026-11-22). */
.axc #axle-units .axc-gap { white-space: nowrap; min-width: 0; bottom: 4px; }
.axc #editor #axle-units .axc-gap input[data-k] { width: 100%; min-width: 0; box-sizing: border-box; padding: 0; text-overflow: clip; font-size: clamp(8px, calc((var(--axc-fg, var(--gap-w, 72px)) - 6px) / 3.8), 13px); }
.axc #editor #axle-units .axc-gap.is-live input[data-k] { font-size: clamp(8px, calc((var(--gap-w, 72px) - 6px) / 3.8), 15px); }
/* The distances get their own row under the wheels (the drawing's wheels end at 200px): the picture is that tall plus the label row. */
.axc.axc:not(.axs) #axle-units .axle-art { height: calc(204px + 32px * var(--axc-inv, 1)); }

/* ── Phone: full width, first screen ends where the third card begins, the card header is a column. ──────────────────────────────── */
@media (max-width: 767px) {
  .axc #editor #axle-units .axc-weight input[data-k] { font-size: clamp(12px, calc((var(--axc-fw, var(--axc-w, 64px)) - 6px) / 3.8), 16px); }
  .axc #editor #axle-units .axc-gap input[data-k] { font-size: clamp(12px, calc((var(--axc-fg, var(--gap-w, 72px)) - 6px) / 3.8), 16px); }
  .axc #editor #axle-units .axc-gap.is-live input[data-k] { font-size: clamp(12px, calc((var(--gap-w, 72px) - 6px) / 3.8), 18px); }
  /* No gutter: the cards run edge to edge, left and right. */
  .axc.axc #axc-fit:not(.is-zoomed) { padding: 0; scroll-padding: 0; }
  .axc .axc-zoombar:empty { display: none; }

  /* Card header: title top left; the zoom magnifier under it (inside the first card); the right column is the count, then + , then - . All real
     sizes: the strip is scaled by k, so every offset is multiplied by --axc-inv (1 / k) to land at the same on-screen size. */
  .axc #axle-units { --axc-hdr: 120px; }
  .axc.axc #axle-units .axle-unit > header,
  .axc.axc #axle-units .coupling-heading { height: calc(var(--axc-hdr) * var(--axc-inv, 1)); min-height: 0; }
  .axc.axc #axle-units .axle-unit > header { position: relative; display: block; padding: 0; }
  .axc.axc #axle-units .axle-unit > header h3 { position: absolute; top: calc(8px * var(--axc-inv, 1)); left: calc(8px * var(--axc-inv, 1)); margin: 0; transform: scale(var(--axc-inv, 1)); transform-origin: 0 0; white-space: nowrap; }
  .axc.axc #axle-units .axle-count { position: absolute; top: calc(8px * var(--axc-inv, 1)); right: calc(8px * var(--axc-inv, 1)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 0; transform: scale(var(--axc-inv, 1)); transform-origin: 100% 0; white-space: nowrap; }
  .axc.axc #axle-units .axle-count > span { order: 0; }
  .axc.axc #axle-units .axle-count button { position: relative; order: 3; width: 24px; height: 24px; min-width: 24px; margin: 0; padding: 0; transform: none; }
  .axc.axc #axle-units .axle-count button[data-d="1"] { order: 1; }
  .axc.axc #axle-units .axle-count button[data-d="-1"] { order: 2; }
  .axc.axc #axle-units .axle-count button::after { content: ""; position: absolute; inset: -4px; }
  .axc.axc #axle-units .axle-unit > header .axc-zoombtn { position: absolute; top: calc(40px * var(--axc-inv, 1)); left: calc(8px * var(--axc-inv, 1)); margin: 0; transform: scale(var(--axc-inv, 1)); transform-origin: 0 0; }
}

/* AXLE CHECKER: the owner's phone notes of 2026-11-22. Linked after layout-rule.css and breakdown-cards.css, so these rules win without touching the
   baselined files. Tokens only: no colour literals; spacing on the 0/4/8/12/16/24 ramp.
     1. The rig selector's thumbnail is the axle layout's own render of the selected rig (rig-snapshot.mjs), scaled to fit.
     3. The gap between the State limits card and the divider above "Axle layout" is a normal section gap.
     4. The zoom magnifier sits in the centre of the Tractor card's header.
     5. Thin leader and dimension lines tie each measurement and weight to its axle (leaders.mjs). */

/* ── 1. Selector thumbnail ──────────────────────────────────────────────────────────────────────────────────────── */
.axc .axc-pop--master .axc-pop-bico.is-rig { align-items: center; justify-content: center; width: 88px; height: 44px; overflow: hidden; }
.axc .axc-pop--master .axc-pop-bico.is-rig .axr { display: block; width: 100%; height: 100%; }

/* ── 3. Section gap: 16px above the divider on a phone (24px on a desktop), 16px below it (the panel heading's own padding) ── */
.axc:not(.axs) .page-heading { padding-bottom: 0; }
@media (max-width: 767px) {
  .axc:not(.axs) .axle-panel { margin-top: 16px; }
}

/* ── 4. Zoom magnifier: horizontally centred in the Tractor card's header, on the title row ─────────────────────── */
@media (max-width: 767px) {
  .axc.axc #axle-units .axle-unit > header .axc-zoombtn { top: calc(32px * var(--axc-inv, 1)); left: 50%; transform: translateX(-50%) scale(var(--axc-inv, 1)); transform-origin: 50% 0; }
}

/* ── 5. Leader and dimension lines ───────────────────────────────────────────────────────────────────────────────── */
.axc { --axc-line: color-mix(in srgb, var(--muted) 85%, transparent); }
.axc #axle-units .axc-leaders { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.axc #axle-units .axc-leaders * { pointer-events: none; }
.axc #axle-units .axc-leaders path { fill: none; stroke: var(--axc-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.axc #axle-units .axc-leaders .axc-lead { stroke-dasharray: 1 3; }
/* The lines sit behind every label and input. */
.axc #axle-units .axc-weight, .axc #axle-units .axc-gap { z-index: 1; }
@media (max-width: 360px) {
  .axc .axc-pop--master .axc-pop-bico.is-rig { width: 64px; height: 32px; }
}

/* ── 9. The three "how it works" steps use the round tool icons from the menu (public/tool-icons), no tinted tile ── */
.axi .axi-step .axi-ico--img { width: 40px; height: 40px; border-radius: 0; background: none; }
html[data-theme="dark"] .axi .axi-step .axi-ico--img { background: none; }
.axi .axi-ico--img > img { display: block; width: 40px; height: 40px; max-width: none; object-fit: contain; }

/* ── 8. Gap between the tool card and the three step cards: 24px on a phone (was 48), 32px on a desktop; the step cards sit 12px apart ── */
body.qtt-axle .qtt-tool { margin-bottom: 32px; }
@media (max-width: 767px) {
  body.qtt-axle .qtt-tool { margin-bottom: 24px; }
  body.qtt-axle .axi .axi-steps { gap: 12px; }
}

/* ── 6. The State limits selector is a combobox: opened, a search field takes the label's place (popover.mjs, state-filter.mjs) ─────────────── */
.axc .axc-pop--state .axc-pop-q { position: absolute; z-index: 2; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); outline: none; box-shadow: none; }
.axc .axc-pop--state .axc-pop-q[hidden] { display: none; }
.axc .axc-pop--state .axc-pop-q::placeholder { font-weight: 500; color: var(--muted); }
.axc .axc-pop--state.is-combo-open .axc-pop-lab { visibility: hidden; }
.axc .axc-pop--state .axc-pop-row[data-active="true"] { background: var(--axp-hover); }
.axc .axc-pop--state .axc-pop-empty { padding: 12px 16px; font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (min-width: 768px) {
  .axc .axc-pop--state.is-combo-open .axc-pop-val { visibility: hidden; }
}
@media (max-width: 767px) {
  .axc .axc-pop--state .axc-pop-q { font-size: 16px; }
}
.axc .axc-pop--state .axc-pop-q:focus, .axc .axc-pop--state .axc-pop-q:focus-visible { outline: none; box-shadow: none; border-radius: 0; }

/* ── 6. "Where it fails" (over-groups.mjs): verdict line, the five worst groups, rule chips, and one disclosure with every group over. Tokens only. ── */
.axl-over-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.axl-over-head h3 { margin: 0; }
.axl-over-sum { margin: 8px 0 12px; }
.axl-over-flat { margin: 0 0 12px; padding-left: 16px; }
.axl-over-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.axl-over-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.axl-over-table thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); background: var(--surface-2, var(--surface)); }
.axl-over-table td.num, .axl-over-table th.num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.axl-over-table th, .axl-over-table td { padding: 8px; }
.axl-over-table td.num, .axl-over-table th.num { font-size: 13px; }
.axl-over-table th.qh-st { text-align: left; font-weight: 600; white-space: nowrap; }
.axl-over-table tbody tr.is-over td, .axl-over-table tbody tr.is-over th { color: color-mix(in srgb, var(--error) 80%, var(--ink)); box-shadow: none; background: transparent; border-bottom: 1px solid var(--border); }
.axl-over-all { margin: 12px 0 0; }
.axl-over-all > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; list-style: none; }
.axl-over-all > summary::-webkit-details-marker { display: none; }
.axl-over-all > summary::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.axl-over-all[open] > summary::before { transform: rotate(45deg); }
.axl-over-all > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.axl-over-notes { margin: 8px 0 0; padding-left: 16px; font-size: 14px; color: var(--muted); }
.qt-note.axl-over .axl-over-chips { display: flex; flex-flow: row wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.qt-note.axl-over .axl-over-chips li { margin: 0; padding: 0; }
.axl-over-chip { display: inline-block; padding: 8px 12px; border: 1px solid var(--border); border-radius: 9999px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--accent); background: var(--surface); text-decoration: none; }
.axl-over-chip:hover, .axl-over-chip:focus-visible { border-color: var(--accent); }
@media (max-width: 480px) {
  .axl-over-table th, .axl-over-table td { padding: 8px 4px; }
  .axl-over-table td.num, .axl-over-table th.num { font-size: 12px; }
  .axl-over-table thead th.num { font-size: 12px; text-transform: none; }
}
@media print {
  /* the open disclosure holds every group, so the five-row extract above it would print the same rows twice */
  .axl-over-top.has-all { display: none; }
  .axl-over-table { font-size: 10px; line-height: 1.4; }
  .axl-over-table th, .axl-over-table td { padding: 0 8px; border-width: 0; }
  .axl-over-all > summary { min-height: 0; }
  .axl-over-chip { padding: 0 8px; }
}

/* ── 6. Configurator fixes (owner report 2026-11-28, see scripts/qa/rig-configurator/README.md). Appended after the baselined rules. ─────────────────────── */
/* D9: the clamp / limit note has its own line under the hint (one reserved line, so a note appearing never moves the strip). */
.axc .axc-drag-note { display: block; min-height: 24px; margin: 0; font-size: 14px; line-height: 24px; }
.axc .axc-drag-note:empty { visibility: hidden; }
/* D11: a card's header follows the scroll (app.mjs paintStick sets --axc-stick) and gets narrower by the same amount, so its right-hand buttons stay in the card. */
.axc #axle-units .axle-unit > header { translate: var(--axc-stick, 0px) 0; width: calc(100% - var(--axc-stick, 0px)); }
/* D7 and D8: a taller touch lane than the 38 px slider (the lane stays inside the card: no side reach into the neighbour's slider). */
.axc #axle-units .axc-slide::after { inset: -12px 0; }
/* D6: in a card too narrow for "x Jeep" (tight coupling) the button is a round chip with only the symbol. */
.axc #axle-units.axc-cpl-tight .axc-cpl-jeep { min-width: 32px; width: 32px; height: 32px; padding: 0; font-size: 0; }
.axc #axle-units.axc-cpl-tight .axc-cpl-jeep::before { content: "+"; font-size: 16px; line-height: 1.4; }
.axc #axle-units.axc-cpl-tight .axc-cpl-jeep.is-on::before { content: "\00d7"; }
/* D2 and D5 (phone): the header sits above the drawing, so the "x" at the foot of the button column is never under the art, and the header is as tall as its buttons need. */
@media (max-width: 767px) {
  .axc #axle-units { --axc-hdr: 112px; }
  .axc.axc #axle-units .axle-unit > header, .axc.axc #axle-units .coupling-heading { z-index: 3; }
}
/* D5 (phone): the dead space above the drawing. The header is sized for the buttons column (--axc-hdr) and the art box for the tractor's stack, while a jeep, a trailer
   or a booster starts ~90 px lower, so a card was half blank. EVERY card's art is pulled up by the same amount (--axc-lift), so the hubs stay level across the cards.
   The "N axles" label moves from the top of the buttons column to the left of the "+" (the column is then "+", "-", "x": 124 px tall instead of 148), and the tractor's
   magnifier sits right of its title (app.mjs keeps a stuck header 200 px wide, so title, magnifier, label and "+" never meet). The amount is the smaller of two limits, in
   real px on screen: the tractor's stack (the tallest ink, 23 svg px below the art's top) stays 4 px under the magnifier's 40 px, and a booster's frame (126 svg px down)
   stays 4 px under the foot of the column. */
@media (max-width: 767px) {
  .axc #axle-units { --axc-lift: min(calc((var(--axc-hdr) - 44px) * var(--axc-inv, 1) + 23px), calc((var(--axc-hdr) - 128px) * var(--axc-inv, 1) + 126px)); }
  .axc.axc #axle-units .axle-art { margin-top: calc(-1 * var(--axc-lift)); }
  .axc.axc #axle-units .axle-unit > header, .axc.axc #axle-units .coupling-heading { pointer-events: none; }
  .axc.axc #axle-units .axle-unit > header button { pointer-events: auto; }
  .axc.axc #axle-units .axle-count > span { position: absolute; top: 0; right: calc(100% + 8px); font-size: 12px; line-height: 24px; }
  .axc.axc #axle-units .axle-unit > header .axc-zoombtn { top: calc(4px * var(--axc-inv, 1)); left: calc(64px * var(--axc-inv, 1)); transform: scale(var(--axc-inv, 1)); transform-origin: 0 0; }
  .axc.axc #axle-units .coupling-cell .axc-cpl-sub { top: calc(12px + var(--axc-lift)); }
}
/* D5 on a 320 px phone: a one-axle jeep or booster card is only ~136 px wide, so the label has no room beside the "+"; it stays at the top of the column and the lift is the smaller one. */
@media (max-width: 340px) {
  .axc #axle-units { --axc-lift: min(calc((var(--axc-hdr) - 44px) * var(--axc-inv, 1) + 23px), calc((var(--axc-hdr) - 152px) * var(--axc-inv, 1) + 126px)); }
  .axc.axc #axle-units .axle-count > span { position: static; font-size: inherit; line-height: inherit; }
}
/* UI2: on a tablet / desktop the zoom magnifier (in the Tractor card's header) was painted UNDER the art (the equipment outline svg is later in the card and covered it, so a click on the magnifier hit the drawing).
   The header goes above the art, like the phone's (D2), and passes pointer events through except on its own buttons, so a drag on the art under the title still reaches the art. */
@media (min-width: 768px) {
  .axc.axc #axle-units .axle-unit > header { z-index: 3; pointer-events: none; }
  .axc.axc #axle-units .axle-unit > header button { pointer-events: auto; }
}

/* THE AXLE LAYOUT TOOL'S OWN TOUCHES (owner, 2026-11-22 / 23). Tokens only; the strip is scaled by k, so sizes that must stay real are multiplied by --axc-inv.
   - The COUPLING card: the span between the tractor's last axle and the trailer's first axle has no wheels, so it holds no drawing: a title, what it
     measures, an arrowed dimension line with the distance, the drag slider under it, and (bottom) the jeep that is added or removed at this spot.
   - The DRAG SLIDER under every distance.
   - The zoom magnifier on a wide screen, and the ft / m switch at the top right of the tool. */
.axc #axle-units .coupling-heading { justify-content: center; text-align: center; }
.axc #axle-units .coupling-heading .axc-cpl-title { font-size: 14px; font-weight: 700; color: var(--ink); }
/* The caption sits in the open space above the dashed line, so the card's header keeps the same height as its neighbours. */
.axc #axle-units .coupling-cell .axle-art { position: relative; }
.axc #axle-units .coupling-cell .axc-cpl-sub { position: absolute; top: 12px; left: 50%; width: max-content; max-width: calc(var(--coupling-width, 76px) * 1.6); margin: 0; font-size: 10px; line-height: 1.4; font-weight: 400; text-align: center; color: var(--muted); white-space: nowrap; transform: translateX(-50%) scale(var(--axc-inv, 1)); transform-origin: 50% 0; }
.axc #axle-units .coupling-cell .axc-cpl-sub > span { display: block; }
.axc #axle-units.axc-cpl-tight .coupling-cell .axc-cpl-sub { width: 1px; height: 1px; max-width: 1px; overflow: hidden; clip-path: inset(50%); }
.axc #axle-units .axc-spans--cpl .axc-span { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 4; fill: none; }
.axc #axle-units .axc-spans--cpl .axc-span-end { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
/* The jeep button is the last thing in the card, in the row where the weights are on the other cards. */
.axc #axle-units .coupling-cell .axc-weights { display: flex; align-items: flex-start; justify-content: center; }
.axc #axle-units .axc-cpl-jeep { min-width: 64px; height: 30px; margin: 8px 0 0; padding: 0 8px; border: 1px dashed var(--accent); border-radius: 9999px; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.4; cursor: pointer; transform: scale(var(--axc-inv, 1)); transform-origin: 50% 0; }
.axc #axle-units .axc-cpl-jeep.is-on { border-style: solid; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.axc #axle-units .axc-cpl-jeep:hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.axc #axle-units .axc-cpl-jeep:disabled { opacity: .5; cursor: not-allowed; }
.axc #axle-units .axc-cpl-jeep:focus-visible, .axc #axle-units .axc-slide:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── The drag slider under every distance (owner's reference): a filled track, a ring thumb, tick marks and the two ends' values. Right lengthens. ── */
.axc.axc.axc:not(.axs) #axle-units .axle-art { height: calc(204px + 72px * var(--axc-inv, 1)); }
.axc.axc.axc #axle-units .axc-gap { bottom: calc(44px * var(--axc-inv, 1)); }
.axc #axle-units .axc-slide { cursor: pointer; user-select: none; }
.axc #axle-units .axc-slide::after { content: ""; position: absolute; inset: -8px; }
.axc #axle-units .axc-slide-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; transform: translateY(-50%); border-radius: 9999px; background: var(--border); }
.axc #axle-units .axc-slide-fill { display: block; height: 100%; border-radius: 9999px; background: var(--accent-2, var(--accent)); }
.axc #axle-units .axc-slide-tick { position: absolute; top: 16px; width: 1px; height: 3px; background: var(--muted); transform: translateX(-50%); }
.axc #axle-units .axc-slide-thumb { position: absolute; top: 12px; box-sizing: border-box; width: 14px; height: 14px; border: 3px solid var(--accent-2, var(--accent)); border-radius: 9999px; background: var(--surface); transform: translate(-50%, -50%); cursor: ew-resize; box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 20%, transparent); }
.axc #axle-units .axc-slide:hover .axc-slide-thumb, .axc #axle-units .axc-slide:focus-visible .axc-slide-thumb, .axc #axle-units .axc-slide.is-live .axc-slide-thumb { border-width: 4px; }
.axc #axle-units .axc-slide-end { position: absolute; top: 24px; font-size: 10px; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.axc #axle-units .axc-slide-min { left: 0; }
.axc #axle-units .axc-slide-max { right: 0; }
.axc #axle-units .axc-slide[data-narrow] .axc-slide-end { display: none; }
.axc #axle-units.is-dragging .axc-slide, .axc #axle-units.is-dragging .axc-slide-thumb { cursor: grabbing; }

/* ── The zoom magnifier on a wide screen: in the Tractor card, under the title at the left. It sat top-centre until 2026-11-28; on a landscape phone the
   strip is scaled to about 0.4, the card is then ~170 px wide on screen, and a centred 36 px button covered "3 axles" and the minus button. Under the
   title it is clear of the count column at any scale (the sky above the hood is empty art). Zoomed, the rig is bigger and the box scrolls sideways. ── */
@media (min-width: 768px) {
  .axc #axle-units .axle-unit > header { position: relative; }
  .axc.axc #axle-units .axle-unit > header .axc-zoombtn { position: absolute; top: calc(32px * var(--axc-inv, 1)); left: calc(8px * var(--axc-inv, 1)); display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 9999px; color: var(--muted); background: var(--surface); cursor: pointer; transform: scale(var(--axc-inv, 1)); transform-origin: 0 0; }
  .axc #axle-units .axle-unit > header .axc-zoombtn:hover, .axc #axle-units .axle-unit > header .axc-zoombtn:focus-visible, .axc #axle-units .axle-unit > header .axc-zoombtn.is-out { color: var(--ink); border-color: var(--ink); }
  .axc #axle-units .axle-unit > header .axc-zoombtn.is-out .axc-z-plus { display: none; }
}

/* ── The ft / m switch at the top right of the layout tool (it moved out of the rig selector row) ── */
.axc .axle-panel .panel-heading.has-units { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.axc .axle-panel .panel-heading.has-units .units-field { margin: 0 0 0 auto; }

/* The rig picker's rows carry the layout's own drawing, big enough to read (owner: "the icons are too small and there is too much blank space on the right"):
   a wide thumbnail, and on a desktop a wider list so the row is filled. */
.axc .axc-pop-ico.is-rig, .axc .axc-pop-list .axc-pop-ico { width: 136px; height: 68px; overflow: hidden; }
.axc .axc-pop-list .axc-pop-ico svg.axc-ico { width: 72%; height: auto; }
@media (max-width: 720px) { .axc .axc-pop-ico.is-rig, .axc .axc-pop-list .axc-pop-ico { width: 112px; height: 56px; } }
@media (min-width: 721px) { .axc .axc-pop--master .axc-pop-list { width: min(100%, 560px); max-height: 440px; } }
.axc .axc-pop-ico.is-rig .axr { display: block; width: 100%; height: 100%; }

/* ── The two selectors (owner, 2026-11-23): side by side on a desktop, stacked on a phone. The unit switch left this row, so the toolbar is
   rig | state | share + print. On a phone the original stacked rules (rig on row 2, state on row 3) stand. ── */
@media (min-width: 721px) {
  .axc.axc[data-mode="axle"] .heading-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .axc.axc[data-mode="axle"] .heading-actions .setup-bar .axc-f-master { grid-column: 1; grid-row: 1; }
  .axc.axc[data-mode="axle"] .heading-actions .setup-bar .axc-f-state { grid-column: 2; grid-row: 1; }
  .axc.axc[data-mode="axle"] .heading-actions .history-actions { grid-column: 3; grid-row: 1; }
}

/* THE EQUIPMENT BUILDER'S PART OF THE SHARED RIG STRIP SHEET.
   routes/osowTools.ts serves ONE sheet at /rig-configurator/rig-configurator.css: the strip's rules as the checker pages get them (axle-checker/fixes.css,
   layout-rule.css, axle-notes.css, coupling-card.css, the inline AXLE_VISUAL_CSS), then this file. This file holds only what the builder page needs on top:
   the token bridge and the fit box. Colours are the page's own tokens (style.css :root); nothing here names a colour, so a theme that redefines the tokens
   restyles the strip with the rest of the page (the builder page is light only today: color-scheme: light). */

/* The checker sheets are written for the site shell's token names; the builder page names its own. */
.axc:where([data-tool="builder"]) {
  --surface: var(--paper);
  --surface-2: var(--bg);
  --border: var(--line);
  --border-strong: var(--line);
  --ink-soft: var(--muted);
  --warn: var(--warning);
  --error-bg: var(--warn-bg);
  --success: var(--accent);
  --success-bg: var(--accent-light);
  --accent-2: var(--accent);
}

/* The fit box (shared-strip.mjs fit): the strip is scaled inside it. A phone swipes the box sideways; a wide screen only scrolls it below the fit floor. */
.axc:where([data-tool="builder"]) #axc-fit { width: 100%; max-width: 100%; }
@media (max-width: 767px) {
  .axc:where([data-tool="builder"]) #axc-fit { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
}

/* The builder holds no per-axle weights (features.weights is false), so a piece's weights row is empty: take it out of the card instead of leaving 52 px of nothing. */
.axc:where([data-tool="builder"]) #axle-units .axle-unit > .axc-weights:empty { display: none; }

/* A jeep or booster header holds the count and three buttons (- + x, the builder's own remove): on a wide screen its narrow card is given the width they need (the checker's
   header has no x: its jeep is removed from the coupling card). A phone stacks the buttons in a column, which already fits. */
@media (min-width: 768px) {
  .axc:where([data-tool="builder"]) #axle-units .axle-unit:has(.axle-count [data-action="remove"]) { min-width: calc(224px * var(--axc-inv, 1)); } /* the strip is scaled by k: the controls keep their real size, so the room they need is 224 px on screen */
}

/* UI2: on a phone the zoom magnifier moves into the first card (shared-strip.mjs parkZoom), which leaves its bar empty: take the bar out so it holds no gap. */
.axc:where([data-tool="builder"]) .rz-bar:empty { display: none; }

/* UI2: zoomed in, the builder scales the strip's children with CSS zoom (--rz); the magnifier inside the card keeps its real size. */
@media (max-width: 767px) {
  .axc:where([data-tool="builder"]) #axle-units.is-zoomed .axle-unit > header .axc-zoombtn { zoom: calc(1 / var(--rz, 1)); }
}

/* The phone's axle buttons stack + above - in the checker (layout-rule.css orders them by data-d); the builder's buttons carry data-action instead, so the same order is said here. */
@media (max-width: 767px) {
  .axc.axc:where([data-tool="builder"]) #axle-units .axle-count button[data-action="axle-count"][aria-label^="Add"] { order: 1; }
  .axc.axc:where([data-tool="builder"]) #axle-units .axle-count button[data-action="axle-count"][aria-label^="Remove"] { order: 2; }
}

/* THE RIG CONFIGURATOR'S SHARED ADDITIONS (checker and builder, one copy; served at the end of /rig-configurator/rig-configurator.css).
   - The COUPLING CARD body: the helper button (+ Jeep / Remove jeep / + Booster / Remove booster) and the kingpin figure live inside the card of the connection they belong to.
   - The TIRE CHIP under every axle and its popover.
   - The checker's tool row (undo, redo, reset, rig name) and its print rig table.
   Tokens only (--ink, --muted, --surface, --border, --accent, --error); sizes that must stay real on screen carry --axc-inv, the strip's counter-scale. */

/* ── Coupling card body ── */
.axc #axle-units .axc-cpl-wrap { position: relative; overflow: visible; }
.axc #axle-units .axc-cpl-body { box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: calc(var(--coupling-width, 140px) * var(--axc-k, 1)); padding: 0 4px; transform: scale(var(--axc-inv, 1)); transform-origin: 0 0; }
.axc #axle-units .axc-cpl-body .axc-cpl-act, .axc #axle-units .axc-cpl-body .axc-cpl-jeep { width: 100%; min-width: 0; height: 32px; margin: 4px 0 0; padding: 0 4px; font-size: 12px; font-weight: 600; white-space: nowrap; transform: none; }
.axc #axle-units .axc-cpl-body .axc-cpl-act.is-on { border-style: solid; color: var(--ink); border-color: var(--border-strong, var(--border)); background: var(--surface); }
.axc #axle-units .axc-cpl-body .axc-cpl-act.is-on:hover { border-color: var(--error); color: var(--error); }
.axc #axle-units .axc-cpl-why, .axc #axle-units .axc-cpl-sub2 { display: block; margin: 0; font-size: 10px; line-height: 1.4; color: var(--muted); text-align: center; white-space: normal; }
.axc #axle-units .axc-cpl-end .axc-cpl-wrap { margin-top: 80px; }
.axc #axle-units.axc-cpl-tight .axc-cpl-body .axc-cpl-jeep { min-width: 0; width: 100%; height: 32px; border-radius: 9999px; }
.axc #axle-units .axc-kp { display: flex; flex-direction: column; gap: 4px; }
.axc #axle-units .axc-kp-f { text-transform: none; letter-spacing: 0; display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 10px; line-height: 1.4; font-weight: 400; color: var(--muted); text-align: center; }
.axc #axle-units .axc-kp-f input { box-sizing: border-box; width: 100%; height: 32px; min-height: 32px; padding: 0 4px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.axc #axle-units .axc-kp-f input.is-assumed { color: var(--muted); font-style: italic; }
.axc #axle-units .axc-kp-note { display: block; margin: 0; font-size: 10px; line-height: 1.4; color: var(--muted); text-align: center; white-space: normal; overflow-wrap: anywhere; }
.axc #axle-units .axc-kp.is-unusual .axc-kp-note { color: var(--error); font-weight: 600; }
.axc #axle-units .axc-kp-f input[aria-invalid="true"] { border-color: var(--error); }

/* ── Tire chip under every axle ── */
.axc #axle-units .axc-tires { position: relative; height: calc(32px * var(--axc-inv, 1)); }
.axc #axle-units .axc-tire-cell { position: absolute; top: 4px; z-index: 1; width: var(--axc-w, 56px); margin: 0; transform: translateX(-50%) scale(var(--axc-inv, 1)); transform-origin: 50% 0; }
.axc #axle-units .axc-tire { position: relative; box-sizing: border-box; display: block; width: 100%; height: 28px; min-height: 28px; margin: 0; padding: 0 4px; border: 1px solid var(--accent); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; text-align: center; cursor: pointer; }
.axc #axle-units .axc-tire::after { content: ""; position: absolute; inset: -8px 0; }
.axc #axle-units .axc-tire.is-assumed { border-style: dashed; border-color: var(--border-strong, var(--border)); color: var(--muted); font-weight: 400; font-style: italic; }
.axc #axle-units .axc-tire:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.axc #axle-units .axc-tire:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.axc #axle-units .axc-tire .t-short { display: none; }
.axc #axle-units .axc-tire-cell[data-narrow] .t-long { display: none; }
.axc #axle-units .axc-tire-cell[data-narrow] .t-short { display: inline; }

/* ── The tire popover (a small card under the chip; a bottom sheet on a phone) ── */
.axc .axc-tirepop { position: fixed; z-index: 60; box-sizing: border-box; width: min(336px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto; padding: 12px; border: 1px solid var(--border-strong, var(--border)); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 22%, transparent); font-size: 13px; line-height: 1.4; }
.axc .axc-tirepop.is-sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 80vh; border-radius: 16px 16px 0 0; padding: 16px; }
.axc .axc-tp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.axc .axc-tp-x { min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--accent-fill, var(--accent)); color: var(--accent-ink, var(--surface)); font-weight: 600; cursor: pointer; }
.axc .axc-tp-state { margin: 4px 0 8px; color: var(--muted); font-size: 12px; }
.axc .axc-tp-row { display: grid; gap: 4px; margin: 0 0 8px; }
.axc .axc-tp-k { font-size: 12px; font-weight: 600; color: var(--ink); }
.axc .axc-tp-seg { display: flex; gap: 4px; }
.axc .axc-tp-seg button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 4px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; cursor: pointer; }
.axc .axc-tp-seg button[aria-checked="true"] { border-color: var(--accent-fill, var(--accent)); background: var(--accent-fill, var(--accent)); color: var(--accent-ink, var(--surface)); font-weight: 600; }
.axc .axc-tp-seg button:disabled { opacity: .4; cursor: not-allowed; }
.axc .axc-tp-w { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; align-items: center; }
.axc .axc-tp-w input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 8px; font-size: 14px; }
.axc .axc-tp-err { min-height: 0; color: var(--error); font-size: 12px; }
.axc .axc-tp-presets, .axc .axc-tp-all { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.axc .axc-tp-presets button, .axc .axc-tp-all button { flex: 1 1 auto; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; cursor: pointer; }
.axc .axc-tp-presets button:disabled, .axc .axc-tp-all button:disabled { opacity: .4; cursor: not-allowed; }
.axc .axc-tirepop button:focus-visible, .axc .axc-tirepop input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.axc .axc-tp-note { margin: 0; color: var(--muted); font-size: 12px; }

/* ── What the tires did to the result ── */
.axc-tires-note { margin: 16px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.axc-tires-note h3 { margin: 0 0 4px; font-size: 14px; }
.axc-tires-note p, .axc-tires-note li { margin: 0 0 4px; font-size: 13px; line-height: 1.4; }
.axc-tires-used, .axc-tires-adv { margin: 4px 0 0; padding-left: 16px; }
.axc-tires-used li > span { font-weight: 600; }
.axl-sl-tire { color: var(--ink); }

/* ── Phone: every control a finger meets is at least 44 px; weights and tire chips at least 12 px type ── */
@media (max-width: 767px) {
  .axc #axle-units .axc-kp-f input { height: 44px; min-height: 44px; font-size: 16px; }
  .axc #axle-units .axc-cpl-body .axc-cpl-act, .axc #axle-units .axc-cpl-body .axc-cpl-jeep { height: 44px; }
  .axc #axle-units .axc-tire { height: 32px; min-height: 32px; font-size: 12px; }
  .axc #axle-units .axc-tire::after { inset: -4px 0; }
  .axc #axle-units .axc-tires { height: calc(44px * var(--axc-inv, 1)); }
}

/* ── "Check weights": the builder's link to the Axle checker, a primary button under the rig ── */
.axc .axc-check-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; margin: 8px 0; padding: 0 16px; border-radius: 6px; background: var(--accent-fill, var(--accent)); color: var(--accent-ink, var(--surface)); font-size: 14px; font-weight: 600; text-decoration: none; }
.axc .axc-check-link:hover { filter: brightness(0.94); }
.axc .axc-check-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.axc .axc-check-link[hidden] { display: none; }

/* ── The checker's tool row: undo, redo, reset and the two printed details ── */
.axc .axc-toolrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 8px 0 16px; }
.axc .axc-tool-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.axc .axc-tool-btn:disabled { opacity: .45; cursor: not-allowed; }
.axc .axc-tool-btn:focus-visible, .axc .axc-tool-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.axc .axc-tool-field { display: grid; gap: 4px; flex: 1 1 200px; margin: 0; font-size: 12px; color: var(--muted); }
.axc .axc-tool-field em { font-style: normal; }
.axc .axc-tool-field input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 14px; }

/* ── Print: the rig sheet. Hidden on screen. A result that does not describe the rig on screen is never printed (data-axc-print="blocked" hides the results and the sheet says why). ── */
.axc-print-only { display: none; }
@media print {
  .axc-print-only { display: block; margin: 0 0 16px; break-inside: avoid; color: var(--ink); }
  .axc-print-only h2 { margin: 0 0 4px; font-size: 16pt; }
  .axc-print-meta { margin: 0 0 8px; font-size: 11pt; }
  .axc-print-table, .axc-print-facts { width: 100%; margin: 0 0 8px; border-collapse: collapse; font-size: 10pt; }
  .axc-print-table th, .axc-print-table td, .axc-print-facts th, .axc-print-facts td { padding: 4px 8px; border: 1px solid var(--border-strong, var(--border)); text-align: left; vertical-align: top; }
  .axc-print-table .num { text-align: right; }
  .axc-print-facts th { width: 40%; font-weight: 600; }
  .axc-print-note { margin: 0 0 8px; font-size: 9pt; color: var(--muted); }
  .axc-print-block { margin: 0; padding: 12px; border: 2px solid var(--ink); font-size: 12pt; }
  html[data-axc-print="blocked"] #axc-results, html[data-axc-print="blocked"] #qt-static, html[data-axc-print="blocked"] #stats { display: none !important; }
  .axc .axc-toolrow, .axc .axc-tirepop, .axc .axc-check-link, .axc .axc-cpl-body .axc-cpl-act, .axc .axc-cpl-end { display: none !important; }
}

/* ── The chat launcher steps aside while the rig is on screen (it covered weight and spacing boxes); axle + / - are finger-sized on a phone ── */
html.axc-rig-in-view .qf-mc-fab { opacity: 0; pointer-events: none; }
.axc #axle-units .axl-why, .axl-why { font-size: 12px; color: var(--muted); }
@media (max-width: 767px) {
  .axc.axc.axc #axle-units .axle-count button { width: calc(30px * var(--axc-inv, 1)); height: calc(30px * var(--axc-inv, 1)); min-width: 0; min-height: 0; }
  .axc.axc.axc #axle-units .axle-count button::after { inset: -4px; } /* (24 on screen after the fit + the 4 px overhang each side, and the header row sets the real limit) */
  .axc.axc.axc #axle-units .axle-count button[disabled] { opacity: .45; }
  .axc.axc.axc #axle-units .axc-kp-f input { height: 44px; min-height: 44px; font-size: 16px; }
  .axc.axc.axc #axle-units .axc-slide::after { inset: -8px; }
}
.axc .axc-cap-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* ── Owner QA 2026-11: finger-sized (44 px) controls and 12 px type on a phone / touch screen. Boxes are real 44 px tall; round handles and thumbs get a 44 px ::after;
   the strip is drawn larger and scrolls sideways when neighbours would be closer than 54 px (fit.mjs PHONE_MIN_NEAR). ── */
@media (max-width: 767px), (pointer: coarse) {
  .axc.axc.axc #editor #axle-units .axc-weight input[data-k], .axc.axc.axc #editor #axle-units .axc-gap input[data-k] { height: 44px; min-height: 44px; }
  .axc.axc.axc #axle-units .axc-tire { height: 44px; min-height: 44px; }
  .axc.axc.axc #axle-units .axc-tire::after { inset: 0; }
  .axc.axc.axc #axle-units .axc-tires { height: calc(56px * var(--axc-inv, 1)); }
  .axc.axc.axc #axle-units .axc-tire-cell { top: 8px; }
  .axc.axc.axc #axle-units .axc-weight small, .axc.axc.axc #axle-units .axc-cpl-sub, .axc.axc.axc #axle-units .axc-cpl-sub2, .axc.axc.axc #axle-units .axc-kp-f, .axc.axc.axc #axle-units .axc-kp-note, .axc.axc.axc #axle-units .axc-slide-end { font-size: 12px; }
  .axc.axc.axc #axle-units .axc-slide-thumb::after { content: ""; position: absolute; inset: -16px; border-radius: 9999px; }
  .axc.axc.axc #axle-units .axc-slide::after { inset: -12px -8px; }
  .axc.axc.axc #axle-units .diagram-wheel { min-width: 44px; }
  .axc.axc.axc #editor .axc-toolrow input, .axc.axc.axc #editor .axc-tool-field input { height: 44px; min-height: 44px; font-size: 16px; }
  .axc.axc.axc #axle-units .axc-weights { height: calc(64px * var(--axc-inv, 1)); }
  .axc.axc.axc #axle-units .axle-count button::after { inset: -8px; }
  .axc.axc.axc .history-actions .icon-btn, .axc.axc.axc .uom-seg button, .axc.axc.axc .axc-road-seg button { width: auto; min-width: 44px; min-height: 44px; height: 44px; }
  .axc .history-actions { gap: 8px; }
  .axc .axc-road-seg button { padding-inline: 12px; }
}

/* Page furniture around the rig on a phone: breadcrumbs, Embed, the group summaries, the over-limit chips and the note links are 44 px hit areas with 12 px type. */
@media (max-width: 767px), (pointer: coarse) {
  body:has(.axc) .qtt-crumbs { font-size: 12px; }
  body:has(.axc) .qtt-crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -8px; padding: 0 4px; box-sizing: border-box; }
  body:has(.axc) .qtt-band.qtt-band .qtt-embed { min-height: 44px; font-size: 12px; }
  body:has(.axc) .qtt-badges li, body:has(.axc) .qtt-embed-sm { font-size: 12px; }
  .axc-results .axl-math > summary, .axc-results details > summary { min-height: 44px; }
  .axc-results .axl-over-chip { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
  .axc-results .qt-note a, .axc-results .axl-card a, .axc-results .axl-sl a, .axc-results .axl-sl-c a, .axi-more a, .axc-results .qt-ladder-link { display: inline-flex; align-items: center; min-height: 44px; }
  .axc .axle-panel .axc-cap-note a, .axc .axc-tires-note a { display: inline-flex; align-items: center; min-height: 44px; }
  .axi-checks a { display: inline-flex; align-items: center; min-height: 44px; }
  .axc .axl-card small, .axc-results small { font-size: 12px; }
}

/* ── PRINT (owner QA 2026-11): the sheet is the rig sheet, the verdict and the limits, in one or two pages. No site chrome, no preset panel, no FAQ or next-tool cards,
   no footer, no chat widget. ── */
@media screen { .axc-print-more { display: none; } }
@media print {
  body:has(.axc) { background: Canvas; color: CanvasText; }
  body:has(.axc) .site-header, body:has(.axc) .site-mobile-menu, body:has(.axc) .site-menu-scrim, body:has(.axc) .qf-skip, body:has(.axc) .qtt-crumbs, body:has(.axc) .qtt-band,
  body:has(.axc) .premium-footer, body:has(.axc) footer, body:has(.axc) #faq, body:has(.axc) #related, body:has(.axc) .axi, body:has(.axc) #qtt-report, body:has(.axc) .qtt-report,
  body:has(.axc) .qtt-embed-dlg, body:has(.axc) .rig-presets, body:has(.axc) .page-heading, body:has(.axc) #editor, body:has(.axc) .axc-nojs, body:has(.axc) .axc-status,
  .qf-mc-fab, .qf-mc-backdrop, .qf-mc-panel, [class^="qf-mc-"], [class*=" qf-mc-"], .axc-marks-toggle, .axc-cta, #qt-run, .axc-check-link { display: none !important; }
  body:has(.axc) .qh-shell, body:has(.axc) .qh-body, body:has(.axc) .qh-content, body:has(.axc) .qtt-tool { display: block !important; margin: 0 !important; padding: 0 !important; max-width: none !important; }
  body:has(.axc) .axc-print-only { display: block !important; }
  body:has(.axc) .axc-results { margin: 8pt 0 0; }
  body:has(.axc) .axc-results * { box-shadow: none !important; }
  body:has(.axc) .axc-results .hh-r3-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6pt; }
  body:has(.axc) .axc-results .axl-card, body:has(.axc) .axc-results tr { break-inside: avoid; }
  body:has(.axc) .axc-results table th, body:has(.axc) .axc-results table td { padding: 1pt 4pt; font-size: 8pt; line-height: 1.25; }
  body:has(.axc) .axc-results .qt-note { padding: 6pt; margin: 6pt 0 0; }
  body:has(.axc) .axc-print-table td, body:has(.axc) .axc-print-table th, body:has(.axc) .axc-print-facts td, body:has(.axc) .axc-print-facts th { padding: 2pt 6pt; }
  body:has(.axc) .axc-results .axl-card svg, body:has(.axc) .axc-results .axl-card .axl-art, body:has(.axc) .axc-results .axl-math { display: none !important; }
  body:has(.axc) #qt-static { display: block; }
  .axc-print-skip { display: none !important; }
  @page { margin: 12mm; }
}

/* A stale verdict is greyed and stamped, so a green "Compliant" can never read as current while a field is flagged (owner QA 2026-11). */
.axc-results.is-stale, #qt-static.is-stale, #stats.is-stale { position: relative; opacity: 0.4; filter: grayscale(1); }
#axc-status[data-mode="invalid"] + .axc-results.is-stale::before, #axc-status[data-mode="throttled"] + .axc-results.is-stale::before { content: "Out of date: does not match the rig above"; position: sticky; top: 80px; z-index: 3; display: block; width: fit-content; margin: 0 0 8px; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; }
@media print { #axc-status + .axc-results.is-stale::before { display: none; } }

/* The one-line notices beside the toolbar: units switched for a province (with its undo) and a refused print / copy. */
.axc-units-note, .axc-print-msg { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); color: var(--ink); font-size: 13px; line-height: 1.5; }
.axc-print-msg { border-color: var(--warn); background: var(--warn-bg); font-weight: 600; }
.axc-units-note[hidden], .axc-print-msg[hidden] { display: none; }
.axc-units-undo { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
@media print { .axc-units-note, .axc-print-msg { display: none !important; } }

/* First screen (owner QA 2026-11): one plain line of what this does and what to do first, then the manufacturer-trailer picker folded to one row. */
.axc-lede { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.axc-lede strong { font-weight: 600; }
.rig-presets-fold { margin: 8px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rig-presets-fold > summary { display: flex; align-items: center; min-height: 44px; padding: 0 12px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.rig-presets-fold > .rig-presets { margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; }
.rig-presets-more > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@media print { .axc-lede, .rig-presets-fold { display: none !important; } }

/* Phone first screen: the rig and its verdict come before the print details. Undo / Redo / Reset and the two printed-name boxes move under the rig (they are for the sheet,
   not for entering a rig), */
@media (max-width: 767px) {
  .axc[data-mode="axle"] { position: relative; }
  .axc[data-mode="axle"] .axle-panel { display: flex; flex-direction: column; }
  .axc[data-mode="axle"] .axle-panel > .axc-toolrow { order: 20; margin-top: 16px; }
}

/* LOW items (owner QA 2026-11) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
/* A vertical swipe that starts on a slider track scrolls the page; only a sideways drag moves the slider. */
.axc #axle-units .axc-slide, .axc #axle-units .axc-slide * { touch-action: pan-y; }
/* Zoomed in, the way out says so: the magnifier button becomes an "Exit zoom" pill. */
.axc .axc-zoombtn[aria-pressed="true"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 44px; padding: 0 16px; border-radius: 9999px; border-color: var(--ink); background: var(--ink); color: var(--surface); }
.axc .axc-zoombtn[aria-pressed="true"]::after { content: "Exit zoom"; font-size: 13px; font-weight: 700; }
/* A landscape phone has no height to spare: the sticky site header scrolls away instead of holding 64 px of a 360 px screen. */
@media (max-height: 500px) and (orientation: landscape) {
  body:has(.axc) .site-header { position: static; }
}
/* The cold builder: outlines and the empty-state heavy borders are quiet until the reader has entered something. */
.axc:where([data-tool="builder"]) #axle-units .axle-unit:not(:hover):not(:focus-within) { border-color: var(--border); box-shadow: none; }
