:root {
  --bg: #08111f;
  --glass: rgba(9, 17, 30, 0.72);
  --panel: rgba(16, 27, 46, 0.86);
  --line: rgba(255,255,255,0.09);
  --text: #edf3ff;
  --muted: #9bb0d1;
  --primary: #43a6ff;
  --primary-2: #6ec4ff;
  --green: #1ec88d;
  --amber: #f9bb45;
  --red: #ff667a;
  --shadow: 0 18px 50px rgba(0,0,0,0.28);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(67,166,255,.18), transparent 30%),
    radial-gradient(circle at top right, rgba(30,200,141,.10), transparent 28%),
    linear-gradient(180deg, #08111f 0%, #0d1730 100%);
}
button, input, select, textarea { min-height: 44px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(110,196,255,.42);
  outline-offset: 2px;
}
img { max-width: 100%; display: block; }
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.login-card {
  width: min(520px, 100%); border-radius: 28px; padding: 28px; display: grid; gap: 18px;
}
.brand-mark {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--green)); color: #07131f; font-size: 22px;
}
.brand-mark.small { width: 48px; height: 48px; font-size: 16px; border-radius: 16px; }
.eyebrow, .tiny, .subtle, .sidebar p { color: var(--muted); margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
h1, h2, h3, p { margin: 0; }
.stack { display: grid; gap: 14px; }
.compact { gap: 10px; }
label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
input, select, textarea, button {
  font: inherit;
}
input, select, textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.045); color: var(--text); padding: 12px 14px;
}
input::placeholder, textarea::placeholder { color: rgba(155,176,209,.72); }
textarea { min-height: 88px; resize: vertical; }
.btn {
  border: 0; border-radius: 16px; padding: 12px 16px; cursor: pointer; font-weight: 700;
}
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #05111c; }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--text); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 13px; color: var(--muted); }
.shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; gap: 20px; padding: 18px; }
.sidebar { border-radius: 28px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.brand-row { display: flex; gap: 12px; align-items: center; }
.status-panel { margin-top: 16px; }
.sidebar nav { display: grid; gap: 10px; margin-top: 22px; }
.nav-btn {
  text-align: left; background: transparent; color: var(--text); border: 1px solid transparent; border-radius: 16px; padding: 14px 16px; cursor: pointer;
}
.nav-btn.active, .nav-btn:hover { background: rgba(67,166,255,.10); border-color: rgba(67,166,255,.22); }
.main { display: grid; gap: 18px; }
.topbar { border-radius: 28px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.right-chip { color: var(--muted); padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.04); }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric-card, .panel, .driver-picker { border-radius: 24px; padding: 18px; }
.metric-card span { color: var(--muted); display: block; }
.metric-card strong { display: block; font-size: 34px; margin-top: 10px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head p { color: var(--muted); font-size: 13px; }
.list-toolbar { margin: 0 0 12px; }
.search-field { position: relative; }
.search-field span { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.search-field input { padding-left: 40px; background: rgba(255,255,255,.055); }
.search-field::before { content:"Search"; position:absolute; left:14px; top:50%; transform:translateY(-50%); font-size:11px; color:var(--muted); pointer-events:none; }
.empty-state { display:grid; gap:6px; place-items:center; text-align:center; min-height:120px; padding:24px; border:1px dashed rgba(255,255,255,.16); border-radius:18px; color:var(--muted); background:rgba(255,255,255,.025); }
.empty-state strong { color:var(--text); }
.empty-state p { color:var(--muted); font-size:13px; max-width:380px; }
.span-2 { grid-column: span 2; }
.list-grid, .issue-list, .inspection-grid { display: grid; gap: 12px; }
.list-card, .issue-card, .inspection-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(255,255,255,.03); color: var(--text);
}
.list-card p, .issue-card p, .inspection-card p { color: var(--muted); }
.role-home { display: grid; gap: 16px; }
.compact-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.action-grid { margin-top: 8px; }
.action-card {
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
}
.action-card span { color: var(--muted); font-size: 13px; }
.action-card:hover { border-color: rgba(67,166,255,.35); background: rgba(67,166,255,.08); }
.load-board { display:grid; gap:12px; }
.load-card { border:1px solid var(--line); border-radius:18px; padding:14px; background:rgba(255,255,255,.03); display:grid; gap:12px; }
.load-stop { display:grid; grid-template-columns:42px 1fr; gap:10px; align-items:start; }
.load-stop span { width:34px; height:34px; border-radius:999px; display:grid; place-items:center; background:rgba(67,166,255,.14); color:#9ed6ff; font-weight:800; font-size:11px; }
.load-stop p { color:var(--muted); font-size:13px; }
.site-detail { margin-top:6px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.03); color:#cbd8e8 !important; }
.timeline { display:grid; gap:8px; border-top:1px solid var(--line); padding-top:10px; }
.timeline div { display:grid; gap:2px; }
.timeline span { color:var(--muted); font-size:12px; }
.load-actions { display:flex; gap:8px; flex-wrap:wrap; }
.customer-link-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:8px; align-items:center; padding:8px; border:1px solid var(--line); border-radius:10px; background:rgba(90,166,232,.055); }
.customer-link-row input { min-height:38px; font-size:12px; }
.customer-link-row .small-btn { margin-top:0; white-space:nowrap; }
.driver-load-card .small-btn { margin-top:0; }
.signature-panel { border:1px solid var(--line); border-radius:10px; padding:10px; background:rgba(255,255,255,.025); }
.signature-panel summary { cursor:pointer; font-weight:800; color:#dbe5f1; }
.signature-pad { width:100%; height:160px; border:1px dashed rgba(169,184,205,.36); border-radius:10px; background:#0b1118; touch-action:none; }
.doc-thumb { position:relative; color:var(--text); text-decoration:none; }
.doc-thumb span { position:absolute; left:6px; bottom:6px; padding:3px 6px; border-radius:999px; background:rgba(0,0,0,.65); font-size:10px; text-transform:uppercase; }
.soft-rule { width:100%; border:0; border-top:1px solid var(--line); margin:8px 0; }
.form-step { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid rgba(67,166,255,.18); border-radius:14px; background:rgba(67,166,255,.055); color:var(--text); }
.form-step span { width:24px; height:24px; border-radius:999px; display:grid; place-items:center; background:rgba(67,166,255,.2); color:#b7e1ff; font-size:12px; font-weight:800; }
.data-entry-hints { display:grid; gap:10px; margin-top:14px; }
.data-entry-hints article { display:grid; gap:4px; padding:12px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.03); }
.data-entry-hints span { color:var(--muted); font-size:12px; }
.load-type-panels { display:grid; gap:10px; }
.load-type-panel { display:grid; gap:10px; padding:12px; border:1px solid rgba(90,166,232,.2); border-radius:12px; background:rgba(90,166,232,.055); }
.load-type-panel[hidden] { display:none; }
.compatibility-note { padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:rgba(169,184,205,.07); color:#c8d4e3; font-size:12px; line-height:1.45; }
.address-chip-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.address-chip { display:inline-flex; align-items:center; gap:8px; max-width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.04); color:var(--text); font-size:12px; }
.address-chip small { color:var(--muted); text-transform:uppercase; font-size:10px; }
.customer-summary { margin-bottom:16px; }
.customer-tracking-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:14px; }
.customer-track-card { border:1px solid var(--line); border-radius:20px; padding:16px; background:rgba(255,255,255,.03); display:grid; gap:14px; }
.customer-track-head, .customer-track-detail { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.customer-track-head strong { font-size:18px; }
.customer-track-metrics { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.customer-track-metrics span { border:1px solid var(--line); border-radius:14px; padding:10px; background:rgba(255,255,255,.025); color:var(--muted); font-size:12px; }
.customer-track-metrics b { display:block; color:var(--text); font-size:22px; }
.customer-track-detail > div { min-width:0; flex:1; display:grid; gap:4px; }
.customer-track-stops { display:grid; gap:8px; }
.customer-track-stops div { border-left:3px solid rgba(67,166,255,.5); padding:8px 10px; border-radius:0 12px 12px 0; background:rgba(67,166,255,.055); }
.customer-track-stops span, .customer-track-stops small { color:var(--muted); font-size:12px; }
.customer-track-stops strong, .customer-track-stops p { display:block; overflow-wrap:anywhere; }
.customer-contact-strip { display:flex; flex-wrap:wrap; gap:8px; }
.customer-contact-strip span { padding:8px 10px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.035); color:var(--muted); font-size:12px; max-width:100%; overflow-wrap:anywhere; }
.driver-console { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(360px, .6fr); gap:16px; align-items:start; }
.driver-profile { display:grid; gap:14px; }
.driver-hero-card { position:relative; display:grid; grid-template-columns:112px 1fr; gap:16px; padding:14px; border:1px solid var(--line); border-radius:12px; background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)); }
.driver-photo { width:112px; aspect-ratio:1; display:grid; place-items:center; border-radius:10px; background:linear-gradient(135deg, rgba(90,166,232,.95), rgba(38,169,120,.92)); color:#07131f; font-size:30px; font-weight:900; }
.driver-profile-title { position:absolute; left:14px; right:14px; bottom:14px; display:flex; justify-content:space-between; align-items:center; gap:10px; padding-top:10px; border-top:1px solid rgba(255,255,255,.12); transform:translateY(calc(100% + 8px)); }
.driver-profile-title strong { font-size:18px; }
.driver-identity-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); border:1px solid var(--line); border-radius:10px; overflow:hidden; margin-bottom:44px; }
.driver-identity-grid div { min-width:0; padding:10px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(255,255,255,.02); }
.driver-identity-grid div:nth-child(3n) { border-right:0; }
.driver-identity-grid div:nth-last-child(-n+3) { border-bottom:0; }
.driver-identity-grid span { display:block; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.driver-identity-grid strong { display:block; margin-top:5px; font-size:13px; overflow-wrap:anywhere; }
.driver-tabs { display:flex; gap:20px; padding:12px 4px 0; color:var(--muted); border-bottom:1px solid var(--line); }
.driver-tabs span { padding:0 0 10px; font-size:13px; }
.driver-tabs .active { color:#9dccf3; border-bottom:2px solid #2f7dd1; }
.driver-insight-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.driver-insight-card, .driver-summary-card { border:1px solid var(--line); border-radius:12px; padding:14px; background:rgba(255,255,255,.03); display:grid; gap:12px; }
.driver-insight-card .card-row span { color:var(--muted); font-size:12px; }
.driver-rings { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.driver-rings span { aspect-ratio:1; border:2px solid rgba(90,166,232,.42); border-radius:999px; display:grid; place-items:center; align-content:center; background:rgba(90,166,232,.06); }
.driver-rings b { font-size:18px; }
.driver-rings small { color:var(--muted); font-size:10px; text-transform:uppercase; }
.score-donut { width:96px; aspect-ratio:1; margin:auto; border-radius:999px; display:grid; place-items:center; align-content:center; background:conic-gradient(#1487dc calc(var(--score) * 1%), rgba(169,184,205,.18) 0); position:relative; }
.score-donut::before { content:""; position:absolute; inset:12px; border-radius:999px; background:#101924; border:1px solid var(--line); }
.score-donut b, .score-donut small { position:relative; z-index:1; }
.score-donut b { font-size:26px; }
.score-donut small { color:var(--muted); }
.score-line { height:11px; border-radius:999px; overflow:hidden; background:rgba(169,184,205,.18); }
.score-line span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg, #26a978, #2f7dd1); }
.driver-summary-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.driver-summary-card p { color:var(--text); overflow-wrap:anywhere; }
.driver-summary-card span { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.driver-summary-card.span-wide { grid-column:1 / -1; }
.driver-activity-list { display:grid; gap:8px; }
.driver-activity-list div { display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:center; padding:9px 10px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.025); }
.driver-activity-list span, .driver-activity-list small { color:var(--muted); font-size:12px; }
.driver-roster { display:grid; gap:8px; }
.driver-roster-card { width:100%; display:grid; grid-template-columns:42px minmax(0, 1fr) auto; gap:10px; align-items:center; text-align:left; border:1px solid var(--line); border-radius:10px; padding:10px; background:rgba(255,255,255,.025); color:var(--text); cursor:pointer; }
.driver-roster-card.selected, .driver-roster-card:hover { border-color:rgba(90,166,232,.38); background:rgba(90,166,232,.07); }
.driver-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:9px; background:rgba(90,166,232,.16); color:#9dccf3; font-weight:900; }
.driver-roster-card strong, .driver-roster-card small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.driver-roster-card small, .driver-roster-meta small { color:var(--muted); font-size:12px; }
.driver-roster-meta { display:grid; justify-items:end; gap:6px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
tbody tr:hover { background: rgba(67,166,255,.045); }
.vehicle-unit-cell { display:flex; align-items:center; gap:10px; min-width:190px; }
.vehicle-unit-cell span, .vehicle-unit-cell small { display:block; }
.vehicle-unit-cell small { color:var(--muted); font-size:12px; margin-top:2px; }
.vehicle-thumb { width:74px; height:44px; object-fit:cover; border:1px solid var(--line); border-radius:8px; background:#101923; flex:0 0 auto; }
.equipment-preview { display:grid; grid-template-columns:132px minmax(0, 1fr); align-items:center; gap:12px; padding:10px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.035); }
.equipment-preview img { width:132px; aspect-ratio:7 / 4; object-fit:cover; border-radius:10px; border:1px solid var(--line); background:#101923; }
.equipment-preview strong, .equipment-preview p { overflow-wrap:anywhere; }
.tiny { font-size: 12px; color: var(--muted); }
.tag { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tag.active, .tag.pass, .tag.closed, .tag.completed, .tag.ready, .tag.live { background: rgba(30,200,141,.16); color: #67efb5; }
.tag.needs_review, .tag.medium, .tag.open, .tag.pass_with_defects, .tag.stale { background: rgba(249,187,69,.16); color: #ffd372; }
.tag.out_of_service, .tag.critical, .tag.fail, .tag.error, .tag.offline, .tag.not_tracking { background: rgba(255,102,122,.18); color: #ff8fa0; }
.tag.low, .tag.started, .tag.driver { background: rgba(67,166,255,.16); color: #8ecfff; }
.tag.admin { background: rgba(255,255,255,.08); color: #fff; }
.two-col, .split { display: grid; gap: 16px; }
.two-col { grid-template-columns: 1.2fr .8fr; }
.split { grid-template-columns: 1fr 1fr; }
.mobile-stage { display: grid; gap: 18px; }
.phone-frame {
  width: min(430px, 100%); margin: 0 auto; background: #050a14; border: 8px solid #091220; border-radius: 40px; padding: 18px 12px 12px; box-shadow: var(--shadow);
}
.mobile-app-shell { min-height:100vh; max-width:520px; margin:0 auto; padding:14px 14px 92px; display:grid; gap:14px; }
.mobile-app-top { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px; border:1px solid var(--line); border-radius:22px; background:var(--panel); position:sticky; top:10px; z-index:20; }
.mobile-app-top h1 { font-size:22px; }
.mobile-app-main { display:grid; gap:14px; }
.mobile-app-shell .phone-frame { width:100%; margin:0; border:0; border-radius:24px; padding:0; background:transparent; box-shadow:none; }
.mobile-app-shell .phone-notch { display:none; }
.mobile-app-shell .phone-screen { min-height:auto; }
.mobile-tabbar { position:fixed; left:50%; bottom:12px; transform:translateX(-50%); width:min(520px, calc(100% - 24px)); display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; padding:10px; border:1px solid var(--line); border-radius:22px; background:rgba(8,17,31,.94); backdrop-filter:blur(16px); z-index:30; }
.mobile-tabbar .nav-btn { text-align:center; padding:12px; border-radius:14px; }
.phone-notch { width: 120px; height: 22px; margin: 0 auto 10px; background: #0d1828; border-radius: 999px; }
.phone-screen { display: grid; gap: 12px; min-height: 760px; }
.mobile-header { display: flex; justify-content: space-between; align-items: flex-start; }
.mobile-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: 22px; padding: 16px;
}
.primary-card { display: flex; justify-content: space-between; align-items: center; }
.mobile-actions { display: grid; gap: 10px; }
.checklist { display: grid; gap: 10px; }
.check-row { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: rgba(255,255,255,.02); }
.check-row > div { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-check { grid-template-columns: auto 1fr; align-items: center; }
.photo-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-row img { width: 74px; height: 74px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.document-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap:12px; }
.document-card { color:var(--text); text-decoration:none; border:1px solid var(--line); border-radius:18px; padding:10px; background:rgba(255,255,255,.03); display:grid; gap:10px; }
.document-card:hover { border-color:rgba(67,166,255,.35); background:rgba(67,166,255,.08); }
.document-card img { width:100%; aspect-ratio: 4 / 3; object-fit:cover; border-radius:12px; border:1px solid var(--line); }
.stack-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.small-btn { padding: 10px 12px; border-radius: 12px; margin-top: 10px; }
.mini-actions { display:flex; gap:8px; flex-wrap:wrap; }
.mini-actions .small-btn { margin-top:0; }
.toast {
  position: fixed; top: 20px; right: 20px; padding: 14px 16px; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 16px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .2s ease; z-index: 999;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(30,200,141,.3); }
.toast.error { border-color: rgba(255,102,122,.3); }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .driver-console { grid-template-columns:1fr; }
}
@media (max-width: 700px) {
  .shell { padding: 12px; }
  .sidebar, .topbar, .panel, .metric-card { border-radius: 22px; }
  .demo-grid, .dashboard-grid, .compact-metrics, .split { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .customer-tracking-grid { grid-template-columns:1fr; }
  .customer-track-head, .customer-track-detail { flex-direction:column; }
  .driver-hero-card, .driver-insight-grid, .driver-summary-grid, .driver-identity-grid { grid-template-columns:1fr; }
  .driver-profile-title { position:static; transform:none; }
  .driver-hero-card { padding:14px; }
  .driver-photo { width:88px; }
  .driver-identity-grid { margin-bottom:0; }
  .driver-identity-grid div, .driver-identity-grid div:nth-child(3n), .driver-identity-grid div:nth-last-child(-n+3) { border-right:0; border-bottom:1px solid var(--line); }
  .driver-identity-grid div:last-child { border-bottom:0; }
  .driver-activity-list div, .driver-roster-card { grid-template-columns:1fr; }
  .driver-roster-meta { justify-items:start; }
  .customer-link-row { grid-template-columns:1fr; }
  .btn { width:100%; }
  .panel-head { align-items:flex-start; flex-direction:column; }
}


.login-note { color: var(--muted); font-size: 13px; }
.company-chip { color: var(--text); padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.05); display: inline-block; }
.scope-picker { margin-top: 16px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.tag.super_user { background: rgba(110,196,255,.18); color: #b9e4ff; }
.tag.support_staff { background: rgba(255,255,255,.10); color: #d5e2ff; }


.topbar-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.topbar-switch { display:grid; gap:6px; font-size:12px; color:var(--muted); }
.topbar-switch select { min-width: 190px; }
.map-layout { display:grid; grid-template-columns: 1.35fr .85fr; gap:16px; }
.map-panel { min-height: 640px; }
.map-canvas { position:relative; min-height: 540px; border-radius: 24px; overflow:hidden; border:1px solid var(--line); background: linear-gradient(180deg, rgba(12,25,43,.88), rgba(6,15,30,.92)); }
.real-map { position:absolute; inset:0; z-index:1; background:#0b1728; }
.uses-grid-map .real-map { display:none; }
.real-map .leaflet-control-attribution { font-size:10px; }
.map-grid { position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 52px 52px; opacity:.55; }
.map-empty { position:absolute; inset:0; display:grid; place-items:center; padding:30px; text-align:center; color:var(--muted); z-index:4; }
.map-empty.small { min-height: 180px; position:static; }
.map-marker { position:absolute; transform: translate(-50%, -50%); width:56px; height:56px; border-radius:999px; border:2px solid rgba(255,255,255,.65); background: linear-gradient(135deg, var(--primary), var(--green)); color:#07131f; font-weight:800; box-shadow:0 10px 24px rgba(0,0,0,.35); cursor:pointer; z-index:3; }
.map-marker.stale { background: linear-gradient(135deg, #f9bb45, #ffe08a); }
.map-marker.offline { background: linear-gradient(135deg, #677189, #aab4c5); }
.map-marker span { pointer-events:none; }
.map-marker.active { outline: 4px solid rgba(110,196,255,.25); }
.map-trail-dot { position:absolute; width:10px; height:10px; border-radius:999px; background:#9ed6ff; border:2px solid rgba(255,255,255,.7); transform:translate(-50%, -50%); z-index:2; }
.compact-list { max-height: 340px; overflow:auto; padding-right:4px; }
.map-driver-card { width:100%; text-align:left; background: rgba(255,255,255,.02); cursor:pointer; color:var(--text); }
.map-driver-card strong { color:var(--text); }
.map-driver-card.selected { border-color: rgba(67,166,255,.35); background: rgba(67,166,255,.08); }
.card-row { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.driver-location-card { display:grid; gap:10px; }
.coords { font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.quick-action-grid { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.mobile-mini-card { border:1px solid var(--line); border-radius:18px; padding:12px; background: rgba(255,255,255,.03); display:grid; gap:4px; }
.mobile-mini-card span, .mobile-mini-card small { color:var(--muted); }
.mobile-mini-card strong { font-size:20px; }
@media (max-width: 1080px) {
  .map-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar-actions { width:100%; }
  .topbar-switch select { min-width: 100%; }
  .quick-action-grid { grid-template-columns: 1fr; }
}

.btn:disabled { opacity:.75; cursor:not-allowed; }
.btn.is-loading { position:relative; padding-left:44px; }
.btn.is-loading::before { content:''; position:absolute; left:16px; top:50%; width:16px; height:16px; margin-top:-8px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gps-status-card[data-status='idle'] { border-color: rgba(255,255,255,.08); }
.gps-status-card[data-status='pending'], .gps-status-card[data-status='requesting'] { border-color: rgba(249,187,69,.45); box-shadow: inset 0 0 0 1px rgba(249,187,69,.12); }
.gps-status-card[data-status='tracking'] { border-color: rgba(30,200,141,.45); box-shadow: inset 0 0 0 1px rgba(30,200,141,.12); }
.gps-status-card[data-status='blocked'], .gps-status-card[data-status='error'] { border-color: rgba(255,102,122,.45); box-shadow: inset 0 0 0 1px rgba(255,102,122,.12); }
#gpsStatusMeta { min-height: 18px; }

.map-marker::after { content:""; position:absolute; inset:-6px; border-radius:999px; border:2px solid rgba(110,196,255,.22); }

.map-marker { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; }
.map-marker small{font-size:10px; line-height:1; max-width:72px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#eaf6ff; text-shadow:0 1px 2px rgba(0,0,0,.45); position:absolute; top:58px;}
.leaflet-driver-pin { display:grid; place-items:center; position:relative; width:54px; height:54px; border-radius:999px; border:3px solid rgba(255,255,255,.85); background:linear-gradient(135deg, var(--primary), var(--green)); color:#07131f; font-weight:900; box-shadow:0 10px 24px rgba(0,0,0,.35); }
.leaflet-driver-pin.stale { background:linear-gradient(135deg, #f9bb45, #ffe08a); }
.leaflet-driver-pin.offline { background:linear-gradient(135deg, #677189, #aab4c5); }
.leaflet-driver-pin small { position:absolute; top:58px; color:#07131f; background:rgba(255,255,255,.9); padding:2px 6px; border-radius:999px; font-size:10px; white-space:nowrap; box-shadow:0 3px 10px rgba(0,0,0,.22); }

/* Mature operations UI refresh */
:root {
  --bg: #0b1118;
  --panel: #101923;
  --panel-2: #142131;
  --line: rgba(169, 184, 205, .16);
  --text: #f4f7fb;
  --muted: #9aa9bb;
  --primary: #2f7dd1;
  --primary-2: #5aa6e8;
  --green: #26a978;
  --amber: #d89b2b;
  --red: #dd5c6f;
  --shadow: 0 14px 32px rgba(0, 0, 0, .28);
}
body {
  background:
    linear-gradient(180deg, #0d141d 0%, #0a1118 100%);
  color: var(--text);
}
.glass {
  background: linear-gradient(180deg, rgba(20, 32, 47, .96), rgba(14, 23, 34, .96));
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}
.shell {
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}
.sidebar {
  border-radius: 12px;
  padding: 16px;
  max-height: calc(100vh - 28px);
  position: sticky;
  top: 14px;
}
.sidebar nav {
  gap: 4px;
  margin-top: 18px;
  overflow: auto;
  padding-right: 4px;
}
.brand-mark {
  border-radius: 10px;
  background: #1f7ac5;
  color: #fff;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .18);
}
.brand-mark.small {
  border-radius: 8px;
}
.brand-row h2, .topbar h1, .mobile-app-top h1 {
  letter-spacing: 0;
}
.nav-btn {
  border-radius: 8px;
  padding: 11px 12px;
  color: #dbe5f1;
}
.nav-btn.active {
  background: rgba(47, 125, 209, .18);
  border-color: rgba(90, 166, 232, .34);
  color: #fff;
  box-shadow: inset 3px 0 0 #5aa6e8;
}
.nav-btn:hover {
  background: rgba(169, 184, 205, .08);
  border-color: rgba(169, 184, 205, .18);
}
.topbar, .login-card, .panel, .metric-card, .driver-picker {
  border-radius: 12px;
}
.topbar {
  padding: 18px 20px;
  border-color: var(--line);
}
.right-chip, .company-chip {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(169, 184, 205, .08);
}
.metric-card {
  background: linear-gradient(180deg, rgba(22, 35, 51, .98), rgba(15, 25, 37, .98));
  border: 1px solid var(--line);
}
.metric-card strong {
  font-size: 30px;
  letter-spacing: 0;
}
.panel-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(169, 184, 205, .10);
}
.panel-head h3 {
  font-size: 17px;
}
input, select, textarea {
  border-radius: 8px;
  background: #0d1722;
  border-color: rgba(169, 184, 205, .22);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(90, 166, 232, .72);
  background: #0f1c2a;
}
.btn {
  border-radius: 8px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn.primary {
  background: #2f7dd1;
  color: #fff;
}
.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(169, 184, 205, .08);
}
.list-card, .issue-card, .inspection-card, .load-card, .mobile-card, .mobile-mini-card, .document-card {
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.list-card:hover, .issue-card:hover, .inspection-card:hover, .load-card:hover, .document-card:hover {
  border-color: rgba(90, 166, 232, .38);
  background: rgba(90, 166, 232, .055);
}
table {
  border-spacing: 0;
}
th {
  color: #c8d4e3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(169, 184, 205, .05);
}
th:first-child { border-top-left-radius: 8px; }
th:last-child { border-top-right-radius: 8px; }
td {
  color: #e8eef6;
}
.tag {
  border-radius: 7px;
  padding: 5px 8px;
  letter-spacing: .03em;
}
.tag.active, .tag.pass, .tag.closed, .tag.completed, .tag.ready, .tag.live {
  background: rgba(38,169,120,.14);
  color: #70ddb5;
}
.tag.needs_review, .tag.medium, .tag.open, .tag.pass_with_defects, .tag.stale {
  background: rgba(216,155,43,.15);
  color: #f0c46f;
}
.tag.out_of_service, .tag.critical, .tag.fail, .tag.error, .tag.offline, .tag.not_tracking {
  background: rgba(221,92,111,.16);
  color: #f092a0;
}
.tag.low, .tag.started, .tag.driver {
  background: rgba(90,166,232,.15);
  color: #9dccf3;
}
.load-stop span {
  border-radius: 8px;
  background: rgba(90,166,232,.14);
  color: #9dccf3;
}
.map-canvas {
  border-radius: 10px;
}
.map-panel {
  min-height: 620px;
}
.mobile-app-shell {
  max-width: 560px;
}
.mobile-app-top, .mobile-tabbar {
  border-radius: 12px;
  background: rgba(16, 25, 36, .97);
}
.mobile-tabbar .nav-btn {
  border-radius: 8px;
}
.phone-frame {
  border-radius: 18px;
  border-width: 1px;
}
.phone-notch {
  display: none;
}
.empty-state {
  border-radius: 10px;
}
@media (max-width: 1080px) {
  .sidebar {
    position: static;
    max-height: none;
  }
}
@media (max-width: 700px) {
  .sidebar, .topbar, .panel, .metric-card {
    border-radius: 10px;
  }
}

/* Dispatcher365 marketing front door */
.marketing-body {
  min-height: 100vh;
  background: #081018;
  color: #f6f8fb;
}
.marketing-body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(169,184,205,.14);
  background: rgba(8,16,24,.88);
  backdrop-filter: blur(14px);
}
.marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.marketing-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #2f7dd1;
  font-weight: 900;
}
.marketing-brand strong {
  font-size: 18px;
}
.marketing-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.marketing-nav a {
  color: #c8d4e3;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.marketing-nav a:hover {
  color: #fff;
}
.marketing-login {
  padding: 10px 14px;
  border: 1px solid rgba(169,184,205,.2);
  border-radius: 8px;
  background: rgba(169,184,205,.08);
}
.marketing-track {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(90,166,232,.14);
  border: 1px solid rgba(90,166,232,.28);
  color: #dbeeff !important;
}
.marketing-hero {
  min-height: calc(100vh - 75px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 620px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(8,16,24,.94) 0%, rgba(8,16,24,.82) 48%, rgba(8,16,24,.46) 100%),
    url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1800&q=80") center / cover;
}
.hero-copy {
  max-width: 760px;
}
.hero-copy h1 {
  margin-top: 14px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-lede {
  max-width: 680px;
  margin-top: 22px;
  color: #d2deec;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.trust-row span {
  padding: 8px 10px;
  border: 1px solid rgba(169,184,205,.18);
  border-radius: 8px;
  background: rgba(8,16,24,.58);
  color: #c8d4e3;
  font-size: 13px;
  font-weight: 700;
}
.product-preview {
  border: 1px solid rgba(169,184,205,.22);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(14,23,34,.9);
  box-shadow: 0 28px 80px rgba(0,0,0,.46);
}
.preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(169,184,205,.14);
  background: #101923;
}
.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #5aa6e8;
}
.preview-top span:nth-child(2) { background: #d89b2b; }
.preview-top span:nth-child(3) { background: #26a978; }
.preview-top strong {
  margin-left: auto;
  color: #dbe5f1;
  font-size: 13px;
}
.preview-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 420px;
}
.preview-grid aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-right: 1px solid rgba(169,184,205,.12);
  background: #0d1722;
}
.preview-grid aside b {
  margin-top: 8px;
  color: #fff;
}
.preview-grid aside small {
  color: #9aa9bb;
}
.preview-grid section {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.preview-map {
  position: relative;
  min-height: 270px;
  border: 1px solid rgba(169,184,205,.14);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    #0a1522;
  background-size: 44px 44px;
}
.preview-map::after {
  content: "";
  position: absolute;
  inset: 22% 16% 18% 22%;
  border: 3px solid rgba(90,166,232,.6);
  border-left-color: transparent;
  border-bottom-color: rgba(38,169,120,.55);
  border-radius: 42%;
}
.preview-map i {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: #26a978;
  color: #06111b;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,.34);
}
.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.preview-cards article {
  padding: 12px;
  border: 1px solid rgba(169,184,205,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}
.preview-cards span {
  color: #9aa9bb;
  font-size: 12px;
}
.preview-cards strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}
.marketing-section, .workflow-band, .marketing-cta {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
}
.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}
.section-heading h2, .marketing-cta h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}
.marketing-card-grid, .role-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.marketing-card-grid article, .role-panels article, .workflow-steps article {
  padding: 20px;
  border: 1px solid rgba(169,184,205,.16);
  border-radius: 12px;
  background: #101923;
}
.marketing-card-grid p, .role-panels p, .workflow-steps p {
  margin-top: 10px;
  color: #aebdcd;
  line-height: 1.55;
}
.workflow-band {
  background: #0d1722;
  border-top: 1px solid rgba(169,184,205,.12);
  border-bottom: 1px solid rgba(169,184,205,.12);
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.workflow-steps span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(90,166,232,.16);
  color: #9dccf3;
  font-weight: 900;
}
.marketing-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  border-top: 1px solid rgba(169,184,205,.12);
  background: #101923;
}
.marketing-cta .btn {
  margin-top: 22px;
}
.marketing-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(169,184,205,.12);
  color: #9aa9bb;
}
.marketing-footer strong {
  color: #fff;
}
.signup-page {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 620px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px);
  min-height: calc(100vh - 75px);
  background:
    linear-gradient(90deg, rgba(8,16,24,.96), rgba(8,16,24,.88)),
    url("https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=1800&q=80") center / cover;
}
.signup-intro {
  max-width: 720px;
  position: sticky;
  top: 112px;
}
.signup-intro h1 {
  margin-top: 12px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
}
.signup-intro > p:not(.eyebrow) {
  margin-top: 18px;
  color: #d2deec;
  font-size: 18px;
  line-height: 1.6;
}
.signup-flow {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.signup-flow article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(169,184,205,.16);
  border-radius: 12px;
  background: rgba(16,25,35,.86);
}
.signup-flow span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(90,166,232,.18);
  color: #9dccf3;
  font-weight: 900;
}
.signup-flow small {
  color: #aebdcd;
}
.signup-card {
  padding: 22px;
  border: 1px solid rgba(169,184,205,.18);
  border-radius: 14px;
  background: rgba(16,25,35,.94);
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}
.signup-card h2 {
  margin-top: 4px;
  font-size: 24px;
}
.signup-card .soft-rule {
  margin: 6px 0;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup-message {
  min-height: 22px;
  color: #aebdcd;
}
.signup-message.success {
  color: #70ddb5;
}
.signup-message.error {
  color: #f092a0;
}
@media (max-width: 1080px) {
  .marketing-hero {
    grid-template-columns: 1fr;
  }
  .signup-page {
    grid-template-columns: 1fr;
  }
  .signup-intro {
    position: static;
  }
  .product-preview {
    max-width: 720px;
  }
  .marketing-card-grid, .role-panels, .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .marketing-nav {
    align-items: flex-start;
  }
  .marketing-nav nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }
  .marketing-nav nav a:not(.marketing-login) {
    display: none;
  }
  .marketing-hero {
    padding-top: 54px;
  }
  .hero-copy h1 {
    font-size: 42px;
  }
  .product-preview {
    display: none;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .marketing-card-grid, .role-panels, .workflow-steps, .preview-cards {
    grid-template-columns: 1fr;
  }
  .marketing-footer {
    flex-direction: column;
  }
}

.tracking-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(8,16,24,.96), rgba(8,16,24,.82)),
    url("https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=1800&q=80") center / cover;
}
.tracking-shell { min-height:100vh; display:grid; place-items:center; padding:24px; }
.tracking-card { width:min(980px, 100%); border:1px solid rgba(169,184,205,.18); border-radius:14px; background:rgba(16,25,35,.96); box-shadow:0 28px 80px rgba(0,0,0,.42); overflow:hidden; }
.tracking-brand { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:18px 22px; border-bottom:1px solid rgba(169,184,205,.14); }
.tracking-brand a { color:#dbe5f1; text-decoration:none; font-weight:800; }
.tracking-brand-link { display:flex; align-items:center; gap:10px; }
.tracking-brand-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.tracking-brand-actions a { min-height:40px; display:inline-flex; align-items:center; justify-content:center; padding:9px 12px; border-radius:8px; }
.tracking-home-link { border:1px solid rgba(169,184,205,.2); background:rgba(169,184,205,.08); }
.tracking-brand span { width:42px; height:42px; display:grid; place-items:center; border-radius:10px; background:#2f7dd1; color:#fff; font-weight:900; }
.tracking-content { display:grid; gap:18px; padding:24px; }
.tracking-lookup { display:grid; gap:16px; max-width:720px; }
.tracking-lookup h1 { font-size:clamp(38px, 6vw, 68px); line-height:1; }
.tracking-lookup > p:not(.eyebrow) { color:#c8d4e3; font-size:18px; line-height:1.5; }
.tracking-lookup-form { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:12px; align-items:end; margin-top:8px; }
.tracking-message { padding:12px 14px; border:1px solid rgba(221,92,111,.28); border-radius:10px; background:rgba(221,92,111,.12); color:#f092a0; }
.tracking-hero { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.tracking-hero h1 { margin-top:8px; font-size:clamp(34px, 5vw, 58px); }
.tracking-hero p { margin-top:8px; color:#c8d4e3; }
.tracking-status { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 12px; border-radius:999px; background:rgba(90,166,232,.16); color:#9dccf3; font-weight:900; text-transform:uppercase; font-size:12px; white-space:nowrap; }
.tracking-status.delivered { background:rgba(38,169,120,.16); color:#70ddb5; }
.tracking-status.exception, .tracking-status.cancelled { background:rgba(221,92,111,.16); color:#f092a0; }
.tracking-progress { display:grid; grid-template-columns:repeat(6, 1fr); gap:8px; }
.tracking-progress span { min-height:44px; display:grid; place-items:center; text-align:center; border:1px solid rgba(169,184,205,.16); border-radius:10px; color:#9aa9bb; font-size:12px; font-weight:800; }
.tracking-progress span.done { border-color:rgba(90,166,232,.45); background:rgba(90,166,232,.12); color:#dbeeff; }
.tracking-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.tracking-grid article, .tracking-details div, .tracking-section { border:1px solid rgba(169,184,205,.16); border-radius:12px; background:rgba(255,255,255,.035); padding:16px; }
.tracking-grid span, .tracking-details span { display:block; color:#9aa9bb; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.tracking-grid strong { display:block; margin-top:8px; font-size:20px; }
.tracking-grid p, .tracking-grid small { display:block; margin-top:8px; color:#c8d4e3; overflow-wrap:anywhere; }
.tracking-details { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; }
.tracking-details strong { display:block; margin-top:8px; overflow-wrap:anywhere; }
.tracking-section h2 { font-size:20px; margin-bottom:14px; }
.tracking-timeline { display:grid; gap:10px; }
.tracking-timeline div { display:grid; grid-template-columns:16px 1fr auto; gap:10px; align-items:start; padding:10px; border:1px solid rgba(169,184,205,.12); border-radius:10px; background:rgba(8,16,24,.36); }
.tracking-timeline div > span { width:12px; height:12px; margin-top:4px; border-radius:999px; background:#2f7dd1; }
.tracking-timeline p { grid-column:2 / -1; color:#c8d4e3; }
.tracking-timeline small { color:#9aa9bb; }
.tracking-docs { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:10px; }
.tracking-docs a { display:grid; gap:6px; padding:12px; border:1px solid rgba(169,184,205,.16); border-radius:10px; color:#f4f7fb; text-decoration:none; background:rgba(8,16,24,.36); }
.tracking-docs span, .tracking-docs small { color:#9aa9bb; }
@media (max-width: 760px) {
  .tracking-hero, .tracking-grid, .tracking-details, .tracking-progress, .tracking-lookup-form { grid-template-columns:1fr; display:grid; }
  .tracking-timeline div { grid-template-columns:16px 1fr; }
  .tracking-timeline small { grid-column:2; }
  .tracking-brand { align-items:flex-start; }
  .tracking-brand-actions { flex-wrap:wrap; }
}

/* Unified Dispatcher365 theme and icon system */
:root {
  --bg: #0a1118;
  --glass: rgba(16, 25, 35, .94);
  --panel: rgba(16, 25, 35, .96);
  --panel-2: rgba(22, 34, 49, .96);
  --line: rgba(169, 184, 205, .16);
  --line-strong: rgba(169, 184, 205, .24);
  --text: #f4f7fb;
  --muted: #9aa9bb;
  --primary: #2f7dd1;
  --primary-2: #5aa6e8;
  --green: #26a978;
  --amber: #d89b2b;
  --red: #dd5c6f;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .32);
}
.ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-mark,
.marketing-brand span,
.tracking-brand span {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2f7dd1 0%, #26a978 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .16), 0 10px 24px rgba(47, 125, 209, .22);
}
.brand-mark.small {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  font-size: 12px;
}
.brand-row,
.marketing-brand,
.tracking-brand-link {
  align-items: center;
  gap: 12px;
}
.brand-row h2,
.marketing-brand strong,
.tracking-brand a {
  letter-spacing: 0;
}
.sidebar,
.topbar,
.login-card,
.panel,
.metric-card,
.driver-picker,
.signup-card,
.tracking-card,
.product-preview {
  border-radius: var(--radius-lg);
}
.glass,
.metric-card,
.panel,
.signup-card,
.tracking-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-color: var(--line);
}
.btn,
.marketing-login,
.marketing-track,
.right-chip,
.company-chip,
.tag,
input,
select,
textarea {
  border-radius: var(--radius);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.primary,
.marketing-track {
  background: #2f7dd1;
  border-color: rgba(90, 166, 232, .38);
  color: #fff !important;
}
.btn.ghost,
.marketing-login,
.right-chip,
.company-chip {
  background: rgba(169, 184, 205, .08);
  border: 1px solid var(--line);
  color: #dbe5f1;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  padding: 11px 12px;
  color: #dbe5f1;
}
.nav-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-btn .ui-icon {
  color: #9dccf3;
}
.nav-btn.active {
  background: rgba(47, 125, 209, .18);
  border-color: rgba(90, 166, 232, .36);
  color: #fff;
  box-shadow: inset 3px 0 0 #5aa6e8;
}
.nav-btn.active .ui-icon {
  color: #fff;
}
.nav-btn:hover {
  background: rgba(169, 184, 205, .09);
  border-color: rgba(169, 184, 205, .22);
}
.mobile-tabbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mobile-tabbar .nav-btn {
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 9px 6px;
  min-height: 58px;
  text-align: center;
}
.mobile-tabbar .nav-btn span {
  font-size: 11px;
  white-space: normal;
  line-height: 1.15;
}
.mobile-app-top,
.mobile-tabbar,
.mobile-card,
.mobile-mini-card {
  border-radius: var(--radius-lg);
  border-color: var(--line);
  background: rgba(16, 25, 35, .97);
}
.list-card,
.issue-card,
.inspection-card,
.load-card,
.document-card,
.tracking-grid article,
.tracking-details div,
.tracking-section,
.signup-flow article,
.workflow-steps article,
.role-panel,
.marketing-card,
.preview-card {
  border-radius: var(--radius);
  border-color: var(--line);
}
.marketing-nav,
.tracking-brand {
  border-color: var(--line);
}
.tracking-brand-actions a {
  border-radius: var(--radius);
}
.tracking-home-link {
  border: 1px solid var(--line);
  background: rgba(169, 184, 205, .08);
}
.tracking-home-link:hover,
.tracking-brand-actions a:hover {
  color: #fff;
  border-color: rgba(90, 166, 232, .36);
  background: rgba(90, 166, 232, .12);
}
.marketing-body,
.tracking-body,
body {
  background-color: var(--bg);
}
