/* AmpereDesk design system */
:root {
  --bg: #f2f4ee;
  --bg-2: #e9ede2;
  --surface: #ffffff;
  --surface-2: #f8faf4;
  --surface-3: #eef2e8;
  --ink: #0d1712;
  --ink-2: #24312a;
  --muted: #5f6c62;
  --muted-2: #616d64;
  --line: #e0e6d9;
  --line-strong: #ccd6c2;
  --accent: #b7f34a;
  --accent-strong: #8fdd1c;
  --accent-ink: #122106;
  --accent-soft: #eefbd8;
  --forest: #0b1712;
  --forest-2: #12241c;
  --forest-ink: #e7f0e2;
  --forest-muted: #93a798;
  --blue: #2f66d9;
  --blue-soft: #e9f0ff;
  --amber: #8a5a12;
  --amber-soft: #fff5dd;
  --red: #c23b3b;
  --red-soft: #ffeded;
  --green: #1a7342;
  --green-soft: #e6f7ec;
  --purple: #7556d8;
  --purple-soft: #f0ebff;
  --shadow-sm: 0 1px 2px rgba(13, 23, 18, .05), 0 1px 1px rgba(13, 23, 18, .03);
  --shadow-md: 0 10px 30px -12px rgba(13, 23, 18, .16), 0 2px 6px rgba(13, 23, 18, .04);
  --shadow-lg: 0 30px 80px -24px rgba(13, 23, 18, .32), 0 8px 24px rgba(13, 23, 18, .08);
  --r-sm: 9px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sidebar-w: 256px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg: #080d0a;
  --bg-2: #0d1410;
  --surface: #101813;
  --surface-2: #0c130f;
  --surface-3: #18231c;
  --ink: #edf4e9;
  --ink-2: #d4dfd2;
  --muted: #91a096;
  --muted-2: #74837a;
  --line: #223029;
  --line-strong: #2e4035;
  --accent: #b7f34a;
  --accent-strong: #c8ff62;
  --accent-ink: #102006;
  --accent-soft: #1a2a10;
  --forest: #060d09;
  --forest-2: #0d1a13;
  --forest-ink: #e7f0e2;
  --forest-muted: #879b8b;
  --blue-soft: #13233f;
  --amber-soft: #2a2110;
  --red-soft: #2c1414;
  --green-soft: #10261a;
  --purple-soft: #211a38;
  --blue: #7fa6ff;
  --amber: #e2b45c;
  --red: #ff8f8f;
  --green: #6fda9a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 12px 32px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-strong) 60%, transparent); outline-offset: 2px; }

.boot { min-height: 100dvh; display: grid; place-content: center; gap: 14px; text-align: center; color: var(--muted); }
.boot-mark { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; background: var(--forest); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.boot .bolt { font-size: 30px; color: var(--accent); }

/* Shell */
.app-shell { display: flex; min-height: 100dvh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--forest); color: var(--forest-ink);
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  display: flex; flex-direction: column;
  padding: 18px 14px 14px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--accent);
  color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 20px -8px rgba(183,243,74,.5);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.brand-name span { color: var(--accent); }
.brand-tag { font-size: 10px; color: var(--forest-muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 1px; }
.garage-switch {
  margin: 0 4px 18px; padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px; width: calc(100% - 8px); text-align: left;
}
.garage-switch:hover { background: rgba(255,255,255,.08); }
.garage-avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.garage-switch .g-name { font-weight: 650; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.garage-switch .g-role { font-size: 10.5px; color: var(--forest-muted); text-transform: capitalize; }
.garage-switch .chev { margin-left: auto; color: var(--forest-muted); display: flex; }
.nav-group { display: grid; gap: 2px; margin-bottom: 20px; }
.nav-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #64796a; padding: 0 12px 7px; font-weight: 650; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: 9px; color: #b8c8bb; font-size: 13px; font-weight: 550;
  border: 0; background: none; width: 100%; text-align: left; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.055); color: #eef6ea; }
.nav-item.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: 0 8px 20px -10px rgba(183,243,74,.6); }
.nav-item .nav-icon { display: flex; width: 18px; height: 18px; }
.nav-item .nav-icon svg { width: 18px; height: 18px; }
.nav-badge { margin-left: auto; font-size: 10px; font-weight: 800; background: rgba(255,255,255,.13); padding: 1px 6px; border-radius: 99px; }
.nav-item.active .nav-badge { background: rgba(18,33,6,.16); }
.sidebar-spacer { flex: 1; }
.sidebar-card {
  margin: 8px 4px 14px; padding: 13px; border-radius: 14px;
  background: linear-gradient(150deg, rgba(183,243,74,.16), rgba(183,243,74,.03));
  border: 1px solid rgba(183,243,74,.22);
}
.sidebar-card strong { display: block; font-size: 12px; margin-bottom: 3px; }
.sidebar-card p { font-size: 11px; color: var(--forest-muted); line-height: 1.45; }
.sidebar-card a { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; font-size: 11px; font-weight: 700; color: var(--accent); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); }
.user-chip .u-name { font-size: 12px; font-weight: 650; }
.user-chip .u-mail { font-size: 10px; color: var(--forest-muted); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .icon-btn { margin-left: auto; color: var(--forest-muted); }
.user-chip .icon-btn:hover { color: var(--forest-ink); background: rgba(255,255,255,.08); }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px;
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crumb { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.crumb strong { color: var(--ink); font-weight: 650; }
.topbar-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; display: inline-grid; place-items: center; color: var(--muted);
}
.icon-btn:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.has-dot { position: relative; }
.icon-btn.has-dot::after { content: ""; position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 12px; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.avatar.sm { width: 27px; height: 27px; font-size: 10px; }
.avatar.lg { width: 46px; height: 46px; font-size: 15px; }
.avatar.forest { background: var(--forest); color: var(--accent); }
.mobile-menu { display: none; }
.page { padding: 26px 28px 64px; max-width: 1480px; animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 7px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong); }
.page-head h1 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 720; letter-spacing: -.035em; }
.page-sub { color: var(--muted); margin-top: 6px; font-size: 13px; max-width: 620px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; border-radius: 9px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 650; line-height: 1.15; white-space: nowrap;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 6px 16px -8px rgba(11,23,18,.6); }
.btn-primary:hover { background: #13271d; }
:root[data-theme="dark"] .btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-lime { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px rgba(143,221,28,.6); }
.btn-lime:hover { background: var(--accent-strong); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }
.btn-secondary:hover { border-color: var(--muted-2); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 20%, transparent); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 10px; font-size: 11.5px; border-radius: 8px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Cards & layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-title { font-size: 14px; font-weight: 700; }
.card-sub { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.card-body { padding: 18px 20px 20px; }
.card-foot { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-link { font-size: 11.5px; color: var(--muted); font-weight: 650; display: inline-flex; align-items: center; gap: 4px; }
.card-link:hover { color: var(--ink); }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.kpi { padding: 17px 18px 15px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -28px; top: -34px; background: var(--accent-soft); opacity: .65; }
.kpi.alt::after { background: var(--blue-soft); }
.kpi.warn::after { background: var(--amber-soft); }
.kpi.ink::after { background: var(--surface-3); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.kpi-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.kpi-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.kpi-icon svg { width: 15px; height: 15px; }
.kpi-value { font-family: var(--display); font-size: 30px; font-weight: 720; letter-spacing: -.04em; margin-top: 12px; position: relative; z-index: 1; line-height: 1; }
.kpi-value small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi-foot { margin-top: 9px; font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; position: relative; z-index: 1; }
.kpi-foot b { color: var(--green); font-weight: 700; }
.kpi-foot b.down { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .9fr); gap: 16px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 16px; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 12.5px; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s ease; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data .row-main { font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 9px; }
table.data .row-sub { color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.cell-car { display: flex; align-items: center; gap: 8px; }
.car-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); flex: none; }
.car-mark svg { width: 15px; height: 15px; }
.table-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; font-size: 10px; font-weight: 750; letter-spacing: .01em; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge-green, .badge-ok, .badge-completed, .badge-available, .badge-approved, .badge-won { background: var(--green-soft); color: var(--green); }
.badge-lime, .badge-ready, .badge-confirmed { background: var(--accent-soft); color: #4d7a0a; }
:root[data-theme="dark"] .badge-lime, :root[data-theme="dark"] .badge-ready, :root[data-theme="dark"] .badge-confirmed { color: var(--accent); }
.badge-amber, .badge-pending, .badge-attention, .badge-awaiting_approval, .badge-inspecting, .badge-fault, .badge-test_drive, .badge-new { background: var(--amber-soft); color: var(--amber); }
.badge-red, .badge-fail, .badge-cancelled, .badge-no_show, .badge-lost { background: var(--red-soft); color: var(--red); }
.badge-blue, .badge-intake, .badge-contacted, .badge-charging, .badge-in_progress, .badge-checked_in, .badge-converted { background: var(--blue-soft); color: var(--blue); }
.badge-purple, .badge-offline, .badge-maintenance { background: var(--purple-soft); color: var(--purple); }
.badge-gray, .badge-na, .badge-draft { background: var(--surface-3); color: var(--muted); }
.badge-dark { background: var(--forest); color: var(--accent); }
.priority { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); }
.priority.high, .priority.urgent { color: var(--red); }
.priority.low { color: var(--muted-2); }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.search { position: relative; min-width: 210px; flex: 0 1 300px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted-2); }
.search input { width: 100%; padding: 8px 10px 8px 33px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; }
.search input:focus { outline: 2px solid color-mix(in srgb, var(--accent-strong) 40%, transparent); border-color: var(--accent-strong); }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 9px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 6px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 650; color: var(--muted); white-space: nowrap; cursor: pointer; }
.tab:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg { border: 0; background: var(--surface); padding: 6px 10px; font-size: 11px; font-weight: 650; color: var(--muted); border-right: 1px solid var(--line); }
.seg:last-child { border-right: 0; }
.seg.active { background: var(--forest); color: #fff; }

/* Timeline */
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 52px 16px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-time { font-size: 10.5px; color: var(--muted); font-weight: 650; padding-top: 1px; }
.timeline-mark { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent-strong); background: var(--surface); margin-top: 4px; }
.timeline-item.done .timeline-dot { background: var(--accent); }
.timeline-item.later .timeline-dot { border-color: var(--line-strong); }
.timeline-line { width: 1px; flex: 1; background: var(--line); margin-top: 3px; }
.timeline-body { min-width: 0; }
.timeline-title { font-size: 12px; font-weight: 650; }
.timeline-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.timeline-item .badge { margin-top: 5px; }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kanban-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); min-height: 160px; }
.kanban-head { display: flex; align-items: center; gap: 7px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.kanban-head h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 750; }
.kanban-count { margin-left: auto; font-size: 10px; background: var(--surface-3); color: var(--muted); padding: 1px 6px; border-radius: 99px; font-weight: 750; }
.kanban-list { padding: 9px; display: grid; gap: 8px; }
.job-card { padding: 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.job-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
.job-no { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.job-card h3 { font-size: 12.5px; font-weight: 680; margin-bottom: 2px; }
.job-card .jc-sub { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.jc-amount { font-size: 11.5px; font-weight: 750; }
.jc-assignee { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.empty-col { padding: 18px 10px; text-align: center; font-size: 10.5px; color: var(--muted-2); }

/* Empty states */
.empty { padding: 38px 20px; text-align: center; color: var(--muted); }
.empty-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.empty-icon svg { width: 23px; height: 23px; }
.empty h2 { font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.empty p { font-size: 12px; max-width: 330px; margin: 0 auto 14px; }

/* Activity & lists */
.activity { display: grid; gap: 0; }
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-ic { width: 27px; height: 27px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); flex: none; }
.activity-ic svg { width: 13px; height: 13px; }
.activity-text { font-size: 11.5px; line-height: 1.4; }
.activity-text time { display: block; color: var(--muted-2); font-size: 10px; margin-top: 2px; }
.stat-line { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.stat-line:last-child { border-bottom: 0; }
.stat-line span { color: var(--muted); }
.stat-line b { font-weight: 700; }

/* Charger mini */
.charger-mini { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.charger-mini:last-child { border-bottom: 0; }
.charger-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex: none; }
.charger-ic svg { width: 16px; height: 16px; }
.charger-ic.on { background: var(--accent-soft); color: #4d7a0a; }
.charger-ic.bad { background: var(--red-soft); color: var(--red); }
.charger-meta { min-width: 0; flex: 1; }
.charger-meta b { display: block; font-size: 11.5px; font-weight: 650; }
.charger-meta span { font-size: 10px; color: var(--muted); }
.charger-kw { font-size: 11px; font-weight: 750; text-align: right; }
.charger-kw span { display: block; font-size: 9px; color: var(--muted); font-weight: 500; }

/* Bar chart */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 86px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: var(--surface-3); min-height: 3px; position: relative; }
.bar.today { background: var(--accent); }
.bar-wrap { width: 100%; display: flex; justify-content: center; flex: 1; align-items: flex-end; }
.bar-label { font-size: 8.5px; color: var(--muted-2); font-weight: 650; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(6,12,9,.5); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .18s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 560px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: pop .2s ease both; margin: auto 0; }
.modal.lg { max-width: 820px; }
.modal.sm { max-width: 430px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { font-size: 17px; font-weight: 720; }
.modal-head p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.modal-head .close { margin-left: auto; }
.modal-body { padding: 18px 22px; }
.modal-foot { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
.close { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; }
.close:hover { background: var(--line); color: var(--ink); }
.close svg { width: 15px; height: 15px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > label { font-size: 10.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.field .hint { font-size: 10px; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 12.5px; min-height: 38px;
}
textarea { min-height: 78px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent-strong) 35%, transparent); border-color: var(--accent-strong); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent-strong); }
.field-row { display: flex; gap: 8px; }
.field-row > * { flex: 1; }
.form-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 11px; color: var(--muted); }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: .16s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .16s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent-strong); }
.switch input:checked + span::after { transform: translateX(16px); }

/* Auth */
.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-art { position: relative; background: var(--forest); color: var(--forest-ink); padding: 46px; display: flex; flex-direction: column; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(183,243,74,.18), transparent 68%); top: -180px; right: -180px; }
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(180deg, black, transparent 80%); opacity: .35; }
.auth-art .brand { position: relative; z-index: 1; padding: 0; margin-bottom: auto; }
.auth-art .brand-name { color: #fff; }
.auth-art h1 { position: relative; z-index: 1; font-size: clamp(34px, 4.2vw, 58px); line-height: .98; letter-spacing: -.045em; max-width: 520px; margin: 30px 0 18px; }
.auth-art h1 em { font-style: normal; color: var(--accent); }
.auth-art p { position: relative; z-index: 1; color: #b1c2b5; max-width: 430px; font-size: 14px; }
.auth-points { position: relative; z-index: 1; display: grid; gap: 12px; margin-top: 30px; max-width: 430px; }
.auth-point { display: flex; gap: 11px; align-items: flex-start; font-size: 12.5px; color: #c7d6c9; }
.auth-point .tick { width: 22px; height: 22px; border-radius: 7px; background: rgba(183,243,74,.14); color: var(--accent); display: grid; place-items: center; flex: none; }
.auth-point .tick svg { width: 13px; height: 13px; }
.auth-art .auth-quote { position: relative; z-index: 1; margin-top: auto; padding-top: 40px; font-size: 12px; color: #8fa394; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 34px 22px; background: var(--bg); }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h2 { font-size: 26px; margin-bottom: 6px; letter-spacing: -.03em; }
.auth-card > p { color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }
.auth-card .field { margin-bottom: 13px; }
.auth-card .btn { margin-top: 4px; }
.auth-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 18px; }
.auth-foot a { color: var(--ink); font-weight: 700; }
.demo-box { margin-top: 20px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.demo-box code { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.auth-error { background: var(--red-soft); color: var(--red); border-radius: 8px; padding: 9px 11px; font-size: 11.5px; margin-bottom: 12px; display: none; }
.auth-error.show { display: block; }

/* Customer / public site */
.public-shell { min-height: 100dvh; background: var(--bg); }
.public-nav { max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 14px; }
.public-nav .brand { padding: 0; }
.public-nav .brand-name { color: var(--ink); }
.public-nav .brand-tag { color: var(--muted); }
.public-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.public-links a { font-size: 12px; color: var(--muted); font-weight: 600; padding: 7px 9px; border-radius: 7px; }
.public-links a:hover { color: var(--ink); background: var(--surface); }
.public-links a.btn-primary,
.public-links a.btn-primary:hover { color: #fff; }
.public-hero { max-width: 1160px; margin: 0 auto; padding: 40px 24px 28px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.public-hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: .95; letter-spacing: -.05em; margin: 14px 0 16px; }
.public-hero h1 em { font-style: normal; position: relative; color: #4d7a0a; }
.public-hero h1 em::after { content: ""; position: absolute; height: 9px; left: 1px; right: 1px; bottom: 3px; background: var(--accent); z-index: -1; border-radius: 3px; }
.public-hero .lead { color: var(--muted); font-size: 14.5px; max-width: 540px; line-height: 1.65; }
.hero-actions { display: flex; gap: 9px; margin-top: 24px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta div { font-size: 10px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.hero-meta b { display: block; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 650; margin-top: 2px; }
.hero-art { position: relative; min-height: 360px; border-radius: var(--r-xl); background: var(--forest); overflow: hidden; padding: 26px; color: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: space-between; }
.hero-art::before { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(183,243,74,.24), transparent 65%); }
.hero-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(180deg, black, transparent 76%); }
.hero-art-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.hero-art-top .badge { background: rgba(183,243,74,.15); color: var(--accent); }
.hero-art h2 { position: relative; z-index: 1; font-size: 30px; letter-spacing: -.04em; max-width: 270px; line-height: 1.02; margin-top: 40px; }
.hero-art p { position: relative; z-index: 1; color: #a8baad; font-size: 11.5px; max-width: 280px; margin-top: 10px; }
.hero-art .hero-charge { position: relative; z-index: 1; margin-top: 22px; padding: 13px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.hero-charge-line { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: #9eb1a3; }
.hero-charge-line b { color: var(--accent); }
.charge-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); margin-top: 8px; overflow: hidden; }
.charge-track span { display: block; height: 100%; width: 68%; border-radius: 99px; background: var(--accent); }
.public-section { max-width: 1160px; margin: 0 auto; padding: 38px 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.section-head p { color: var(--muted); font-size: 12.5px; margin-top: 5px; max-width: 500px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-card { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 160px; transition: transform .14s ease, box-shadow .14s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service-card .sc-cat { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 750; }
.service-card h3 { font-size: 15px; margin: 8px 0 6px; }
.service-card p { font-size: 11px; color: var(--muted); line-height: 1.5; flex: 1; }
.service-card .sc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.sc-price { font-weight: 750; font-size: 13px; }
.sc-time { font-size: 10px; color: var(--muted); }
.charger-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.charger-pill { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); display: flex; align-items: center; gap: 10px; }
.charger-pill .c-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); flex: none; }
.charger-pill .c-ic.on { background: var(--accent-soft); color: #4d7a0a; }
.charger-pill .c-ic.bad { background: var(--red-soft); color: var(--red); }
.charger-pill b { display: block; font-size: 11.5px; }
.charger-pill span { font-size: 10px; color: var(--muted); }
.charger-pill .badge { margin-left: auto; }
.booking-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.booking-aside { position: sticky; top: 24px; }
.booking-aside h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.04em; }
.booking-aside p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.booking-aside .contact-block { margin-top: 22px; display: grid; gap: 9px; }
.contact-line { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.contact-line svg { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.contact-line b { color: var(--ink); font-weight: 650; display: block; }
.booking-card { padding: 22px; }
.booking-card h3 { font-size: 17px; margin-bottom: 4px; }
.booking-card .sub { font-size: 11.5px; color: var(--muted); margin-bottom: 16px; }
.booking-success { text-align: center; padding: 34px 20px; }
.booking-success .tick-big { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 16px; }
.booking-success .tick-big svg { width: 28px; height: 28px; }
.booking-success h3 { font-size: 22px; margin-bottom: 6px; }
.booking-success p { color: var(--muted); font-size: 12.5px; max-width: 340px; margin: 0 auto 16px; }
.public-footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1160px; margin-left: auto; margin-right: auto; color: var(--muted); font-size: 11px; flex-wrap: wrap; }
.public-footer b { color: var(--ink); }
.mini-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; }

/* Customer status / report */
.status-shell { min-height: 100dvh; background: var(--bg); }
.status-wrap { max-width: 980px; margin: 0 auto; padding: 26px 22px 60px; }
.status-top { display: flex; align-items: center; gap: 12px; padding: 4px 0 22px; }
.status-top .mini-brand { margin-right: auto; }
.status-hero { background: var(--forest); color: #fff; border-radius: var(--r-xl); padding: 28px; position: relative; overflow: hidden; }
.status-hero::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(183,243,74,.2), transparent 68%); right: -110px; top: -120px; }
.status-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 50%, rgba(255,255,255,.04)); }
.status-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; position: relative; z-index: 1; flex-wrap: wrap; }
.status-hero h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.04em; margin: 8px 0 6px; }
.status-hero .status-sub { color: #a9bbad; font-size: 12.5px; }
.status-hero .badge { background: rgba(183,243,74,.16); color: var(--accent); }
.status-vehicle { display: flex; gap: 20px; margin-top: 26px; position: relative; z-index: 1; flex-wrap: wrap; }
.status-vehicle div { font-size: 10px; color: #8fa394; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.status-vehicle b { display: block; font-size: 13px; color: #fff; margin-top: 3px; letter-spacing: 0; text-transform: none; }
.status-body { display: grid; gap: 16px; margin-top: 16px; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 18px 20px; }
.step { position: relative; text-align: center; font-size: 10px; color: var(--muted); }
.step::before { content: ""; position: absolute; top: 11px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .s-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; margin: 0 auto 7px; position: relative; z-index: 1; color: var(--muted-2); font-size: 9px; font-weight: 800; }
.step.done .s-dot, .step.current .s-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step.done::before { background: var(--accent); }
.step.current { color: var(--ink); font-weight: 700; }
.step.done { color: var(--ink-2); }
.report-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: start; }
.soh-card { display: flex; align-items: center; gap: 18px; }
.soh-ring { width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--soh, 0) * 1%), var(--surface-3) 0); position: relative; }
.soh-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.soh-value { position: relative; z-index: 1; text-align: center; line-height: 1; }
.soh-value b { font-size: 21px; font-family: var(--display); letter-spacing: -.04em; }
.soh-value span { display: block; font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.check-group { border-top: 1px solid var(--line); }
.check-group:first-of-type { border-top: 0; }
.check-group .check-cat { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); padding: 12px 0 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 11.5px; }
.check-row .check-name { flex: 1; }
.check-row .check-note { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.result { font-size: 9px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 99px; text-transform: uppercase; flex: none; }
.result.ok { background: var(--green-soft); color: var(--green); }
.result.attention { background: var(--amber-soft); color: var(--amber); }
.result.fail { background: var(--red-soft); color: var(--red); }
.result.na { background: var(--surface-3); color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid figure { margin: 0; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); position: relative; }
.photo-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.photo-grid figcaption { font-size: 9.5px; color: var(--muted); padding: 5px 7px; }
.estimate-table td, .estimate-table th { padding-left: 12px; padding-right: 12px; }
.approval-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 11px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent-strong) 30%, transparent); margin-top: 14px; flex-wrap: wrap; }
.approval-bar .grow { flex: 1; min-width: 150px; }
.approval-bar b { display: block; font-size: 12px; }
.approval-bar span { font-size: 10.5px; color: var(--muted); }
.status-foot { text-align: center; color: var(--muted-2); font-size: 10px; padding-top: 22px; }

/* Toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--forest); color: #eef6ea; box-shadow: var(--shadow-lg); font-size: 12px; animation: toastIn .24s ease both; border: 1px solid rgba(255,255,255,.1); }
.toast.error { background: #3a1616; border-color: rgba(255,255,255,.08); }
.toast .t-ic { width: 20px; height: 20px; border-radius: 6px; background: rgba(183,243,74,.16); color: var(--accent); display: grid; place-items: center; flex: none; }
.toast.error .t-ic { background: rgba(255,120,120,.15); color: #ff9b9b; }
.toast .t-ic svg { width: 12px; height: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 16px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 16px; }
.detail-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-title h1 { font-size: clamp(24px, 3vw, 32px); }
.detail-sub { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; flex-wrap: wrap; margin-top: 6px; }
.detail-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); font-weight: 650; margin-bottom: 12px; }
.back-link:hover { color: var(--ink); }
.info-list { display: grid; gap: 0; }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); flex: none; }
.info-row b { font-weight: 650; text-align: right; }
.total-box { background: var(--forest); color: #fff; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.total-box span { font-size: 10px; color: #9eb1a3; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.total-box b { font-size: 22px; font-family: var(--display); letter-spacing: -.03em; }
.total-box .sub { font-size: 9.5px; color: #9eb1a3; }
.line-item { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.line-item:last-child { border-bottom: 0; }
.line-item .li-kind { font-size: 8px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); font-weight: 750; margin-right: 5px; }
.line-item .li-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.line-item .li-actions { display: flex; gap: 2px; }
.item-form { display: grid; grid-template-columns: 90px 1fr 65px 95px auto; gap: 6px; margin-top: 12px; align-items: end; }
.item-form input, .item-form select { min-height: 34px; padding: 7px 8px; font-size: 11px; }
.item-form label { font-size: 8px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.checklist { display: grid; gap: 2px; }
.checklist-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.checklist-row:last-child { border-bottom: 0; }
.checklist-row .cl-label { font-size: 11.5px; font-weight: 550; }
.checklist-row .cl-cat { font-size: 9px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.result-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.result-seg button { border: 0; background: var(--surface); padding: 4px 7px; font-size: 9px; font-weight: 700; color: var(--muted); border-right: 1px solid var(--line); }
.result-seg button:last-child { border-right: 0; }
.result-seg button.active[data-r="ok"] { background: var(--green-soft); color: var(--green); }
.result-seg button.active[data-r="attention"] { background: var(--amber-soft); color: var(--amber); }
.result-seg button.active[data-r="fail"] { background: var(--red-soft); color: var(--red); }
.result-seg button.active[data-r="na"] { background: var(--surface-3); color: var(--ink-2); }
.inspection-photo { position: relative; }
.inspection-photo .del { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; border: 0; display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.inspection-photo:hover .del { opacity: 1; }
.upload-zone { border: 1px dashed var(--line-strong); border-radius: 9px; padding: 13px; text-align: center; font-size: 10.5px; color: var(--muted); cursor: pointer; }
.upload-zone:hover { border-color: var(--accent-strong); background: var(--surface-2); }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-nav { display: grid; gap: 3px; position: sticky; top: 86px; }
.settings-nav button { text-align: left; border: 0; background: none; padding: 8px 11px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.settings-nav button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.settings-nav button:hover { color: var(--ink); }
.form-section { padding: 20px; }
.form-section h3, .form-section .form-title { font-size: 14px; margin-bottom: 3px; }
.form-section > p { font-size: 11.5px; color: var(--muted); margin-bottom: 16px; }
.hours-grid { display: grid; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; font-size: 11.5px; }
.copy-field { display: flex; gap: 6px; }
.copy-field input { font-family: var(--mono); font-size: 10.5px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 10px; font-weight: 650; }

/* Branding */
.garage-logo, .garage-avatar-img { object-fit: contain; flex: none; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.garage-logo.round, .garage-avatar-img { border-radius: 50%; }
.brand-kit { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); display: grid; gap: 10px; }
.brand-kit-preview { display: flex; align-items: center; gap: 12px; }
.brand-kit-preview b { display: block; font-size: 13px; }
.brand-kit-preview span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.brand-kit-actions { flex-wrap: wrap; }
.brand-kit label.btn { cursor: pointer; }
.setup-logo { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); margin-bottom: 14px; }
.setup-logo .grow { flex: 1; min-width: 0; }
.setup-logo b { display: block; font-size: 12px; }
.setup-logo span { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.setup-logo label.btn { cursor: pointer; flex: none; }

/* Onboarding */
.setup-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; flex-wrap: wrap; background: linear-gradient(100deg, var(--accent-soft), var(--surface)); border-color: color-mix(in srgb, var(--accent-strong) 28%, var(--line)); }
.setup-banner-main { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 220px; }
.setup-banner-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--forest); color: var(--accent); flex: none; }
.setup-banner b { display: block; font-size: 13px; }
.setup-banner p { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.setup-banner-progress { flex: 1 0 130px; max-width: 260px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.setup-banner-progress span { display: block; height: 100%; background: var(--accent-strong); border-radius: inherit; }
.setup-progress-card { padding: 18px 20px; margin-bottom: 16px; }
.setup-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.setup-progress-top b { font-size: 15px; }
.setup-progress-top p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.setup-pct { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.04em; line-height: 1; }
.setup-pct span { font-size: 14px; color: var(--muted); }
.setup-track { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.setup-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); transition: width .35s ease; }
.setup-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.setup-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; font-size: 10.5px; font-weight: 650; color: var(--muted); background: var(--surface); }
.setup-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.setup-chip.done { color: var(--ink); border-color: color-mix(in srgb, var(--green) 32%, var(--line)); background: var(--green-soft); }
.setup-chip .chip-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.setup-chip.done .chip-dot { background: var(--green); border-color: var(--green); color: #fff; }
.setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.setup-grid > .card { padding: 18px 20px; }
.setup-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.setup-card-head p { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.setup-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.setup-list li:last-child { border-bottom: 0; }
.setup-list li > span { min-width: 0; }
.setup-list small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.setup-stat { display: flex; align-items: baseline; gap: 7px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.setup-stat b { font-family: var(--display); font-size: 24px; line-height: 1; }
.setup-stat span { font-size: 10.5px; color: var(--muted); }
.setup-finish { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; margin-top: 16px; flex-wrap: wrap; }
.setup-finish b { font-size: 13px; }
.setup-finish p { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* Import + invite */
.import-drop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 11px; background: var(--surface-2); flex-wrap: wrap; }
.import-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); flex: none; }
.import-drop .btn { cursor: pointer; margin-left: auto; }
.import-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.import-stats > div { padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.import-stats b { display: block; font-family: var(--display); font-size: 20px; line-height: 1; }
.import-stats span { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.import-errors { padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 28%, var(--line)); font-size: 10.5px; color: var(--ink-2); display: grid; gap: 4px; }
.import-errors b { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.invite-brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 14px; margin-bottom: 14px; }
.invite-callout { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent-strong) 26%, var(--line)); }
.invite-callout b { font-size: 12px; }

/* Misc */
.muted { color: var(--muted); }
.small { font-size: 11px; }
.tiny { font-size: 10px; }
.right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: grid; gap: 10px; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.page-loading { padding: 80px 20px; display: grid; place-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.loader { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent-strong); animation: spin .8s linear infinite; }
.drawer-backdrop { display: none; }

@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-side { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: repeat(5, 230px); }
}
@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  .main { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .page { padding: 20px 16px 60px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .public-hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-art { min-height: 300px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .charger-strip { grid-template-columns: 1fr 1fr; }
  .booking-wrap { grid-template-columns: 1fr; }
  .booking-aside { position: static; }
  .detail-grid, .report-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .setup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar-title { display: none; }
  .crumb { font-size: 11px; }
  .page-head h1 { font-size: 26px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-side { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .charger-strip { grid-template-columns: 1fr; }
  .public-links a:not(.btn) { display: none; }
  .public-hero h1 { font-size: 42px; }
  .status-hero { padding: 20px; }
  .stepper { grid-template-columns: repeat(5, 1fr); padding: 16px 8px; }
  .step { font-size: 8px; }
  .step .s-dot { width: 20px; height: 20px; }
  .item-form { grid-template-columns: 1fr 1fr; }
  .item-form .item-desc { grid-column: 1 / -1; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92dvh; overflow-y: auto; }
  .toasts { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
  .table-hide-sm { display: none; }
  .import-stats { grid-template-columns: 1fr 1fr; }
  .setup-banner-progress { max-width: none; order: 3; flex-basis: 100%; }
  .setup-progress-top { align-items: flex-start; }
  .setup-pct { font-size: 26px; }
}

@media print {
  .sidebar, .topbar, .public-nav, .status-top .btn, .approval-bar, .status-foot, .toasts, .modal-backdrop { display: none !important; }
  .main { margin-left: 0 !important; }
  body, .status-shell, .public-shell, .page { background: #fff !important; }
  .page { padding: 0 !important; }
  .status-wrap { max-width: none; padding: 0; }
  .status-hero { background: #0b1712 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { break-inside: avoid; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* UI themes (applied via html[data-ui]) */
html[data-ui="slate"] {
  --bg: #f6f7fb;
  --bg-2: #eef1f6;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --surface-3: #f1f4f9;
  --ink: #111827;
  --ink-2: #1f2937;
  --muted: #5f6b7c;
  --muted-2: #6b7280;
  --line: #e5e8ef;
  --line-strong: #d3dae6;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0ff;
  --forest: #ffffff;
  --forest-2: #f7f9fc;
  --forest-ink: #111827;
  --forest-muted: #6b7280;
  --blue: #2563eb;
  --blue-soft: #e8f0ff;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.05), 0 1px 1px rgba(17,24,39,.03);
  --shadow-md: 0 10px 28px -12px rgba(17,24,39,.16), 0 2px 6px rgba(17,24,39,.04);
}
html[data-ui="slate"] .sidebar { border-right: 1px solid var(--line); }
html[data-ui="slate"] .brand-mark { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; }
html[data-ui="slate"] .brand-name span { color: #2563eb; }
html[data-ui="slate"] .brand-tag { color: #6b7280; }
html[data-ui="slate"] .garage-switch { background: #f8fafc; border-color: var(--line); }
html[data-ui="slate"] .garage-switch:hover { background: #f1f5f9; border-color: var(--line-strong); }
html[data-ui="slate"] .garage-avatar { background: #e8f0ff; color: #1d4ed8; }
html[data-ui="slate"] .nav-group { color: #6b7280; }
html[data-ui="slate"] .nav-link { color: #4b5563; }
html[data-ui="slate"] .nav-link:hover { color: #111827; background: #f3f4f6; }
html[data-ui="slate"] .nav-link.active { color: #1d4ed8; background: #eff6ff; }
html[data-ui="slate"] .nav-count { background: #f3f4f6; color: #6b7280; }
html[data-ui="slate"] .nav-link.active .nav-count { background: #dbeafe; color: #1d4ed8; }
html[data-ui="slate"] .sidebar-card { background: #f8fafc; border-color: var(--line); }
html[data-ui="slate"] .sidebar-card strong { color: #111827; }
html[data-ui="slate"] .sidebar-card p { color: #6b7280; }
html[data-ui="slate"] .sidebar-card a { color: #2563eb; }
html[data-ui="slate"] .menu-toggle { border-color: var(--line); color: #6b7280; }
/* Slate light: forest is light for sidebar, so components that assumed dark forest need explicit colors */
html[data-ui="slate"] .btn-primary { background: #2563eb; color: #fff; box-shadow: 0 6px 16px -8px rgba(37,99,235,.5); }
html[data-ui="slate"] .btn-primary:hover { background: #1d4ed8; }
html[data-ui="slate"] .seg.active { background: #2563eb; color: #fff; }
html[data-ui="slate"] .badge-dark { background: #1f2937; color: #e8f0ff; }
html[data-ui="slate"] .total-box { background: #1f2937; color: #fff; }
html[data-ui="slate"] .boot-mark { background: #2563eb; color: #fff; }
html[data-ui="slate"] .auth-art { background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 100%); color: #eff6ff; }
html[data-ui="slate"] .auth-art .brand-name { color: #fff; }
html[data-ui="slate"] .hero-art { background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 100%); }
html[data-ui="slate"] .status-hero { background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 100%); color: #fff; }
html[data-ui="slate"] .status-vehicle b { color: #fff; }
html[data-ui="slate"] .avatar.forest { background: #1f2937; color: #e8f0ff; }
html[data-ui="slate"] .toast { background: #1f2937; color: #fff; }
html[data-ui="slate"] .topbar { background: rgba(246,247,251,.9); }
html[data-ui="slate"][data-theme="dark"] {
  --bg: #0b1220; --bg-2: #0f172a; --surface: #111a2e; --surface-2: #0f172a; --surface-3: #18233b;
  --ink: #eef2ff; --ink-2: #dbe4f5; --muted: #94a3b8; --muted-2: #7c8ba3;
  --line: #22304a; --line-strong: #31435f;
  --accent: #5b8cff; --accent-strong: #7aa2ff; --accent-ink: #081225; --accent-soft: #172746;
  --forest: #0a1120; --forest-2: #0f172a; --forest-ink: #eef2ff; --forest-muted: #94a3b8;
  --blue: #7aa2ff; --blue-soft: #172746;
}
html[data-ui="slate"][data-theme="dark"] .sidebar { border-right: 1px solid var(--line); }
html[data-ui="slate"][data-theme="dark"] .nav-link:hover { background: #18233b; color: #eef2ff; }
html[data-ui="slate"][data-theme="dark"] .nav-link.active { background: #172746; color: #7aa2ff; }

html[data-ui="midnight"] {
  --bg: #0a1016; --bg-2: #0d1520; --surface: #111a24; --surface-2: #0e1721; --surface-3: #172231;
  --ink: #eaf2fb; --ink-2: #d3deea; --muted: #8ea0b5; --muted-2: #7b8da3;
  --line: #1d2a3a; --line-strong: #2a3b52;
  --accent: #22d3ee; --accent-strong: #67e8f9; --accent-ink: #042229; --accent-soft: #0f2a33;
  --forest: #070d14; --forest-2: #0d1520; --forest-ink: #eaf2fb; --forest-muted: #8ea0b5;
  --blue: #67e8f9; --blue-soft: #0f2a33; --green: #5ee6a0; --green-soft: #102a22;
  --amber: #f2c46d; --amber-soft: #2a2212; --red: #ff8f8f; --red-soft: #2c171a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 14px 36px -16px rgba(0,0,0,.65);
  --shadow-lg: 0 30px 80px -24px rgba(0,0,0,.85);
}
html[data-ui="midnight"] .sidebar { background: linear-gradient(180deg, #0a121c 0%, #070d14 100%); border-right: 1px solid #172231; }
html[data-ui="midnight"] .brand-mark { background: linear-gradient(135deg, #22d3ee, #06b6d4); color: #042229; box-shadow: 0 0 0 1px rgba(34,211,238,.2), 0 8px 24px rgba(34,211,238,.18); }
html[data-ui="midnight"] .nav-link.active { background: rgba(34,211,238,.1); color: #67e8f9; }
html[data-ui="midnight"] .nav-link:hover { background: rgba(255,255,255,.04); color: #eaf2fb; }
html[data-ui="midnight"] .card { background: linear-gradient(180deg, rgba(17,26,36,.96), rgba(14,23,33,.96)); border-color: #1d2a3a; }
html[data-ui="midnight"] .topbar { background: rgba(10,16,22,.82); }
html[data-ui="midnight"] .btn-primary { background: linear-gradient(135deg, #22d3ee, #06b6d4); color: #042229; }
html[data-ui="midnight"] .stat { background: linear-gradient(180deg, rgba(23,34,49,.9), rgba(17,26,36,.9)); }
html[data-ui="midnight"] .garage-avatar { background: rgba(34,211,238,.12); color: #67e8f9; }
/* Appearance picker */
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.theme-card { text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.theme-card:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.theme-card.active { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); background: var(--surface); }
.theme-swatch { width: 100%; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--swatch), color-mix(in srgb, var(--swatch) 35%, #0b1712)); margin-bottom: 6px; position: relative; overflow: hidden; }
.theme-swatch span { position: absolute; inset: auto 10px 10px auto; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 2px rgba(0,0,0,.08); }
.theme-card-name { font-size: 13px; font-weight: 800; color: var(--ink); }
.theme-card-note { font-size: 11px; color: var(--muted); line-height: 1.4; }
@media (max-width: 720px) { .theme-grid { grid-template-columns: 1fr; } }
/* clickable KPI cards */
a.kpi-link { text-decoration: none; color: inherit; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
a.kpi-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
a.kpi-link:active { transform: translateY(0); }
a.kpi-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-strong) 60%, transparent); outline-offset: 2px; }
