:root {
  --primary: #6DB344;
  --primary-dark: #5A9637;
  --primary-light: #7EC257;
  --primary-tint: rgba(109,179,68,.10);
  --black: #1C1C1C;
  --bg: #F5F5F4;
  --surface: #FAFAFA;
  --card: #FFFFFF;
  --border: #E8E8E8;
  --border-light: #F2F2F2;
  --text: #1C1C1C;
  --text-light: #6B6B6B;
  --text-muted: #9A9A9A;
  --text-faint: #B8B8B8;
  --danger: #D94F43;
  --danger-tint: rgba(217,79,67,.10);
  --warning: #D4881A;
  --warning-tint: rgba(212,136,26,.12);
  --success: #6DB344;
  --blue: #3B82C4;
  --blue-tint: rgba(59,130,196,.10);
  --violet: #7C5CBF;
  --radius: 6px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08);
  --ease: cubic-bezier(.25,.46,.45,.94);
  --nav-h: 64px;
  --sidebar-w: 240px;
  --tap: 48px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-optical-sizing: auto;
  font-size: 15px; line-height: 1.5;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-dark); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.hidden { display: none !important; }

/* Shared "label" type from the hub: small, spaced, uppercase */
.eyebrow, .card h2, .group-title, .field label, .field .lbl, .cl-section h3, .sev, .tabs button, .bottomnav button span, .kv .k, table.roster th {
  text-transform: uppercase; letter-spacing: 1.8px; font-weight: 600;
}

/* ---------- Topbar (matches the App Hub) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--black); color: #fff;
  height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 20px 0;
  display: flex; align-items: center; gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-logo svg { height: 40px; width: auto; display: block; }
.topbar-divider { width: 1px; height: 24px; background: rgba(255,255,255,.18); flex-shrink: 0; }
.topbar-region { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; white-space: nowrap; }
.topbar-title { font-size: 12px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.55); white-space: nowrap; }
.topbar-title .demo { color: var(--warning); margin-left: 8px; font-weight: 700; }
.topbar .spacer { flex: 1; }
.topbar .status { font-size: 10px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar .status .pill { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(109,179,68,.22); }
.topbar .status.off .pill { background: var(--warning); box-shadow: 0 0 0 3px rgba(212,136,26,.22); }
.topbar .iconbtn { background: transparent; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.8); width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; transition: background .2s var(--ease); }
.topbar .iconbtn:hover, .topbar .iconbtn:active { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 480px) { .topbar-region { display: none; } .topbar-divider.pre-region { display: none; } .topbar .status span:last-child { display: none; } }
@media (min-width: 900px) {
  .topbar { height: 80px; padding: 0 36px; gap: 18px; }
  .topbar-left { gap: 18px; }
  .topbar-logo svg { height: 50px; }
  .topbar-region { font-size: 14px; }
  .topbar-title { font-size: 13px; }
}

/* ---------- Layout ---------- */
.main { max-width: 760px; margin: 0 auto; padding: 24px 20px 32px; }
.page { display: none; }
.page.active { display: block; }
.eyebrow { font-size: 11px; letter-spacing: 2.5px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.page-title h1 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.page-title .sub { font-size: 13px; color: var(--text-secondary, var(--text-light)); }
.page-sub { font-size: 14px; color: var(--text-light); margin: -12px 0 20px; max-width: 520px; }

/* ---------- Bottom nav (phone) ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--card); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom); height: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
.bottomnav button {
  background: none; border: 0; padding: 9px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted); position: relative;
}
.bottomnav button span { font-size: 9px; letter-spacing: 1.2px; }
.bottomnav button svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav button.active { color: var(--primary-dark); }
.bottomnav .badge, .sidebar .badge {
  position: absolute; top: 4px; right: calc(50% - 22px); background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px;
}
.sidebar { display: none; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 2px; position: fixed; top: 80px; left: 0; bottom: 0; width: var(--sidebar-w);
    background: var(--card); border-right: 1px solid var(--border); padding: 20px 14px;
  }
  .sidebar button {
    background: none; border: 0; text-align: left; padding: 12px 14px; border-radius: 6px; display: flex; align-items: center; gap: 14px;
    font-size: 11px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-light); position: relative; transition: all .2s var(--ease);
  }
  .sidebar button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .sidebar button.active { background: var(--primary-tint); color: var(--primary-dark); }
  .sidebar button:hover { background: var(--surface); }
  .sidebar .badge { position: static; margin-left: auto; }
  .main { margin-left: var(--sidebar-w); max-width: 1180px; padding: 40px 36px 64px; }
  .page-title h1 { font-size: 28px; }
}

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; margin-bottom: 16px; }
.card.tight { padding: 0; overflow: hidden; }
.card h2 { font-size: 10px; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 14px; }
.card .row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card .row-head h2 { margin: 0; }
.empty { color: var(--text-muted); font-size: 13px; padding: 18px 0; text-align: center; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 12px 16px; box-shadow: var(--shadow-sm); text-align: left; transition: all .25s var(--ease); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: transparent; }
.stat .n { font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.stat .l { font-size: 10px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted); margin-top: 10px; }
.stat.red .n { color: var(--danger); }
.stat.amber .n { color: var(--warning); }
.stat.green .n { color: var(--primary-dark); }

/* ---------- Quick actions ---------- */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick button {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; text-align: left;
  display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 15px; letter-spacing: -.01em; box-shadow: var(--shadow-sm); min-height: 72px;
  transition: all .25s var(--ease);
}
.quick button:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: transparent; }
.quick button .ic { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.quick button .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick .ic.red { background: var(--danger-tint); color: var(--danger); }
.quick .ic.green { background: var(--primary-tint); color: var(--primary-dark); }
.quick .ic.blue { background: var(--blue-tint); color: var(--blue); }
.quick .ic.amber { background: var(--warning-tint); color: var(--warning); }

/* ---------- Lists ---------- */
.item {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--border-light);
  background: var(--card); text-align: left; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; min-height: var(--tap);
  transition: background .2s var(--ease);
}
.item:first-child { border-top: 0; }
button.item:hover, button.item:active { background: var(--surface); }
.item .ic { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: 1px; flex-shrink: 0; }
.item .body { flex: 1; min-width: 0; }
.item .t { display: block; font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.item .t .note { font-weight: 400; }
.item .s { display: block; color: var(--text-light); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s.wrap { white-space: normal; }
.item .chev { color: var(--text-faint); flex-shrink: 0; font-size: 18px; transition: transform .3s var(--ease); }
button.item:hover .chev { transform: translateX(3px); color: var(--primary-dark); }
.item .right { text-align: right; flex-shrink: 0; font-size: 13px; color: var(--text-light); }
.group-title { font-size: 10px; letter-spacing: 2px; color: var(--text-muted); margin: 22px 2px 10px; display: flex; justify-content: space-between; }
.group-title:first-child { margin-top: 0; }
.card.tight .group-title { margin: 16px 20px 6px; }

.sev { font-size: 9px; letter-spacing: 1.5px; font-weight: 700; padding: 4px 9px; border-radius: 3px; white-space: nowrap; }
.sev.overdue, .sev.unsafe { background: var(--danger-tint); color: var(--danger); }
.sev.soon, .sev.attention { background: var(--warning-tint); color: var(--warning); }
.sev.ok, .sev.pass { background: var(--primary-tint); color: var(--primary-dark); }
.sev.info, .sev.low { background: var(--blue-tint); color: var(--blue); }
.sev.muted { background: var(--border-light); color: var(--text-light); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--border); background: var(--card); border-radius: 4px; padding: 10px 14px; font-size: 13px; font-weight: 500;
  color: var(--text-light); white-space: nowrap; min-height: 42px; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--text-faint); }
.chip.on { background: var(--primary-tint); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.chip.on.red { background: var(--danger-tint); border-color: var(--danger); color: var(--danger); }
.chip.on.amber { background: var(--warning-tint); border-color: var(--warning); color: var(--warning); }
.chip.on.blue { background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .field .lbl { display: block; font-size: 10px; letter-spacing: 1.8px; color: var(--text-muted); margin-bottom: 7px; }
.field label.check { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--text); }
.field input[type=text], .field input[type=number], .field input[type=date], .field input[type=password], .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--card); min-height: var(--tap); font-size: 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.field textarea { min-height: 96px; resize: vertical; }
.field .help { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 480px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 0 20px; min-height: var(--tap); font-weight: 600; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; background: var(--primary); color: #fff;
  transition: all .2s var(--ease);
}
.btn:hover { background: var(--primary-dark); }
.btn.block { width: 100%; margin-top: 6px; }
.btn.big { min-height: 56px; font-size: 13px; }
.btn.secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: var(--surface); border-color: var(--text-faint); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b93f35; }
.btn.ghost { background: transparent; color: var(--primary-dark); }
.btn.ghost:hover { background: var(--primary-tint); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 11px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btnrow .btn { flex: 1 1 200px; min-width: 0; text-align: center; }

/* Vehicle picker */
.vpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.vpick button {
  border: 1px solid var(--border); background: var(--card); border-radius: var(--radius-sm); padding: 12px 8px; min-height: 64px;
  font-weight: 500; font-size: 15px; letter-spacing: -.01em; line-height: 1.15; transition: all .2s var(--ease);
}
.vpick button:hover { border-color: var(--text-faint); transform: translateY(-1px); box-shadow: var(--shadow); }
.vpick button small { display: block; font-weight: 400; font-size: 11px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vpick button.on { background: var(--primary-tint); border-color: var(--primary); color: var(--primary-dark); }
.vpick-selected {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--primary-tint); border: 1px solid var(--primary);
  border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 500; font-size: 16px; color: var(--primary-dark);
}
.vpick-selected small { font-weight: 400; color: var(--text-light); }

/* Checklist */
.cl-section { margin-bottom: 8px; }
.cl-section h3 { font-size: 10px; letter-spacing: 2px; color: var(--text-muted); margin: 20px 2px 10px; }
.cl-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border-light); background: var(--card); transition: background .2s var(--ease); }
.cl-item:first-of-type { border-top: 0; }
.cl-item .lab { flex: 1; font-weight: 500; font-size: 14px; }
.cl-item .lab small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; }
.cl-item .tog { display: flex; gap: 6px; flex-shrink: 0; }
.cl-item .tog button {
  width: 54px; height: 42px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); transition: all .15s var(--ease);
}
.cl-item .tog button.ok.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.cl-item .tog button.bad.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.cl-item .tog button.na.on { background: var(--text-light); border-color: var(--text-light); color: #fff; }
.cl-item.flag { background: var(--danger-tint); }
.cl-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-light); padding: 6px 2px; }
.cl-summary b { color: var(--text); font-weight: 600; }

/* Vehicle detail */
.vhead { display: flex; gap: 14px; align-items: flex-start; }
.vhead .unitbig { font-size: 30px; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vhead .meta { color: var(--text-light); font-size: 14px; margin-top: 4px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; font-size: 14px; }
@media (min-width: 900px) { .kv { grid-template-columns: repeat(3, 1fr); } }
.kv div { min-width: 0; }
.kv .k { color: var(--text-muted); font-size: 10px; letter-spacing: 1.5px; }
.kv .v { font-weight: 500; margin-top: 3px; word-break: break-word; font-size: 15px; }
.kv .v small { font-weight: 400; color: var(--text-muted); }
.kv .v.overdue { color: var(--danger); }
.kv .v.soon { color: var(--warning); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { .actions { grid-template-columns: repeat(4, 1fr); } }
.actions .btn { min-height: 52px; font-size: 11px; letter-spacing: 1.2px; padding: 0 10px; }
.tabs { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); padding: 3px; border-radius: 6px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px 6px; border-radius: 4px; font-size: 10px; letter-spacing: 1.5px; color: var(--text-light); transition: all .2s var(--ease); }
.tabs button.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }

/* Search */
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; background: var(--card); min-height: var(--tap); font-size: 16px; }
.search input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--black); color: #fff; padding: 12px 20px; border-radius: 6px; font-weight: 500; font-size: 13px; opacity: 0; transition: .25s var(--ease); z-index: 50; pointer-events: none; max-width: 90vw; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* Modal / sheet */
.modal-bg { position: fixed; inset: 0; background: rgba(28,28,28,.5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--bg); width: 100%; max-width: 680px; max-height: 92vh; overflow-y: auto; border-radius: 10px 10px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); }
.modal .mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal .mhead h2 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
@media (min-width: 900px) { .modal-bg { align-items: center; } .modal { border-radius: 8px; padding: 24px 28px; } }

/* Banner */
.banner { background: var(--warning-tint); border: 1px solid rgba(212,136,26,.3); color: #8a5a10; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.banner.red { background: var(--danger-tint); border-color: rgba(217,79,67,.3); color: #9b2f25; }
.banner .btn { margin-left: auto; }

/* Print page list */
.printlist button.item .ic { background: var(--blue-tint); color: var(--blue); font-size: 15px; }

/* Roster table */
.table-wrap { overflow-x: auto; }
table.roster { border-collapse: collapse; width: 100%; font-size: 13px; }
table.roster th, table.roster td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
table.roster th { font-size: 9px; letter-spacing: 1.5px; color: var(--text-muted); background: var(--surface); position: sticky; top: 0; }
table.roster td.overdue { color: var(--danger); font-weight: 600; }
table.roster td.soon { color: var(--warning); font-weight: 600; }
table.roster tr.cat td { background: var(--primary-tint); font-weight: 700; color: var(--primary-dark); text-transform: uppercase; font-size: 9px; letter-spacing: 2px; }
table.roster tr:hover td { background: var(--surface); }

.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen { text-align: center; padding: 80px 20px; color: var(--text-muted); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.loading-screen .spinner { border-color: var(--border); border-top-color: var(--primary); width: 30px; height: 30px; }

.note { font-size: 13px; color: var(--text-light); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: 0; }
.footer { text-align: center; padding: 28px 0 8px; font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }

/* DVIR defect grid: tap = defective */
.dv-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .dv-grid { grid-template-columns: 1fr 1fr 1fr; } }
.dv-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 50px; border: 0; border-top: 1px solid var(--border-light); border-right: 1px solid var(--border-light); background: var(--card); text-align: left; font-size: 14px; font-weight: 500; color: var(--text); transition: background .15s var(--ease); }
.dv-item:nth-child(-n+2) { border-top: 0; }
@media (min-width: 700px) { .dv-item:nth-child(-n+3) { border-top: 0; } }
.dv-item .bx { width: 20px; height: 20px; border: 1.5px solid var(--text-faint); border-radius: 4px; flex-shrink: 0; display: grid; place-items: center; }
.dv-item.on { background: var(--danger-tint); color: var(--danger); font-weight: 600; }
.dv-item.on .bx { background: var(--danger); border-color: var(--danger); }
.dv-item.on .bx::after { content: "✕"; color: #fff; font-size: 12px; font-weight: 700; }
