/* =============================================================================
   Equipment Inspections — stylesheet
   Mobile-first. Large touch targets (min 48px, 64px for inspection answers) so
   the app works with work gloves, in sunlight, one-handed.
   ============================================================================= */

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e7ee;
  --text: #0f1b2d;
  --text-2: #53627a;
  --text-3: #8492a6;
  --primary: #1f5eff;
  --primary-strong: #1646c7;
  --primary-soft: #e8efff;
  --ok: #0f9d58;
  --ok-soft: #e3f6ec;
  --warn: #c77700;
  --warn-soft: #fff3dc;
  --bad: #d92d20;
  --bad-soft: #fde8e6;
  --info: #0b72b9;
  --info-soft: #e1f1fb;
  --muted-soft: #eef1f5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .05);
  --shadow-lg: 0 12px 40px rgba(15, 27, 45, .18);
  --nav-h: 68px;
  --top-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c121c;
    --surface: #141c28;
    --surface-2: #1a2433;
    --border: #253245;
    --text: #e8edf5;
    --text-2: #a4b1c4;
    --text-3: #6f7e94;
    --primary: #5b8cff;
    --primary-strong: #7aa2ff;
    --primary-soft: #1b2a4a;
    --ok: #3ccf87;
    --ok-soft: #12301f;
    --warn: #f0a93b;
    --warn-soft: #36270b;
    --bad: #ff6b5e;
    --bad-soft: #3a1512;
    --info: #4fb3f0;
    --info-soft: #0f2a3c;
    --muted-soft: #1d2735;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.45;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 750; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- App shell ------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.02rem; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1f5eff, #00b3a6); color: #fff;
}
.brand-mark svg { width: 20px; height: 20px; }
.topbar .spacer { flex: 1; }
.org-name { color: var(--text-2); font-size: .85rem; font-weight: 500; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .85rem;
}

.layout { display: flex; min-height: calc(100vh - var(--top-h)); }
.sidebar { display: none; }
main {
  flex: 1; min-width: 0; width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 20px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
}

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--border);
}
.navlink {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); font-size: .72rem; font-weight: 600;
}
.navlink svg { width: 24px; height: 24px; }
.navlink.active { color: var(--primary); }

@media (min-width: 900px) {
  .bottomnav { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px; width: 232px; flex-shrink: 0;
    padding: 20px 12px; border-right: 1px solid var(--border); background: var(--surface);
    position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h));
  }
  .sidebar .navlink {
    flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px;
    border-radius: var(--radius-sm); font-size: .95rem; color: var(--text-2);
  }
  .sidebar .navlink svg { width: 20px; height: 20px; }
  .sidebar .navlink:hover { background: var(--surface-2); }
  .sidebar .navlink.active { background: var(--primary-soft); color: var(--primary); }
  .sidebar .nav-heading { margin: 16px 14px 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-3); }
  main { padding: 28px 32px 48px; }
}

/* ---------- Page structure --------------------------------------------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px;
  flex-wrap: wrap; }
.page-head .sub { color: var(--text-2); margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 600;
  font-size: .9rem; margin-bottom: 10px; }
.back svg { width: 18px; height: 18px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 10px; }
.section-title h2 { font-size: 1.02rem; }
.muted { color: var(--text-2); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }

/* ---------- Cards ------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card h2 { margin-bottom: 10px; }
.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px;
  border-bottom: 1px solid var(--border); color: inherit;
}
.list-item:last-child { border-bottom: 0; }
a.list-item:hover, button.list-item:hover { background: var(--surface-2); }
button.list-item { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border);
  cursor: pointer; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 650; }
.list-item .meta { color: var(--text-2); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .chev { color: var(--text-3); width: 20px; height: 20px; flex-shrink: 0; }
.unit-badge {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.unit-badge svg { width: 24px; height: 24px; }
.unit-badge.available { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.unit-badge.restricted { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.unit-badge.out_of_service { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

.stat { padding: 16px; }
.stat .label { color: var(--text-2); font-size: .82rem; font-weight: 600; }
.stat .value { font-size: 2rem; font-weight: 780; margin-top: 4px; letter-spacing: -.02em; }
.stat.ok .value { color: var(--ok); }
.stat.warn .value { color: var(--warn); }
.stat.bad .value { color: var(--bad); }

.empty { text-align: center; color: var(--text-2); padding: 34px 16px; }
.empty svg { width: 40px; height: 40px; color: var(--text-3); margin: 0 auto 8px; }

/* ---------- Pills & badges --------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--muted-soft); color: var(--text-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.primary { background: var(--primary-soft); color: var(--primary); }
.tag-critical { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .05em;
  color: var(--bad); background: var(--bad-soft); padding: 2px 7px; border-radius: 6px; vertical-align: middle; }

/* ---------- Buttons & forms ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font-weight: 650; cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .15s; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-strong); }
.btn.secondary { background: var(--surface); border-color: var(--border); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.success { background: var(--ok); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 38px; padding: 0 12px; font-size: .88rem; border-radius: 10px; }
.btn.large { min-height: 60px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 650; font-size: .88rem; color: var(--text-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid var(--border); outline: none;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input.invalid { border-color: var(--bad); }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px;
  color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 44px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 500; }
.check input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--primary); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.help { color: var(--text-3); font-size: .82rem; }
.error-text { color: var(--bad); font-size: .85rem; font-weight: 600; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip {
  flex-shrink: 0; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-weight: 650; font-size: .88rem; cursor: pointer;
}
.chip.active { background: var(--text); color: var(--surface); border-color: var(--text); }

.segmented { display: inline-flex; background: var(--muted-soft); padding: 4px; border-radius: 12px; gap: 4px; }
.segmented button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 650;
  color: var(--text-2); cursor: pointer; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- Hero actions (operator home) --------------------------------------- */
.hero-actions { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.hero-btn {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px;
  min-height: 132px; padding: 18px; border-radius: 18px; border: 0; cursor: pointer; text-align: left;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.hero-btn svg { width: 30px; height: 30px; }
.hero-btn strong { font-size: 1.08rem; display: block; }
.hero-btn span { color: var(--text-2); font-size: .85rem; }
.hero-btn.primary { background: linear-gradient(140deg, #1f5eff, #3b7bff 60%, #00a3c4); color: #fff; border: 0; }
.hero-btn.primary span { color: rgba(255, 255, 255, .85); }

/* ---------- Status banner --------------------------------------------------------- */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  font-weight: 600; }
.banner svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner .banner-body { color: var(--text); font-weight: 500; margin-top: 2px; }

.equip-hero { display: flex; gap: 16px; align-items: center; }
.equip-hero .unit-badge { width: 64px; height: 64px; border-radius: 16px; }
.equip-hero .unit-badge svg { width: 32px; height: 32px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.kv div > span:first-child { display: block; color: var(--text-3); font-size: .78rem; font-weight: 650; text-transform: uppercase;
  letter-spacing: .04em; }
.kv div strong { font-weight: 650; }

/* ---------- Inspection form ---------------------------------------------------------- */
.inspect-head { position: sticky; top: var(--top-h); z-index: 10; background: var(--bg); padding: 8px 0 12px;
  margin: -8px 0 8px; }
.progress { height: 8px; border-radius: 99px; background: var(--muted-soft); overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--primary), #00b3a6); border-radius: 99px;
  transition: width .3s ease; }
.save-state { font-size: .8rem; font-weight: 650; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.save-state svg { width: 16px; height: 16px; }
.save-state.offline { color: var(--warn); }
.save-state.saved { color: var(--ok); }

.item-card { padding: 16px; }
.item-card.answered-fail { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad) inset, var(--shadow); }
.item-card.has-problem { border-color: var(--warn); box-shadow: 0 0 0 2px var(--warn) inset; }
.item-prompt { font-size: 1.06rem; font-weight: 650; }
.item-guidance { color: var(--text-2); font-size: .88rem; margin-top: 4px; }
.answers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.answers.three { grid-template-columns: repeat(3, 1fr); }
.answer {
  min-height: 64px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface);
  font-weight: 750; font-size: .95rem; cursor: pointer; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; color: var(--text-2); transition: all .12s;
}
.answer svg { width: 22px; height: 22px; }
.answer.pass.selected { background: var(--ok); border-color: var(--ok); color: #fff; }
.answer.monitor.selected { background: var(--info); border-color: var(--info); color: #fff; }
.answer.fail.selected { background: var(--bad); border-color: var(--bad); color: #fff; }
.answer.not_applicable.selected { background: var(--text-2); border-color: var(--text-2); color: var(--surface); }
.fail-details { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.critical-warning { display: flex; gap: 8px; align-items: center; color: var(--bad); font-weight: 700; font-size: .9rem; }
.critical-warning svg { width: 18px; height: 18px; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.photo-add { width: 76px; height: 76px; border-radius: 10px; border: 2px dashed var(--border); background: transparent;
  color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.photo-add svg { width: 26px; height: 26px; }
.step-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 18px; }

.result {
  border-radius: 22px; padding: 30px 22px; text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.result svg { width: 64px; height: 64px; }
.result h1 { font-size: 1.9rem; color: #fff; }
.result p { font-size: 1.02rem; opacity: .92; max-width: 440px; }
.result.safe { background: linear-gradient(150deg, #0f9d58, #0b7d46); }
.result.restricted { background: linear-gradient(150deg, #d98400, #b86b00); }
.result.out_of_service { background: linear-gradient(150deg, #e03a2f, #b3261d); }

.sigpad { width: 100%; height: 170px; border: 2px dashed var(--border); border-radius: 14px; background: #fff;
  touch-action: none; cursor: crosshair; }

/* ---------- Tables (desktop) ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3);
  font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }

/* ---------- Timeline --------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }

/* ---------- Modal & toast ------------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(8, 14, 24, .5); display: flex;
  align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.modal { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--surface);
  border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg);
  animation: rise .2s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 22px; padding: 24px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: .6; } }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--text); color: var(--surface); padding: 12px 16px; border-radius: 12px; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: rise .2s ease; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }

.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Login -------------------------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(31, 94, 255, .18), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, rgba(0, 179, 166, .16), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 420px; padding: 30px 26px; }
.login-card .brand-mark { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; }
.login-card .brand-mark svg { width: 30px; height: 30px; }

/* ---------- Scanner -------------------------------------------------------------------------- */
.scanner { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }

/* ---------- Template editor ------------------------------------------------------------------- */
.tpl-section { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); padding: 14px; }
.tpl-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 10px; }
.toggles { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; }
.toggles .check input { width: 20px; height: 20px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--text-2); flex-shrink: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- QR label ------------------------------------------------------------------------ */
.qr-label { width: 320px; margin: 0 auto; padding: 22px; text-align: center; border: 2px solid #000; border-radius: 14px;
  background: #fff; color: #000; }
.qr-label img { width: 240px; height: 240px; margin: 8px auto; }
.qr-label .unit { font-size: 2rem; font-weight: 800; letter-spacing: .02em; }

/* ---------- Print (inspection report / QR label) -------------------------------------------- */
@media print {
  .topbar, .bottomnav, .sidebar, .no-print, .toasts { display: none !important; }
  body { background: #fff; color: #000; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .pill { border: 1px solid currentColor; }
}
