/* Bhipra · warm off-white surfaces, crisp white cards, quiet violet accents. */
:root {
  color-scheme: light;
  --canvas: #f6f5f2;
  --white: #fff;
  --surface-soft: #faf9f7;
  --ink: #252538;
  --muted: #87858f;
  --secondary: #666471;
  --line: #eeece9;
  --violet: #7852d5;
  --violet-dark: #6741bf;
  --violet-soft: #f2edfc;
  --green: #2caa7c;
  --amber: #dfa33e;
  --red: #df7580;
  --gray: #aaa7b5;
  --shadow: 0 3px 16px #30254304, 0 12px 36px #30254303;
  --ease: cubic-bezier(.22,1,.36,1);
  --sidebar: 222px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  font-size: 13px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button, input, select { border: 0; }
button { background: none; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button, a, input, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--violet); }
button { transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .25s var(--ease); }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .65; }
button[hidden], [hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg.icon { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[data-icon] { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.skip-link { position: fixed; z-index: 10000; left: 16px; top: -60px; padding: 12px 20px; background: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; z-index: 700; background: var(--white); border-right: 1px solid var(--line); padding: 29px 17px 0; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 14px 31px; width: max-content; }
.brand-mark { width: 32px; height: 41px; display: flex; color: var(--violet); }
.brand-wordmark { font-size: 24px; line-height: 1.12; font-weight: 800; letter-spacing: -.8px; }
.brand-wordmark > span { display: block; font-size: 10px; letter-spacing: 4.35px; font-weight: 600; color: #737081; margin: 5px 0 0 2px; }
.workspace-switch { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 11px; font-size: 11px; font-weight: 700; background: var(--surface-soft); margin-bottom: 28px; }
.workspace-switch small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; margin-top: 3px; }
.workspace-icon { width: 31px; height: 33px; background: white; border: 1px solid var(--line); border-radius: 7px; color: #807c89; }
.workspace-icon svg { width: 17px; }
.workspace-chevron { margin-left: auto; color: #a7a3ae; }
.workspace-chevron svg { width: 14px; }
.nav-caption { font-size: 9px; font-weight: 700; letter-spacing: 1.8px; color: #a09ca5; padding-left: 15px; margin-bottom: 12px; }
.primary-nav { display: flex; flex-direction: column; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 13px 15px; width: 100%; font-size: 12px; font-weight: 600; text-align: left; color: #777480; border-radius: 10px; transition: background .2s ease, color .2s ease; }
.nav-link svg { width: 19px; height: 19px; }
.nav-link:hover { background: var(--surface-soft); color: var(--ink); }
.nav-link.active { color: var(--violet); background: var(--violet-soft); }
.nav-active-dot { width: 5px; height: 5px; border-radius: 100%; background: currentColor; margin-left: auto; }
.nav-link:not(.active) .nav-active-dot { display: none; }
.nav-count { margin-left: auto; font-size: 10px; color: #98929f; padding: 2px 6px; background: #f5f3f5; border-radius: 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 25px; }
.journey-note { position: relative; overflow: hidden; padding: 19px 18px 22px; margin: 0 0 19px; border-radius: 13px; background: #f8f7f4; border: 1px solid #eeece8; }
.journey-icon { color: #9b85c5; margin-bottom: 12px; }
.journey-icon svg { width: 25px; height: 25px; }
.journey-note strong { position: relative; display: block; font-size: 12px; line-height: 1.8; font-weight: 700; z-index: 1; }
.journey-note p { color: #9b96a1; font-size: 10px; line-height: 1.8; margin-top: 8px; position: relative; z-index: 1; }
.journey-decoration { position: absolute; right: -37px; bottom: -28px; width: 120px; height: 120px; border: 1px solid #e9e4ef; border-radius: 50%; box-shadow: 0 0 0 14px #f8f7f4, 0 0 0 15px #e9e4ef, 0 0 0 30px #f8f7f4, 0 0 0 31px #e9e4ef; }
.sidebar-bottom .nav-link { font-size: 11px; padding: 12px; }
.external-icon { margin-left: auto; }
.external-icon svg { width: 14px; height: 14px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 21px 0 23px; margin-top: 17px; }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #ede7f8; color: var(--violet); font-size: 11px; font-weight: 800; }
.sidebar-profile strong { display: block; font-size: 10px; font-weight: 750; }
.sidebar-profile small { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; }
.sidebar-profile .icon-button { width: 22px; margin-left: auto; }
.sidebar-profile .icon-button svg { width: 15px; }
.main { margin-left: var(--sidebar); min-height: 100dvh; outline: 0; }
.topbar { height: 76px; border-bottom: 1px solid #eae8e4; display: flex; justify-content: space-between; align-items: center; padding: 0 32px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #9b97a0; }
.breadcrumb svg { width: 11px; height: 11px; }
.breadcrumb strong { font-weight: 600; color: #5d5868; }
.topbar-tools { display: flex; align-items: center; gap: 19px; }
.demo-label { font-size: 10px; color: #8b8593; display: flex; align-items: center; gap: 7px; }
.demo-label > span { width: 6px; height: 6px; background: #ad9abe; border-radius: 50%; }
.topbar-divider { height: 20px; width: 1px; background: #e7e3e9; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; color: #898391; flex: none; }
.icon-button:hover { background: #efecf4; color: var(--violet); }
.notification-button { position: relative; }
.notification-button i { position: absolute; top: 7px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 2px var(--canvas); }
.avatar-button { width: 34px; height: 34px; background: white; box-shadow: 0 0 0 4px #eeebe5; }
.page-content { padding: 30px 32px 0; max-width: 2000px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
.eyebrow { color: #a09aa5; font-size: 8px; font-weight: 700; letter-spacing: 1.9px; margin-bottom: 9px; }
h1 { font-size: clamp(25px,2.15vw,34px); font-weight: 750; letter-spacing: -1.5px; line-height: 1.3; }
.heading-dot { color: var(--violet); }
.page-heading p:not(.eyebrow) { color: #92909a; margin-top: 7px; font-size: 11px; letter-spacing: .05px; }
.heading-actions { display: flex; align-items: center; gap: 18px; }
.date-label { display: flex; gap: 8px; align-items: center; color: #97919d; font-size: 10px; white-space: nowrap; }
.date-label svg { width: 15px; height: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 10px 15px; border: 1px solid transparent; border-radius: 9px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.button svg { width: 15px; height: 15px; }
.button-white { background: white; border-color: #eae7e4; color: #706a79; box-shadow: 0 2px 3px #20143202; }
.button-white:hover { background: #fcfbfe; border-color: #d4c5ed; }
.button-primary { color: white; background: var(--violet); box-shadow: 0 3px 7px #7852d51a; }
.button-primary:hover { background: var(--violet-dark); box-shadow: 0 5px 12px #7852d526; }
.button-subtle { color: var(--violet); border-color: #e6def4; background: #fefcff; }
.button-subtle:hover { background: var(--violet-soft); }
.refresh-button.is-refreshing svg { animation: spin .6s linear; }
.fleet-summary { display: grid; grid-template-columns: repeat(5,1fr); background: white; border: 1px solid #efece9; border-radius: 15px; padding: 17px 8px; margin-bottom: 23px; box-shadow: var(--shadow); }
.summary-item { padding: 6px 20px; position: relative; text-align: left; display: flex; align-items: center; gap: 14px; border-radius: 10px; min-height: 65px; }
.summary-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.summary-item:hover { background: var(--surface-soft); }
.summary-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--violet); background: #f5f1fc; border-radius: 12px; flex: none; }
.summary-icon svg { width: 19px; height: 19px; }
.summary-item.running .summary-icon { color: var(--green); background: #eff9f4; }
.summary-item.idle .summary-icon { color: var(--amber); background: #fdf8ed; }
.summary-item.stopped .summary-icon { color: var(--red); background: #fdf1f2; }
.summary-item.inactive .summary-icon { color: #9c96a8; background: #f5f3f7; }
.summary-number { display: block; font-size: 25px; font-weight: 750; line-height: 1.25; letter-spacing: -1px; }
.summary-label { color: #928b9a; display: block; font-size: 10px; font-weight: 500; margin-top: 5px; white-space: nowrap; }
.summary-item.active .summary-number { color: var(--violet); }
.summary-item.active::before { content: ''; position: absolute; bottom: -17px; left: 22px; right: 22px; height: 2px; border-radius: 4px; background: var(--violet); }
.fleet-workspace { display: grid; grid-template-columns: 318px minmax(0,1fr); gap: 20px; height: max(490px,calc(100dvh - 365px)); min-height: 490px; }
.vehicles-panel { display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 16px; min-height: 0; overflow: hidden; box-shadow: var(--shadow); }
.vehicles-heading { display: flex; align-items: center; justify-content: space-between; padding: 21px 20px 17px; }
.vehicles-heading h2 { font-size: 16px; font-weight: 750; letter-spacing: -.4px; display: flex; align-items: center; gap: 9px; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; padding: 3px 6px; border-radius: 6px; color: #9782b7; background: #f5f1fb; font-weight: 700; font-size: 10px; letter-spacing: 0; }
.vehicles-heading p { color: #aaa3af; font-size: 10px; margin-top: 5px; }
.filter-button { width: 30px; height: 30px; border: 1px solid #efecef; }
.filter-button svg { width: 15px; height: 15px; }
.filter-button.active { color: var(--violet); background: var(--violet-soft); }
.search-field { display: flex; align-items: center; gap: 8px; margin: 0 17px; border: 1px solid #efedef; border-radius: 9px; padding: 0 10px; height: 39px; background: #fcfbfa; color: #b2a9bc; }
.search-field:focus-within { border-color: #c5afe8; box-shadow: 0 0 0 3px #7852d50a; }
.search-field svg { width: 16px; height: 16px; }
.search-field input { width: 100%; min-width: 0; background: none; color: var(--ink); outline: 0; font-size: 10px; height: 100%; }
.search-field input::placeholder { color: #aaa2b3; }
.search-field kbd { border: 1px solid #eee9ed; border-radius: 4px; background: white; padding: 0 4px; color: #c1b9ca; font-size: 10px; }
.vehicle-tabs { display: flex; gap: 3px; background: #f7f6f4; border: 1px solid #f0edea; margin: 13px 17px 16px; padding: 3px; border-radius: 8px; }
.vehicle-tabs button { flex: 1; font-size: 9px; padding: 7px 0; font-weight: 600; color: #a098a9; border-radius: 5px; white-space: nowrap; }
.vehicle-tabs button.active { color: var(--violet); background: white; box-shadow: 0 2px 4px #35214909; }
.vehicle-tabs button:hover { color: var(--violet); }
.vehicle-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 8px; scrollbar-width: thin; scrollbar-color: #e7e1ee transparent; overscroll-behavior: contain; }
.vehicle-card { width: 100%; display: block; position: relative; text-align: left; padding: 15px 13px 12px; margin-bottom: 9px; border: 1px solid #efedf0; border-radius: 11px; background: white; }
.vehicle-card:nth-child(even) { background: #fcfbfa; }
.vehicle-card:hover { border-color: #d5c6eb; background: #fcfaff; transform: translateY(-1px); box-shadow: 0 4px 12px #45216d05; }
.vehicle-card.selected { background: #faf7ff; border-color: #bda6e6; box-shadow: 0 0 0 2px #7852d504; }
.vehicle-card.selected::before { content: ''; position: absolute; width: 3px; height: 24px; background: #9d7cdc; left: -1px; top: 18px; border-radius: 0 3px 3px 0; }
.vehicle-select { display: block; text-align: left; width: 100%; padding: 0; border-radius: 5px; }
.vehicle-card-top { display: flex; gap: 10px; align-items: center; }
.vehicle-type-icon { width: 37px; height: 37px; display: flex; align-items: center; justify-content: center; color: #8e819d; border: 1px solid #eee9f1; background: #f8f6fa; border-radius: 10px; flex: none; }
.vehicle-type-icon svg { width: 23px; height: 23px; stroke-width: 1.5; }
.selected .vehicle-type-icon { background: #eee6fa; color: var(--violet); border-color: #e8def8; }
.vehicle-identity { min-width: 0; flex: 1; }
.vehicle-registration { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-weight: 750; font-size: 10.5px; letter-spacing: -.15px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: #339774; background: #ebf7f0; padding: 4px 6px; border-radius: 5px; font-size: 8px; font-weight: 600; white-space: nowrap; letter-spacing: 0; }
.status-pill .status-dot { width: 4px; height: 4px; }
.status-pill.idle { color: #c89836; background: #fcf5e5; }
.status-pill.stopped { color: #d37680; background: #fdf0f1; }
.status-pill.inactive { color: #9c96a7; background: #f1eff4; }
.vehicle-address { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: #a098aa; font-size: 9px; }
.vehicle-address svg { width: 11px; height: 11px; }
.vehicle-address > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 5px; border-top: 1px solid #f0edf3; margin-top: 13px; padding-top: 10px; font-size: 9px; color: #b0a7ba; }
.vehicle-speed, .vehicle-updated { display: flex; align-items: center; gap: 5px; }
.vehicle-speed { color: #70657f; font-weight: 650; }
.vehicle-card-bottom svg { width: 12px; height: 12px; }
.vehicle-mobile-detail { display: none; }
.vehicle-list-footer { display: flex; align-items: center; gap: 6px; color: #afa6b7; font-size: 8px; padding: 12px 20px; border-top: 1px solid #f1eef2; }
.vehicle-list-footer > span:last-child { margin-left: auto; }
.vehicle-list-footer svg { width: 12px; height: 12px; }
.status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: currentColor; flex: none; }
.green { color: var(--green); background: var(--green); }
.amber { color: var(--amber); background: var(--amber); }
.red { color: var(--red); background: var(--red); }
.map-panel { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e6e5dd; border-radius: 16px; background: #f0f0e9; box-shadow: var(--shadow); }
#fleet-map { height: 100%; width: 100%; background: #ebece6; z-index: 1; font-family: inherit; }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 8px !important; color: #a09d98; background: #ffffffc9 !important; padding: 2px 7px !important; }
.leaflet-control-attribution a { color: #77768b; }
.leaflet-control-scale { margin: 0 16px 132px !important; opacity: .6; }
.leaflet-control-scale-line { border-color: #817d80; font-size: 9px; }
.map-top-controls { position: absolute; z-index: 450; top: 17px; left: 17px; right: 17px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; }
.map-top-controls > * { pointer-events: auto; }
.map-caption { background: #fffffff5; border: 1px solid #ffffffbf; border-radius: 10px; box-shadow: 0 3px 15px #3530410b; padding: 10px 13px; display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; backdrop-filter: blur(10px); }
.map-caption-icon { color: #8d7e9a; }
.map-caption-icon svg { width: 19px; height: 19px; }
.map-region { display: block; font-weight: 500; color: #a7a0ad; font-size: 8px; margin-top: 3px; }
.map-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #9e88bd; margin-left: 10px; }
.map-layer-switch { padding: 4px; display: flex; border-radius: 9px; background: #ffffffef; box-shadow: 0 2px 12px #35304108; }
.map-layer-switch button { padding: 8px 14px; border-radius: 6px; font-size: 9px; font-weight: 600; color: #8b8298; }
.map-layer-switch button.active { background: var(--violet); color: white; box-shadow: 0 2px 4px #6247a924; }
.map-controls { position: absolute; z-index: 450; right: 18px; top: 50%; transform: translateY(-46%); display: grid; gap: 10px; }
.map-button { display: grid; place-items: center; width: 36px; height: 36px; background: #fffffff5; color: #8b8198; box-shadow: 0 3px 12px #30244309; border-radius: 9px; }
.map-button svg { width: 17px; height: 17px; }
.map-button:hover, .map-button[aria-pressed=true] { color: var(--violet); background: #f8f3ff; }
.map-zoom { border-radius: 9px; overflow: hidden; box-shadow: 0 3px 12px #30244309; }
.map-zoom .map-button { box-shadow: none; border-radius: 0; }
.map-zoom .map-button:first-child { border-bottom: 1px solid #f0edf1; }
.map-legend { display: flex; gap: 13px; background: #fffffff0; border-radius: 7px; padding: 8px 11px; position: absolute; z-index: 450; bottom: 126px; left: 18px; color: #8f869b; font-size: 8px; box-shadow: 0 2px 9px #30244305; }
.map-legend > span { display: flex; align-items: center; gap: 5px; }
.map-legend .status-dot { width: 5px; height: 5px; }
.selection-card { position: absolute; z-index: 450; bottom: 23px; left: 12px; right: 12px; background: #fffffff5; border: 1px solid #fff; border-radius: 12px; box-shadow: 0 6px 26px #51436d12; padding: 17px 18px; backdrop-filter: blur(14px); }
.selection-main { display: flex; align-items: center; gap: 14px; }
.selection-identity { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.selection-identity .vehicle-type-icon { width: 35px; height: 39px; color: var(--violet); background: #f5f0fc; border-color: #eee6f9; }
.selection-identity .vehicle-registration { font-size: 10px; justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.selection-actions { display: flex; gap: 6px; }
.selection-actions .button { padding: 9px 12px; font-size: 9px; min-height: 35px; }
.selection-metrics { display: grid; grid-template-columns: repeat(4,1fr); padding-top: 13px; margin-top: 13px; border-top: 1px solid #f1edf5; }
.selection-metric { display: flex; align-items: center; gap: 7px; padding: 0 12px; border-left: 1px solid #f0edf4; }
.selection-metric:first-child { padding-left: 0; border-left: 0; }
.selection-metric svg { width: 17px; height: 17px; color: #a69ab5; }
.selection-metric strong { display: block; font-size: 10px; font-weight: 700; }
.selection-metric small { display: block; color: #b0a5bb; font-size: 8px; margin-top: 2px; }
.selection-metric .metric-unit { font-size: 8px; font-weight: 500; }
.selection-metrics .selection-metric { min-width: 0; }
.selection-card .selection-metrics { display: grid; }
.map-legend { bottom: 167px; }
.vehicle-marker { background: none; border: 0; }
.marker-bubble { position: relative; display: flex; justify-content: center; align-items: center; width: 36px; height: 36px; border: 3px solid white; border-radius: 50%; color: white; background: var(--green); box-shadow: 0 2px 8px #234f472a; transition: box-shadow .25s, background .25s; }
.marker-bubble svg { width: 19px; height: 19px; stroke-width: 1.8; }
.marker-bubble.idle { background: var(--amber); }
.marker-bubble.stopped { background: var(--red); }
.marker-bubble.inactive { background: var(--gray); }
.marker-bubble.selected { background: var(--violet); box-shadow: 0 0 0 7px #9068d726, 0 3px 12px #56399230; }
.marker-label { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); background: #fffffffa; border: 1px solid #eeebee; padding: 7px 9px; white-space: nowrap; font-family: inherit; color: #72677f; border-radius: 6px; font-size: 9px; font-weight: 700; box-shadow: 0 3px 7px #30244308; pointer-events: none; }
.marker-label::after { content: ''; width: 6px; height: 6px; position: absolute; bottom: -3px; left: calc(50% - 3px); background: white; transform: rotate(45deg); }
.vehicle-marker:not(.is-selected) .marker-label { display: none; }
.vehicle-marker:hover .marker-label, .vehicle-marker:focus .marker-label { display: block; }
.map-notice { position: absolute; top: 86px; left: 18px; right: 18px; z-index: 490; padding: 11px; border-radius: 8px; background: #fff9ed; color: #987444; font-size: 10px; box-shadow: var(--shadow); }
.map-notice button { font-weight: 700; text-decoration: underline; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 8px; color: #aea5b4; padding: 17px 2px 14px; }
.workspace-footer > span:first-child { display: flex; align-items: center; gap: 5px; }
.workspace-footer svg { width: 11px; height: 11px; }
.empty-state { padding: 35px 15px; text-align: center; color: #a499ad; }
.empty-state > .icon { margin: 0 auto 14px; width: 32px; height: 32px; color: #c6b8d8; }
.empty-state h3 { font-size: 13px; color: #7b6c8e; }
.empty-state p { font-size: 11px; line-height: 1.8; margin: 8px 0 15px; }
.text-button { color: var(--violet); font-size: 11px; font-weight: 650; padding: 7px; border-radius: 5px; }
.text-button:hover { background: var(--violet-soft); }
.filter-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 17px 14px; padding: 12px; border-radius: 8px; background: var(--surface-soft); }
.filter-controls label { min-width: 0; font-size: 9px; color: #9d8caa; }
.filter-controls select { display: block; width: 100%; min-width: 0; border: 1px solid #eae3ef; border-radius: 5px; background: white; font-size: 9px; color: #796589; padding: 8px 3px; margin-top: 5px; }
.filter-controls .text-button { grid-column: 1 / -1; font-size: 9px; padding: 0; justify-self: end; }
.secondary-view { padding-bottom: 32px; animation: fade-in .35s var(--ease); }
.page-card { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-toolbar h2 { font-size: 17px; letter-spacing: -.5px; }
.section-toolbar p { color: var(--muted); font-size: 11px; margin-top: 6px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; }
th { text-align: left; background: var(--surface-soft); color: #a199a9; font-size: 10px; font-weight: 600; padding: 14px; }
td { border-bottom: 1px solid var(--line); padding: 16px 14px; color: #82748e; font-size: 11px; }
td strong { color: #4e435d; font-weight: 700; }
td small { display: block; color: #b2a7bc; margin-top: 5px; font-size: 9px; }
td .status-pill { font-size: 9px; padding: 5px 8px; }
td .text-button { font-size: 10px; }
.geofence-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.geofence-card { padding: 23px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.geofence-art { position: relative; height: 135px; background-color: #f7f6f1; background-image: linear-gradient(#e9e7df99 1px,transparent 1px),linear-gradient(90deg,#e9e7df99 1px,transparent 1px); background-size: 23px 23px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 21px; overflow: hidden; }
.geofence-art::before { content: ''; position: absolute; width: 95px; height: 95px; border: 1px dashed #b698dd; border-radius: 50%; background: #ede4f38c; }
.geofence-art svg { color: var(--violet); z-index: 1; width: 26px; height: 26px; }
.geofence-card:nth-child(2) .geofence-art::before { border-radius: 15px; transform: rotate(25deg); }
.geofence-card:nth-child(3) .geofence-art::before { border-radius: 30% 55% 25% 45%; }
.geofence-card h2 { font-size: 16px; margin-top: 9px; }
.geofence-card p { font-size: 11px; line-height: 1.8; color: #9d90aa; margin: 8px 0 20px; }
.geofence-meta { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); font-size: 10px; color: #a496af; margin-bottom: 10px; }
.geofence-card .button { width: 100%; }
.report-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 22px; }
.report-stat { background: white; border-radius: 13px; border: 1px solid var(--line); padding: 22px; }
.report-stat > span { color: var(--muted); font-size: 11px; }
.report-stat strong { display: block; color: #655375; font-size: 27px; letter-spacing: -1px; margin: 12px 0 4px; }
.report-stat small { font-size: 10px; color: #ac9fba; }
.distance-chart { height: 210px; display: flex; align-items: flex-end; gap: 18px; padding: 15px 15px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top,transparent 0,transparent 48px,#f3f0f4 49px,#f3f0f4 50px); }
.chart-column { display: flex; flex: 1; height: 100%; align-items: center; justify-content: flex-end; flex-direction: column; gap: 7px; min-width: 0; }
.chart-column > span { color: #a593b6; font-size: 9px; }
.chart-bar { width: 100%; max-width: 45px; border-radius: 5px 5px 0 0; background: #e5dbf4; transition: height .5s var(--ease); }
.chart-column:nth-child(3n+1) .chart-bar { background: #9875d0; }
.chart-labels { display: flex; gap: 18px; padding: 13px 15px 0; }
.chart-labels > span { flex: 1; min-width: 0; font-size: 8px; color: #a79aae; text-align: center; }
.report-note { color: #a79aad; font-size: 10px; line-height: 1.8; margin-top: 20px; }
.app-dialog { border: 1px solid #eae4ef; border-radius: 20px; padding: 26px; color: var(--ink); width: min(520px,calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; box-shadow: 0 24px 100px #2e154526; background: #fff; }
.app-dialog[open] { animation: dialog-in .25s var(--ease); }
.app-dialog::backdrop { background: #26203245; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 21px; letter-spacing: -.7px; }
.dialog-heading .eyebrow { font-size: 8px; }
.dialog-copy { color: #91839f; font-size: 12px; line-height: 1.9; margin-bottom: 18px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 23px; }
.detail-grid > div { padding: 15px; border-radius: 10px; background: var(--surface-soft); }
.detail-grid small { display: block; font-size: 10px; color: #a69bb0; margin-bottom: 6px; }
.detail-grid strong { font-size: 13px; color: #736080; font-weight: 650; }
.route-timeline { padding-left: 23px; margin: 25px 0; }
.route-stop { position: relative; padding: 0 0 25px 21px; border-left: 1px dashed #dbcaeb; }
.route-stop:last-child { border-left-color: transparent; padding-bottom: 0; }
.route-stop::before { position: absolute; content: ''; width: 8px; height: 8px; border: 3px solid white; background: #b497d5; box-shadow: 0 0 0 1px #c4ace0; border-radius: 50%; left: -7px; top: 0; }
.route-stop strong { display: block; font-size: 12px; font-weight: 650; }
.route-stop p { margin-top: 5px; font-size: 10px; color: #aa9db5; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.share-field { display: flex; gap: 8px; }
.share-field input { flex: 1; min-width: 0; font-size: 11px; color: #887498; background: #f8f6fa; border: 1px solid #eae1f1; border-radius: 8px; padding: 12px; }
.preference-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.preference-row strong { display: block; font-size: 12px; font-weight: 650; }
.preference-row small { display: block; color: #a092ad; margin-top: 6px; font-size: 10px; line-height: 1.7; }
.preference-row input { appearance: none; width: 36px; height: 21px; flex: none; border-radius: 20px; background: #e8e3ec; position: relative; transition: background .2s; cursor: pointer; }
.preference-row input::after { content: ''; position: absolute; width: 15px; height: 15px; background: white; border-radius: 50%; top: 3px; left: 3px; transition: transform .2s; box-shadow: 0 1px 4px #56416d1a; }
.preference-row input:checked { background: var(--violet); }
.preference-row input:checked::after { transform: translateX(15px); }
.notification-item { display: flex; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.notification-item > .icon { color: var(--violet); width: 19px; margin-top: 3px; }
.notification-item h3 { font-size: 12px; font-weight: 650; }
.notification-item p { color: #a798b4; font-size: 11px; line-height: 1.8; margin-top: 5px; }
.toast { position: fixed; z-index: 1100; bottom: 24px; left: calc(50% + var(--sidebar)/2); transform: translate(-50%,15px); background: #fff; color: #796987; border: 1px solid #e8def0; border-radius: 11px; padding: 13px 21px; box-shadow: 0 8px 35px #3514471a; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.mobile-nav, .mobile-brand, .sheet-handle { display: none; }
.noscript-message { position: fixed; top: 15px; left: 50%; transform: translateX(-50%); padding: 20px; background: white; z-index: 2000; border: 1px solid var(--line); }
.street-map .leaflet-tile-pane { filter: saturate(.5) brightness(1.07) contrast(.91); }
.vehicle-address, .vehicle-updated, .vehicles-heading p, .summary-label, .selection-metric small, .vehicle-list-footer { color: #79717f; }
.page-heading p:not(.eyebrow), .breadcrumb, .date-label, .demo-label, .workspace-footer { color: #807986; }
.search-field input::placeholder { color: #89808e; }
.vehicle-tabs button { color: #847a8e; }
.vehicle-card .vehicle-registration { font-size: 12px; }
.vehicle-address { font-size: 10px; }
.vehicle-card-bottom { font-size: 10px; }
.status-pill { font-size: 9px; }
.vehicle-tabs button { font-size: 10px; }
.search-field input { font-size: 11px; }
.summary-label { font-size: 11px; }
.nav-link { font-size: 13px; }
.selection-identity .vehicle-registration { font-size: 12px; }
.selection-metric strong { font-size: 12px; }
.selection-metric small { font-size: 9px; }
.selection-actions .button { font-size: 10px; }
@media (min-width:761px) {
  .main { height: 100dvh; min-height: 640px; display: flex; flex-direction: column; overflow: hidden; }
  .topbar { flex: none; }
  .page-content { width: 100%; flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .page-heading, .fleet-summary, .workspace-footer { flex: none; }
  .dashboard-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .fleet-workspace { flex: 1; min-height: 280px !important; height: auto !important; }
  .secondary-view { overflow-y: auto; flex: 1; min-height: 0; }
}
body.compact-cards .vehicle-card { padding-top: 11px; padding-bottom: 8px; }
body.compact-cards .vehicle-card-bottom { padding-top: 7px; margin-top: 7px; }
body.show-labels .vehicle-marker .marker-label { display: block; }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width:1550px) {
  :root { --sidebar: 244px; }
  .page-content { padding: 35px 38px 0; }
  .topbar { padding: 0 38px; }
  .fleet-workspace { grid-template-columns: 350px minmax(0,1fr); height: max(550px,calc(100dvh - 380px)); }
  .vehicle-registration { font-size: 12px; }
  .vehicle-address, .vehicle-card-bottom { font-size: 10px; }
  .vehicle-card { padding: 19px 15px 15px; }
  .selection-card .selection-metrics { display: grid; }
  .map-legend { bottom: 163px; }
  .leaflet-control-scale { margin-bottom: 175px !important; }
  .summary-number { font-size: 28px; }
  .summary-label { font-size: 11px; }
  .selection-identity .vehicle-registration { font-size: 12px; }
}
@media (max-width:1250px) and (min-width:761px) {
  :root { --sidebar: 190px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { margin-left: 8px; gap: 8px; }
  .brand-wordmark { font-size: 21px; }
  .brand-wordmark > span { font-size: 8px; letter-spacing: 4px; }
  .workspace-switch { gap: 7px; padding: 10px 7px; font-size: 10px; }
  .page-content { padding: 25px 23px 0; }
  .topbar { padding: 0 23px; }
  .summary-item { padding: 6px 13px; gap: 9px; }
  .summary-icon { width: 31px; height: 34px; border-radius: 9px; }
  .summary-icon svg { width: 16px; }
  .summary-number { font-size: 23px; }
  .summary-label { font-size: 9px; }
  .fleet-workspace { grid-template-columns: 285px minmax(0,1fr); gap: 15px; }
  .vehicle-registration { font-size: 9px; }
  .vehicle-type-icon { width: 32px; height: 34px; }
  .vehicle-card-top { gap: 8px; }
  .vehicle-card { padding: 13px 10px 11px; }
  .selection-main { flex-wrap: wrap; gap: 12px; }
  .selection-actions { flex: 1; justify-content: flex-end; }
  .map-caption { padding: 9px; gap: 7px; }
  .map-layer-switch button { padding: 8px 10px; }
  .map-live-dot { display: none; }
  .geofence-grid { gap: 12px; }
  .geofence-card { padding: 17px; }
}
@media (max-width:1020px) and (min-width:761px) {
  :root { --sidebar: 76px; }
  .sidebar { padding: 24px 10px 0; align-items: center; }
  .brand { margin: 0 0 34px; }
  .brand-wordmark, .workspace-switch, .nav-caption, .nav-link > span:not(:first-child), .journey-note, .sidebar-profile > span:not(.avatar), .sidebar-profile > button { display: none; }
  .primary-nav { width: 100%; }
  .nav-link { justify-content: center; padding: 15px 0; }
  .sidebar-bottom { width: 100%; }
  .sidebar-profile { justify-content: center; }
  .date-label { display: none; }
  .page-heading .eyebrow { font-size: 7px; }
  .summary-item { padding: 6px 13px; gap: 8px; }
  .summary-icon { display: none; }
  .fleet-workspace { grid-template-columns: 272px minmax(0,1fr); }
  .selection-card { padding: 12px; }
  .selection-identity { flex-basis: 100%; }
  .selection-actions { justify-content: stretch; }
  .selection-actions .button { flex: 1; }
  .map-legend { bottom: 148px; gap: 9px; }
  .workspace-footer > span:first-child { font-size: 7px; }
}
@media (max-height:790px) and (min-width:761px) {
  .journey-note { display: none; }
  .topbar { height: 62px; }
  .page-content { padding-top: 22px; }
  .page-heading { margin-bottom: 20px; }
  .fleet-summary { padding-top: 12px; padding-bottom: 12px; margin-bottom: 18px; }
  .summary-item.active::before { bottom: -12px; }
  .fleet-workspace { height: max(460px,calc(100dvh - 317px)); min-height: 460px; }
}
@media (max-width:760px) {
  :root { --sidebar: 0px; }
  .sidebar, .breadcrumb, .topbar-divider { display: none; }
  .main { margin: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { height: 74px; padding: 0 21px; background: white; border-bottom: 1px solid #f0ede8; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; }
  .mobile-brand-icon { color: var(--violet); }
  .mobile-brand-icon svg { width: 29px; height: 33px; fill: #f1e9ff; stroke-width: 2.5; }
  .mobile-brand strong { display: block; font-size: 21px; letter-spacing: -.7px; line-height: 1.05; font-weight: 800; }
  .mobile-brand strong > span { display: block; font-size: 8px; letter-spacing: 3.8px; color: #8b7f9a; margin-top: 5px; margin-left: 1px; font-weight: 600; }
  .topbar-tools { gap: 11px; }
  .topbar .demo-label { display: none; }
  .avatar-button { width: 31px; height: 31px; box-shadow: 0 0 0 3px #f5f1fa; font-size: 10px; }
  .page-content { padding: 24px 0 0; }
  .page-heading { padding: 0 22px; margin-bottom: 23px; gap: 10px; }
  .eyebrow { font-size: 7px; letter-spacing: 1.3px; margin-bottom: 7px; }
  h1 { font-size: 28px; letter-spacing: -1.1px; }
  .page-heading p:not(.eyebrow) { font-size: 10px; margin-top: 6px; }
  .date-label { display: none; }
  .heading-actions { gap: 0; }
  .refresh-button { width: 33px; min-height: 33px; padding: 8px; border-radius: 9px; }
  .refresh-button > span:last-child { display: none; }
  .refresh-button svg { width: 15px; }
  .fleet-summary { margin: 0 16px 18px; padding: 12px 3px; border-radius: 13px; }
  .summary-item { flex-direction: column; gap: 5px; padding: 3px 0; min-height: 49px; text-align: center; justify-content: center; border-radius: 8px; }
  .summary-icon { display: none; }
  .summary-number { font-size: 23px; line-height: 1.1; letter-spacing: -.7px; }
  .summary-label { font-size: 8px; margin-top: 7px; }
  .summary-item.active::before { height: 2px; left: 14px; right: 14px; bottom: -12px; }
  .summary-item:not(:last-child)::after { top: 7px; bottom: 7px; }
  .fleet-workspace { display: flex; flex-direction: column; gap: 0; height: auto; min-height: 0; }
  .map-panel { order: 0; height: 345px; min-height: 280px; border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; }
  .map-top-controls { top: 13px; left: 16px; right: 16px; }
  .map-caption { border-radius: 8px; padding: 8px 10px; font-size: 9px; gap: 6px; }
  .map-region { font-size: 7px; margin-top: 2px; }
  .map-caption-icon svg { width: 15px; height: 15px; }
  .map-live-dot { display: none; }
  .map-layer-switch { border-radius: 7px; padding: 3px; }
  .map-layer-switch button { font-size: 8px; padding: 8px 10px; border-radius: 5px; }
  .map-controls { right: 16px; top: 115px; transform: none; gap: 8px; }
  .map-button { width: 33px; height: 33px; border-radius: 8px; }
  .map-button svg { width: 16px; height: 16px; }
  .map-zoom .map-button { height: 30px; }
  .selection-card, .map-legend { display: none; }
  .leaflet-control-scale { margin: 0 12px 34px !important; }
  .leaflet-control-attribution { font-size: 6px !important; padding-bottom: 18px !important; }
  .marker-bubble { width: 31px; height: 31px; border-width: 2px; }
  .marker-bubble svg { width: 17px; height: 17px; }
  .marker-label { bottom: 38px; font-size: 8px; padding: 6px 8px; }
  .vehicle-marker { width: 31px !important; height: 31px !important; margin-left: -15px !important; margin-top: -15px !important; }
  .vehicles-panel { order: 1; position: relative; z-index: 500; margin-top: -17px; border-radius: 24px 24px 0 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: 0 -8px 25px #4a3b6a08; overflow: visible; transition: margin-top .45s var(--ease); }
  .sheet-handle { display: flex; align-items: center; justify-content: center; margin: 0 auto; height: 25px; width: 80px; }
  .sheet-handle > span { width: 34px; height: 4px; background: #dfdae5; border-radius: 10px; }
  .vehicles-heading { padding: 2px 22px 16px; }
  .vehicles-heading h2 { font-size: 19px; gap: 9px; }
  .vehicles-heading p { display: none; }
  .count-badge { min-width: 27px; padding: 4px 7px; font-size: 10px; }
  .filter-button { width: 31px; height: 31px; }
  .search-field { margin: 0 20px; height: 42px; padding: 0 12px; border-radius: 9px; }
  .search-field input { font-size: 11px; }
  .search-field kbd { display: none; }
  .vehicle-tabs { margin: 12px 20px 15px; }
  .vehicle-tabs button { font-size: 10px; padding: 8px 0; }
  .vehicle-list { padding: 0 17px 8px; max-height: 530px; flex: auto; }
  .vehicle-card { padding: 16px 14px 13px; margin-bottom: 11px; border-radius: 12px; }
  .vehicle-card-top { gap: 12px; }
  .vehicle-type-icon { width: 42px; height: 42px; border-radius: 11px; }
  .vehicle-type-icon svg { width: 26px; height: 26px; }
  .vehicle-registration { font-size: 11px; }
  .status-pill { font-size: 8px; padding: 5px 7px; }
  .vehicle-address { font-size: 10px; margin-top: 6px; }
  .vehicle-card-bottom { font-size: 9px; padding-top: 11px; margin-top: 13px; }
  .selected .vehicle-mobile-detail { display: block; }
  .selected .vehicle-card-bottom { display: none; }
  .vehicle-mobile-detail .selection-metrics { grid-template-columns: repeat(3,1fr); border-top: 0; margin-top: 17px; padding-top: 0; }
  .vehicle-mobile-detail .selection-metric { gap: 7px; padding: 0 10px; }
  .vehicle-mobile-detail .selection-metric:first-child { padding-left: 0; }
  .vehicle-mobile-detail .selection-metric strong { font-size: 11px; }
  .vehicle-mobile-detail .selection-metric small { font-size: 8px; margin-top: 3px; }
  .vehicle-mobile-detail .selection-metric svg { width: 17px; height: 17px; }
  .vehicle-mobile-detail .mobile-updated { display: flex; align-items: center; gap: 5px; color: #b4a8c0; font-size: 9px; padding: 13px 0; margin-top: 14px; border-top: 1px solid #ece5f4; }
  .mobile-updated svg { width: 12px; height: 12px; }
  .mobile-card-actions { display: flex; gap: 9px; }
  .mobile-card-actions .button { flex: 1; padding: 10px 8px; font-size: 10px; min-height: 38px; }
  .mobile-card-actions .button-primary { flex: 1.4; }
  .mobile-card-actions svg { width: 14px; height: 14px; }
  .filter-controls { margin-left: 20px; margin-right: 20px; }
  .vehicle-list-footer { padding: 13px 22px; font-size: 9px; }
  .workspace-footer { padding: 16px 22px; justify-content: center; background: white; }
  .workspace-footer > span:first-child { display: none; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5,1fr); position: fixed; bottom: 0; left: 0; right: 0; height: calc(72px + env(safe-area-inset-bottom)); padding: 7px 9px calc(7px + env(safe-area-inset-bottom)); z-index: 800; background: #fffffff5; border-top: 1px solid #ede7f3; box-shadow: 0 -4px 18px #49365705; backdrop-filter: blur(16px); }
  .mobile-nav a, .mobile-nav button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: #a297af; font-size: 8px; font-weight: 650; border-radius: 10px; min-width: 0; }
  .mobile-nav svg { width: 21px; height: 21px; stroke-width: 1.7; }
  .mobile-nav .active { background: #f4effc; color: var(--violet); }
  .mobile-nav .active svg { stroke-width: 2; }
  .vehicles-panel.expanded { margin-top: -195px; box-shadow: 0 -10px 40px #4a3b6a15; }
  .vehicles-panel.expanded .vehicle-list { max-height: 65dvh; }
  .fleet-workspace:has(.vehicles-panel.expanded) .leaflet-bottom { bottom: 178px; }
  .toast { left: 50%; bottom: calc(87px + env(safe-area-inset-bottom)); font-size: 10px; width: max-content; }
  .secondary-view { padding: 0 17px 20px; }
  .page-card { padding: 18px; }
  .section-toolbar h2 { font-size: 16px; }
  .section-toolbar p { font-size: 10px; }
  .section-toolbar .button { padding: 9px 10px; font-size: 9px; }
  .geofence-grid { grid-template-columns: 1fr; gap: 15px; }
  .geofence-art { height: 125px; }
  .geofence-card { padding: 21px; }
  .report-stats { gap: 8px; margin-bottom: 15px; }
  .report-stat { padding: 15px 10px; border-radius: 10px; }
  .report-stat > span { font-size: 9px; }
  .report-stat strong { font-size: 21px; margin-top: 10px; }
  .report-stat small { font-size: 8px; }
  .distance-chart { gap: 7px; padding-left: 0; padding-right: 0; }
  .chart-column > span { font-size: 6px; }
  .chart-labels { gap: 7px; padding-left: 0; padding-right: 0; }
  .chart-labels > span { font-size: 6px; }
  .app-dialog { padding: 23px; border-radius: 17px; }
}
@media (max-width:370px) {
  .page-heading { padding-left: 17px; padding-right: 17px; }
  h1 { font-size: 25px; }
  .page-heading p:not(.eyebrow) { font-size: 9px; }
  .vehicle-registration { font-size: 9px; }
  .vehicle-type-icon { width: 34px; height: 36px; }
  .status-pill { font-size: 7px; }
  .vehicle-card-top { gap: 8px; }
  .vehicle-address { font-size: 9px; }
  .vehicle-mobile-detail .selection-metric { padding: 0 7px; gap: 5px; }
  .vehicle-mobile-detail .selection-metric strong { font-size: 10px; }
  .vehicle-mobile-detail .selection-metric svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Authenticated application states. */
.auth-locked > .sidebar, .auth-locked > .main, .auth-locked > .mobile-nav, .auth-locked > .skip-link { display: none; }
.auth-screen { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-intro { position: relative; overflow: hidden; padding: 14vh 10%; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.auth-intro > img { margin-bottom: 35px; z-index: 1; }
.auth-intro .eyebrow { color: #88769d; margin-bottom: 22px; font-size: 10px; }
.auth-intro h1 { font-size: clamp(35px,4vw,62px); font-weight: 650; line-height: 1.25; position: relative; z-index: 1; }
.auth-intro > p:last-of-type { margin-top: 26px; color: #8b8094; font-size: 14px; line-height: 1.9; position: relative; z-index: 1; }
.auth-orbit { position: absolute; width: 500px; height: 500px; border: 1px solid #e4deec; border-radius: 50%; bottom: -315px; right: -170px; box-shadow: 0 0 0 34px var(--canvas),0 0 0 35px #e4deec,0 0 0 69px var(--canvas),0 0 0 70px #e4deec; }
.auth-panel { background: white; display: grid; place-items: center; padding: 45px; }
.auth-panel-inner { width: min(100%,365px); }
.auth-panel h2 { font-size: 32px; letter-spacing: -1px; margin-bottom: 12px; }
.auth-panel-inner > p:not(.eyebrow) { color: #8b8094; font-size: 12px; line-height: 1.8; }
.auth-panel .production-form { margin-top: 30px; }
.auth-panel .button { font-size: 13px; min-height: 44px; }
.auth-panel .auth-footnote { margin-top: 25px; font-size: 10px !important; }
.production-form { display: grid; gap: 17px; }
.production-form label { display: grid; gap: 8px; font-size: 11px; font-weight: 600; color: #796d83; min-width: 0; }
.production-form input, .production-form select { width: 100%; min-width: 0; background: #fcfbfd; color: #3d304a; border: 1px solid #e9e1f0; border-radius: 8px; padding: 11px 12px; font-size: 13px; min-height: 42px; }
.production-form input:focus, .production-form select:focus { border-color: #b69cd9; box-shadow: 0 0 0 3px #7852d509; outline: none; }
.form-message { color: #b65b65; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.form-message:empty { display: none; }
.inline-form { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 22px; }
.inline-form .button { min-height: 42px; }
.report-form { grid-template-columns: 1fr 1fr 1.5fr auto; align-items: end; }
.report-form .button { min-height: 42px; }
.report-range { margin: 18px 0 12px; }
.report-table { margin-top: 27px; }
.connection-label { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #668875; }
.connection-label > span { width: 6px; height: 6px; background: #4da881; border-radius: 50%; }
.connection-label.is-error { color: #b17b52; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.connection-label.is-error > span { display: none; }
.connection-notice { background: #fff9ed; color: #976b43; border: 1px solid #efe2c9; padding: 9px 13px; border-radius: 9px; font-size: 10px; line-height: 1.7; margin-bottom: 12px; flex: none; }
.extra-statuses { display: flex; justify-content: flex-end; gap: 9px; margin: -13px 1px 11px; flex: none; }
.extra-status { display: flex; gap: 6px; font-size: 9px; color: #8c8294; padding: 4px 9px; border-radius: 5px; border: 1px solid #e9e3ee; background: #fcfbfd; }
.extra-status.active { background: var(--violet-soft); color: var(--violet); border-color: #c9b3e8; }
.status-pill.nodata { color: #88808f; background: #f1eef4; }
.status-pill.expired { color: #a87c4a; background: #fbf3e9; }
.marker-bubble.nodata, .marker-bubble.expired { background: #a599b0; }
.gps-warning { display: block; color: #b48748; font-size: 9px; margin-top: 9px; }
.vehicle-registration { flex-wrap: wrap; }
.sidebar-profile strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-dialog details { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.app-dialog summary { cursor: pointer; font-size: 12px; color: var(--violet); }
.app-dialog details[open] .production-form { margin-top: 20px; }
#share-result { margin-top: 20px; }
.public-share { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.share-header { padding: 20px 28px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: white; }
.share-header img { width: 36px; height: 36px; }
.share-header h1 { font-size: 22px; letter-spacing: -.5px; }
.share-header p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.share-map-wrap { position: relative; min-height: 450px; }
#share-map { width: 100%; height: 100%; min-height: 450px; position: absolute; }
.share-details { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: min(540px,calc(100% - 32px)); background: #ffffffed; border: 1px solid white; border-radius: 17px; padding: 22px; box-shadow: var(--shadow); z-index: 600; backdrop-filter: blur(12px); }
.share-details h2 { font-size: 19px; margin-bottom: 10px; }
.share-details .detail-grid { margin: 15px 0 0; }
.share-details .detail-grid > div { background: #faf8fc; }
.share-error { color: #ae626c; }
@media (max-width:370px) { .topbar-tools .connection-label { display: none; } }
@media (max-width:1020px) { .report-form { grid-template-columns: 1fr 1fr; } }
@media (max-width:760px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-intro { padding: 30px 28px; min-height: 235px; border-right: 0; }
  .auth-intro > img { width: 38px; height: 38px; margin-bottom: 19px; }
  .auth-intro .eyebrow { position: absolute; left: 78px; top: 44px; }
  .auth-intro h1 { font-size: 31px; }
  .auth-intro > p:last-of-type { display: none; }
  .auth-panel { padding: 35px 28px 50px; }
  .auth-panel h2 { font-size: 27px; }
  .production-form input, .production-form select { font-size: 16px; }
  .connection-label { font-size: 8px; }
  .connection-label.is-error { max-width: 85px; }
  .topbar-tools { gap: 8px; }
  .extra-statuses { margin: -7px 18px 12px; }
  .connection-notice { margin: 0 17px 12px; }
  .vehicle-registration { gap: 6px; }
  .report-form { grid-template-columns: 1fr 1fr; gap: 12px; }
  .report-form label:nth-child(3) { grid-column: 1 / -1; }
  .report-form > button { grid-column: 1 / -1; }
  .share-header { padding: 17px; }
  .share-header h1 { font-size: 18px; }
  .share-details { padding: 17px; }
  .share-details .detail-grid strong { font-size: 11px; }
}
