/* ACCUS Licensing — admin styles.
   Palette: ACCUS navy for structure, racing red only for "needs attention",
   a cool navy-tinted grey ground. Status colours are separate from the accent. */
:root {
  --navy: #16285a;
  --navy-600: #24397a;
  --navy-50: #eef2fa;
  --navy-100: #dfe6f4;
  --red: #c8102e;
  --red-50: #fbe9ec;
  --ground: #f4f6fa;
  --surface: #ffffff;
  --line: #e2e7f0;
  --line-strong: #cbd3e1;
  --ink: #14203f;
  --muted: #5b6680;
  --faint: #8a93a8;

  --ok: #1e7b4a;       --ok-bg: #e5f4ec;
  --wait: #8a5a00;     --wait-bg: #fdf3dc;
  --bad: #a61b2b;      --bad-bg: #fbe9eb;
  --info: #1d4e9e;     --info-bg: #e7eefa;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 32, 63, .06), 0 4px 16px rgba(20, 32, 63, .05);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy-600); }
:focus-visible { outline: 3px solid #7aa2ea; outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- test-mode ribbon */
.test-ribbon {
  background: var(--wait-bg); color: var(--wait); border-bottom: 1px solid #f1dfb3;
  font-size: 13px; text-align: center; padding: 6px 12px; font-weight: 600;
}

/* ---------------------------------------------------------------- header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  display: flex; align-items: center; gap: 20px;
  height: 68px; padding: 0 24px;
  box-shadow: 0 1px 0 var(--line);
}
.topbar::after {           /* thin racing stripe: navy then red */
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 70%, var(--red) 70% 100%);
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; }
.brand img.accus { height: 30px; display: block; }
.brand .divider { width: 1px; height: 30px; background: var(--line-strong); }
.brand .product { font-weight: 700; font-size: 17px; letter-spacing: .2px; color: var(--navy); }
.brand .product small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); line-height: 1.1; }
.topbar .spacer { flex: 1; }
.season-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-50); color: var(--navy); font-weight: 700; font-size: 13.5px;
  padding: 6px 12px; border-radius: 999px;
}
.season-chip select { border: 0; background: transparent; font-weight: 700; color: var(--navy); cursor: pointer; }
.topbar img.fia { height: 38px; display: block; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.sidenav {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 72px; height: calc(100vh - 72px);
}
.navlink {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.navlink svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.navlink:hover { background: var(--ground); }
.navlink.active { background: var(--navy); color: #fff; }
.navlink.active svg { color: #fff; }
.navlink .count {
  margin-left: auto; min-width: 26px; text-align: center;
  background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 1px 8px; border-radius: 999px;
}
.navlink .count.quiet { background: var(--navy-100); color: var(--navy); }
.navlink.active .count.quiet { background: rgba(255,255,255,.2); color: #fff; }
.sidenav .foot { margin-top: auto; font-size: 12.5px; color: var(--faint); padding: 8px 12px; line-height: 1.45; }

main { padding: 30px 34px 60px; width: 100%; min-width: 0; }   /* fills the screen: the same 34px gap on the right as beside the menu */

/* ---------------------------------------------------------------- headings */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.3px; text-wrap: balance; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }
h2.section { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 30px 0 12px; font-weight: 700; }

/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }

.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.action-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; color: inherit;
  border-top: 4px solid var(--line-strong); transition: transform .12s ease, box-shadow .12s ease;
}
.action-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,32,63,.10); }
.action-card .big { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.action-card .label { font-weight: 700; font-size: 16px; }
.action-card .desc { color: var(--muted); font-size: 14px; flex: 1; }
.action-card .go { font-weight: 700; color: var(--navy-600); margin-top: 6px; }
.action-card.attn { border-top-color: var(--red); }
.action-card.attn .big { color: var(--red); }
.action-card.calm .big { color: var(--navy); }
.action-card.done .big { color: var(--faint); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--navy); }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1050px) { .two-col { grid-template-columns: 1fr; } }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); align-items: start; }
.feed li:first-child { border-top: 0; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-100); margin-top: 8px; }
.feed .dot.sys { background: var(--info); }
.feed .when { color: var(--faint); font-size: 13px; white-space: nowrap; }
.feed .who { color: var(--faint); font-size: 12.5px; }

.sources { display: flex; flex-direction: column; }
.person .sub.issues { color: var(--wait); white-space: normal; }
.source { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); }
.source:first-child { border-top: 0; }
.source .name { font-weight: 700; min-width: 110px; }
.source .what { color: var(--muted); font-size: 14px; flex: 1; }

/* ---------------------------------------------------------------- chips & buttons */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.wait { background: var(--wait-bg); color: var(--wait); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.plain { background: var(--ground); color: var(--muted); }
.lock { color: var(--bad); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 14.5px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--ground); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-600); }
.btn.big { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn.danger { color: var(--bad); border-color: #efc4ca; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: 6px 11px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linkbtn { border: 0; background: none; color: var(--navy-600); font-weight: 700; cursor: pointer; padding: 0; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; background: none; padding: 11px 14px; font-weight: 700; color: var(--muted); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab .n { background: var(--ground); color: var(--muted); border-radius: 999px; padding: 0 8px; font-size: 12.5px; }
.tab.active .n { background: var(--navy); color: #fff; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.grid th {
  text-align: left; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
  font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap;
}
table.grid td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr.clickable { cursor: pointer; }
table.grid tbody tr.clickable:hover td { background: #f7f9fd; }
table.grid td.check, table.grid th.check { width: 44px; padding-right: 0; }
table.grid input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--navy-50); color: var(--navy); font-weight: 800; font-size: 13.5px; letter-spacing: .5px;
}
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.person .n { font-weight: 700; display: block; text-align: left; white-space: nowrap; }
.person .sub { color: var(--faint); font-size: 12.5px; display: block; white-space: nowrap; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; letter-spacing: .3px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---------------------------------------------------------------- approvals */
.group { margin-bottom: 18px; overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.group-head h3 { margin: 0; font-size: 18px; }
.group-head .sub { color: var(--muted); font-size: 14px; }
.group-head .spacer { flex: 1; }
.number-input {
  width: 140px; padding: 6px 10px; border: 1.5px dashed var(--line-strong); border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-transform: uppercase; font-size: 13.5px;
}
.number-input::placeholder { text-transform: none; color: var(--faint); }
.number-input:focus { border-style: solid; border-color: var(--navy); outline: none; }
.newtag { display: block; font-size: 12px; color: var(--wait); font-weight: 700; margin-bottom: 4px; }
.selbar {
  position: sticky; bottom: 18px; z-index: 5; margin-top: 16px;
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--navy); color: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(22,40,90,.35);
}
.selbar .spacer { flex: 1; }
.selbar .btn { border-color: transparent; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--info-bg); color: #1b3f7d; font-size: 14.5px; margin-bottom: 16px; }
.notice.warn { background: var(--wait-bg); color: #6d4700; }

/* ---------------------------------------------------------------- drivers */
.searchbar { position: relative; margin-bottom: 14px; }
.searchbar svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--faint); }
.searchbar input {
  width: 100%; padding: 16px 48px 16px 54px; font-size: 17px; border: 1.5px solid var(--line-strong);
  border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
}
.searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.searchbar input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-50); }
.searchbar .clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: var(--ground); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
.field select, .field input, .field textarea {
  padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); min-width: 150px;
}
.field textarea { min-height: 80px; resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-50); }
.result-line { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 10px; color: var(--muted); font-size: 14px; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 14px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- drawer (driver profile) */
.scrim { position: fixed; inset: 0; background: rgba(20, 32, 63, .35); z-index: 40; animation: fade .15s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(700px, 100vw); z-index: 41;
  background: var(--ground); box-shadow: -10px 0 40px rgba(20,32,63,.2); overflow-y: auto;
  animation: slide .18s ease;
}
.drawer table.grid { font-size: 13.5px; }
.drawer table.grid th, .drawer table.grid td { padding: 9px 10px; }
.drawer-head { background: var(--surface); padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: center; position: sticky; top: 0; z-index: 2; }
.drawer-head h2 { margin: 0; font-size: 22px; }
.drawer-head .spacer { flex: 1; }
.drawer-body { padding: 18px 24px 40px; display: flex; flex-direction: column; gap: 14px; }
.drawer .close { border: 0; background: var(--ground); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer; color: var(--muted); }
dl.facts { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
dl.facts dt { color: var(--muted); font-size: 13.5px; padding: 7px 0; }
dl.facts dd { margin: 0; padding: 7px 0; font-weight: 600; }
.card h3 { margin: 0; font-size: 15px; }
.card .card-title { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px; }
.edit-grid .wide { grid-column: 1 / -1; }
.edit-grid .field select, .edit-grid .field input, .edit-grid .field textarea { min-width: 0; width: 100%; }

/* ---------------------------------------------------------------- modal & toast */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(20,32,63,.4); animation: fade .15s ease; padding: 20px; }
.modal .box { background: var(--surface); border-radius: 16px; width: min(520px, 100%); padding: 26px; box-shadow: 0 20px 60px rgba(20,32,63,.3); }
.modal h3 { margin: 0 0 8px; font-size: 21px; }
.modal p { margin: 0 0 12px; color: var(--muted); }
.modal ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); max-height: 220px; overflow: auto; }
.modal .row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 70;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 12px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: rise .2s ease; max-width: min(640px, 92vw);
}
.toast.ok::before { content: "✓  "; color: #7be0a7; font-weight: 800; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; }
  .sidenav .foot { display: none; }
  main { padding: 22px 16px 60px; }
  .brand .product small, .brand .divider { display: none; }
}

/* ================================================================== license cards
   VERTICAL card, 54 × 85.6 mm = 27 × 42.8 units. Every size is a multiple of
   --k, so changing --k scales the whole card (10px → 270 × 428 px). */
.navlink .preview { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  background: var(--wait-bg); color: var(--wait); padding: 1px 7px; border-radius: 999px; }
.navlink.active .preview { background: rgba(255,255,255,.2); color: #fff; }
.nav-label { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); padding: 16px 12px 4px; }

/* the card itself: public/card/card.css */

/* ---------------- designs page */
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 22px; }
.design-tile { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.design-tile .lic { --k: 8px; cursor: pointer; transition: transform .15s ease; }
.design-tile .lic:hover { transform: translateY(-3px); }
.design-tile.picked .lic { outline: 4px solid var(--navy); outline-offset: 4px; }
.design-tile h4 { margin: 0; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.design-tile p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 240px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--navy); color: #fff; }
.swatches { display: flex; gap: 8px; align-items: center; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--navy); }
.controls { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.controls .lab { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .3px; display: block; margin-bottom: 5px; }
table.fia td:first-child { font-family: ui-monospace, Menlo, monospace; font-weight: 700; white-space: nowrap; }

/* ---------------- digital license: email + phones */
.mail { max-width: 760px; overflow: hidden; }
.mail .mhead { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mail .mhead div { color: var(--muted); }
.mail .mhead strong { color: var(--ink); }
.mail .mbody { padding: 22px; }
.mail .cards { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.mail .cards .lic { --k: 7px; }
.wbtn { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 14px; text-decoration: none; }
.wbtn.g { background: #1f1f1f; }
.wbtn.o { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.phones { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.phone { width: 290px; border-radius: 40px; background: #111; padding: 12px; box-shadow: 0 18px 50px rgba(20,32,63,.25); flex: none; }
.phone .screen { border-radius: 30px; overflow: hidden; min-height: 560px; position: relative; }
.phone .status { height: 34px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font-size: 13px; font-weight: 700; }
.phone .apptitle { font-size: 22px; font-weight: 800; padding: 4px 18px 12px; }
.phone-cap { margin-top: 12px; max-width: 290px; font-size: 13.5px; color: var(--muted); }
.phone-cap strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 2px; }
/* Apple */
.ap .screen { background: #000; color: #fff; }
.ap .pass { margin: 0 12px; border-radius: 14px; overflow: hidden; background: #16285a; color: #fff; }
.ap .ptop { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; }
.ap .ptop img { height: 20px; }
.ap .ptop span { font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.ap .strip { height: 104px; overflow: hidden; position: relative; }
.ap .strip .lic { --k: 9.8px; border-radius: 0; box-shadow: none; position: absolute; left: -1px; top: var(--crop, 0); }
.ap .fields { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 6px 10px; padding: 12px 14px 6px; }
.ap .fields small, .gw .rows small { display: block; font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase; opacity: .7; font-weight: 700; }
.ap .fields b { font-size: 13.5px; }
.ap .qrbox, .gw .qrbox { background: #fff; border-radius: 10px; margin: 10px auto 14px; width: 150px; padding: 10px; text-align: center; color: #222; }
.ap .qrbox svg, .gw .qrbox svg { width: 130px; height: 130px; display: block; }
.ap .qrbox div, .gw .qrbox div { font-size: 11px; letter-spacing: 1.5px; font-weight: 700; margin-top: 4px; }
/* Google */
.gw .screen { background: #f1f3f4; color: #202124; }
.gw .pass { margin: 0 12px; border-radius: 18px; overflow: hidden; background: #16285a; color: #fff; }
.gw .gtop { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.gw .gtop .logo { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.gw .gtop .logo img { width: 30px; }
.gw .gtop span { font-weight: 700; font-size: 13px; }
.gw .gname { padding: 2px 16px 0; font-size: 22px; font-weight: 800; }
.gw .gsub { padding: 0 16px 10px; font-size: 13px; opacity: .8; }
.gw .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 16px 12px; }
.gw .rows b { font-size: 14px; }
.gw .hero { height: 86px; overflow: hidden; position: relative; }
.gw .hero .lic { --k: 9.8px; border-radius: 0; box-shadow: none; position: absolute; left: -1px; top: var(--crop, 0); }
.gw .qrwrap { background: #fff; padding: 2px 0 6px; }
/* Verify page */
.vp .screen { background: #f4f6fa; color: var(--ink); }
.vp .vhead { background: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 3px solid var(--red); }
.vp .vhead img { height: 22px; }
.vp .vhead span { font-weight: 800; font-size: 13px; color: var(--navy); }
.vp .vstate { margin: 16px; border-radius: 16px; background: var(--ok); color: #fff; text-align: center; padding: 16px; }
.vp .vstate b { display: block; font-size: 28px; letter-spacing: 2px; }
.vp .vstate span { font-size: 13px; opacity: .9; }
.vp .vcard { margin: 0 16px; background: #fff; border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.vp .vcard .ph { width: 74px; height: 90px; border-radius: 8px; overflow: hidden; background: #e7ebf3; }
.vp .vcard .ph svg, .vp .vcard .ph img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vp .vcard b { display: block; font-size: 16px; }
.vp .vcard small { color: var(--muted); font-size: 12.5px; display: block; }
.vp dl { margin: 12px 16px; background: #fff; border-radius: 14px; padding: 6px 14px; box-shadow: var(--shadow); font-size: 13.5px; }
.vp dl div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.vp dl div:last-child { border-bottom: 0; }
.vp dl dt { color: var(--muted); }
.vp dl dd { margin: 0; font-weight: 700; }
.vp .vfoot { text-align: center; font-size: 11.5px; color: var(--faint); padding: 6px 16px 16px; }

/* ---------------- documents on a driver's record */
.docs td { vertical-align: middle; }
.docs .thumb { width: 38px; height: 46px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 8px; border: 1px solid var(--line); }
.docform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.docform select, .docform input[type=date] { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.docform input[type=file] { flex: 1; min-width: 0; font-size: 13px; }

/* ---------------- sign-in screen (full page; see lock() in app.js)
   While body.locked, nothing but this screen is displayed. */
.gate { display: none; }
body.locked > :not(.gate):not(script) { display: none !important; }
body.locked .gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  min-height: 100vh; padding: 24px 16px; background: radial-gradient(120% 90% at 50% 0%, #24397a 0%, #16285a 45%, #0b1533 100%); }
.gate-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 18px; padding: 34px 32px 30px;
  box-shadow: 0 20px 60px rgba(5, 12, 35, .45); border-top: 5px solid var(--red); }
.gate-logos { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.gate-logos img:first-child { height: 38px; }
.gate-logos img:last-child { height: 40px; }
.gate-body h1 { font-size: 22px; margin: 0 0 10px; color: var(--navy); }
.gate-body p { margin: 0; color: var(--muted); }
.gate-body .gate-wait { color: var(--faint); }
.gate-btn { display: inline-block; margin-top: 22px; text-decoration: none; }
.gate-foot { margin: 0; color: rgba(255,255,255,.6); font-size: 12.5px; text-align: center; }

/* who is signed in, top right (live site only) */
.who { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); margin-right: 14px; }
.who a { font-weight: 600; }
@media (max-width: 720px) { .who span { display: none; } }

/* sign-in forms on the full-page screen */
.gate-form { margin-top: 18px; display: grid; gap: 12px; }
.gate-form .field { display: grid; gap: 5px; }
.gate-form label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.gate-form input { padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 16px; background: #fff; }
.gate-form input[readonly] { background: var(--ground); color: var(--muted); }
.gate-form .gate-btn { margin-top: 4px; width: 100%; padding: 12px; font-size: 16px; }
.gate-body .gate-msg { min-height: 0; margin: 0; color: var(--bad); font-size: 14px; font-weight: 600; }
.gate-body .gate-msg:empty { display: none; }
.gate-body .gate-msg.info { color: var(--info); font-weight: 500; }
.linkish { background: none; border: 0; padding: 0; color: var(--navy-600); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.gate-form .linkish { justify-self: center; font-size: 14px; }
.who .linkish { font-size: 13.5px; }

/* larger forms in a modal (Add an application) */
.modal .box.wide { width: min(760px, 100%); max-height: 92vh; overflow: auto; }
.formsec { margin: 18px 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.formgrid.tight { gap: 0 10px; }
.formgrid .field { display: grid; gap: 4px; align-content: start; }
.formgrid label { font-size: 13.5px; font-weight: 600; }
.formgrid input, .formgrid select { width: 100%; }
@media (max-width: 620px) { .formgrid { grid-template-columns: 1fr; } }
