/* ==========================================================================
   Dispatch Board · one stylesheet
   1 Tokens  2 Base  3 Header  4 Layout  5 Fleet list  6 Map  7 Inspector
   8 Sign-in  9 Feedback (skeleton, toast)  10 Polish  11 Users page  12 Responsive
   ========================================================================== */

/* 1 · Tokens ------------------------------------------------------------- */
:root {
  --bg: #e9edf2;
  --bg-2: #f6f8fa;
  --card: #ffffff;
  --card-2: #f7f8fa;
  --text: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --brand: #d0142c;
  --brand-2: #a10d20;
  --driving: #16a34a;
  --idling: #ea8a00;
  --off: #64748b;
  --stale: #a3acb9;
  --select: #fff1f2;
  --banner-1: #12161d;
  --banner-2: #1e2633;
  --radius: 16px;
  --gap: 14px;
  --header-h: 64px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(15, 23, 42, .06), 0 6px 16px -6px rgba(15, 23, 42, .12);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px -16px rgba(15, 23, 42, .28);
  --shadow-pop: 0 24px 60px -12px rgba(15, 23, 42, .45);
  --raise: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 5px rgba(15, 23, 42, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: .14s;
  --ring: 0 0 0 3px rgba(208, 20, 44, .18);
  --scroll: rgba(100, 116, 139, .35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d12; --bg-2: #10141b; --card: #151a22; --card-2: #1b212b; --text: #eef2f7; --muted: #9aa6b6;
    --faint: #6b7686; --line: #263040; --brand: #ef3b4f; --brand-2: #b4192c; --off: #7c8798; --stale: #4a5566;
    --select: #2a1519; --banner-1: #07090d; --banner-2: #121821;
    --shadow-1: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 6px 16px -6px rgba(0, 0, 0, .6);
    --shadow-2: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -16px rgba(0, 0, 0, .8);
    --ring: 0 0 0 3px rgba(239, 59, 79, .28); --scroll: rgba(154, 166, 182, .28);
  }
}

/* 2 · Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  overflow: hidden;
  background: radial-gradient(1200px 600px at 70% -10%, var(--bg-2), transparent 60%), var(--bg);
  color: var(--text);
  font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

/* 3 · Header banner ------------------------------------------------------ */
.topbar {
  position: relative; z-index: 1100; height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 16px; color: #fff;
  background:
    radial-gradient(500px 120px at 0% 0%, rgba(208, 20, 44, .35), transparent 70%),
    linear-gradient(180deg, var(--banner-2), var(--banner-1));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06), 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 16px; letter-spacing: -.1px; white-space: nowrap; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: #9aa6b6; letter-spacing: .4px; text-transform: uppercase; }
.brand-mark { /* The Ammari Group mark, as on theammarigroup.com */
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  filter: drop-shadow(0 4px 10px rgba(224, 32, 47, .35));
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
.company-wrap { position: relative; min-width: 0; flex: 0 1 380px; }
.company {
  appearance: none; -webkit-appearance: none; width: 100%; padding: 9px 38px 9px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 650; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.company option { color: #0f172a; }
.company-wrap::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid #cbd5e1; border-bottom: 2px solid #cbd5e1; transform: rotate(45deg);
}
.spacer { flex: 1; }
.live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cbd5e1; white-space: nowrap; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: pulse 2.4s ease-in-out infinite; }
.live.error .live-dot { background: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, .25); animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, .05); } }
.account { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .12); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: linear-gradient(160deg, #475569, #1e293b); box-shadow: var(--raise); text-transform: uppercase;
}
.so-icon { display: none; }
#signout { display: inline-flex; align-items: center; }
.ghost-btn { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #e2e8f0; border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* 4 · Layout: three floating cards ---------------------------------------- */
.layout {
  display: grid; grid-template-columns: 340px minmax(0, 1fr) 400px; gap: var(--gap);
  height: calc(100vh - var(--header-h) - env(safe-area-inset-top));
  height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
  padding: var(--gap) max(var(--gap), env(safe-area-inset-right)) max(var(--gap), env(safe-area-inset-bottom)) max(var(--gap), env(safe-area-inset-left));
}
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-2); min-height: 0; min-width: 0; }

/* 5 · Fleet list ---------------------------------------------------------- */
.fleet { display: flex; flex-direction: column; overflow: hidden; }
.fleet-head { padding: 14px 14px 12px; border-bottom: 1px solid var(--line); flex: none; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tile {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px 7px; text-align: center;
  background: linear-gradient(180deg, var(--card), var(--card-2)); box-shadow: var(--shadow-1); transition: transform .12s, box-shadow .12s;
}
.tile b { display: block; font-size: 19px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile span { display: block; font-size: 11px; font-weight: 650; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.tile.driving { --c: var(--driving); } .tile.driving b { color: var(--driving); }
.tile.idling { --c: var(--idling); } .tile.idling b { color: var(--idling); }
.tile.off { --c: var(--off); }
.tile.alerts { --c: var(--brand); } .tile.alerts b { color: var(--brand); }
.tile.on { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), var(--shadow-1); background: var(--card); }
.search {
  width: 100%; margin-top: 10px; padding: 9px 12px 9px 36px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .06); -webkit-appearance: none; font-size: 16px; /* 16px stops iPhone zoom-on-focus */
}
.search::placeholder { color: var(--faint); }
.search { text-overflow: ellipsis; } /* long placeholders end in "…" instead of being cut */
@media (pointer: fine) { .search { font-size: 14px; } }
.rows { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px; -webkit-overflow-scrolling: touch; }
.row {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%;
  padding: 9px 10px; margin-bottom: 2px; border: 0; border-radius: 12px; background: none; text-align: left; transition: background .12s;
}
.row.selected { background: var(--select); box-shadow: inset 0 0 0 1px rgba(208, 20, 44, .25); }
.badge {
  position: relative; width: 46px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; --c: var(--off);
  background: var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c));
  box-shadow: var(--raise);
}
.badge.driving { --c: var(--driving); } .badge.idling { --c: var(--idling); } .badge.stale { --c: var(--stale); }
.badge-alert { position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); border: 2px solid var(--card); }
.row-main { min-width: 0; }
.row-title, .row-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title { font-weight: 650; }
.row-sub { color: var(--muted); font-size: 12px; }
.row-title:has(.fuel-light), .row-title:has(.keep) { display: flex; align-items: center; }
.row-title .keep { flex: none; white-space: nowrap; }
.row-title .ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fuel-light { flex: none; display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px; border-radius: 6px; vertical-align: 1px;
  font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #f59e0b, var(--idling)); box-shadow: var(--raise); }
.row-side { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.row-side strong { display: block; color: var(--text); font-size: 13px; font-weight: 700; }
.list-empty { padding: 40px 16px; text-align: center; color: var(--muted); }

.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 1px 3px rgba(15, 23, 42, .08); }
.tabs button { border: 0; background: none; padding: 7px 6px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tabs button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow-1); }
.tabs b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; font-size: 11px; color: #fff; background: var(--brand); }
.tabs b:empty { display: none; }
.search-row { position: relative; }
.bulk-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.refresh-all { gap: 6px; padding: 6px 11px; font-size: 12.5px; }
.refresh-all.busy svg { animation: spin 1.1s linear infinite; }
.refresh-all:disabled { cursor: default; color: var(--muted); }
.bulk-note { margin: 0; min-width: 0; font-size: 12px; line-height: 1.35; color: var(--muted); }
.bulk-note.error { color: var(--brand); }
.search-row .count { position: absolute; right: 12px; top: 50%; margin-top: 5px; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--faint); pointer-events: none; }
.search-row .search { padding-right: 80px; }
.nearest-form .search { margin-top: 0; }
.pin-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") !important; }
.nearest-opts { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.nearest-opts select { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); font-size: 13px; font-weight: 600; }
@media (pointer: coarse) { .nearest-opts select { font-size: 16px; } }
.check { display: flex; align-items: center; gap: 6px; margin: 8px 2px 0; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.btn.btn-compact { width: fit-content; margin: 10px auto 0; padding: 8px 16px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn.small { width: auto; margin: 0; padding: 8px 16px; flex: none; }
.pane-note { margin: 0 2px; font-size: 12px; color: var(--muted); }
.result-head { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); }
.result-head b { color: var(--text); }
.ask-input { display: block; resize: none; min-height: 62px; line-height: 1.35; padding-top: 10px; background-position: 12px 12px; font-family: inherit; }
.ask-hint { flex: 1; min-width: 0; }
.ask-progress { padding: 18px 12px; text-align: center; font-size: 13px; color: var(--muted); }
.ask-progress .spinner { margin: 0 auto 10px; border-color: var(--line); border-top-color: var(--brand); }
.ask-bar { height: 6px; margin: 10px auto 0; max-width: 220px; border-radius: 3px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ask-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .4s var(--ease); }
.result-sub { padding: 0 10px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ask-answer { margin: 4px 6px 6px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.45; color: var(--text); }
.rank { width: 46px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--text); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.row-actions a { font-size: 12px; font-weight: 650; color: var(--brand); text-decoration: none; }
.ev-icon { width: 46px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; --c: var(--idling); background: var(--c); box-shadow: var(--raise); }
.ev-icon.crash, .ev-icon.near_miss { --c: var(--brand); }
.ev-icon.driver_facing_cam_obstruction { --c: #475569; }
.call-pin { background: none; border: 0; }
.call-pin span { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); width: 30px; height: 30px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: linear-gradient(160deg, #3b82f6, #1d4ed8); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(29, 78, 216, .5); }

/* 6 · Map ----------------------------------------------------------------- */
.map-card { position: relative; overflow: hidden; isolation: isolate; }
#map { position: absolute; inset: 0; background: var(--card-2); }
.leaflet-container { font: inherit; }
.base-tiles { filter: saturate(.8) brightness(1.02) contrast(.96); } /* real map colors, softened a touch so the truck pins stay the brightest thing */
@media (prefers-color-scheme: dark) { .base-tiles { filter: invert(1) hue-rotate(180deg) saturate(.7) brightness(.85) contrast(.9); } }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow-2) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--text) !important; background: var(--card) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .75) !important; border-radius: 8px 0 0 0; font-size: 10px; }
.pin { background: none; border: 0; }
.pin span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); min-width: 32px; height: 28px; padding: 0 7px;
  display: grid; place-items: center; border-radius: 9px; border: 2px solid #fff; color: #fff; font-weight: 800; font-size: 12px; white-space: nowrap;
  --c: var(--off); background: var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px rgba(15, 23, 42, .35); transition: transform .15s;
}
.pin.driving span { --c: var(--driving); } .pin.idling span { --c: var(--idling); } .pin.stale span { --c: var(--stale); }
.pin.selected span { --c: var(--brand); transform: translate(-50%, -50%) scale(1.28); }
.map-fit {
  position: absolute; z-index: 500; top: 12px; right: 12px; display: flex; align-items: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 8px 12px; background: var(--card); color: var(--text); font-size: 13px; font-weight: 650; box-shadow: var(--shadow-2);
}

/* 7 · Inspector (selected truck) -------------------------------------------- */
.inspector { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.inspector-inner { padding: 18px; }
.empty-state { height: 100%; min-height: 320px; display: grid; place-items: center; text-align: center; padding: 32px; color: var(--muted); }
.empty-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #334155, #0f172a); box-shadow: var(--raise), 0 14px 30px -10px rgba(15, 23, 42, .5); }
.empty-state h3 { margin: 0 0 4px; color: var(--text); font-size: 16px; }
.empty-state p { margin: 0 auto; max-width: 240px; }
.back-btn { display: none; align-items: center; gap: 6px; border: 0; background: var(--card-2); border-radius: 10px; padding: 7px 12px; font-weight: 650; margin-bottom: 12px; box-shadow: var(--shadow-1); }
.truck-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.truck-head > div { min-width: 0; }
.truck-head h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.3px; }
.truck-head .model { color: var(--muted); font-size: 13px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 750; white-space: nowrap; flex: none;
  --c: var(--off); color: var(--c); background: var(--card-2); background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.status-pill.driving { --c: var(--driving); } .status-pill.idling { --c: var(--idling); } .status-pill.stale { --c: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.camera { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0e13; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 16px 34px -14px rgba(15, 23, 42, .6); }
.camera img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.camera::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 28%, transparent 70%, rgba(0, 0, 0, .45)); }
.camera-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #8b95a5; font-size: 12px; padding: 12px; }
.cameras { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cameras .camera { border-radius: 12px; }
.cameras .spinner { width: 20px; height: 20px; margin-bottom: 6px; border-width: 2.5px; }
.camera-label { position: absolute; z-index: 4; top: 7px; left: 7px; padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 750; letter-spacing: .2px; color: #fff; background: rgba(10, 12, 16, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.camera-time { position: absolute; z-index: 2; left: 7px; bottom: 7px; max-width: calc(100% - 14px); padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(10, 12, 16, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.camera-busy { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; font-weight: 650; font-size: 12px; background: rgba(10, 12, 16, .6); }
.spinner { width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 12px 16px;
  border: 0; border-radius: 12px; color: #fff; font-weight: 750; letter-spacing: .1px;
  background: linear-gradient(180deg, #ef2f45, var(--brand) 55%, var(--brand-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 10px 22px -8px rgba(208, 20, 44, .65);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 10px -4px rgba(208, 20, 44, .6); }
.btn:disabled { cursor: default; color: var(--muted); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.notice { margin: 8px 4px 0; font-size: 12px; color: var(--muted); text-align: center; }
.notice.error { color: var(--brand); font-weight: 650; }

.section-title { margin: 22px 2px 10px; font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--faint); }
.panel-box { border-radius: 12px; padding: 12px 14px; background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.location { margin-top: 18px; }
.location .label { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .5px; }
.location .addr { font-weight: 650; margin: 2px 0 6px; overflow-wrap: anywhere; }
.location a { color: var(--brand); font-size: 13px; font-weight: 650; text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { min-width: 0; padding: 10px 11px; border-radius: 12px; background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.stat label { display: block; font-size: 11px; font-weight: 650; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .value { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { margin-left: 2px; font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.stat .na { color: var(--faint); }
.stat.warn { border-color: var(--idling); }
.stat.warn .value { color: var(--idling); }
.meter { height: 5px; margin-top: 6px; border-radius: 5px; overflow: hidden; background: var(--line); }
.meter i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4ade80, var(--driving)); }
.stat.warn .meter i { background: linear-gradient(90deg, #fbbf24, var(--idling)); }
.stat .asof { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.engine { margin-top: 10px; }
.engine.ok { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--driving); }
.engine.bad { border-color: rgba(208, 20, 44, .35); background: linear-gradient(180deg, rgba(208, 20, 44, .06), var(--card)); }
.engine-head { display: flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 750; }
.engine ul { list-style: none; margin: 8px 0 0; padding: 0; }
.engine li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.engine li:first-child { border-top: 0; padding-top: 2px; }
.engine code { font: 700 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(208, 20, 44, .1); color: var(--brand); }
.engine .seen { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.engine .more { margin-top: 6px; font-size: 12px; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 3000; display: none; place-items: center; padding: 16px; background: rgba(5, 7, 10, .92); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox video { max-width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 10px; background: #000; }
.lightbox .lb-msg { color: #fff; font-weight: 600; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border-radius: 10px; box-shadow: var(--shadow-pop); }
.backdrop { display: none; }

.t-red { color: var(--brand) !important; }
.t-amber { color: var(--idling) !important; }
.alert-card { margin: 0 0 14px; padding: 12px 14px 12px 16px; border-radius: 12px; font-size: 13px; position: relative; overflow: hidden;
  border: 1px solid var(--c); background: var(--card); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--card)), var(--card)); box-shadow: var(--shadow-1); --c: var(--brand); }
.alert-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.alert-card.amber { --c: var(--idling); }
.alert-title { font-weight: 800; color: var(--c); margin-bottom: 2px; }
.alert-history { margin-top: 6px; color: var(--muted); font-size: 12px; }
@media (max-width: 719px), (max-height: 520px) and (max-width: 1000px) { body.sheet-open { overflow: hidden; } }

/* 8 · Sign-in ------------------------------------------------------------- */
body.signin-page { overflow: auto; }
.signin { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.signin-hero {
  position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 48px;
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(208, 20, 44, .45), transparent 65%),
    radial-gradient(600px 500px at 100% 100%, rgba(59, 130, 246, .18), transparent 60%),
    linear-gradient(160deg, var(--banner-2), var(--banner-1));
}
.signin-hero::after { /* receding road lines for depth */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .05) 46px 48px);
  transform: perspective(500px) rotateX(62deg); transform-origin: bottom; pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.signin-hero h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -1px; margin: 0 0 14px; max-width: 520px; }
.signin-hero p { color: #b6c2d1; font-size: 16px; max-width: 440px; margin: 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-points span { padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hero-foot { position: relative; z-index: 1; font-size: 12px; color: #7d8a9c; }
.signin-side { display: grid; place-items: center; padding: 32px 20px; }
.signin-card { width: 100%; max-width: 380px; padding: 30px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-2), var(--shadow-pop); }
.signin-card h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.3px; }
.signin-card > p { margin: 0 0 18px; color: var(--muted); }
.signin-card label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 650; }
.signin-card input { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); font-size: 16px; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .06); }
.signin-card input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.signin-card .btn { margin-top: 22px; }
.signin-foot { margin-top: 16px; text-align: center; font-size: 12px; color: var(--faint); }

/* 9 · Feedback: loading skeleton and connection toast ----------------------- */
.skeleton { display: grid; grid-template-columns: 46px 1fr 50px; gap: 12px; align-items: center; padding: 10px; }
.skeleton i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line), var(--card-2), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton i:first-child { height: 36px; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast {
  position: absolute; z-index: 600; left: 50%; top: 12px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 650;
  color: #fff; background: linear-gradient(180deg, #ef2f45, var(--brand-2)); box-shadow: var(--shadow-pop);
}

/* 10 · Polish: states, focus, scrolling, motion ----------------------------- */
html { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 8px); }
body { text-rendering: optimizeLegibility; }
::selection { background: rgba(208, 20, 44, .18); }
button, select, input, a { touch-action: manipulation; }
input[type="checkbox"] { accent-color: var(--brand); }
.row-side, .row-side strong, .tile b, .stat .value, .camera-time { font-variant-numeric: tabular-nums; }

/* Thin, visible scrollbars inside the list and details panel. */
.rows, .inspector { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
.rows::-webkit-scrollbar, .inspector::-webkit-scrollbar { width: 10px; }
.rows::-webkit-scrollbar-thumb, .inspector::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background: var(--scroll) padding-box; }
.rows::-webkit-scrollbar-thumb:hover, .inspector::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }
.rows::-webkit-scrollbar-track, .inspector::-webkit-scrollbar-track { background: transparent; }

/* Quick, consistent feedback on every control. */
.ghost-btn, .company, .tabs button, .tile, .row, .search, .nearest-opts select, .signin-card input,
.map-fit, .back-btn, .row-actions a, .location a, .leaflet-control-zoom a {
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease), filter var(--fast) var(--ease);
}
.btn { transition: transform .08s var(--ease), box-shadow var(--fast) var(--ease), filter var(--fast) var(--ease); }

/* Text fields and dropdowns: soft brand ring on focus instead of a hard outline. */
.search:focus, .nearest-opts select:focus, .signin-card input:focus {
  outline: none; border-color: var(--brand); background-color: var(--card); box-shadow: var(--ring);
}
.company:focus-visible { outline: none; border-color: rgba(255, 255, 255, .35); box-shadow: 0 0 0 3px rgba(255, 255, 255, .14); }
.tile:focus-visible, .row:focus-visible, .tabs button:focus-visible { outline-offset: -2px; }

/* Primary action: firmer press; disabled reads clearly as unavailable. */
.btn:focus-visible { outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 3px var(--card), 0 0 0 5px var(--brand); }
.btn:disabled { cursor: not-allowed; filter: none; }

/* Selected tab, filter and truck are easy to spot. */
.tabs button.on { color: var(--brand); }
.tabs button:active { transform: scale(.97); }
.tile.on { background: color-mix(in srgb, var(--c) 7%, var(--card)); }
.tile:active { transform: scale(.97); }
.row.selected { box-shadow: inset 0 0 0 1px rgba(208, 20, 44, .25), inset 3px 0 0 var(--brand); }
.row:active { background: var(--select); }
.ghost-btn:active, .map-fit:active, .back-btn:active { transform: translateY(1px); }
.leaflet-control-zoom a:active { background: var(--card-2) !important; }

/* Mouse-only hover (touch screens don't get stuck in a hover state). */
@media (hover: hover) {
  .ghost-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }
  .company:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }
  .tabs button:not(.on):hover { color: var(--text); background: color-mix(in srgb, var(--card) 55%, transparent); }
  .tile:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line), var(--shadow-2); }
  .tile.on:hover { box-shadow: 0 0 0 1px var(--c), var(--shadow-2); }
  .row:hover { background: var(--card-2); }
  .row.selected:hover { background: var(--select); }
  .search:hover:not(:focus), .nearest-opts select:hover:not(:focus), .signin-card input:hover:not(:focus) { border-color: var(--faint); }
  .map-fit:hover, .back-btn:hover { box-shadow: var(--shadow-2), 0 0 0 1px var(--line); color: var(--brand); }
  .row-actions a:hover, .location a:hover { text-decoration: underline; text-underline-offset: 2px; }
  .leaflet-control-zoom a:hover { background: var(--card-2) !important; color: var(--brand) !important; }
}

/* Gentle entrances that never move surrounding content. */
.lightbox.open { animation: fade-in .16s var(--ease); }
.lightbox.open > * { animation: pop-in .2s var(--ease); }
.toast:not([hidden]) { animation: toast-in .2s var(--ease); }
.camera img { animation: fade-in .25s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -6px); } }

/* Dark mode: map credit and controls match the cards. */
@media (prefers-color-scheme: dark) {
  .leaflet-control-attribution { background: rgba(21, 26, 34, .8) !important; color: var(--muted); }
  .company option { color: #0f172a; }
}

/* 11 · Users page (admins only) ---------------------------------------------- */
.icon-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.icon-btn svg { flex: none; }
a.brand { color: inherit; text-decoration: none; }
body.admin-page { overflow: auto; }
.admin-page .topbar { position: sticky; top: 0; }
.admin-main { max-width: 920px; margin: 0 auto; padding: 24px max(var(--gap), env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(var(--gap), env(safe-area-inset-left)); }
.admin-head { margin: 4px 4px 18px; }
.admin-head h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.4px; }
.admin-head p { margin: 0; color: var(--muted); }
.admin-card { padding: 20px; margin-bottom: 16px; }
.admin-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 16px; font-weight: 750; }
.count-pill { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; font-size: 12px; color: var(--muted); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.add-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.field { min-width: 0; }
.field label, .reset-form label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 650; }
.add-form input, .add-form select, .reset-form input {
  width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2);
  font-size: 16px; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .06);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
@media (pointer: fine) { .add-form input, .add-form select, .reset-form input { font-size: 14px; } }
.add-form input:focus, .add-form select:focus, .reset-form input:focus { outline: none; border-color: var(--brand); background-color: var(--card); box-shadow: var(--ring); }
.add-form .btn { width: auto; margin: 0; padding: 11px 22px; }
.pass-wrap { display: flex; gap: 6px; align-items: center; }
.pass-wrap input { flex: 1 1 auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; }
.mini-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--card-2)); color: var(--text); font-size: 13px; font-weight: 650;
  box-shadow: var(--shadow-1); transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform .08s var(--ease);
}
.mini-btn:active { transform: translateY(1px); }
.mini-btn.primary { border-color: transparent; color: #fff; background: linear-gradient(180deg, #ef2f45, var(--brand) 55%, var(--brand-2)); }
.mini-btn.danger { color: var(--brand); }
.mini-btn.danger.armed { color: #fff; border-color: transparent; background: linear-gradient(180deg, #ef2f45, var(--brand-2)); }
@media (hover: hover) {
  .mini-btn:hover { border-color: var(--faint); }
  .mini-btn.danger:not(.armed):hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--card)); }
  .mini-btn.primary:hover, .mini-btn.danger.armed:hover { filter: brightness(1.06); }
}
.admin-card .notice { text-align: left; margin: 10px 2px 0; }
.admin-card .notice:empty { display: none; }
.handoff { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--driving) 45%, var(--line)); background: color-mix(in srgb, var(--driving) 7%, var(--card)); animation: fade-in .2s var(--ease); }
.handoff-title { font-weight: 750; margin-bottom: 8px; }
.handoff-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 14px; }
.handoff-grid span { color: var(--muted); }
.handoff-grid b { overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; }
.handoff-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.user-list { margin: 0 -8px; }
.user-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 8px; border-top: 1px solid var(--line); }
.user-row:first-child { border-top: 0; }
.u-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; text-transform: uppercase;
  background: linear-gradient(160deg, #475569, #1e293b); box-shadow: var(--raise); }
.u-avatar.admin { background: linear-gradient(160deg, #ff4a5f, var(--brand) 45%, var(--brand-2)); }
.user-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 700; overflow-wrap: anywhere; }
.you { color: var(--muted); font-weight: 600; }
.role-pill { padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 750; color: var(--muted); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.role-pill.admin { color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent); }
.user-meta { font-size: 12px; color: var(--muted); }
.user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.reset-form { grid-column: 1 / -1; margin: 4px 0 2px 50px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.reset-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.admin-page .toast { position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top) + 12px); z-index: 1200; }
body.busy .admin-main { cursor: progress; }
body.busy .mini-btn, body.busy .btn { pointer-events: none; opacity: .7; }
@media (max-width: 760px) {
  .add-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .add-form .btn { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 560px) {
  .admin-main { padding-top: 16px; }
  .admin-card { padding: 16px; }
  .add-form { grid-template-columns: minmax(0, 1fr); }
  .user-row { grid-template-columns: 38px minmax(0, 1fr); }
  .user-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 50px; }
  .reset-form { margin-left: 0; }
  .reset-form .pass-wrap { flex-wrap: wrap; }
  .reset-form .pass-wrap input { flex-basis: 100%; }
}

/* 12 · Responsive ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Small laptops and iPad landscape: list + map; truck details slide in as a drawer. */
@media (max-width: 1279px) {
  .layout { grid-template-columns: 330px minmax(0, 1fr); }
  .inspector {
    position: fixed; z-index: 1200; top: calc(var(--header-h) + env(safe-area-inset-top) + var(--gap)); right: max(var(--gap), env(safe-area-inset-right));
    bottom: max(var(--gap), env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 2 * var(--gap)));
    box-shadow: var(--shadow-pop); transform: translateX(calc(100% + 40px)); visibility: hidden;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), visibility .25s;
  }
  .inspector.open { transform: none; visibility: visible; }
  .backdrop.open { display: block; position: fixed; inset: 0; z-index: 1150; background: rgba(15, 23, 42, .28); }
  .back-btn { display: inline-flex; }
}
/* iPad portrait */
@media (max-width: 899px) {
  .layout { grid-template-columns: 300px minmax(0, 1fr); }
  .live-text, .brand-text { display: none; }
}
/* Phones, portrait and landscape: map on top, list below, details full screen. */
@media (max-width: 719px), (max-height: 520px) and (max-width: 1000px) {
  :root { --gap: 10px; --header-h: 58px; }
  body { overflow: auto; }
  .topbar { position: sticky; top: 0; gap: 10px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .brand-text, .live, .avatar, .icon-btn span { display: none; }
  .icon-btn { padding: 7px 9px; }
  .account { padding-left: 0; border: 0; }
  .company-wrap { flex: 1 1 auto; }
  .layout { display: flex; flex-direction: column; height: auto; }
  .map-card { order: -1; flex: none; height: 46vh; height: 46dvh; min-height: 200px; }
  .fleet { flex: none; overflow: visible; }
  .rows { overflow: visible; }
  .inspector {
    top: 0; left: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; z-index: 1300;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    transform: translateY(100%);
  }
  .backdrop.open { display: none; }
  .inspector-inner { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 380px) {
  /* Smallest phones: icon-only Sign out leaves room for the company name. */
  .so-icon { display: block; }
  .so-text { display: none; }
  #signout { padding: 7px 9px; }
  .tiles { gap: 4px; }
  .tile b { font-size: 17px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ghost-btn { padding: 7px 9px; }
}
/* Sign-in stacks on narrow screens. */
@media (max-width: 860px) {
  .signin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .signin-hero { padding: 28px 24px 52px; }
  .signin-side { padding: 0 16px 32px; margin-top: -30px; position: relative; z-index: 2; align-items: start; }
}
/* Phones: keep the sign-in form above the fold. */
@media (max-width: 600px), (max-height: 520px) {
  .signin-hero { gap: 16px; padding: calc(20px + env(safe-area-inset-top)) 20px 44px; }
  .signin-hero h1 { font-size: 26px; margin: 0; }
  .signin-hero p, .hero-points, .hero-foot { display: none; }
  .signin-card { padding: 24px 20px; }
}
