/* Neutral editorial system: typography, hierarchy, and data carry the UI;
   color is reserved for warning and failure states. */
:root {
  color-scheme: dark;
  --bg: #090a0c;
  --surface: #111318;
  --surface-2: #181b21;
  --surface-3: #20242b;
  --line: #343a45;
  --line-soft: #252a33;
  --text: #f2f2ef;
  --muted: #9aa1ac;
  --muted-2: #676f7b;
  --accent: #e8eaed;
  --accent-soft: rgba(232, 234, 237, .075);
  --blue: #b2bdca;
  --amber: #c6ae80;
  --red: #c9827e;
  --green: #c8cdd2;
  --radius: 6px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .46);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; font-size: 14px; line-height: 1.45; }
button, input, select { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
h1, h2, h3, h4 { font-family: "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif; font-stretch: condensed; font-weight: 800; }

.brand { display: flex; align-items: center; color: var(--text); font-family: "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif; font-size: 21px; font-stretch: condensed; font-weight: 900; letter-spacing: -.055em; line-height: 1; }
.brand-large { font-size: 29px; }
.brand-wordmark { display: block; white-space: nowrap; }
.brand-lockup { display: grid; gap: 7px; }
.brand-subtitle { max-width: 215px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.35; }
.project-disclaimer { max-width: 310px; margin: auto 0 0; color: var(--muted-2); font-size: 8px; line-height: 1.45; text-transform: uppercase; }
.auth-brand-lockup { position: relative; z-index: 1; }
.auth-brand-lockup .brand-subtitle { max-width: 360px; font-size: 10px; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, .9fr); }
.auth-panel { position: relative; overflow: hidden; padding: 48px 56px; min-height: 100vh; display: flex; flex-direction: column; background: #0d0f13; border-right: 1px solid var(--line); }
.auth-panel::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
.eyebrow { margin: 0 0 7px; color: #c5cad1; font-size: 9px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.auth-form-wrap { display: grid; place-items: center; padding: 48px; background: var(--bg); }
.auth-form { width: min(390px, 100%); display: grid; gap: 18px; }
.auth-form h2, .modal h2, .json-modal h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }

label { display: grid; gap: 7px; color: #c9cdd2; font-size: 12px; font-weight: 640; }
input, select { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text); background: #0d0f13; border: 1px solid var(--line); border-radius: 3px; outline: 0; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: #aab1bc; box-shadow: 0 0 0 2px rgba(232, 234, 237, .08); }
.form-help, .security-note { margin: -7px 0 0; color: var(--muted); font-size: 12px; font-weight: 450; }
.security-note { padding: 11px 12px; border-left: 2px solid #9da5af; background: var(--accent-soft); border-radius: 0; }
.form-error { min-height: 20px; margin: -8px 0 0; color: var(--red); font-size: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-size: 11px; font-weight: 740; letter-spacing: .025em; transition: background .12s, border-color .12s; }
.button:hover:not(:disabled) { border-color: #6c7480; }
.button:focus-visible, .icon-button:focus-visible, .vehicle-card:focus-visible, .sidebar-vehicle:focus-visible, .primary-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.button:disabled { opacity: .48; cursor: wait; }
.button.primary { background: var(--text); color: #0b0d10; }
.button.secondary { background: var(--surface-2); border-color: var(--line); }
.button.quiet { color: var(--muted); background: transparent; }
.button.danger { color: #fff; background: #a73531; border-color: #c44d48; }
.button.wide { width: 100%; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-2); cursor: pointer; font-size: 22px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 17px 18px; background: #0d0f13; border-right: 1px solid var(--line); }
.sidebar-brand-lockup { padding: 0 10px 30px; }
.primary-nav { display: grid; gap: 4px; }
.primary-nav button { display: block; min-height: 41px; padding: 7px 10px; text-align: left; border: 0; border-radius: 2px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 690; letter-spacing: .055em; text-transform: uppercase; }
.primary-nav button:hover { color: var(--text); background: var(--surface-2); }
.primary-nav button.active { color: var(--text); background: #20242b; }

.workspace { min-width: 0; background: var(--bg); }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 34px; border-bottom: 1px solid var(--line); background: rgba(9, 10, 12, .94); backdrop-filter: blur(12px); }
.topbar h1 { margin: 2px 0 0; font-size: 24px; font-weight: 850; letter-spacing: -.045em; text-transform: uppercase; }
.breadcrumbs { margin: 0; color: var(--muted-2); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.view-root { max-width: 1500px; margin: 0 auto; padding: 28px 34px 54px; }
.view-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 21px; }
.view-heading h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.02em; }
.view-heading p { margin: 0; color: var(--muted); }

.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 13px; }
.vehicle-card { position: relative; overflow: hidden; min-height: 256px; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: background .15s, border-color .15s; }
.vehicle-card:hover { border-color: #5b626d; background: #15181e; }
.vehicle-card::after { display: none; }
.vehicle-card h3 { margin: 3px 0 2px; font-size: 20px; letter-spacing: -.035em; }
.vehicle-card p { margin: 0; color: var(--muted); font-size: 12px; }
.vehicle-brand-label { color: var(--muted-2); font-size: 8px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }

.badge { display: inline-flex; align-items: center; width: fit-content; min-height: 23px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); background: #12151a; font-size: 8px; font-weight: 720; letter-spacing: .055em; text-transform: uppercase; }
.badge::before { display: none; }
.badge.good { color: #d1d5d2; border-color: #4a515b; }
.badge.warn { color: var(--amber); border-color: #655b48; }
.badge.bad { color: #d59894; border-color: #6b4746; }

.empty-state { min-height: 360px; display: grid; place-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state > div { max-width: 390px; }
.empty-icon { width: fit-content; min-width: 42px; min-height: 34px; display: grid; place-items: center; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.empty-label { margin: 0 0 12px !important; color: var(--muted-2) !important; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; text-transform: uppercase; }
.empty-state h2 { margin: 0 0 7px; font-size: 20px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.status-tile { min-height: 133px; padding: 16px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #12151a; }
.status-tile > span { color: var(--muted); font-size: 11px; }
.status-tile strong { display: block; margin: 18px 0 3px; font-size: 24px; letter-spacing: -.04em; text-transform: capitalize; }
.status-tile small { color: var(--muted-2); }
.panel { overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; border-bottom: 1px solid var(--line-soft); }
.panel-heading h3 { margin: 0; font-size: 13px; }
.panel-heading p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.endpoint-list { display: grid; }
.endpoint-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; min-height: 57px; padding: 9px 16px; border-bottom: 1px solid var(--line-soft); }
.endpoint-row:last-child { border-bottom: 0; }
.endpoint-row b, .endpoint-row small { display: block; }
.endpoint-row b { font-size: 11px; }
.endpoint-row small { color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.endpoint-time { color: var(--muted); font-size: 10px; }
.endpoint-row button { border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 11px; }
.location-box { padding: 14px; }

.account-list { display: grid; gap: 10px; }
.provider-table { width: 100%; border-collapse: collapse; }
.provider-table th, .provider-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.provider-table th { color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.provider-table td { font-size: 11px; }
.provider-table tr:last-child td { border-bottom: 0; }

.activity-list { display: grid; }
.activity-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 13px; align-items: start; padding: 14px 17px; border-bottom: 1px solid var(--line-soft); }
.activity-row:last-child { border-bottom: 0; }
.activity-dot { width: 7px; height: 7px; margin-top: 5px; background: #8f97a2; }
.activity-row b { display: block; font-size: 11px; }
.activity-row p { margin: 3px 0 0; color: var(--muted); font-size: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.activity-row time { color: var(--muted-2); font-size: 9px; }

.inspector-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; }
.inspector-controls { display: grid; align-content: start; gap: 14px; padding: 17px; }
.json-inline { min-height: 520px; margin: 0; padding: 18px; overflow: auto; background: #080a0d; color: #c9ced5; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.section-gap-14 { margin-top: 14px; }
.section-gap-24 { margin-top: 24px; }
.settings-form { display: grid; gap: 14px; padding: 18px; }
.token-output { padding: 12px; word-break: break-all; border: 1px solid var(--line); border-radius: 3px; background: #080a0d; color: #d7dbe0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }

.modal, .json-modal { padding: 0; color: var(--text); border: 1px solid #3b414c; background: #111318; border-radius: var(--radius); box-shadow: var(--shadow); }
.modal { width: min(510px, calc(100vw - 28px)); }
.modal::backdrop, .json-modal::backdrop { background: rgba(3, 4, 6, .82); backdrop-filter: blur(4px); }
.modal form { display: grid; gap: 16px; padding: 21px; }
.modal-heading, .json-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
fieldset { display: grid; gap: 7px; padding: 0; border: 0; }
legend { margin-bottom: 7px; color: #c9cdd2; font-size: 12px; font-weight: 640; }
.choice { grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line-soft); border-radius: 3px; background: #0d0f13; }
.choice input { min-height: 0; margin: 3px 0 0; accent-color: var(--accent); }
.choice b, .choice small { display: block; }
.choice small { margin-top: 2px; color: var(--muted); font-weight: 450; }
.otp-state { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 3px; background: #0d0f13; }
.otp-state p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.account-bank-modal { width: min(1180px, calc(100vw - 28px)); max-height: min(920px, calc(100vh - 28px)); overflow: hidden; }
.account-bank-shell { min-height: 570px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.account-bank-shell::-webkit-scrollbar { display: none; }
.account-bank-shell pre { scrollbar-width: none; }
.account-bank-shell pre::-webkit-scrollbar { display: none; }
.account-bank-heading { position: sticky; z-index: 8; top: 0; padding: 22px 25px 18px; border-bottom: 1px solid var(--line); background: rgba(13, 15, 19, .97); backdrop-filter: blur(18px); }
.account-bank-heading h2 { margin: 3px 0 5px; font-size: 23px; letter-spacing: -.02em; }
.account-bank-heading p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; }
.account-bank-workspace { min-height: 490px; background: #0d0f13; }
.account-bank-search { display: grid; gap: 17px; padding: 22px 25px 20px !important; border-bottom: 1px solid var(--line); background: #111318; }
.account-bank-query-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.account-bank-query input { min-height: 52px; padding: 0 15px; border-color: #414752; border-radius: 3px; background: #090b0e; font-size: 14px; }
.account-bank-query input:focus { border-color: #aab1bc; box-shadow: 0 0 0 2px rgba(232, 234, 237, .08); }
.account-bank-submit { min-width: 154px; min-height: 52px; border-radius: 3px; }
.account-bank-method-field, .account-bank-brand-field { display: grid; gap: 8px; }
.account-bank-method-field legend, .account-bank-brand-field legend { margin: 0; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.account-bank-methods { width: max-content; max-width: 100%; display: flex; flex-wrap: wrap; gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: 3px; background: #090b0e; }
.account-bank-methods label { display: block; }
.account-bank-methods input, .bank-brand-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.account-bank-methods span { min-height: 30px; display: grid; place-items: center; padding: 5px 12px; border-radius: 1px; color: var(--muted); font-size: 9px; font-weight: 700; cursor: pointer; transition: color .16s, background .16s; }
.account-bank-methods label:hover span { color: var(--text); }
.account-bank-methods input:checked + span { color: #0b0d10; background: var(--text); }
.account-bank-methods input:focus-visible + span, .bank-brand-toggle input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.account-bank-brands { display: flex; flex-wrap: wrap; gap: 6px; }
.bank-brand-toggle { display: block; }
.bank-brand-toggle > span { min-height: 38px; display: grid; grid-template-columns: auto 15px; align-items: center; gap: 14px; padding: 7px 9px 7px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: #0d0f13; cursor: pointer; font-size: 10px; font-weight: 700; transition: border-color .16s, color .16s, background .16s; }
.bank-brand-toggle > span::after { content: ""; width: 13px; height: 13px; display: grid; place-items: center; border: 1px solid #4a515d; border-radius: 1px; color: #0b0d10; font-size: 8px; font-weight: 900; }
.bank-brand-toggle input:checked + span { border-color: #777f8b; color: var(--text); background: #191c22; }
.bank-brand-toggle input:checked + span::after { content: "✓"; border-color: var(--text); background: var(--text); }
.account-bank-form-footer { min-height: 18px; display: flex; justify-content: space-between; gap: 20px; }
.account-bank-form-footer p { margin: 0; color: var(--muted-2); font-size: 9px; line-height: 1.55; }
.account-bank-form-footer .form-error { color: var(--red); text-align: right; }
.account-bank-progress { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px; margin: 17px 25px 0; padding: 13px 15px; border: 1px solid #4a515c; border-radius: 3px; background: #15181e; }
.account-bank-progress .spinner { width: 22px; height: 22px; }
.account-bank-progress b { font-size: 11px; }
.account-bank-progress p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.account-bank-results { display: grid; gap: 13px; padding: 21px 25px 28px; }
.account-bank-empty { min-height: 215px; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.account-bank-empty-label { margin-bottom: 12px; color: var(--muted-2); font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.account-bank-empty b { color: var(--text); font-size: 13px; }
.account-bank-empty p { max-width: 460px; margin: 6px 0 0; font-size: 10px; line-height: 1.55; }
.account-bank-summary { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 2px 1px 5px; }
.account-bank-summary h3 { margin: 4px 0 0; font-size: 18px; }
.account-bank-summary > p { margin: 0; color: var(--muted-2); font-size: 9px; }
.account-bank-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #101216; }
.account-bank-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); background: #15181d; }
.account-bank-group-title { display: flex; align-items: center; gap: 10px; }
.account-bank-group-heading h3 { margin: 0; font-size: 12px; }
.account-bank-group-heading p { margin: 3px 0 0; color: var(--muted-2); font-size: 8px; }
.bank-status-dot { width: 7px; height: 7px; background: var(--muted-2); }
.bank-status-dot.ok { background: #c7cbd0; }
.bank-status-dot.error { background: var(--red); }
.account-bank-count { color: var(--muted); font-size: 9px; }
.account-bank-none { display: grid; gap: 3px; padding: 23px 16px; color: var(--muted); text-align: center; }
.account-bank-none span { color: var(--text); font-size: 11px; }
.account-bank-none small { color: var(--muted-2); font-size: 9px; }
.account-bank-none.error span { color: var(--red); }
.account-bank-result-list { display: grid; }
.account-bank-result-row + .account-bank-result-row { border-top: 1px solid var(--line-soft); }
.account-bank-result-overview { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 16px; }
.account-bank-brand-name { color: #c8cdd3; font-size: 9px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.account-bank-result-identity { min-width: 0; }
.account-bank-result-identity > div:first-child { display: flex; align-items: center; gap: 9px; }
.account-bank-result-identity h4 { overflow: hidden; margin: 0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-bank-result-identity > p { overflow: hidden; margin: 4px 0 0; color: #c6cad0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bank-text-status { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.bank-text-status i { width: 5px; height: 5px; background: var(--muted-2); }
.bank-text-status i.ok { background: #c7cbd0; }
.account-bank-result-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.account-bank-result-meta .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.account-bank-selector { display: block; overflow: hidden; margin-top: 7px; color: var(--muted-2); font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.account-bank-add { min-width: 108px; }
.account-bank-details { border-top: 1px solid var(--line-soft); background: #0c0e12; }
.account-bank-details > summary, .account-bank-inline-json > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; color: var(--muted); font-size: 9px; font-weight: 680; cursor: pointer; list-style: none; }
.account-bank-details > summary::-webkit-details-marker, .account-bank-inline-json > summary::-webkit-details-marker { display: none; }
.account-bank-details > summary::after, .account-bank-inline-json > summary::after { content: "+"; color: var(--muted-2); font-size: 13px; font-weight: 450; }
.account-bank-details[open] > summary::after, .account-bank-inline-json[open] > summary::after { content: "−"; }
.account-bank-details > summary:hover, .account-bank-inline-json > summary:hover { color: var(--text); background: rgba(255,255,255,.012); }
.account-bank-details > summary small { margin-left: auto; color: var(--muted-2); font-size: 8px; font-weight: 450; }
.account-bank-returned-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 2px 16px 14px; }
.account-bank-returned-field { min-width: 0; display: grid; grid-template-columns: minmax(90px, .42fr) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.account-bank-returned-field:nth-child(odd) { padding-right: 18px; }
.account-bank-returned-field:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.account-bank-returned-field dt { color: var(--muted-2); font-size: 8px; letter-spacing: .04em; }
.account-bank-returned-field dd { min-width: 0; margin: 0; color: #c8cdd3; font: 9px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.account-bank-returned-field pre { max-height: 220px; margin: 0; overflow: auto; color: inherit; font: inherit; white-space: pre-wrap; word-break: break-word; }
.account-bank-returned-field .null-value { color: var(--muted-2); font-style: italic; }
.account-bank-no-fields { grid-column: 1 / -1; padding: 12px 0; color: var(--muted); font-size: 9px; }
.account-bank-inline-json { border-top: 1px solid var(--line-soft); }
.account-bank-inline-json > pre { max-height: 360px; margin: 0; padding: 15px 16px 18px; overflow: auto; color: #c4c9d0; background: #080a0d; font: 9px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.account-bank-region-response > summary { padding-right: 16px; padding-left: 16px; background: #0c0e12; }
.account-bank-search-response { overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #0d0f13; }
.button.compact { min-height: 31px; padding: 6px 10px; font-size: 9px; }
.account-bank-import-state { position: sticky; z-index: 6; top: 79px; display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 12px; padding: 14px 15px; border: 1px solid #675d49; border-radius: 3px; background: rgba(29, 27, 23, .98); box-shadow: var(--shadow); }
.account-bank-import-state.complete { border-color: #59615c; background: rgba(22, 25, 25, .98); }
.account-bank-import-state.failed, .account-bank-import-state.review_required { border-color: rgba(255, 113, 104, .3); background: rgba(35, 18, 17, .97); }
.account-bank-import-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 2px; color: var(--text); font-size: 13px; }
.account-bank-import-state.complete .account-bank-import-icon { color: var(--green); }
.account-bank-import-state.failed .account-bank-import-icon, .account-bank-import-state.review_required .account-bank-import-icon { color: var(--red); }
.account-bank-import-icon .spinner { width: 17px; height: 17px; }
.account-bank-import-state h3 { margin: 3px 0 3px; font-size: 13px; }
.account-bank-import-state p { margin: 0; color: var(--muted); font-size: 9px; }
.account-bank-import-state .account-bank-inline-json { margin-top: 9px; border: 1px solid rgba(255,255,255,.06); border-radius: 7px; }
.account-bank-import-state .account-bank-inline-json > summary { padding: 7px 9px; }
.json-modal { width: min(1040px, calc(100vw - 28px)); height: min(780px, calc(100vh - 28px)); }
.json-heading { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.json-actions { display: flex; gap: 7px; align-items: center; }
.json-actions input { width: 210px; min-height: 38px; }
.json-modal pre { height: calc(100% - 73px); margin: 0; padding: 19px; overflow: auto; background: #080a0d; color: #c9ced5; font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.json-match { color: #0b0d10; background: #d9dde2; }

.skeleton { position: relative; overflow: hidden; min-height: 70px; border-radius: 3px; background: var(--surface); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { width: min(370px, calc(100vw - 40px)); padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid #a6adb7; border-radius: 3px; background: #181b21; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }
.toast.error { border-left-color: var(--red); }
.toast b, .toast span { display: block; }
.toast b { font-size: 11px; }
.toast span { margin-top: 2px; color: var(--muted); font-size: 10px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-hero, .detail-layout { grid-template-columns: 1fr; }
  .detail-layout > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .inspector-layout { grid-template-columns: 260px 1fr; }
}

@media (max-width: 760px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-panel { min-height: 270px; padding: 30px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-form-wrap { padding: 38px 24px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 14px; flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand-lockup { padding: 0 14px 0 0; }
  .primary-nav { display: flex; }
  .primary-nav button { min-width: max-content; }
  .topbar { padding: 18px 20px; }
  .view-root { padding: 20px; }
  .settings-grid, .inspector-layout { grid-template-columns: 1fr; }
  .endpoint-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .json-heading { align-items: stretch; }
  .json-actions { flex-wrap: wrap; justify-content: flex-end; }
  .json-actions input { width: 100%; order: 3; }
  .account-bank-heading, .account-bank-search, .account-bank-results { padding-right: 17px !important; padding-left: 17px !important; }
  .account-bank-query-row { grid-template-columns: 1fr; }
  .account-bank-submit { width: 100%; }
  .account-bank-methods { width: 100%; }
  .account-bank-methods label { flex: 1 1 auto; }
  .account-bank-form-footer { flex-direction: column; gap: 5px; }
  .account-bank-form-footer .form-error { text-align: left; }
  .account-bank-progress { margin-right: 17px; margin-left: 17px; }
  .account-bank-result-overview { grid-template-columns: 76px minmax(0, 1fr); }
  .account-bank-add { grid-column: 2; justify-self: start; }
  .account-bank-returned-fields { grid-template-columns: 1fr; }
  .account-bank-returned-field:nth-child(odd), .account-bank-returned-field:nth-child(even) { padding-right: 0; padding-left: 0; border-left: 0; }
}

/* Application navigation and fleet control center */
.app-shell { grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { padding: 24px 14px 16px; }
.sidebar-label { margin: 4px 10px 8px; color: var(--muted-2); font-size: 9px; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
.primary-nav button { min-height: 43px; }
.sidebar-vehicle-area { min-height: 0; display: flex; flex: 1; flex-direction: column; margin-top: 24px; }
.sidebar-disclaimer { flex: 0 0 auto; max-width: 210px; padding: 14px 10px 0; border-top: 1px solid var(--line-soft); }
.sidebar-vehicle-list { min-height: 0; display: grid; align-content: start; gap: 5px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.sidebar-vehicle { width: 100%; min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 9px; padding: 7px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.sidebar-vehicle:hover, .sidebar-vehicle.active { border-color: var(--line); background: var(--surface-2); }
.sidebar-vehicle.active { background: var(--surface-2); }
.sidebar-vehicle > span:last-child { min-width: 0; }
.sidebar-vehicle b, .sidebar-vehicle small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-vehicle b { font-size: 10px; }
.sidebar-vehicle small { margin-top: 2px; color: var(--muted-2); font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.sidebar-vehicle-thumb { position: relative; overflow: hidden; width: 46px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 2px; background: #171a20; }
.sidebar-vehicle-thumb .vehicle-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2px; opacity: 0; transition: opacity .2s; }
.sidebar-vehicle-thumb.image-ready .vehicle-image { opacity: 1; }
.sidebar-empty { margin: 2px 5px; padding: 10px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }

.fleet-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 18px; }
.fleet-toolbar h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.fleet-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.fleet-filters { display: flex; align-items: end; gap: 9px; }
.fleet-filters label { min-width: 220px; gap: 5px; color: var(--muted-2); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.fleet-filters input, .fleet-filters select { min-height: 39px; }

.vehicle-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.vehicle-card { min-height: 0; padding: 0; background: var(--surface); }
.vehicle-card::after { display: none; }
.vehicle-card-media { position: relative; overflow: hidden; height: 172px; display: grid; place-items: center; border-bottom: 1px solid var(--line-soft); background: linear-gradient(145deg, #1b1e24, #0e1014); }
.vehicle-card-media.provider-lexus-na, .vehicle-image-stage.provider-lexus-na, .vehicle-card-media.provider-toyota-au, .vehicle-image-stage.provider-toyota-au, .vehicle-card-media.provider-mysubaru-na, .vehicle-card-media.provider-subaru-connect-na, .vehicle-image-stage.provider-mysubaru-na, .vehicle-image-stage.provider-subaru-connect-na { background: linear-gradient(145deg, #1b1e24, #0e1014); }
.vehicle-card-media > .badge { position: absolute; z-index: 3; top: 12px; right: 12px; }
.vehicle-image-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 5px; text-align: center; transition: opacity .22s; }
.vehicle-image-fallback b { color: rgba(240,242,244,.16); font-family: "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif; font-size: clamp(28px, 4vw, 48px); font-weight: 850; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.vehicle-image-fallback span { color: var(--muted-2); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.vehicle-card-media .vehicle-image, .vehicle-image-stage .vehicle-image { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; padding: 12px 22px; object-fit: contain; opacity: 0; transform: translateY(4px); transition: opacity .28s, transform .28s; }
.vehicle-card-media.image-ready .vehicle-image, .vehicle-image-stage.image-ready .vehicle-image { opacity: 1; transform: none; }
.vehicle-card-media .vehicle-image { padding: 2px 18px; transform: translateY(3px) scale(1.1); }
.vehicle-card-media.image-ready .vehicle-image { transform: scale(1.1); }
.vehicle-card-media.image-ready .vehicle-image-fallback, .vehicle-image-stage.image-ready .vehicle-image-fallback { opacity: 0; }
.vehicle-image.failed { display: none; }
.vehicle-card-body { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 16px 17px 12px; }
.vehicle-card-body h3 { margin: 0 0 3px; font-size: 18px; }
.vehicle-card-body p { font-size: 10px; }
.vehicle-quick-state { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 16px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 3px; background: var(--line-soft); }
.vehicle-quick-state.count-1 { grid-template-columns: 1fr; }
.vehicle-quick-state.count-2 { grid-template-columns: repeat(2, 1fr); }
.vehicle-quick-state > span { min-width: 0; display: grid; gap: 4px; padding: 9px 10px; background: #0d0f13; }
.vehicle-quick-state small { color: var(--muted-2); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.vehicle-quick-state b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.state-locked { color: var(--green); }
.state-unlocked, .state-open { color: var(--amber); }
.vehicle-card-vin { display: flex; justify-content: space-between; gap: 10px; padding: 12px 17px 14px; color: var(--muted-2); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }

.vehicle-loading { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; margin-bottom: 16px; }
.image-skeleton, .control-skeleton { min-height: 340px; }
.vehicle-detail-region { display: contents; }
.control-hero { display: grid; grid-template-columns: minmax(390px, .9fr) minmax(520px, 1.1fr); align-items: stretch; gap: 16px; margin-bottom: 16px; }
.vehicle-overview-column { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vehicle-identity-card { overflow: hidden; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vehicle-image-stage { position: relative; overflow: hidden; height: 220px; background: linear-gradient(145deg, #1b1e24, #0e1014); }
.vehicle-image-stage .vehicle-image { padding: 4px 18px; transform: translateY(3px) scale(1.1); }
.vehicle-image-stage.image-ready .vehicle-image { transform: scale(1.1); }
.vehicle-identity-copy { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 17px 19px 19px; border-top: 1px solid var(--line-soft); }
.vehicle-identity-copy h2 { margin: 7px 0 2px; font-size: 25px; letter-spacing: -.045em; }
.vehicle-identity-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.full-vin { min-width: 180px; text-align: right; }
.full-vin small { display: block; color: var(--muted-2); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.full-vin button { padding: 4px 0; border: 0; background: transparent; color: var(--text); cursor: copy; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.control-console { display: flex; flex-direction: column; padding: 19px; }
.control-console-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.control-console h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.control-access { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.control-button { min-width: 0; min-height: 66px; display: grid; grid-template-columns: minmax(0, 1fr) 14px; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: 3px; background: #15181e; color: var(--text); text-align: left; cursor: pointer; transition: border-color .14s, background .14s; }
.control-button:hover:not(:disabled) { border-color: #5b626d; background: #1b1f26; }
.control-button:disabled { opacity: .52; cursor: wait; }
.control-button.dangerous { border-color: rgba(255,113,104,.15); }
.control-button.dangerous:hover:not(:disabled) { border-color: rgba(255,113,104,.45); background: rgba(255,113,104,.06); }
.control-button > span { min-width: 0; }
.control-button b, .control-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.control-button b { font-size: 11px; }
.control-button small { margin-top: 3px; color: var(--muted-2); font-size: 9px; }
.control-button > i { color: var(--muted-2); font-style: normal; }
.provider-profile-note { margin: -5px 1px 2px; color: var(--muted-2); font-size: 10px; line-height: 1.45; }
.control-note { margin: auto 0 0; padding-top: 13px; color: var(--muted-2); font-size: 9px; }
.section-load-target { position: relative; overflow: hidden; }
.section-loading-overlay { position: absolute; z-index: 8; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #d9dde2; background: rgba(9, 11, 14, .74); backdrop-filter: blur(1px); pointer-events: none; font-size: 10px; }
.section-loading-overlay .spinner { width: 20px; height: 20px; border-color: rgba(255, 255, 255, .17); border-top-color: #d9ded9; }

.status-section, .map-panel, .data-panel { margin-top: 16px; }
.section-title { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.section-title h2 { margin: 0; font-size: 19px; letter-spacing: -.03em; }
.section-title p:not(.eyebrow) { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.status-primary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); }
.status-primary.count-1 { grid-template-columns: 1fr; }
.status-primary.count-2 { grid-template-columns: repeat(2, 1fr); }
.status-primary.count-3 { grid-template-columns: repeat(3, 1fr); }
.status-primary.count-4 { grid-template-columns: repeat(4, 1fr); }
.status-primary .status-tile { min-height: 122px; border: 0; border-radius: 0; background: var(--surface); }
.status-primary .status-tile strong { margin-top: 16px; font-size: 21px; }
.state-detail-block { padding: 18px 20px; border-top: 1px solid var(--line-soft); }
.subsection-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.subsection-heading h3 { margin: 0; font-size: 12px; }
.subsection-heading span { color: var(--muted-2); font-size: 9px; }
.opening-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 7px; }
.opening-state { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 3px; background: #0d0f13; }
.opening-state b, .opening-state small { display: block; }
.opening-state b { font-size: 9px; }
.opening-state small { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.opening-state > i { width: 7px; height: 7px; flex: 0 0 auto; background: var(--muted-2); }
.opening-state > i.good { background: var(--green); }
.opening-state > i.warn { background: var(--amber); }
.tire-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px; }
.tire-grid > div { position: relative; display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 3px; background: #0d0f13; }
.tire-grid span { color: var(--muted); font-size: 9px; text-transform: capitalize; }
.tire-grid b { font-size: 19px; }
.tire-grid b small { color: var(--muted-2); font-size: 9px; }
.tire-warning { position: absolute; top: 8px; right: 8px; color: var(--red); font-size: 8px; font-style: normal; text-transform: uppercase; }
.status-empty { padding: 28px 20px; color: var(--muted); font-size: 11px; }
.telemetry-facts { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 3px; }
.telemetry-facts .data-fact { background: #0d0f13; }

.populated-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.populated-panel { min-width: 0; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.data-fact { min-width: 0; padding: 13px 16px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.data-fact small, .data-fact b { display: block; }
.data-fact small { color: var(--muted-2); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.data-fact b { margin-top: 5px; overflow-wrap: anywhere; font-size: 10px; font-weight: 620; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px; }
.chip-cloud span { padding: 6px 9px; border: 1px solid #414751; border-radius: 2px; background: var(--accent-soft); color: #d3d7dc; font-size: 9px; }
.subscription-list { display: grid; }
.subscription-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.subscription-list > div:last-child { border-bottom: 0; }
.subscription-list b, .subscription-list small { display: block; }
.subscription-list b { font-size: 10px; }
.subscription-list small { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.additional-data { grid-column: 1 / -1; }
.additional-data summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; cursor: pointer; list-style: none; }
.additional-data summary::-webkit-details-marker { display: none; }
.additional-data summary small, .additional-data summary b { display: block; }
.additional-data summary small { color: var(--accent); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.additional-data summary b { margin-top: 3px; font-size: 12px; }
.additional-data summary > i { color: var(--muted); font-size: 9px; font-style: normal; }
.structured-data { grid-column: 1 / -1; }
.structured-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.structured-list details { min-width: 0; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.structured-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.structured-list summary span { font-size: 10px; font-weight: 650; }
.structured-list summary small { color: var(--muted-2); font-size: 8px; }
.structured-list pre { max-height: 330px; margin: 0; overflow: auto; padding: 14px 16px; border-top: 1px solid var(--line-soft); background: #080a0d; color: #bec4cc; font: 9px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }

.map-panel { overflow: visible; }
.map-wrap { position: relative; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius); }
.vehicle-map { height: 480px; background: #13161b; }
.vehicle-map .leaflet-tile-pane { filter: grayscale(1) saturate(.15) brightness(.72) contrast(1.12); }
.vehicle-map .leaflet-control-zoom a { border-color: var(--line); background: #171a20; color: var(--text); }
.vehicle-map .leaflet-control-attribution { color: #6b737e; background: rgba(9,11,14,.84); }
.vehicle-map .leaflet-control-attribution a { color: #b3bac4; }
.map-coordinates { position: absolute; z-index: 500; left: 14px; bottom: 14px; display: flex; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 3px; background: rgba(10,12,15,.92); box-shadow: 0 12px 35px rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.map-coordinates span { min-width: 150px; padding: 9px 12px; border-right: 1px solid var(--line); }
.map-coordinates span:last-child { border-right: 0; }
.map-coordinates small, .map-coordinates b { display: block; }
.map-coordinates small { color: var(--muted-2); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.map-coordinates b { margin-top: 3px; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.vehicle-map-marker-wrap { background: transparent; border: 0; }
.vehicle-map-marker { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(232,234,237,.7); border-radius: 2px; background: rgba(17,20,25,.92); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.vehicle-map-marker i { width: 9px; height: 9px; background: #e1e3e6; }
.map-empty { min-height: 220px; display: grid; place-content: center; gap: 5px; text-align: center; }
.map-empty b { color: var(--text); }
.map-empty span { color: var(--muted); font-size: 11px; }

.account-identity { display: grid; grid-template-columns: minmax(245px, .7fr) minmax(0, 1.3fr) auto; align-items: start; gap: 22px; margin-top: 16px; padding: 18px 20px; }
.account-identity.compact { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-identity-head { min-width: 0; align-self: center; display: block; }
.account-identity-head h2 { margin: 0 0 5px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.account-identity-head .eyebrow { margin-bottom: 3px; font-size: 8px; }
.account-identity-values { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 0 24px; }
.account-identity-values .data-fact { padding: 4px 0 10px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; }
.account-identity-values .data-fact:nth-last-child(-n+2) { border-bottom-color: transparent; }
.account-identity-values .data-fact b { margin-top: 4px; font-size: 10px; }
.account-identity-actions { align-self: center; display: flex; justify-content: end; }
.profile-loading { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.profile-loading .spinner { width: 16px; height: 16px; }
.account-manage-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-manage-card .account-identity { margin: 0; border: 0; border-radius: 0; }
.account-manage-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 18px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 9px; }
.account-manage-actions > div { display: flex; gap: 7px; }
.data-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.receipt-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.receipt-row .badge { justify-self: end; }

/* Vehicle context and developer-only provider payloads */
.vehicle-context-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vehicle-context-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.vehicle-context-head h3 { margin: 0; font-size: 13px; }
.vehicle-context-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; padding: 3px 18px 11px; }
.vehicle-context-list > div { min-width: 0; display: grid; align-content: center; gap: 4px; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-soft); }
.vehicle-context-list > div:nth-last-child(-n+2) { border-bottom-color: transparent; }
.vehicle-context-list small { color: var(--muted-2); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.vehicle-context-list b { overflow: hidden; color: #cbd0d6; font-size: 9px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.developer-panel { overflow: hidden; }
.developer-panel > summary { align-items: center; cursor: pointer; list-style: none; }
.developer-panel > summary::-webkit-details-marker { display: none; }
.developer-disclosure { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 650; }
.developer-disclosure i { color: var(--accent); font-style: normal; transition: transform .18s; }
.developer-panel[open] .developer-disclosure i { transform: rotate(180deg); }
.developer-body > .data-actions { justify-content: flex-start; padding: 14px 18px 8px; }
.developer-note { margin: 0; padding: 0 18px 14px; color: var(--muted-2); font-size: 9px; }
.data-handling-panel { grid-column: 1 / -1; }
.provider-data-reset-panel { grid-column: 1 / -1; }
.provider-data-reset-panel .button { width: fit-content; }
.data-handling-panel .settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.data-handling-panel .settings-form > p { margin: 0; }

/* Flat fleet status copy keeps the inventory scannable at fleet scale. */
.vehicle-status-copy { display: grid; gap: 8px; margin: 1px 17px 13px; padding-top: 2px; color: #c8cdd3; }
.vehicle-status-copy p { margin: 0; }
.vehicle-state-copy, .vehicle-detail-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 10px; }
.vehicle-state-copy strong, .vehicle-state-copy span { font-weight: 620; }
.vehicle-state-copy i, .vehicle-detail-copy i { color: #555d68; font-style: normal; }
.vehicle-detail-copy { color: var(--muted); font-size: 9px; }
.vehicle-location-copy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 7px; color: var(--muted); font-size: 9px; }
.vehicle-location-copy span { color: var(--muted-2); }
.vehicle-location-copy b { overflow: hidden; color: #b8bec7; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-location-copy small, .vehicle-status-time { color: var(--muted-2); font-size: 8px; }
.vehicle-status-copy.empty { color: var(--muted-2); font-size: 9px; }

@media (max-width: 1180px) {
  .control-hero { grid-template-columns: 1fr; }
  .vehicle-image-stage { height: 280px; }
  .vehicle-context-panel { flex: none; }
  .status-primary { grid-template-columns: repeat(3, 1fr); }
  .account-identity { grid-template-columns: 1fr; }
  .account-identity-actions { justify-content: start; }
}

@media (max-width: 880px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand-lockup { padding: 0 16px 0 0; }
  .sidebar-brand-lockup .brand-subtitle, .sidebar-disclaimer { display: none; }
  .sidebar > .sidebar-label, .sidebar-vehicle-area { display: none; }
  .primary-nav { display: flex; }
  .primary-nav button { min-width: max-content; }
  .topbar { padding: 17px 20px; }
  .view-root { padding: 20px; }
  .fleet-toolbar { align-items: stretch; flex-direction: column; }
  .fleet-filters { flex-wrap: wrap; }
  .fleet-filters label { flex: 1 1 220px; }
  .populated-data-grid { grid-template-columns: 1fr; }
  .additional-data, .structured-data { grid-column: auto; }
}

@media (max-width: 620px) {
  .topbar { align-items: start; }
  .topbar-actions { flex-wrap: wrap; justify-content: end; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .fleet-filters { width: 100%; flex-direction: column; align-items: stretch; }
  .fleet-filters label { width: 100%; min-width: 0; flex: 0 0 auto; }
  .fleet-filters input, .fleet-filters select { min-height: 42px; height: 42px; }
  .vehicle-card-media { height: 160px; }
  .vehicle-image-stage { height: 210px; }
  .vehicle-identity-copy { align-items: start; flex-direction: column; }
  .full-vin { min-width: 0; text-align: left; }
  .control-grid { grid-template-columns: 1fr; }
  .status-primary { grid-template-columns: repeat(2, 1fr); }
  .opening-grid, .fact-grid { grid-template-columns: 1fr; }
  .vehicle-context-list, .account-identity-values { grid-template-columns: 1fr; }
  .vehicle-context-list > div:nth-last-child(-n+2), .account-identity-values .data-fact { border-bottom-color: var(--line-soft); }
  .vehicle-context-list > div:last-child, .account-identity-values .data-fact:last-child { border-bottom-color: transparent; }
  .structured-list { grid-template-columns: 1fr; }
  .vehicle-map { height: 390px; }
  .map-coordinates { right: 12px; flex-direction: column; }
  .map-coordinates span { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .map-coordinates span:last-child { border-bottom: 0; }
  .section-title { align-items: stretch; flex-direction: column; }
  .data-actions { justify-content: start; }
  .account-manage-actions { align-items: stretch; flex-direction: column; }
  .account-manage-actions > div { flex-wrap: wrap; }
  .vehicle-location-copy { grid-template-columns: auto minmax(0, 1fr); }
  .vehicle-location-copy small { grid-column: 2; }
  .provider-table, .provider-table tbody, .provider-table tr, .provider-table td { display: block; width: 100%; }
  .provider-table thead { display: none; }
  .provider-table tr { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
  .provider-table tr:last-child { border-bottom: 0; }
  .provider-table td { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: start; gap: 10px; padding: 5px 0; border: 0; }
  .provider-table td::before { content: attr(data-label); color: var(--muted-2); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .provider-table td .badge { justify-self: start; }
  .data-handling-panel .settings-form { grid-template-columns: 1fr; }
}
