/* North Shore Logistics — Fleet Command design system
   Brand: North Shore navy #0A2D5E, royal blue #1565C0, sky swoosh #6CC0F5 (from the brochure)
   Elevated with obsidian depth, platinum hairlines and a restrained champagne accent. */

:root {
  color-scheme: dark;
  /* surfaces */
  --obsidian: #03070f;
  --bg: #050b18;
  --bg-2: #081429;
  --surface: #0b1a33;
  --surface-2: #0f2142;
  --glass: rgba(16, 33, 66, .52);
  --glass-2: rgba(22, 44, 86, .62);
  --line: rgba(156, 186, 232, .11);
  --line-2: rgba(156, 186, 232, .22);
  --line-3: rgba(196, 216, 246, .38);
  /* ink */
  --text: #ecf2fb;
  --text-2: #a9b9d1;
  --text-3: #7083a2;
  /* brand */
  --navy: #0a2d5e;
  --royal: #1565c0;
  --blue: #3d8fe0;     /* chart: client */
  --sky: #6cc0f5;
  --champagne: #b38840; /* chart: driver */
  --champagne-hi: #e6c88f;
  --violet: #8a6fd8;   /* chart: third series / maintenance */
  --platinum: linear-gradient(135deg, #f4f7fb 0%, #b9c6d8 38%, #eef3fa 52%, #8e9cb2 100%);
  /* status (reserved) */
  --good: #45c48f;
  --warn: #f0aa45;
  --bad: #f2645f;
  --info: #6cc0f5;
  --muted: #7d8da6;
  /* type */
  --f-display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --f-ui: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  /* rhythm */
  --r-s: 8px; --r: 14px; --r-l: 22px; --r-xl: 30px;
  --gut: clamp(16px, 3vw, 40px);
  --rail: 248px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .04) inset;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 500 14.5px/1.55 var(--f-ui); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { /* layered atmosphere */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(21, 101, 192, .22), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(10, 45, 94, .55), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(108, 192, 245, .04), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--obsidian) 100%);
}
body::after { /* fine grain */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: #9bd6fb; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(108, 192, 245, .3); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 40px; text-align: center; }

/* ------------------------------------------------------------------ type */
.eyebrow { font: 700 11px/1 var(--f-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--sky); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.display { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; letter-spacing: -.02em; line-height: .98; margin: 0; }
.h1 { font-size: clamp(30px, 4.4vw, 58px); }
.h2 { font-size: clamp(22px, 2.4vw, 32px); }
.h3 { font: 700 15px/1.3 var(--f-ui); margin: 0; letter-spacing: .01em; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.lede { color: var(--text-2); font-size: 15.5px; max-width: 64ch; margin: 10px 0 0; }
.lede .serif { color: var(--champagne-hi); font-size: 1.18em; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1, 'lnum' 1; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; letter-spacing: .04em; }
.money-cur { font-size: .52em; letter-spacing: .14em; color: var(--text-3); margin-right: .35em; font-weight: 700; vertical-align: .55em; font-family: var(--f-ui); }

/* ------------------------------------------------------------------ app frame */
.frame { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 22px 14px 18px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 41, .92), rgba(3, 7, 15, .96));
  backdrop-filter: blur(20px); z-index: 30;
}
.rail-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; color: var(--text); }
.rail-brand .bn { font: 800 13px/1.05 var(--f-display); font-stretch: 125%; letter-spacing: .08em; }
.rail-brand .bn small { display: block; font: 700 9px/1 var(--f-ui); letter-spacing: .42em; color: var(--sky); margin-top: 5px; }
.medallion { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; position: relative; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 0 4px rgba(108, 192, 245, .12), 0 10px 30px -8px rgba(108, 192, 245, .45); }
.medallion img { width: 88%; height: 88%; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: none; flex: 1; }
.nav-sec { font: 700 9.5px/1 var(--f-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--text-3); padding: 16px 12px 8px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px;
  color: var(--text-2); font-weight: 600; font-size: 13.5px; transition: color .25s, background .25s;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { color: var(--text); background: rgba(108, 192, 245, .06); }
.nav a[aria-current='page'] { color: #fff; background: linear-gradient(90deg, rgba(21, 101, 192, .34), rgba(21, 101, 192, .06)); }
.nav a[aria-current='page']::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--sky), var(--royal)); box-shadow: 0 0 14px var(--sky); }
.nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font: 800 10.5px/20px var(--f-ui); text-align: center; }
.nav .count.soft { background: rgba(108, 192, 245, .16); color: var(--sky); }
.rail-foot { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.me .who { line-height: 1.2; min-width: 0; }
.me .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { font-size: 11px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.storage-chip { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: var(--text-3); padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line-2); line-height: 1.35; }
.storage-chip svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--warn); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px var(--gut);
  background: linear-gradient(180deg, rgba(5, 11, 24, .9), rgba(5, 11, 24, .6)); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar .crumbs { font-size: 12px; color: var(--text-3); letter-spacing: .06em; display: flex; gap: 8px; align-items: center; min-width: 0; }
.topbar .crumbs b { color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.today-chip { font-size: 12px; color: var(--text-2); display: flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.today-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 2.4s infinite; }
.today-chip.exempt .dot { background: var(--champagne-hi); box-shadow: 0 0 10px var(--champagne-hi); }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--text-2); cursor: pointer; transition: .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font: 800 10px/18px var(--f-ui); text-align: center; padding: 0 4px; box-shadow: 0 0 0 3px var(--bg); }
.demo-ribbon { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px var(--gut); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #2b1d00; background: repeating-linear-gradient(135deg, #f0c56a 0 14px, #e9b84f 14px 28px); text-transform: uppercase; }
.demo-ribbon button { background: #2b1d00; color: #f6d68e; border: 0; padding: 4px 10px; border-radius: 6px; font-weight: 700; letter-spacing: .06em; cursor: pointer; font-size: 11px; text-transform: uppercase; }
.view { padding: 28px var(--gut) 90px; flex: 1; min-width: 0; }
.view-enter > * { animation: rise .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* mobile tab bar */
.tabbar { display: none; }

/* ------------------------------------------------------------------ page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head .title { min-width: 0; }
.page-head .title .display { margin-top: 12px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--b); background: rgba(255, 255, 255, .03); color: var(--text); font-weight: 700; font-size: 13px;
  letter-spacing: .02em; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .3s; white-space: nowrap; text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: rgba(255, 255, 255, .07); border-color: var(--line-3); color: var(--text); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, #2a8ae6 0%, var(--royal) 55%, #0d4b9a 100%); box-shadow: 0 10px 30px -10px rgba(42, 138, 230, .7), 0 1px 0 rgba(255, 255, 255, .25) inset; }
.btn.primary:hover { box-shadow: 0 14px 40px -10px rgba(42, 138, 230, .9), 0 1px 0 rgba(255, 255, 255, .3) inset; transform: translateY(-1px); }
.btn.gold { border: 0; color: #1d1404; background: linear-gradient(135deg, #f3dca8, #c9a35a 60%, #9c7531); box-shadow: 0 10px 30px -12px rgba(201, 163, 90, .7); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.btn.danger { --b: rgba(242, 100, 95, .45); color: #ffb3b0; }
.btn.danger:hover { background: rgba(242, 100, 95, .12); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 11px; border-radius: 7px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .7s linear infinite; }

/* ------------------------------------------------------------------ panels */
.panel { position: relative; border-radius: var(--r-l); background: linear-gradient(180deg, var(--glass), rgba(8, 20, 41, .5)); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(196, 216, 246, .28), transparent 30%, transparent 70%, rgba(108, 192, 245, .14)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.panel.flat { box-shadow: none; background: rgba(11, 26, 51, .45); }
.panel.tight { padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head .h3 { display: flex; align-items: center; gap: 10px; }
.panel-head .sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 360px; }
.span-2 { grid-column: span 2; }
.stack { display: grid; gap: 18px; align-content: start; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.hr { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ------------------------------------------------------------------ hero (command centre) */
.hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 360px; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, #123a78 0%, #0a2550 35%, #061227 70%); border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -50px rgba(21, 101, 192, .55);
}
.hero .hero-img { position: absolute; right: -4%; bottom: -6%; width: 64%; max-width: 900px; z-index: -1; filter: saturate(1.05) contrast(1.05); opacity: .95; will-change: transform; }
.hero .road { position: absolute; inset: auto 0 0 0; height: 46%; z-index: -2; background: linear-gradient(180deg, transparent, rgba(3, 7, 15, .7)); }
.hero .road::after { content: ''; position: absolute; left: 0; right: 0; bottom: 18%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 46px, transparent 46px 92px); animation: lane 2.4s linear infinite; opacity: .35; }
.hero .swoosh { position: absolute; left: -10%; right: -10%; top: 58%; height: 140px; z-index: -1; opacity: .5; }
.hero-body { position: relative; padding: clamp(24px, 4vw, 46px); max-width: 640px; }
.hero-figure { margin-top: 26px; }
.hero-figure .label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); font-weight: 700; }
.hero-figure .big { font: 800 clamp(40px, 6vw, 78px)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.03em; margin-top: 10px; background: linear-gradient(180deg, #fff 30%, #a9c6ec); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-figure .big .money-cur { -webkit-text-fill-color: var(--sky); color: var(--sky); }
.hero-split { display: flex; gap: 26px; margin-top: 20px; flex-wrap: wrap; }
.hero-split .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hero-split .k i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.hero-split .v { font: 700 19px/1.2 var(--f-ui); margin-top: 4px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

/* ------------------------------------------------------------------ KPI */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); }
.kpi { background: linear-gradient(180deg, rgba(11, 26, 51, .92), rgba(8, 20, 41, .92)); padding: 18px 18px 16px; position: relative; min-width: 0; }
.kpi .l { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.kpi .v { font: 700 22px/1.15 var(--f-ui); margin-top: 8px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v .money-cur { vertical-align: .35em; }
.kpi .d { font-size: 11.5px; color: var(--text-2); margin-top: 4px; }
.kpi.accent::after { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; background: linear-gradient(90deg, var(--sky), transparent); }
.kpi.link { cursor: pointer; transition: background .25s; }
.kpi.link:hover { background: linear-gradient(180deg, rgba(18, 40, 78, .95), rgba(10, 24, 50, .95)); }

/* ------------------------------------------------------------------ badges & chips */
.badge-s { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px; font: 800 10.5px/1.5 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; background: color-mix(in srgb, currentColor 10%, transparent); }
.badge-s .ic { font-size: 10px; width: 12px; text-align: center; }
.tone-good { color: var(--good); } .tone-warn { color: var(--warn); } .tone-bad { color: var(--bad); }
.tone-info { color: var(--info); } .tone-muted { color: var(--muted); } .tone-exempt { color: var(--champagne-hi); } .tone-violet { color: #b3a1f0; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.chip b { color: var(--text); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.plate { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 6px; background: linear-gradient(180deg, #fbfcfe, #dfe6f0); color: #0a1830; font: 800 13px/1.2 var(--f-display); font-stretch: 112%; letter-spacing: .12em; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 2px 0 rgba(0, 0, 0, .3), inset 0 0 0 2px #0a2d5e; white-space: nowrap; }
.plate::before { content: 'Z'; font-size: 8px; color: #fff; background: #198a4a; border-radius: 2px; padding: 1px 3px; letter-spacing: 0; }
.plate.lg { font-size: 22px; padding: 7px 16px; }
.plate.lg::before { font-size: 11px; padding: 2px 5px; }

/* ------------------------------------------------------------------ avatars & imagery */
.avatar { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #1c3f78, #0a2d5e); color: #fff; font: 800 calc(var(--s) * .36)/1 var(--f-display); font-stretch: 110%; letter-spacing: .02em; box-shadow: 0 0 0 1px var(--line-2); position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(108, 192, 245, .55); }
.thumb { width: 74px; height: 46px; border-radius: 9px; overflow: hidden; flex: none; background: linear-gradient(135deg, #e9eef6, #b8c4d6); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.ph { display: grid; place-items: center; color: #5b6b84; }
.thumb.ph svg { width: 26px; }
.veh-photo { background: radial-gradient(120% 90% at 50% 100%, #c9d4e4 0%, #eef2f8 55%, #fdfeff 100%); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; scrollbar-width: thin; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.t th { text-align: left; font: 700 10.5px/1.2 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; position: sticky; top: 0; background: rgba(9, 21, 43, .96); z-index: 1; }
.t th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.t th button:hover { color: var(--text); }
.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.n, .t th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tbody tr { transition: background .2s; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover, .t tbody tr:focus-within { background: rgba(108, 192, 245, .05); }
.t tbody tr.void td { opacity: .45; text-decoration: line-through; text-decoration-color: rgba(242, 100, 95, .6); }
.t tfoot td { font-weight: 800; border-top: 1px solid var(--line-2); padding: 12px; }
.cell-who { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.cell-who b { display: block; font-weight: 700; }
.cell-who span { font-size: 11.5px; color: var(--text-3); }
.t .neg { color: #ffb3b0; }
.t .pos { color: #8fe3bd; }

/* ------------------------------------------------------------------ filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { all: unset; cursor: pointer; padding: 7px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--text-2); position: relative; z-index: 1; transition: color .25s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { color: #fff; background: linear-gradient(135deg, rgba(42, 138, 230, .5), rgba(21, 101, 192, .4)); box-shadow: 0 0 0 1px rgba(108, 192, 245, .35) inset; }
.seg button:focus-visible { outline: 2px solid var(--sky); }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; color: var(--text-3); }
.search input { padding-left: 38px !important; }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span, .field > label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.field .req { color: var(--sky); }
.input, .field input:not([type='checkbox']):not([type='radio']):not([type='file']), .field select, .field textarea, .search input, select.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(3, 7, 15, .55); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: 14px; font-weight: 500;
}
.field textarea { height: auto; min-height: 86px; padding: 10px 13px; resize: vertical; line-height: 1.5; }
.field select, select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9b9d1' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field select option, select.input option { background: #0b1a33; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .search input:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(108, 192, 245, .15); background: rgba(3, 7, 15, .8); }
.field input[type='date'] { color-scheme: dark; }
.field .hint { font-size: 11.5px; color: var(--text-3); }
.field .err { font-size: 12px; color: #ff9d99; font-weight: 600; display: none; }
.field.invalid .err { display: block; animation: shake .35s; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(242, 100, 95, .12); }
.money-input { position: relative; }
.money-input::before { content: 'ZMW'; position: absolute; left: 13px; top: 50%; translate: 0 -50%; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--text-3); pointer-events: none; }
.money-input input { padding-left: 52px !important; font-variant-numeric: tabular-nums; font-weight: 700 !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; color: var(--text) !important; }
.check input { width: 18px; height: 18px; accent-color: var(--royal); margin-top: 2px; flex: none; }
.form-error { display: none; padding: 12px 14px; border-radius: 12px; background: rgba(242, 100, 95, .1); border: 1px solid rgba(242, 100, 95, .35); color: #ffc9c6; font-size: 13px; white-space: pre-line; }
.form-error.show { display: block; animation: rise .35s var(--ease-out); }
.form-error .btn { margin-top: 10px; }
.drop { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; border: 1px dashed var(--line-3); cursor: pointer; transition: .2s; }
.drop:hover { background: rgba(108, 192, 245, .05); border-color: var(--sky); }
.drop input { display: none; }
.drop .pv { width: 64px; height: 64px; border-radius: 10px; background: rgba(255, 255, 255, .05) center/cover; flex: none; display: grid; place-items: center; color: var(--text-3); }

/* ------------------------------------------------------------------ modal & drawer */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(2, 5, 12, .66); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .3s both; }
.scrim.closing { animation: fade .25s reverse both; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--r-xl); background: linear-gradient(180deg, #0f2142, #081429); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset; animation: modalIn .5s var(--ease-out) both; }
.modal.wide { width: min(980px, 100%); }
.modal.xwide { width: min(1180px, 100%); }
.scrim.closing .modal { animation: modalIn .25s reverse both; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 6px; position: sticky; top: 0; background: linear-gradient(180deg, #0f2142 70%, transparent); z-index: 2; }
.modal-head .display { font-size: 24px; margin-top: 8px; }
.modal-body { padding: 14px 26px 26px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #081429; flex-wrap: wrap; }
.drawer-scrim { place-items: stretch end; padding: 0; }
.drawer { width: min(620px, 100vw); height: 100vh; overflow: auto; background: linear-gradient(180deg, #0d1d3b, #060f22); border-left: 1px solid var(--line-2); box-shadow: -40px 0 120px -20px rgba(0, 0, 0, .8); animation: drawerIn .5s var(--ease-out) both; }
.scrim.closing .drawer { animation: drawerIn .25s reverse both; }
.review { display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; margin: 6px 0 4px; }
.review div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--text-2); }
.review dd { margin: 0; font-weight: 700; text-align: right; }
.review .big dd { font-size: 20px; }

/* ------------------------------------------------------------------ toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(15, 33, 66, .96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); backdrop-filter: blur(14px); animation: toastIn .5s var(--ease-out) both; font-size: 13.5px; }
.toast.out { animation: toastOut .35s ease both; }
.toast .ti { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; }
.toast.good .ti { background: rgba(69, 196, 143, .18); color: var(--good); }
.toast.bad .ti { background: rgba(242, 100, 95, .18); color: var(--bad); }
.toast.info .ti { background: rgba(108, 192, 245, .18); color: var(--sky); }
.toast b { display: block; }
.toast span { color: var(--text-2); font-size: 12.5px; }

/* ------------------------------------------------------------------ charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: rgba(156, 186, 232, .09); stroke-width: 1; }
.chart .axis-t { fill: var(--text-3); font: 600 10.5px var(--f-ui); }
.chart .lbl { fill: var(--text-2); font: 700 11px var(--f-ui); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s var(--ease-out) .15s forwards; }
.chart .area { animation: fade 1.2s .5s both; }
.chart .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .9s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms + 100ms); }
.chart .bar.h { transform-origin: 0 50%; animation-name: growX; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .target { stroke: var(--champagne-hi); stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; }
.chart .xhair { stroke: var(--line-3); stroke-width: 1; }
.chart .dotm { stroke: var(--bg); stroke-width: 2; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); font-weight: 600; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 7px; vertical-align: -1px; }
.legend i.dash { height: 0; border-top: 2px dashed var(--champagne-hi); border-radius: 0; width: 16px; vertical-align: 3px; }
.chart-tip { position: fixed; z-index: 300; pointer-events: none; min-width: 170px; padding: 11px 13px; border-radius: 12px; background: rgba(6, 15, 34, .97); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); font-size: 12.5px; transition: opacity .15s; }
.chart-tip .tt { font-weight: 800; margin-bottom: 6px; font-size: 12px; letter-spacing: .04em; }
.chart-tip .tr { display: flex; justify-content: space-between; gap: 18px; align-items: center; color: var(--text-2); }
.chart-tip .tr b { color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tip .tr i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.donut-c { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; }
.donut-c .ct { font: 800 22px/1 var(--f-display); font-stretch: 110%; }
.donut-legend { display: grid; gap: 16px; min-width: 0; }
.donut-legend .dl-k { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.donut-legend .dl-k i { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend .dl-k span { margin-left: auto; color: var(--text-2); letter-spacing: .04em; }
.donut-legend .dl-v { font: 700 18px/1.2 var(--f-ui); margin-top: 4px; white-space: nowrap; }

/* progress ring */
.ring { --p: 0; --s: 64px; --c: var(--sky); width: var(--s); height: var(--s); position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { stroke: rgba(156, 186, 232, .12); }
.ring .val { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease-out); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font: 800 calc(var(--s) * .22)/1 var(--f-ui); }
.bar-p { height: 6px; border-radius: 6px; background: rgba(156, 186, 232, .12); overflow: hidden; position: relative; }
.bar-p > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--royal), var(--sky)); transition: width 1.4s var(--ease-out); box-shadow: 0 0 12px rgba(108, 192, 245, .5); }
.bar-p.met > i { background: linear-gradient(90deg, #2e9b6f, var(--good)); }
.bar-p.exempt > i { background: linear-gradient(90deg, #8c6a2e, var(--champagne-hi)); }

/* ------------------------------------------------------------------ fleet showroom */
.showroom { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.car { position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #0f2142, #081429); transition: transform .5s var(--ease-out), box-shadow .5s, border-color .3s; cursor: pointer; transform-style: preserve-3d; }
.car:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -30px rgba(21, 101, 192, .5); border-color: var(--line-2); }
.car .stage { position: relative; height: 196px; overflow: hidden; }
.car .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.car:hover .stage img { transform: scale(1.05); }
.car .stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 20, 41, .95)); }
.car .stage .tag { position: absolute; top: 14px; left: 14px; z-index: 1; }
.car .stage .st { position: absolute; top: 14px; right: 14px; z-index: 1; background: rgba(5, 11, 24, .8); backdrop-filter: blur(8px); }
.car .info { padding: 4px 18px 18px; position: relative; }
.car .info .name { font: 800 19px/1.1 var(--f-display); font-stretch: 112%; margin-top: -14px; position: relative; }
.car .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.car .meta .l { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.car .meta .v { font-size: 13px; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ profile heroes */
.profile-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); min-height: 340px; background: radial-gradient(120% 120% at 80% 0%, #143e7e, #08193a 50%, #040b1a); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); isolation: isolate; }
.profile-hero .ph-left { padding: clamp(22px, 3.4vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; z-index: 2; }
.profile-hero .ph-right { position: relative; min-height: 280px; }
.profile-hero .ph-right .vimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 28%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); will-change: transform; }
.profile-hero .ph-right .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.portrait { --s: 128px; width: var(--s); height: var(--s); border-radius: 28px; overflow: hidden; flex: none; background: linear-gradient(135deg, #1f4a8a, #0a2d5e); display: grid; place-items: center; font: 800 46px/1 var(--f-display); font-stretch: 112%; color: #fff; box-shadow: 0 0 0 1px var(--line-3), 0 30px 60px -20px rgba(0, 0, 0, .8); position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .edit { position: absolute; inset: auto 8px 8px auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 22px; }
.facts .l { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.facts .v { font-weight: 700; margin-top: 3px; overflow-wrap: anywhere; }
.qa { display: grid; gap: 0; }
.qa > div { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, max-content); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.qa > div:last-child { border-bottom: 0; }
.qa dt { color: var(--text-2); font-size: 13px; }
.qa dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: flex-end; align-items: center; }

/* timeline */
.timeline { position: relative; display: grid; gap: 4px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--line-3), transparent); }
.tl { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; padding: 8px 0; align-items: start; }
.tl .pin { width: 23px; height: 23px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-3); display: grid; place-items: center; font-size: 10px; position: relative; z-index: 1; }
.tl .pin.good { border-color: var(--good); color: var(--good); }
.tl .pin.bad { border-color: var(--bad); color: var(--bad); }
.tl .pin.warn { border-color: var(--warn); color: var(--warn); }
.tl .pin.info { border-color: var(--sky); color: var(--sky); }
.tl .what b { display: block; font-size: 13.5px; }
.tl .what span { font-size: 12px; color: var(--text-3); }
.tl .amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { all: unset; cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 13px; color: var(--text-3); position: relative; white-space: nowrap; transition: color .2s; }
.tabs button:hover, .tabs a:hover { color: var(--text); }
.tabs [aria-selected='true'] { color: var(--text); }
.tabs [aria-selected='true']::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--sky), var(--royal)); box-shadow: 0 0 12px var(--sky); }
.tabs :focus-visible { outline: 2px solid var(--sky); border-radius: 8px; }

/* alerts list */
.alert { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; padding: 14px; border-radius: 14px; align-items: start; transition: background .2s; position: relative; }
.alert + .alert { margin-top: 2px; }
.alerts-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.alert:hover { background: rgba(108, 192, 245, .04); }
.alert .sev { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 13px; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 12%, transparent); }
.alert.critical .sev { color: var(--bad); } .alert.warning .sev { color: var(--warn); } .alert.info .sev { color: var(--sky); }
.alert .body b { display: block; font-size: 13.5px; }
.alert .body p { margin: 3px 0 0; color: var(--text-2); font-size: 12.5px; }
.alert .body .meta { font-size: 11px; color: var(--text-3); margin-top: 6px; letter-spacing: .04em; }
.alert.unread::before { content: ''; position: absolute; left: 3px; top: 22px; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 8px var(--sky); }
.alert.resolved { opacity: .5; }
.alert .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding: 4px 8px; }
.cal .day { min-height: 104px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11, 26, 51, .35); padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal .day.out { opacity: .35; }
.cal .day.today { border-color: var(--sky); box-shadow: 0 0 0 1px var(--sky) inset, 0 0 30px -10px var(--sky); }
.cal .day.exempt .dn::after { content: '◇'; font-size: 9px; color: var(--champagne-hi); margin-left: 4px; }
.cal .dn { font-size: 12px; font-weight: 800; color: var(--text-2); }
.cal .ev { all: unset; cursor: pointer; display: block; font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid currentColor; background: color-mix(in srgb, currentColor 12%, transparent); }
.cal .ev:hover { background: color-mix(in srgb, currentColor 22%, transparent); }
.cal .ev.tone-good { color: var(--good); } .cal .ev.tone-warn { color: var(--warn); } .cal .ev.tone-bad { color: var(--bad); }
.cal .ev.tone-info { color: var(--info); } .cal .ev.tone-muted { color: var(--muted); } .cal .ev.tone-violet { color: #b3a1f0; }
.cal .ev:focus-visible { outline: 2px solid var(--sky); }

/* empty states */
.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty .em-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(108, 192, 245, .15), rgba(21, 101, 192, .08)); border: 1px solid var(--line-2); color: var(--sky); }
.empty .em-ic svg { width: 28px; }
.empty h3 { color: var(--text); font: 800 20px/1.2 var(--f-display); font-stretch: 112%; margin: 0 0 8px; }
.empty p { margin: 0 auto 18px; max-width: 46ch; }
.onboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); margin-top: 24px; }
.onboard .st { background: rgba(8, 20, 41, .9); padding: 22px; }
.onboard .st .n { font: 800 34px/1 var(--f-display); font-stretch: 120%; color: transparent; -webkit-text-stroke: 1px var(--line-3); }
.onboard .st.done .n { -webkit-text-stroke: 1px var(--good); }
.onboard .st h4 { margin: 12px 0 6px; font-size: 15px; }
.onboard .st p { margin: 0 0 14px; font-size: 12.5px; color: var(--text-2); }

/* skeleton / loader */
.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.skel { border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }

/* notice */
.notice { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(240, 170, 69, .35); background: linear-gradient(90deg, rgba(240, 170, 69, .1), rgba(240, 170, 69, .02)); font-size: 13px; color: var(--text-2); align-items: flex-start; }
.notice svg { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: 1px; }
.notice b { color: var(--text); }
.notice.info { border-color: rgba(108, 192, 245, .3); background: linear-gradient(90deg, rgba(108, 192, 245, .1), rgba(108, 192, 245, .02)); }
.notice.info svg { color: var(--sky); }
.notice.exempt { border-color: rgba(230, 200, 143, .4); background: linear-gradient(90deg, rgba(179, 136, 64, .16), rgba(179, 136, 64, .03)); }
.notice.exempt svg { color: var(--champagne-hi); }
.explain { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.explain li { padding-left: 18px; position: relative; }
.explain li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--sky); }

/* ------------------------------------------------------------------ login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); position: relative; overflow: hidden; }
.login-art { position: relative; overflow: hidden; background: radial-gradient(130% 100% at 30% 0%, #15468c 0%, #0a2550 40%, #040b1a 80%); }
.login-art .skyline { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(3, 7, 15, .9)); }
.login-art .cars { position: absolute; left: -6%; right: -6%; bottom: 8%; will-change: transform; animation: carsIn 1.8s var(--ease-out) .9s both; }
.login-art .cars img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)); }
.login-art .lanes { position: absolute; left: 0; right: 0; bottom: 6%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .6) 0 60px, transparent 60px 120px); animation: lane 1.6s linear infinite; opacity: .3; }
.login-art .beam { position: absolute; width: 140%; height: 220px; left: -20%; top: 34%; background: linear-gradient(180deg, transparent, rgba(108, 192, 245, .16), transparent); transform: rotate(-8deg); filter: blur(18px); animation: beam 7s ease-in-out infinite alternate; }
.login-art .wordmark { position: absolute; left: clamp(24px, 5vw, 64px); top: clamp(24px, 6vh, 64px); right: 24px; }
.login-art .wordmark .eyebrow { color: #9fd3f8; }
.login-art .wordmark h1 { font: 800 clamp(38px, 5.4vw, 84px)/.92 var(--f-display); font-stretch: 125%; letter-spacing: -.02em; margin: 18px 0 0; }
.login-art .wordmark h1 span { display: block; overflow: hidden; }
.login-art .wordmark h1 span i { display: block; font-style: normal; animation: lineUp 1.1s var(--ease-out) both; }
.login-art .wordmark h1 span:nth-child(2) i { animation-delay: .12s; color: transparent; -webkit-text-stroke: 1.4px rgba(236, 242, 251, .85); }
.login-art .wordmark .tagline { margin-top: 18px; font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 1.8vw, 26px); color: var(--champagne-hi); animation: fade 1.2s .6s both; }
.login-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 72px); background: linear-gradient(180deg, rgba(8, 20, 41, .96), rgba(3, 7, 15, .98)); border-left: 1px solid var(--line); }
.intro-logo { width: 96px; height: 96px; margin-bottom: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 8px rgba(108, 192, 245, .08), 0 30px 60px -20px rgba(108, 192, 245, .6); animation: logoIn 1.2s var(--ease-out) both; position: relative; }
.intro-logo::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(108, 192, 245, .35); animation: ripple 3s ease-out 1.2s infinite; }
.intro-logo img { width: 86%; }
.profiles { display: grid; gap: 10px; margin-top: 26px; }
.profile-btn { all: unset; cursor: pointer; display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: .3s var(--ease-out); animation: rise .7s var(--ease-out) both; animation-delay: calc(.5s + var(--i) * 90ms); }
.profile-btn:hover, .profile-btn:focus-visible { border-color: rgba(108, 192, 245, .5); background: linear-gradient(90deg, rgba(21, 101, 192, .2), rgba(21, 101, 192, .02)); transform: translateX(4px); }
.profile-btn:focus-visible { outline: 2px solid var(--sky); }
.profile-btn b { display: block; font-size: 15px; }
.profile-btn span { font-size: 12px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.profile-btn .go { color: var(--text-3); transition: .3s; }
.profile-btn:hover .go { color: var(--sky); transform: translateX(4px); }
.profile-btn.mgr .avatar { background: linear-gradient(135deg, #f3dca8, #b38840); color: #1d1404; }
.login-note { margin-top: 26px; font-size: 12px; color: var(--text-3); line-height: 1.55; border-top: 1px solid var(--line); padding-top: 18px; }
.login-note b { color: var(--text-2); }

/* ------------------------------------------------------------------ sign-in & account */
.login-form { display: grid; gap: 16px; margin-top: 26px; max-width: 460px; animation: rise .8s var(--ease-out) .4s both; }
.login-panel .lede { max-width: 460px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px !important; }
.pw-wrap .btn { position: absolute; right: 6px; top: 50%; translate: 0 -50%; }
.pw-meter { display: grid; gap: 6px; }
.pw-meter .bar-p > i { transition: width .4s var(--ease-out), background .3s; }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 22px; counter-reset: st; }
.steps li { counter-increment: st; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.steps li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-3); font-size: 11px; letter-spacing: 0; }
.steps li + li::after { content: none; }
.steps li + li { padding-left: 14px; border-left: 1px solid var(--line-2); }
.steps li.on { color: var(--sky); }
.steps li.on::before { background: var(--sky); color: #051229; border-color: var(--sky); }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; margin-top: 4px; }
.secure-form { max-width: 560px; }

/* ------------------------------------------------------------------ guided tour */
.tour { position: fixed; inset: 0; z-index: 400; animation: fade .35s both; }
.tour.out { animation: fade .3s reverse both; }
.tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(2, 5, 12, .74), 0 0 0 2px var(--sky), 0 0 40px 6px rgba(108, 192, 245, .45); transition: all .55s var(--ease-out); pointer-events: none; }
.tour-card { position: fixed; z-index: 1; width: min(380px, calc(100vw - 24px)); padding: 20px 20px 16px; border-radius: 20px; background: linear-gradient(180deg, #13284f, #0a1730); border: 1px solid var(--line-3); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); transition: left .5s var(--ease-out), top .5s var(--ease-out); outline: 0; }
.tour-card.in { animation: modalIn .5s var(--ease-out) both; }
.tour-card[data-center] { width: min(460px, calc(100vw - 24px)); padding: 28px; }
.tour-card h3 { font-size: 22px; margin: 12px 0 8px; }
.tour-card[data-center] h3 { font-size: 28px; }
.tour-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.tour-head { display: flex; justify-content: space-between; align-items: center; }
.tour-dots { display: flex; gap: 5px; margin: 18px 0 14px; }
.tour-dots i { height: 4px; flex: 1; border-radius: 4px; background: rgba(156, 186, 232, .15); }
.tour-dots i.done { background: rgba(108, 192, 245, .45); }
.tour-dots i.on { background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ report preview */
.preview-frame { width: 100%; height: min(70vh, 900px); border: 0; border-radius: var(--r); background: #eef2f8; }

/* ------------------------------------------------------------------ animation */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes drawerIn { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes lane { to { background-position: -120px 0; } }
@keyframes beam { to { transform: rotate(-4deg) translateY(30px); opacity: .6; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes carsIn { from { opacity: 0; transform: translateX(-8%) scale(1.04); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes logoIn { 0% { opacity: 0; transform: scale(.6) rotate(-30deg); } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes ripple { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
::view-transition-old(root) { animation: .22s ease both fadeOut; }
::view-transition-new(root) { animation: .45s var(--ease-out) both rise; }
@keyframes fadeOut { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .chart .line { stroke-dashoffset: 0; }
}
@media (forced-colors: active) {
  .badge-s, .chip, .btn { border: 1px solid CanvasText; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1080px) {
  :root { --rail: 84px; }
  .rail { padding: 18px 10px; align-items: center; }
  .rail-brand .bn, .nav a span, .nav-sec, .me .who, .storage-chip span, .nav .count { display: none; }
  .rail-brand { padding: 4px 0 16px; }
  .nav a { justify-content: center; padding: 12px; }
  .nav a[aria-current='page']::before { left: -10px; }
  .storage-chip { padding: 8px; justify-content: center; }
  .g-main, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero .ph-right { min-height: 220px; order: -1; }
  .profile-hero .ph-right .vimg { mask-image: linear-gradient(180deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 46vh; }
  .login-panel { border-left: 0; border-top: 1px solid var(--line); }
  .onboard { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .frame { grid-template-columns: 1fr; }
  .rail { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(5, 11, 24, .94); backdrop-filter: blur(18px); border-top: 1px solid var(--line-2); }
  .tabbar a, .tabbar button { all: unset; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; font-size: 10px; font-weight: 700; color: var(--text-3); letter-spacing: .02em; cursor: pointer; border-radius: 10px; position: relative; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar [aria-current='page'] { color: #fff; }
  .tabbar [aria-current='page'] svg { color: var(--sky); filter: drop-shadow(0 0 8px var(--sky)); }
  .tabbar .badge { position: absolute; top: 2px; right: 18%; min-width: 16px; height: 16px; border-radius: 8px; background: var(--bad); color: #fff; font: 800 9px/16px var(--f-ui); text-align: center; padding: 0 3px; }
  .topbar { padding: 10px 16px; }
  .today-chip .lbl, .topbar .crumbs > span { display: none; }
  .alerts-2 { grid-template-columns: 1fr !important; }
  .view { padding: 20px 16px 110px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 18px; }
  .g-2, .g-4, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .panel { padding: 16px; border-radius: 18px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .hero { min-height: 0; }
  .hero .hero-img { position: relative; width: 120%; right: auto; bottom: auto; margin: -10px -10% -20px; mask-image: linear-gradient(180deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .hero-body { padding: 22px; }
  .showroom { grid-template-columns: minmax(0, 1fr); }
  .cal { gap: 3px; }
  .cal .day { min-height: 64px; padding: 4px; border-radius: 8px; }
  .cal .ev { font-size: 0; height: 6px; padding: 0; border-left: 0; background: currentColor; border-radius: 3px; }
  .cal .dow { font-size: 9px; letter-spacing: .05em; padding: 2px; text-align: center; }
  .donut-c { grid-template-columns: 1fr; justify-items: center; }
  .modal { border-radius: 22px 22px 0 0; max-height: 92vh; width: 100%; align-self: end; }
  .scrim { padding: 0; place-items: end stretch; }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
  .page-head { margin-bottom: 20px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .onboard { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { max-width: none; }
  .alert { grid-template-columns: 30px minmax(0, 1fr); }
  .alert .acts { grid-column: 2; justify-content: flex-start; }
  .profile-hero .ph-left { gap: 18px; }
  .portrait { --s: 96px; font-size: 34px; border-radius: 22px; }
  .login-art { min-height: 52vh; }
  .toasts { bottom: 86px; right: 12px; width: calc(100vw - 24px); }
}
@media print {
  .rail, .topbar, .tabbar, .toasts, .demo-ribbon { display: none !important; }
  body { background: #fff; color: #000; }
}
