/* My Fleet Report – shell + components. Mobile first (many owners only use the phone), works down to 360 px. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--fs)/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: var(--fs-xl); } h2 { font-size: var(--fs-lg); } h3 { font-size: var(--fs-md); }
p { margin: 0 0 8px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); } .small { font-size: var(--fs-sm); } .xs { font-size: var(--fs-xs); } .strong { font-weight: 650; }
.right { margin-left: auto; } .row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 8px; }
.grid { display: grid; gap: var(--gap); } .hide { display: none !important; } .nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { min-height: 100vh; display: grid; place-items: center; } .boot-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); animation: pulse 1.2s infinite ease-in-out; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .6; } }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; } .icon.lg { width: 22px; height: 22px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 12px; gap: 6px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; color: var(--text); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; } .brand .logo { width: 32px; height: 32px; flex: none; } .brand small { display: block; font-weight: 500; font-size: 11px; color: var(--text-3); letter-spacing: .02em; }
.company-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; text-align: left; }
.company-switch:hover { border-color: var(--border-strong); } .company-switch .name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; } .company-switch .sub { font-size: 11px; color: var(--text-3); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--primary); font-weight: 700; font-size: 12px; flex: none; }
.avatar.sq { border-radius: 9px; }
.nav { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.nav .sec { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: var(--fs); }
.nav a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; } .nav a.active .icon { stroke: var(--primary); }
.nav a .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.nav a .count.info { background: var(--surface-3); color: var(--text-2); }
.side-foot { margin-top: auto; padding-top: 12px; }
.plan-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--surface-2); font-size: var(--fs-sm); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar-h); display: flex; align-items: center; gap: 8px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .search { flex: 1; max-width: 420px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-3); cursor: pointer; }
.kbd { font-size: 11px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-3); background: var(--surface-2); }
.content { padding: 24px 24px 64px; width: 100%; max-width: 1480px; margin: 0 auto; }
.env-banner { display: flex; align-items: center; gap: 10px; padding: 6px 20px; background: #c2410c; color: #fff; font-size: var(--fs-sm); }
.env-banner b { letter-spacing: .08em; }
.demo-banner, .support-banner { display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: var(--fs-sm); background: var(--accent-50); color: var(--text); border-bottom: 1px solid var(--border); }
.support-banner { background: var(--info-bg); }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; } body.nav-open::after { content: ''; position: fixed; inset: 0; background: var(--overlay); z-index: 25; }
  .menu-btn { display: inline-flex; } .topbar { padding: 0 12px; } .content { padding: 16px 14px 72px; } .topbar .search span.lbl, .topbar .search .kbd { display: none; } .topbar .search { flex: 0 0 auto; width: 40px; padding: 0; justify-content: center; }
}

/* ---------- page header ---------- */
.page-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { display: flex; align-items: center; gap: 10px; } .page-head .sub { color: var(--text-3); font-size: var(--fs-sm); margin-top: 2px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: var(--fs-sm); color: var(--text-3); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; } .crumbs a { color: var(--text-3); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-pad { padding: 18px; } .card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: var(--fs-md); } .card-head .sub { font-size: var(--fs-xs); color: var(--text-3); } .card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); } .cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cols-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); }
@media (max-width: 1100px) { .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: var(--gap); }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi .lbl { font-size: var(--fs-xs); color: var(--text-3); font-weight: 550; display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-3); flex-wrap: wrap; }
.kpi.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff; border: 0; } .kpi.hero .lbl, .kpi.hero .meta { color: rgba(255, 255, 255, .8); }
[data-mode="dark"] .kpi.hero { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; font-size: var(--fs-xs); padding: 1px 7px; border-radius: var(--radius-pill); background: var(--neutral-bg); color: var(--text-2); }
.delta.up { background: var(--success-bg); color: var(--success); } .delta.down { background: var(--danger-bg); color: var(--danger); }
.kpi.hero .delta { background: rgba(255, 255, 255, .18); color: #fff; }
.split-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-3); margin-top: 10px; }
.split-bar span { display: block; height: 100%; } .legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-2); margin-top: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; text-decoration: none !important; }
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); } .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #2b1a00; } .btn-accent:hover { background: var(--accent-600); }
.btn-danger { color: var(--danger); } .btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; } .btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn-soft { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.btn-sm { height: 32px; padding: 0 10px; font-size: var(--fs-xs); border-radius: 8px; } .btn-lg { height: 46px; padding: 0 20px; font-size: var(--fs-md); }
.btn-icon { width: 38px; padding: 0; } .btn-sm.btn-icon { width: 32px; } .btn-block { width: 100%; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; } .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; } .form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .field > label, .lbl-text { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); } .field .req { color: var(--danger); margin-left: 2px; }
.input, select.input, textarea.input { width: 100%; height: var(--input-h); padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font-size: var(--fs); }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input[readonly] { background: var(--surface-2); } .input.sm { height: 34px; font-size: var(--fs-sm); border-radius: 8px; }
.input-group { display: flex; } .input-group .input { border-radius: 10px 0 0 10px; } .input-group .btn { border-radius: 0 10px 10px 0; height: var(--input-h); border-left: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--fs); } .check input { width: 17px; height: 17px; accent-color: var(--primary); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; font-size: var(--fs-sm); font-weight: 550; color: var(--text-2); user-select: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip .n { font-size: 11px; color: var(--text-3); font-weight: 600; } .chip.on .n { color: var(--primary); }

/* toggle switch – SHSS standard (pill, ON = brand, label clickable, role=switch, keyboard) */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--border-strong); transition: background .15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch[aria-checked="true"] .track { background: var(--primary); } .switch[aria-checked="true"] .track::after { transform: translateX(18px); }
.switch[aria-disabled="true"] { opacity: .5; cursor: not-allowed; } .switch .txt { font-size: var(--fs); } .switch .txt small { display: block; color: var(--text-3); font-size: var(--fs-xs); }

/* segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: 11px; flex-wrap: wrap; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.tabs a.active, .tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- badges & status pills (always text + colour) ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 650; white-space: nowrap; background: var(--neutral-bg); color: var(--text-2); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; } .badge.plain::before { display: none; }
.badge.ok { background: var(--success-bg); color: var(--success); } .badge.warn { background: var(--warning-bg); color: var(--warning); } .badge.err { background: var(--danger-bg); color: var(--danger); }
.badge.info { background: var(--info-bg); color: var(--info); } .badge.brand { background: var(--primary-soft); color: var(--primary); } .badge.accent { background: var(--accent-50); color: var(--accent-ink); }
.pf { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); } .pf i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; font-weight: 600; color: var(--text-3); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.tbl th.sortable { cursor: pointer; user-select: none; } .tbl th.sortable:hover { color: var(--text); } .tbl th .arr { opacity: .6; margin-left: 3px; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; } .tbl tbody tr:hover td { background: var(--surface-2); } .tbl tr.click { cursor: pointer; }
.tbl .r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; } .tbl .c { text-align: center; } .tbl td.sub { color: var(--text-3); font-size: var(--fs-xs); }
.tbl tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--border); }
.tbl .mini { color: var(--text-3); font-size: 11.5px; display: block; }
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-3); flex-wrap: wrap; }

/* filter bar */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 150px; height: 36px; font-size: var(--fs-sm); }
.filters .search-in { min-width: 220px; }

/* ---------- empty / loading / alerts ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); } .empty .icon { width: 36px; height: 36px; margin: 0 auto 10px; stroke: var(--text-3); }
.empty h3 { color: var(--text); margin-bottom: 4px; } .empty.small { padding: 20px; }
.skel { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; min-height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: var(--fs-sm); background: var(--info-bg); color: var(--text); border: 1px solid transparent; }
.alert .icon { margin-top: 1px; } .alert.ok { background: var(--success-bg); } .alert.warn { background: var(--warning-bg); } .alert.err { background: var(--danger-bg); } .alert b { font-weight: 650; }

/* ---------- overlays ---------- */
.backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .12s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop .15s ease; }
.modal.wide { width: min(860px, 100%); } .modal.xwide { width: min(1100px, 100%); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); } .modal-head h2 { font-size: var(--fs-lg); }
.modal-body { padding: 20px; overflow-y: auto; } .modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.drawer-bd { position: fixed; inset: 0; background: var(--overlay); z-index: 70; animation: fade .12s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: 71; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .18s ease; }
.drawer.wide { width: min(760px, 100vw); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }
.toasts { position: fixed; bottom: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 36px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); font-weight: 550; animation: pop .15s; max-width: 420px; }
.toast.err { background: var(--danger); color: #fff; } .toast.ok .icon { stroke: #4ade80; }
.dd-menu { position: absolute; z-index: 60; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; animation: pop .1s; }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: var(--fs-sm); border: 0; background: none; cursor: pointer; text-align: left; text-decoration: none !important; }
.dd-menu a:hover, .dd-menu button:hover, .dd-menu .sel { background: var(--surface-3); } .dd-menu .sep { height: 1px; background: var(--border); margin: 6px 0; } .dd-menu .head { padding: 8px 10px; }
.dropdown { position: relative; }

/* language switch (flags) */
.flag { display: block; width: 22px; height: 16.5px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 29, 43, .14); flex: none; }
[data-mode="dark"] .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; }

/* palette */
.palette .list { max-height: 50vh; overflow-y: auto; padding: 6px; } .palette input { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; height: 52px; padding: 0 18px; font-size: var(--fs-md); width: 100%; background: transparent; outline: none; }
.palette .item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; } .palette .item.sel { background: var(--primary-soft); }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: radial-gradient(1200px 600px at 10% 10%, var(--brand-400) 0%, var(--brand) 40%, var(--brand-700) 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.auth-side h1 { font-size: 34px; line-height: 1.15; max-width: 520px; } .auth-side p { color: rgba(255, 255, 255, .85); font-size: var(--fs-md); max-width: 520px; }
.auth-side .feat { display: grid; gap: 14px; max-width: 520px; } .auth-side .feat div { display: flex; gap: 12px; align-items: flex-start; } .auth-side .feat .icon { stroke: var(--accent); margin-top: 2px; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 40px; background: var(--surface); }
.auth-box { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-box h2 { font-size: 24px; margin-bottom: 6px; } .auth-top { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 24px; }
.phone-demo { margin-top: auto; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; padding: 16px; max-width: 420px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; font-family: var(--font); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 24px 18px; } }
.divider { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: var(--fs-xs); margin: 16px 0; } .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* charts */
.chart { width: 100%; } .chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); } .chart .grid line { stroke: var(--border); }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--text); color: var(--bg); padding: 8px 10px; border-radius: 9px; font-size: 12px; box-shadow: var(--shadow-lg); max-width: 260px; }
.chart-tip b { font-weight: 650; } .chart-tip .r { display: flex; justify-content: space-between; gap: 14px; }
.hm { display: grid; grid-template-columns: 34px repeat(24, minmax(10px, 1fr)); gap: 2px; font-size: 10px; color: var(--text-3); } .hm div.c { aspect-ratio: 1; border-radius: 3px; background: var(--surface-3); }
.rank { display: flex; flex-direction: column; gap: 10px; } .rank .it { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.rank .bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 4px; } .rank .bar span { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.map { height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-3); }
.leaflet-container { font-family: var(--font); }

/* misc */
.dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 8px 14px; font-size: var(--fs-sm); } .dl dt { color: var(--text-3); } .dl dd { margin: 0; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; } .steps .s { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-3); font-weight: 600; }
.steps .s .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 12px; } .steps .s.on { color: var(--text); } .steps .s.on .n { background: var(--primary); color: var(--on-primary); }
.steps .s.done .n { background: var(--success-bg); color: var(--success); } .steps .line { width: 24px; height: 2px; background: var(--border); align-self: center; }
.progress { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; } .progress span { display: block; height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s; }
.qr { width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 8px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.list-plain { list-style: none; margin: 0; padding: 0; } .list-plain li { padding: 10px 0; border-bottom: 1px solid var(--border); } .list-plain li:last-child { border-bottom: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* accessibility pass (axe, WCAG 2.1 AA): readable avatar text in dark mode, links inside text are underlined (not colour only) */
[data-mode="dark"] .avatar { color: var(--text); }
.content p a:not(.btn), .content li a:not(.btn), .content td a:not(.btn), .content dd a:not(.btn), .content .small a:not(.btn), .alert a:not(.btn), .auth-box p a:not(.btn), .priv p a, .priv li a { text-decoration: underline; text-underline-offset: 2px; }
