:root {
  --navy: #1f3864; --ink: #14171a; --muted: #5d6570; --line: #dde3ea; --bg: #f5f7f9;
  --chws: #1e88e5; --chwr: #e53935; --icw: #43a047; --cd: #fb8c00; --chw: #8e24aa; --unknown: #757575; --fh: #6d4c41;
  --done: #2e7d32; --sel: #ffd600;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 15px; overscroll-behavior: none; }
body { display: flex; flex-direction: column; height: 100dvh; }
header#topbar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--sat)) 10px 8px;
  background: var(--navy); color: #fff; }
#title { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.icon { width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: inherit;
  font-size: 22px; line-height: 1; cursor: pointer; }
.badge { background: #fb8c00; color: #fff; border-radius: 12px; padding: 2px 9px; font-size: 13px; font-weight: 600; }
.view { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#view-sheets { overflow-y: auto; padding: 12px; gap: 10px; }
.blocks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.block-btn { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 150px; padding: 18px 20px; border: 0; border-radius: 16px;
  background: var(--navy); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.block-btn:active { transform: scale(.99); }
.block-btn .big { font-size: 32px; font-weight: 700; letter-spacing: .02em; }
.block-btn .sub { font-size: 15px; opacity: .85; }
.block-btn .bar { background: rgba(255,255,255,.25); height: 10px; }
.block-btn .bar > i { background: #7ee787; }
#uploads { margin-top: 18px; }
#uploads summary { cursor: pointer; font-weight: 600; color: var(--muted); }
#uploads .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.card.upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sheet-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.sheet-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: #e7ecf2; }
.sheet-card .name { font-weight: 600; margin-top: 6px; }
.bar { height: 8px; background: #e7ecf2; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--done); }
.muted { color: var(--muted); font-size: 13px; }
.err { color: #b00020; margin-top: 8px; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 10px 14px;
  font-size: 15px; min-height: 44px; cursor: pointer; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.danger { color: #b00020; border-color: #e5a0a8; }
.btn:disabled { opacity: .5; }

/* viewer */
#view-viewer { position: relative; }
#stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
#side { display: contents; }
#side-empty { display: none; }
#side-tab { display: none; }
#progress { flex: 0 0 auto; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 10px; }
#progress-total { font-weight: 600; font-size: 14px; flex: 1; }
.row-tight { display: flex; align-items: center; gap: 8px; }
#find { width: 46%; max-width: 220px; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
#modal-body tr.go { cursor: pointer; }
#chips { display: flex; gap: 6px; overflow-x: auto; padding-top: 4px; scrollbar-width: none; }
.chip { flex: 0 0 auto; border-radius: 14px; padding: 4px 10px; font-size: 13px; border: 2px solid transparent;
  background: #eef1f4; cursor: pointer; white-space: nowrap; }
.chip.on { border-color: var(--ink); }
.chip i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
#osd { flex: 1 1 auto; min-height: 0; min-width: 0; background: #2b2f33; touch-action: none; }
#zoom-ctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
#zoom-ctl .icon { background: rgba(31,56,100,.9); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
#zoom-ctl .icon.on { background: var(--sel); color: var(--ink); }
#zoom-ctl .icon.clean { background: #fff; color: var(--ink); }
#actionbar { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + var(--sab)); box-shadow: 0 -4px 12px rgba(0,0,0,.15); }
#actionbar .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
#sel-meta { margin-left: 8px; }
#drawer { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 12px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.drawer-head b { flex: 1; }
.drawer-head .icon { background: #eef1f4; color: var(--ink); }
.drawer-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; background: #e7ecf2; touch-action: pan-x pan-y pinch-zoom; }
.shop-wrap { position: relative; display: inline-block; width: 200%; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.shop-wrap img { display: block; width: 100%; max-width: none; }

/* hotspot overlay */
svg.hot { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
svg.hot rect.sp { fill-opacity: .18; stroke-width: 2px; vector-effect: non-scaling-stroke; }
svg.hot rect.sys-CHWS { fill: var(--chws); stroke: var(--chws); }
svg.hot rect.sys-CHWR { fill: var(--chwr); stroke: var(--chwr); }
svg.hot rect.sys-ICW { fill: var(--icw); stroke: var(--icw); }
svg.hot rect.sys-CD { fill: var(--cd); stroke: var(--cd); }
svg.hot rect.sys-CHW { fill: var(--chw); stroke: var(--chw); }
svg.hot rect.sys-UNKNOWN { fill: var(--unknown); stroke: var(--unknown); }
svg.hot rect.sys-FH { fill: var(--fh); stroke: var(--fh); }
.block-btn.kind-btn[disabled] { opacity: .45; cursor: default; }
.block-btn.kind-btn.hangers { background: var(--fh); }
svg.hot rect.installed { fill: var(--done); stroke: var(--done); fill-opacity: .55; }
svg.hot rect.low { stroke-dasharray: 6 4; }
svg.hot rect.hidden { display: none; }
svg.hot rect.selected { stroke: var(--sel); stroke-width: 4px; }
svg.hot rect.pending { stroke-dasharray: 2 2; }
/* Names-off modes: 'outline' keeps a thin box per spool (installed ones solid), 'hidden' shows only the selected spool. */
svg.hot.ov-outline rect.sp { fill-opacity: 0; stroke-width: 1.5px; stroke-opacity: .8; }
svg.hot.ov-outline rect.installed { fill-opacity: .35; stroke-width: 2px; stroke-opacity: 1; }
svg.hot.ov-outline rect.selected { stroke-width: 4px; stroke-opacity: 1; }
svg.hot.ov-hidden rect.sp:not(.selected) { display: none; }
svg.hot.ov-hidden g.wb { display: none; }
svg.hot.ov-hidden rect.selected { fill-opacity: .18; }

/* bottom sheets */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; padding: 14px 14px calc(14px + var(--sab));
  box-shadow: 0 -4px 16px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 8px; max-height: 80%; overflow: auto; z-index: 20; }
#modal-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
#modal-body td, #modal-body th { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
#toast { position: fixed; left: 50%; bottom: calc(90px + var(--sab)); transform: translateX(-50%); background: rgba(20,23,26,.92); color: #fff;
  padding: 10px 14px; border-radius: 10px; font-size: 14px; z-index: 30; max-width: 90vw; }

body.login { align-items: center; justify-content: center; }
body.login .card { width: min(92vw, 360px); display: flex; flex-direction: column; gap: 10px; }
body.login label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
body.login input { font-size: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
body.login h1 { margin: 0 0 6px; color: var(--navy); font-size: 22px; }
body.login select { font-size: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
body.login .auth { width: min(92vw, 380px); display: flex; flex-direction: column; gap: 14px; }
body.login .auth .card { width: auto; }
body.login .brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
body.login .brand img { width: 44px; height: 44px; border-radius: 10px; }
body.login .brand b { display: block; font-size: 20px; }
body.login .brand span { display: block; font-size: 13px; color: var(--muted); }
body.login .alt { font-size: 14px; color: var(--muted); margin-top: 4px; }
body.login .alt a { color: var(--navy); }
body.login p { margin: 0; }
/* admin: users / invites / requests */
.admin { overflow-x: auto; }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin td.row, .admin td .row { white-space: nowrap; }
.admin td .btn { white-space: nowrap; }
.admin th, .admin td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin select, .admin input { font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.admin .btn.small { padding: 6px 10px; font-size: 13px; }
.admin h3 { margin: 18px 0 6px; font-size: 15px; color: var(--navy); }
.admin .tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #eef1f4; color: var(--muted); }
.admin .tag.pending { background: #fff3cd; color: #7a5a00; }
.admin .tag.accepted, .admin .tag.approved { background: #e3f3e5; color: var(--done); }
.admin .tag.off { background: #fde7e9; color: #b00020; }
.admin .link { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; background: #f5f7f9; padding: 8px; border-radius: 8px; }

/* iPad landscape and desktop: the viewer keeps the full height, the selected spool and its shop sheet live
   in a side panel instead of covering the drawing. 900px splits iPad portrait (820) from landscape (1180). */
@media (min-width: 900px) {
  #side { display: flex; flex: 0 0 min(42%, 520px); flex-direction: column; border-left: 1px solid var(--line); background: #fff; overflow: hidden; transition: flex-basis .25s ease; }
  #zoom-ctl { right: calc(min(42%, 520px) + 10px); transition: right .25s ease; }
  /* Arrow tab on the panel edge: slides the spool panel closed so the drawing takes the full width; selecting a spool opens it again. */
  #side-tab { display: flex; position: absolute; z-index: 4; top: 50%; right: min(42%, 520px); transform: translateY(-50%); width: 30px; height: 72px;
    border: 0; border-radius: 10px 0 0 10px; background: rgba(31,56,100,.9); color: #fff; font-size: 22px; align-items: center; justify-content: center;
    box-shadow: -2px 2px 6px rgba(0,0,0,.3); transition: right .25s ease; cursor: pointer; }
  #stage.side-closed #side { flex-basis: 0; border-left: 0; }
  #stage.side-closed #zoom-ctl { right: 10px; }
  #stage.side-closed #side-tab { right: 0; }
  #actionbar, #drawer { position: static; box-shadow: none; border: 0; }
  #actionbar { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  #drawer { height: auto; flex: 1 1 auto; min-height: 0; }
  #drawer .drawer-head .icon, #btn-shop { display: none !important; }
  .shop-wrap { width: 100%; cursor: zoom-in; }
  .shop-wrap.big { width: 200%; cursor: zoom-out; }
  #side-empty { display: flex; flex: 1; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); }
  #side-empty[hidden] { display: none !important; }
  .sheet { left: auto; right: 0; width: min(42%, 520px); border-radius: 0; top: 0; max-height: none; }
  #modal.big { width: min(78%, 900px); }
  #toast { bottom: 24px; }
}

/* welds */
.btn.small { min-height: 36px; padding: 6px 10px; font-size: 14px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
#welds { background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px; }
.welds-head { display: flex; align-items: center; gap: 8px; }
.welds-head b { flex: 1; }
.weld-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.weld-row:first-child { border-top: 0; }
.weld-row .fw { font-weight: 700; min-width: 44px; }
.weld-row .meta { flex: 1; font-size: 13px; color: var(--muted); }
.weld-row .thumbs { display: flex; gap: 4px; }
.weld-row .thumbs img, .photo-new img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #e7ecf2; cursor: pointer; }
.photo-new { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed #e5a0a8; }
.photo-new .meta { flex: 1; font-size: 13px; color: #b00020; }
#modal .record { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
#modal .record label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
#modal .record input, #modal .record select, #modal .record textarea { font-size: 16px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
#modal .record .wide { grid-column: 1 / -1; }
#modal .record img.preview { width: 100%; max-height: 38vh; object-fit: contain; background: #e7ecf2; border-radius: 8px; grid-column: 1 / -1; }
#modal img.full { width: 100%; }
svg.hot g.wb circle { fill: #fff; stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
svg.hot g.wb text { font: 700 26px -apple-system, Helvetica, Arial, sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
@media (min-width: 900px) { #btn-welds { display: none !important; } #welds[hidden] { display: none !important; } }
@media (max-width: 899.98px) { #welds { display: none !important; } }

/* pins on the shop drawing */
.shop-wrap.pinning { cursor: crosshair; outline: 3px solid var(--sel); outline-offset: -3px; }
.pin { position: absolute; transform: translate(-50%, -100%); background: #e53935; color: #fff; font: 700 12px -apple-system, Helvetica, Arial, sans-serif;
  padding: 3px 6px; border-radius: 8px 8px 8px 0; box-shadow: 0 1px 4px rgba(0,0,0,.4); white-space: nowrap; pointer-events: none; }
.pin::after { content: ''; position: absolute; left: 0; bottom: -6px; border: 6px solid transparent; border-top-color: #e53935; border-left-color: #e53935; }
.pin.ok { background: var(--done); } .pin.ok::after { border-top-color: var(--done); border-left-color: var(--done); }
.pin.open { background: #fff; color: #e53935; outline: 2px solid #e53935; outline-offset: -2px; } .pin.open::after { border-top-color: #e53935; border-left-color: #e53935; }
/* tap-and-hold name box */
.pin-form { position: absolute; transform: translate(0, -50%); display: flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--sel);
  border-radius: 10px; padding: 6px 8px; box-shadow: 0 2px 10px rgba(0,0,0,.35); z-index: 5; margin-left: 10px; white-space: nowrap; }
.pin-form.flip { transform: translate(-100%, -50%); margin-left: -10px; }
.pin-form .dot { position: absolute; left: -16px; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--sel); box-shadow: 0 0 0 3px #fff; }
.pin-form.flip .dot { left: auto; right: -16px; margin: -6px -6px 0 0; }
.pin-form input { width: 7em; font-size: 16px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; text-transform: uppercase; }
.weld-row .btn.pinned { border-color: var(--done); color: var(--done); }
/* VT state */
svg.hot g.wb.vt-pending circle { fill: #ffe082; }
svg.hot g.wb.vt-passed circle { fill: #7ee787; }
svg.hot g.wb.vt-failed circle { fill: #ef9a9a; }
/* Torque pins: screen-sized markers placed by tap-and-hold on a fab layout. Orange = report photo on file, hollow = not yet. */
svg.hot g.tp circle { fill: #f57c00; stroke: #fff; stroke-width: 2.5px; }
svg.hot g.tp.open circle { fill: #fff; stroke: #f57c00; stroke-width: 3px; }
svg.hot g.tp text { font: 700 15px -apple-system, Helvetica, Arial, sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: central; }
svg.hot g.tp.open text { fill: #f57c00; }
svg.hot g.tp.selected circle { stroke: var(--sel); stroke-width: 4px; }
.torque-photos { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.torque-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: #e7ecf2; }
#osd { -webkit-touch-callout: none; }
.vt-pill { display: inline-block; border-radius: 10px; padding: 1px 8px; font-size: 12px; font-weight: 600; margin-left: 6px; }
.vt-pill.pending { background: #ffe082; } .vt-pill.passed { background: #7ee787; } .vt-pill.failed { background: #ef9a9a; }
/* review screen */
#review-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); }
#review-head > div { flex: 1; }
#review-body { flex: 1; min-height: 0; display: flex; }
#review-grid { flex: 1; overflow: auto; padding: 10px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); align-content: start; }
#review-grid .ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e7ecf2; cursor: pointer; border: 3px solid transparent; }
#review-grid .ph.on { border-color: var(--sel); }
#review-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
#review-grid .ph .cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(20,23,26,.7); color: #fff; font-size: 11px; padding: 3px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#review-detail { flex: 0 0 min(50%, 620px); border-left: 1px solid var(--line); background: #fff; overflow: auto; padding: 12px; }
#review-detail .record { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
#review-detail .record label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
#review-detail .record input, #review-detail .record select { font-size: 16px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
#review-detail .record .wide { grid-column: 1 / -1; }
#review-detail img.preview { width: 100%; max-height: 45vh; object-fit: contain; background: #e7ecf2; border-radius: 8px; grid-column: 1 / -1; cursor: zoom-in; }
#review-detail img.preview.big { max-height: none; object-fit: unset; cursor: zoom-out; }
@media (max-width: 899.98px) { #review-body { flex-direction: column; } #review-grid { flex: 0 0 auto; max-height: 30%; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); } #review-detail { flex: 1; border-left: 0; border-top: 1px solid var(--line); } }

/* offline (2026-10-20) */
.badge.off { background: #b00020; color: #fff; }
.menu-note { font-size: 13px; color: var(--ink); padding: 4px 0 8px; line-height: 1.4; }
.sheet-card .keep { margin-top: 8px; width: 100%; text-align: center; }
.sheet-card .keep.on { border-color: var(--done); color: var(--done); background: #f0f8f1; }
.sheet-card .keep.busy { border-color: var(--navy); color: var(--navy); }

/* outbox (2026-10-20): things saved on the device, not yet sent */
.pending-note { font-size: 13px; color: #7a5a00; background: #fff3cd; border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
svg.hot g.tp.pending circle { stroke-dasharray: 4 3; }
.torque-photos img.local { outline: 2px dashed #fb8c00; outline-offset: -2px; }

/* bolt torque report (2026-10-20): MPC's field form on a pin, autosaved */
#modal.big { max-height: 94%; }
.treport .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.treport .head h2 { margin: 0; }
.treport h3 { font-size: 13px; margin: 12px 0 6px; padding: 3px 8px; background: #e9eef5; border-left: 4px solid var(--navy); }
.treport .small { font-size: 12px; }
.treport .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 8px; }
.treport .grid.three { grid-template-columns: 1.4fr 0.6fr 1fr; }
.treport label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); min-width: 0; }
.treport input, .treport textarea { font-family: inherit; font-size: 16px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; width: 100%; box-sizing: border-box; background: #fff; }
.treport textarea { resize: vertical; }
.treport .joint { border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin: 6px 0; background: #fbfcfd; }
.treport .joint .jh { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.treport .stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.treport .stages label:last-child input { border-color: #f57c00; }
.treport .methods { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 6px; font-size: 14px; }
.treport .methods label { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.treport .methods input[type=radio] { width: 20px; height: 20px; }
.treport .methods input#tr-method-other { flex: 1 1 160px; }
.treport .signoff { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 6px; align-items: center; font-size: 13px; }
.treport .row.wrap { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn.tiny { padding: 2px 8px; font-size: 12px; }
.savestate { font-size: 12px; color: var(--muted); }
.savestate.saved { color: var(--done); } .savestate.device { color: #fb8c00; } .savestate.error { color: #c62828; } .savestate.saving, .savestate.dirty { color: var(--muted); }
@media (max-width: 899.98px) { .treport .stages { grid-template-columns: repeat(2, 1fr); } .treport .grid.three { grid-template-columns: 1fr 1fr; } }
