@font-face { font-family: Inter; src: url('./assets/inter-latin.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }

:root {
  --bg: #161819; --surface: #202223; --raised: #292b2d; --text: #f4f4f4;
  --muted: #a6a8ab; --faint: #92969a; --line: #333638; --green: #9ce6c5;
  --blue: #9ce6c5; --amber: #e4bb72; --ease: cubic-bezier(.22,1,.36,1); --gutter: 26px;
  color-scheme: dark; font: 16px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-synthesis: none;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Keep native scrolling while hiding browser chrome on app surfaces. */
html, body, .sidebar, .sheet-body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar, .sheet-body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45; min-height: 100dvh; overscroll-behavior-y: contain; }
button,input,select { font: inherit; }
button,a,input,select { touch-action: manipulation; }
button { color: inherit; border: 0; background: none; cursor: pointer; transition: background .14s,opacity .14s,transform .12s; }
button:active { transform: scale(.97); }
button:disabled { cursor: wait; opacity: .5; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline: 2px solid #8faeff; outline-offset: 4px; }
a { color: inherit; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 650; letter-spacing: -.045em; }
h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.025em; }
h3 { font-size: 1rem; font-weight: 550; }
p { line-height: 1.6; }
svg { display: block; }
.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[data-icon] { display: inline-flex; flex-shrink: 0; }
.hidden,[hidden] { display: none !important; }
.muted { color: var(--muted); }
.fine { color: var(--faint); font-size: .8125rem; line-height: 1.6; }
.green { color: var(--green); }
.eyebrow { font-size: .75rem; letter-spacing: .2em; font-weight: 600; }
.separator { color: var(--faint); padding: 0 2px; }
.skeleton { animation: pulse 1.4s ease-in-out infinite; background: var(--raised); border-radius: 4px; color: transparent !important; min-width: 40px; }
.chart-skeleton { height: 160px; }
.icon-button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.icon-button .icon { width: 22px; height: 22px; }
.icon-button:hover { background: var(--surface); }
.primary,.secondary { min-height: 48px; padding: 12px 24px; border-radius: 5px; font-size: .9375rem; font-weight: 550; display: inline-flex; align-items: center; justify-content: center; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #345dc9; }
.secondary { background: var(--raised); }
.secondary:hover { background: #343739; }
.text-button { padding: 10px 0; text-align: left; font-size: .875rem; color: var(--muted); }
.skip-link { position: fixed; top: -100px; z-index: 30; background: var(--raised); padding: 12px; }
.skip-link:focus { top: 4px; }
.boot { display: flex; min-height: 100dvh; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: .875rem; }
.loader { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--text); border-radius: 50%; animation: spin .8s linear infinite; }
.login { min-height: 100dvh; max-width: 1020px; margin: auto; padding: 50px var(--gutter); display: flex; align-items: center; gap: 30px; }
.login-content { width: 340px; margin: auto; flex-shrink: 0; }
.login h1 { font-size: 2.5rem; line-height: 1.1; margin: 20px 0; }
.login .fine { margin-top: 36px; }
.login form { display: grid; gap: 12px; margin-top: 30px; }
.login label { font-size: .875rem; color: var(--muted); }
input[type=password],select { background: #27292b; border: 1px solid transparent; border-radius: 5px; padding: 14px; color: var(--text); width: 100%; min-height: 48px; }
.form-error { color: var(--amber); font-size: .875rem; min-height: 20px; }
.login-art { width: 55%; opacity: .9; }
.sidebar { display: none; }
.content { max-width: 720px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(22px + env(safe-area-inset-top)) var(--gutter) 14px; min-height: 90px; }
.topbar h1 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.topbar-actions { display: flex; margin-right: -10px; gap: 0; }
.topbar-actions #refresh { display: none; }
.topbar #back { margin-left: -12px; }
.topbar.has-back { position: sticky; top: 0; z-index: 5; background: rgba(22,24,25,.97); backdrop-filter: blur(16px); }
.topbar.has-back h1 { font-size: 1.5rem; }
.topbar.has-back .topbar-actions #refresh { display: grid; }
.topbar.has-back .topbar-actions [data-sheet=settings] { display: none; }
main { padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom)); outline: none; }
.view { animation: enter .28s var(--ease); }
.battery-heading { min-height: 69px; }
.battery-line { display: flex; align-items: center; gap: 9px; font-size: .9375rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.battery-icon { display: inline-flex; width: 27px; height: 14px; padding: 2px; border: 1.5px solid var(--muted); border-radius: 2px; position: relative; }
.battery-icon:after { content: ''; position: absolute; width: 2px; height: 6px; right: -4px; top: 2.5px; background: var(--muted); border-radius: 0 1px 1px 0; }
.battery-icon span { display: block; background: var(--muted); width: 0; height: 100%; transition: width .7s var(--ease); }
.battery-icon.charging span { background: var(--green); }
.battery-icon.charging { border-color: var(--green); }
.battery-icon.low span { background: var(--amber); }
.vehicle-state { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.vehicle-state.charging { color: var(--green); }
.freshness { font-size: .8125rem; color: var(--faint); margin-top: 2px; }
.freshness.stale { color: var(--amber); }
.car-stage { position: relative; margin: 20px -18px 12px; padding: 25px 0 18px; }
.car-art { position: relative; aspect-ratio: 820/350; overflow: hidden; isolation: isolate; }
/* Crop only the transparent margins of the original, unmodified Tesla render. */
.car-art img { position: absolute; max-width: none; width: var(--car-width,175.61%); height: auto; left: var(--car-left,-39.024%); top: var(--car-top,-68.571%); pointer-events: none; transition: opacity .2s; }
.car-art.vehicle-loading img { opacity: .35; }
.car-art img.image-unavailable { visibility: hidden; }
.car-art:has(.image-unavailable)::after { content: 'Vehicle image unavailable'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .875rem; }
.car-glow { position: absolute; inset: 15% 0 4%; border-radius: 50%; background: radial-gradient(ellipse at 55% 66%,#34383b66,transparent 66%); filter: blur(14px); }
.quick-actions { display: grid; grid-template-columns: repeat(4,1fr); margin: 8px -8px 28px; gap: 4px; }
.quick-actions button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px 0; min-height: 80px; border-radius: 8px; }
.quick-actions .icon { width: 25px; height: 25px; }
.quick-actions button>span:last-child { font-size: .8125rem; color: var(--muted); }
.quick-actions button:hover { background: var(--surface); }
.live-charge { display: block; width: 100%; padding: 20px; margin: 0 0 12px; background: var(--surface); border-radius: 9px; text-align: left; }
.row-title { display: flex; align-items: center; gap: 12px; font-weight: 550; }
.row-title #live-power { margin-left: auto; font-size: .9375rem; }
.chevron,.chevron .icon { width: 16px; height: 16px; color: #92969a; }
.progress-track { height: 4px; background: #414648; border-radius: 3px; margin: 18px 0 12px; overflow: hidden; }
.progress-track span { display: block; background: var(--green); height: 100%; width: 0; transition: width .7s var(--ease); border-radius: 3px; }
.charge-sub { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-row { display: flex; width: 100%; align-items: center; gap: 20px; padding: 19px 0; text-align: left; min-height: 78px; }
.menu-row>.icon { width: 25px; height: 25px; color: #c1c3c6; }
.menu-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.menu-title { font-size: 1.0625rem; font-weight: 550; letter-spacing: -.02em; }
.menu-subtitle { font-size: .8125rem; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-row>.chevron { margin-left: auto; width: 15px; height: 15px; }
.home-history { padding-top: 30px; margin-top: 12px; border-top: 1px solid var(--line); }
.home-summary { background: var(--surface); border-radius: 9px; padding: 20px; margin: 14px 0 12px; }
.home-summary .section-head { margin-bottom: 18px; }
.home-summary .section-head .text-button { min-height: 44px; padding: 10px 0 10px 12px; margin: -10px 0; color: var(--muted); }
.today-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.today-metrics .metric-value { font-size: 1.5rem; }
.today-metrics .metric-unit { font-size: .75rem; }
.summary-context { margin-top: 16px; font-size: .8125rem; color: var(--muted); }
.summary-empty { padding: 16px 0; font-size: .875rem; color: var(--muted); }
.activity-row { display: flex; gap: 16px; align-items: center; width: 100%; padding: 23px 0; text-align: left; border-bottom: 1px solid var(--line); }
.activity-row:hover { background: #ffffff03; }
.activity-symbol { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.activity-symbol.charge { color: var(--green); }
.activity-symbol .icon { width: 21px; height: 21px; }
.activity-copy { display: grid; gap: 8px; flex: 1; min-width: 0; }
.activity-kind { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .875rem; font-weight: 550; }
.activity-time { color: var(--muted); font-size: .8125rem; font-weight: 400; white-space: nowrap; }
.activity-value { font-size: 1.25rem; font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.activity-value>span { display: block; font-size: .8125rem; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 3px; }
.activity-address { color: var(--muted); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.activity-cost { color: var(--muted); font-size: .8125rem; }
.activity-row>.chevron { flex-shrink: 0; width: 14px; height: 14px; }
.latest-row { margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--line); border-bottom: 0; gap: 12px; }
.latest-row .activity-symbol { width: 28px; height: 32px; background: none; align-self: flex-start; }
.latest-row .activity-kind { flex-wrap: wrap; gap: 4px 10px; }
.latest-row .activity-address { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8125rem; }
.latest-row .activity-cost { display: none; }
.activity-day { color: var(--muted); font-size: .875rem; margin: 34px 0 0; font-weight: 500; }
.activity-list .activity-day:first-child { margin-top: 24px; }
.activity-live { display: flex; align-items: center; gap: 16px; padding: 22px; margin-bottom: 24px; width: 100%; background: var(--surface); border-radius: 9px; text-align: left; color: var(--green); }
.activity-live>span { display: grid; gap: 6px; flex: 1; }
.activity-live>span>span { font-size: .875rem; color: var(--muted); }
.activity-live strong { font-weight: 550; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head>.muted { font-size: .8125rem; }
.segmented { background: #252729; padding: 3px; display: inline-flex; gap: 2px; border-radius: 6px; flex-shrink: 0; }
.segmented button { font-size: .8125rem; color: var(--muted); min-height: 40px; padding: 6px 12px; border-radius: 4px; }
.segmented button[aria-pressed=true] { background: #424548; color: #fff; }
.vehicle-footer { display: flex; flex-direction: column; gap: 7px; padding-top: 36px; margin-top: 20px; color: var(--muted); font-size: .875rem; }
.model-wordmark { font-weight: 550; font-size: 1.125rem; letter-spacing: .2em; color: var(--text); margin-bottom: 3px; }
.view-subtitle { color: var(--muted); font-size: .9375rem; margin: 4px 0 30px; }
.detail-view { padding-top: 16px; }
.metrics-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 38px; }
.metric { min-width: 0; font-variant-numeric: tabular-nums; }
.metric-value { display: block; font-size: 1.75rem; font-weight: 550; letter-spacing: -.05em; line-height: 1.15; overflow-wrap: anywhere; }
.metric-unit { font-size: .875rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.metric-label { display: block; font-size: .8125rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.metric-note { font-size: .75rem; color: var(--faint); margin-top: 5px; }
.history-list { display: grid; }
.history-day { font-size: .8125rem; font-weight: 500; color: var(--muted); padding: 22px 0 4px; }
.history-row { display: flex; align-items: center; gap: 16px; padding: 22px 0; min-height: 98px; width: 100%; text-align: left; border-bottom: 1px solid #303335; }
.history-row:hover { background: #ffffff03; }
.history-symbol { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.history-symbol .icon { width: 21px; height: 21px; }
.history-main { flex: 1; min-width: 0; }
.history-value { font-size: 1.125rem; font-weight: 550; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.history-secondary { display: block; color: var(--muted); font-size: .8125rem; margin-top: 5px; line-height: 1.6; }
.history-address { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; margin-top: 6px; line-height: 1.5; }
.history-meta { text-align: right; align-self: flex-start; color: var(--muted); font-size: .8125rem; padding-top: 3px; white-space: nowrap; }
.history-meta .chevron { margin: 14px 0 0 auto; }
.history-head { margin-top: 36px; }
.empty-state { padding: 52px 18px; text-align: center; color: var(--muted); }
.empty-state>.icon { margin: 0 auto 22px; width: 38px; height: 38px; color: var(--faint); }
.empty-state h3 { color: var(--text); font-size: 1.125rem; margin-bottom: 10px; }
.empty-state p { font-size: .875rem; max-width: 340px; margin: auto; }
.empty-state .secondary { margin-top: 22px; }
.load-more { display: flex; margin: 24px auto; }
.metrics-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 20px; margin: 28px 0 40px; }
.metrics-grid .metric-value { font-size: 1.875rem; }
.surface { background: var(--surface); border-radius: 10px; padding: 22px; margin: 28px 0; }
.health-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; margin-bottom: 24px; }
.health-grid .metric-value { font-size: 1.5rem; }
.alltime { padding-top: 12px; }
.notice,.demo-banner { border-radius: 6px; padding: 12px 14px; margin-bottom: 18px; font-size: .8125rem; line-height: 1.6; }
.notice { background: #3c3223; color: #f0cf98; }
.notice button { font-weight: 600; text-decoration: underline; padding-left: 10px; }
.demo-banner { background: #26334a; color: #b9cbf6; }
.chart-host { font-variant-numeric: tabular-nums; }
.chart-host svg { width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #404345; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-axis { fill: var(--muted); font: 16px Inter,sans-serif; }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--green); }
.chart-bar { fill: var(--blue); }
.chart-bar.selected { fill: #89abff; }
.touch-chart { touch-action: pan-y; user-select: none; cursor: crosshair; }
.chart-readout output { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 44px; }
.chart-readout strong { color: var(--text); font-size: 1.25rem; font-weight: 550; letter-spacing: -.025em; }
.chart-readout span { color: var(--muted); font-size: .8125rem; text-align: right; }
.chart-marker { pointer-events: none; }
.chart-marker line { stroke: #c3c8cd; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-marker circle { fill: var(--green); stroke: var(--surface); stroke-width: 2.5; }
.bar-chart .chart-marker circle { fill: #a4beff; }
.chart-empty { display: flex; min-height: 150px; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: .875rem; padding: 16px; }
.chart-inspector { display: flex; flex-direction: column; color: var(--muted); font-size: .75rem; }
.chart-inspector input { width: 100%; height: 44px; margin: 0; accent-color: var(--green); cursor: pointer; }
.chart-hint { color: var(--faint); font-size: .75rem; }
.chart-inspector output { flex: 1; text-align: right; }
.chart-inspector strong { font-weight: 500; color: var(--text); }
.current-charge { background: var(--surface); padding: 24px; border-radius: 10px; margin: 0 0 32px; }
.current-charge .metrics-strip { margin: 24px 0 12px; }
.current-charge .metric-value { font-size: 1.5rem; }
.current-charge h2 { display: flex; gap: 10px; align-items: center; color: var(--green); }
.current-charge .fine { margin-top: 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 16px; background: var(--surface); z-index: 5; touch-action: none; }
.sheet-head h2 { font-size: 1.25rem; }
.sheet-head .icon-button { margin-right: -8px; }
.sheet-body { padding: 4px 24px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.sheet-body>p { margin: 10px 0 18px; color: var(--muted); font-size: .9375rem; }
.sheet-body .metrics-strip { margin: 20px 0 30px; }
.sheet-body .metric-value { font-size: 1.5rem; }
.sheet-body .primary,.sheet-body>.secondary { width: 100%; margin-top: 20px; }
dialog { border: 0; padding: 0; background: var(--surface); color: var(--text); border-radius: 18px 18px 0 0; width: 100%; max-width: 640px; max-height: 90dvh; margin: auto auto 0; overflow: hidden; box-shadow: 0 -10px 70px #0005; }
dialog[open] { display: flex; flex-direction: column; animation: sheet-in .34s var(--ease); }
dialog::backdrop { background: #0008; backdrop-filter: blur(3px); animation: fade .2s; }
.sheet-handle { height: 5px; width: 36px; border-radius: 4px; background: #626568; margin: 9px auto 0; flex-shrink: 0; touch-action: none; }
.detail-rows { margin: 12px 0; }
.detail-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.detail-row dt { color: var(--muted); }
.detail-row dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.map { height: 270px; border-radius: 8px; background: #333b3c; position: relative; overflow: hidden; margin-bottom: 18px; }
.map-frame { height: 100%; width: 100%; }
.map-message { padding: 12px; background: #252729; color: var(--muted); font-size: .8125rem; border-radius: 5px; margin-bottom: 12px; }
.map-link { font-size: .875rem; display: inline-flex; padding: 10px 0; min-height: 44px; }
.leaflet-tile-pane { filter: brightness(.65) saturate(.35); }
.leaflet-control-attribution { font-size: 10px !important; background: #eee !important; color: #333 !important; }
.leaflet-control-attribution a { color: #333 !important; }
.setting-row { display: grid; gap: 10px; margin: 20px 0; }
.setting-row label { font-size: .875rem; color: var(--muted); }
.settings-note { font-size: .8125rem; color: var(--muted); margin: 24px 0; }
.appearance-settings { border-bottom: 1px solid var(--line); padding: 8px 0 20px; }
.appearance-preview { max-width: 460px; margin: 4px auto 0; }
.appearance-settings .setting-row { margin: 4px 0 22px; }
.paint-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: .875rem; color: var(--muted); }
#paint-name { color: var(--text); text-align: right; }
.paint-swatches { display: flex; flex-wrap: wrap; gap: 2px; margin: 8px -4px 12px; }
.paint-swatch { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.paint-swatch span { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(ellipse at 30% 15%,#ffffff55,transparent 65%),var(--paint); box-shadow: inset 0 0 0 1px #ffffff20,0 2px 3px #0004; }
.paint-swatch::after { content: ''; position: absolute; inset: 3px; border: 2px solid transparent; border-radius: 50%; transition: border-color .15s; }
.paint-swatch[aria-pressed=true]::after { border-color: var(--text); }
.appearance-note { margin-top: 12px; }
.appearance-settings .text-button { min-height: 44px; margin-top: 4px; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a6a8ab' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.tyres { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 0; }
.tyres>div { padding: 14px; background: var(--raised); border-radius: 7px; text-align: center; }
.tyres span { display: block; font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.tyres strong { font-size: 1.25rem; font-weight: 550; }
#toast { position: fixed; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%,12px); background: #eee; color: #191a1b; padding: 12px 20px; border-radius: 7px; box-shadow: 0 4px 20px #0003; z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s,transform .25s var(--ease); font-size: .875rem; max-width: calc(100% - 40px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%,0); }
.refreshing .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-in { from { opacity: .5; transform: translateY(70px); } to { opacity: 1; transform: none; } }
@media(max-width:374px) {
  .home-summary { padding: 16px; } .today-metrics { gap: 8px; } .today-metrics .metric-value { font-size: 1.25rem; }
  .activity-row { gap: 10px; } .activity-symbol { width: 32px; height: 32px; }
  .paint-swatches { gap: 0; margin-left: -6px; margin-right: -6px; }
  :root { --gutter: 20px; } .metric-value { font-size: 1.4rem; } .segmented button { padding: 6px 8px; }
  .section-head { gap: 8px; } .history-row { gap: 10px; } .history-symbol { width: 34px; height: 34px; }
  .topbar h1 { font-size: 1.6rem; } .quick-actions button>span:last-child { font-size: .75rem; }
}
@media(max-width:699px) {
  .login { flex-direction: column; padding-top: 60px; gap: 8px; } .login-art { width: 100%; max-width: 450px; }
  .login-content { width: 100%; max-width: 340px; } .login h1 { font-size: 2.25rem; } .login .eyebrow { margin-top: 24px; }
}
@media(min-width:700px) {
  dialog { margin: auto; border-radius: 14px; max-height: 85dvh; } .sheet-handle { display: none; }
  .sheet-head { padding-top: 20px; } .sheet-body { padding-bottom: 28px; } .car-stage { margin: 24px 0 18px; }
  .overview-details { max-width: 620px; margin: auto; } .quick-actions { max-width: 460px; margin: 12px auto 28px; }
  .metrics-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .surface { padding: 28px; }
  .health-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } .detail-view { padding-top: 24px; }
}
@media(min-width:1000px) {
  :root { --gutter: 40px; } .shell { display: grid; grid-template-columns: 290px minmax(0,1fr); max-width: 1800px; margin: 0 auto; min-height: 100dvh; }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 46px 24px 32px 28px; border-right: 1px solid #ffffff05; overflow-y: auto; }
  .sidebar-identity { display: flex; flex-direction: column; gap: 7px; text-align: left; padding: 0 12px 32px; }
  .sidebar-identity>span:first-child { font-size: 1.5rem; font-weight: 600; letter-spacing: -.04em; }
  .sidebar-identity>.muted { font-size: .8125rem; } .sidebar-battery { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .875rem; }
  .sidebar-battery .icon { width: 23px; height: 23px; } .sidebar .menu-row { padding: 18px 14px; border-radius: 7px; gap: 16px; min-height: 72px; }
  .sidebar .menu-row[aria-current=page],.sidebar .menu-row:hover { background: var(--surface); } .sidebar .menu-row .chevron { display: none; }
  .sidebar-footer { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding: 30px 12px 0; font-size: .875rem; color: var(--muted); }
  .sidebar-footer .model-wordmark { font-size: 1rem; } .content { width: 100%; max-width: 1300px; min-width: 0; }
  .topbar { padding: 42px var(--gutter) 14px; min-height: 105px; } .topbar h1 { font-size: 1.5rem; font-weight: 550; }
  .topbar-actions #refresh { display: grid; } .topbar-actions { gap: 5px; } .topbar.has-back { position: static; background: none; backdrop-filter: none; }
  .topbar.has-back [data-sheet=settings] { display: grid !important; } #back { display: none !important; } main { padding-top: 12px; }
  #view-now { display: grid; gap: 0; } .vehicle-overview { position: relative; } .battery-heading { margin: 12px 0 0 2px; } .battery-line { font-size: 1rem; }
  .car-stage { width: 100%; max-width: clamp(340px,52vh,600px); margin: 10px auto 12px; padding: 0; } .quick-actions { margin: 0 auto 24px; max-width: 500px; }
  .quick-actions button { min-width: 100px; } .overview-details { width: 100%; max-width: 850px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .home-menu { display: none; } .home-history { grid-column: 2; margin: 0; border: 0; background: var(--surface); border-radius: 9px; padding: 24px; }
  .home-summary { grid-column: 1; margin: 0; padding: 24px; } .today-metrics .metric-value { font-size: 1.5rem; }
  .home-history svg { max-height: 175px; } .live-charge { margin: 0; grid-column: 1/-1; } .vehicle-footer { display: none; }
  .detail-view { max-width: 950px; margin: 0 auto; padding-top: 24px; } .metrics-strip { margin-top: 18px; gap: 30px; }
  .metric-value { font-size: 2.25rem; } .history-row { padding: 24px 10px; } .history-symbol { width: 46px; height: 46px; }
  .history-address { max-width: 600px; } .history-meta { padding-right: 8px; } .health-grid .metric-value { font-size: 1.75rem; }
  .chart-host svg { max-height: 260px; } .view-subtitle { margin-top: 0; } .metrics-grid .metric-value { font-size: 2.125rem; }
}
@media(min-width:1400px) {
  .shell { grid-template-columns: 330px minmax(0,1fr); } .sidebar { padding-left: 36px; padding-right: 28px; }
  .topbar { padding-top: 48px; }
  .overview-details { grid-template-columns: 1fr 1.4fr; max-width: 1050px; align-items: start; }
  .live-charge { grid-column: 1/-1; padding: 24px; margin-top: 8px; } .home-history { grid-column: 2; }
  .home-history .section-head { flex-wrap: wrap; } .home-history svg { max-height: 145px; }
  .overview-details:not(:has(.live-charge:not(.hidden))) .home-history { grid-column: 2; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* 2.3 — focused journeys, charging and battery context. */
.segmented button { min-height: 44px; font-size: .875rem; transition: background .2s var(--ease),color .2s; }
.segmented button[aria-pressed=true] { background: #45484a; box-shadow: 0 1px 4px #0003; }
.metric-label,.menu-subtitle,.history-secondary { font-size: .875rem; }
.chart-event { fill: #6d9cf4; opacity: .12; }
.chart-event.charge { fill: var(--green); opacity: .14; }
.chart-zero { stroke: #b6bec7; stroke-width: 1; opacity: .5; }
.chart-grid { stroke: #ffffff1a; stroke-dasharray: 2 5; }
.chart-line { stroke-width: 2; }
.chart-readout strong { font-size: 1.5rem; }
.chart-readout span { font-size: .8125rem; }
.chart-inspector { margin-top: 4px; }
.chart-hint { text-align: center; font-size: .75rem; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .75rem; color: var(--muted); margin: 20px 0 10px; }
.chart-legend .legend-drive::before,.chart-legend .legend-charge::before { content: ''; display: inline-block; width: 7px; height: 7px; background: #6d9cf4; margin-right: 6px; border-radius: 2px; }
.chart-legend .legend-charge::before { background: var(--green); }
.event-chip { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; padding: 5px 10px; margin: 0 4px 4px 0; border-radius: 5px; background: #ffffff06; color: var(--muted); font-size: .8125rem; }
.event-chip .icon { width: 16px; height: 16px; }
.event-chip:hover { background: var(--raised); color: var(--text); }
.charging-period { align-items: center; margin-bottom: 26px; }
.charging-period h2 { font-size: 1rem; }
.charging-period .segmented button { padding-inline: 10px; }
.mode-control { display: flex; width: 100%; }
.mode-control button { flex: 1; }
.charge-hero { text-align: center; padding: 30px 0 22px; }
.hero-label { font-size: .875rem; color: var(--muted); }
.hero-number { font-size: clamp(3rem,8vw,4.5rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.2; margin: 8px 0; font-variant-numeric: tabular-nums; }
.hero-number>span { font-size: 1.25rem; color: var(--muted); margin-left: 8px; letter-spacing: -.02em; }
.charge-hero p { color: var(--muted); font-size: .875rem; }
.charge-support { display: flex; align-items: center; justify-content: space-between; border-block: 1px solid var(--line); padding: 18px 0; margin-bottom: 26px; gap: 20px; }
.charge-support .metric-value { font-size: 1.5rem; }
.charge-support .metric-label { margin-top: 4px; }
.period-caption { font-size: .8125rem; color: var(--muted); text-align: right; }
#charging-coverage { margin: 18px 0 0; }
.charging-locations { margin-top: 34px; }
.charge-place { margin-top: 20px; padding: 22px; background: var(--surface); border-radius: 9px; }
.place-heading { display: flex; align-items: center; gap: 10px; }
.place-heading>.icon { color: var(--green); width: 20px; }
.place-heading h3 { flex: 1; overflow-wrap: anywhere; }
.place-heading>span { font-size: .8125rem; color: var(--muted); }
.place-values { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 0 8px; }
.place-values strong { font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; }
.place-values>span { font-size: .875rem; color: var(--muted); text-align: right; }
.charge-place p { color: var(--muted); font-size: .8125rem; }
.baseline-panel { padding: 26px 22px 0; border-radius: 10px; background: var(--surface); margin: 32px 0; }
.baseline-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.baseline-heading>.icon { width: 28px; height: 28px; color: var(--muted); }
.baseline-heading .eyebrow { font-size: .6875rem; color: var(--muted); letter-spacing: .15em; }
.baseline-heading h2 { font-size: 1.25rem; margin-top: 6px; }
#baseline-status>p { font-size: .9375rem; color: var(--muted); }
.baseline-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0; font-size: .875rem; }
#baseline-status .consumption-status { font-size: .8125rem; padding-bottom: 24px; }
.disclosure { border-top: 1px solid var(--line); }
.disclosure summary { min-height: 60px; padding: 20px 24px 20px 0; cursor: pointer; font-size: .875rem; font-weight: 500; list-style: none; position: relative; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: ''; position: absolute; right: 3px; top: 25px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; width: 7px; height: 7px; transform: rotate(45deg); transition: transform .2s; }
.disclosure[open] summary::after { transform: rotate(225deg); }
.disclosure summary:focus-visible { outline: 2px solid #8faeff; outline-offset: 2px; }
.disclosure[open]>:not(summary) { animation: enter .22s var(--ease); }
.disclosure>.fine { padding-bottom: 22px; }
.disclosure .detail-rows { margin-top: 0; }
.disclosure .detail-row:last-child { border-bottom: 0; }
.alltime>h2 { margin-bottom: 8px; }
.session-date { color: var(--muted); font-size: .8125rem; }
.journey-heading { padding: 0 0 20px; }
.journey-places { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 1.0625rem; margin-top: 10px; line-height: 1.45; }
.journey-places>span,.journey-places>strong { flex: 1; min-width: 100px; font-weight: 500; overflow-wrap: anywhere; }
.journey-places>strong { flex: 0 1 auto; min-width: 0; max-width: 45%; }
.journey-places>.icon { color: var(--muted); width: 16px; height: 16px; }
.journey-sheet .map { height: 225px; margin-bottom: 22px; border-radius: 7px; }
.journey-metrics.metrics-strip { margin: 0 0 22px; gap: 10px; }
.journey-metrics .metric-value { font-size: 1.75rem; }
.journey-metrics .metric-label { font-size: .8125rem; }
.soc-transition { margin-bottom: 26px; }
.soc-transition>div:first-child { display: flex; justify-content: space-between; font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.soc-transition strong { color: var(--text); font-weight: 450; font-variant-numeric: tabular-nums; }
.soc-track { background: #ffffff0b; border-radius: 2px; position: relative; height: 3px; overflow: hidden; }
.soc-track>span { position: absolute; height: 100%; left: 0; top: 0; background: #5ac77e55; }
.soc-track>span+span { background: var(--green); }
.journey-tabs { display: flex; margin-bottom: 20px; }
.journey-tabs button { flex: 1; }
#journey-chart[data-mode=speed] .chart-line { stroke: #80a5ff; }
#journey-chart[data-mode=power] .chart-line { stroke: #c3cbd5; }
#journey-chart-note { margin: 16px 0 28px; min-height: 40px; }
.journey-more { margin-top: 4px; }
.session-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.session-heading h3 { font-size: 1.25rem; margin-bottom: 4px; }
.session-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #5ac77e12; color: var(--green); flex-shrink: 0; }
.charge-metrics.metrics-strip { margin: 0 0 28px; }
.charge-metrics .metric-value { font-size: 1.65rem; }
.energy-comparison { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; }
.energy-comparison>div { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; font-size: .875rem; }
.energy-comparison span { color: var(--muted); }
.energy-comparison strong { font-weight: 500; white-space: nowrap; }
.energy-comparison p { font-size: .8125rem; color: var(--muted); margin: 12px 0 22px; }
@media(max-width:699px) {
  .journey-sheet,.charge-sheet { max-height: calc(100dvh - env(safe-area-inset-top) - 12px); }
  .journey-sheet .sheet-body,.charge-sheet .sheet-body { padding-inline: 22px; }
  .journey-sheet .sheet-head,.charge-sheet .sheet-head { padding-bottom: 14px; }
}
@media(max-width:359px) {
  .charging-period { flex-wrap: wrap; }
  .charging-period .segmented { width: 100%; }
  .charging-period .segmented button { flex: 1; }
  .journey-metrics .metric-value,.charge-metrics .metric-value { font-size: 1.4rem; }
  .journey-sheet .sheet-body,.charge-sheet .sheet-body { padding-inline: 18px; }
  .place-values { flex-wrap: wrap; }
  .place-heading { flex-wrap: wrap; }
}
@media(min-width:900px) {
  dialog.journey-sheet { max-width: 1060px; width: calc(100% - 80px); }
  .journey-sheet .sheet-head { padding: 22px 32px 18px; }
  .journey-sheet .sheet-body { padding: 4px 32px 26px; }
  .journey-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px 32px; align-items: start; }
  .journey-sheet .journey-map .map { height: 420px; margin: 0; }
  .journey-more { grid-column: 1/-1; }
  .journey-heading { padding-bottom: 26px; }
  .journey-places { justify-content: flex-start; font-size: 1.25rem; }
  .journey-places>span,.journey-places>strong { flex: initial; }
  #journey-chart-note { margin-bottom: 0; }
  .journey-analysis .chart-host svg { max-height: 190px; }
}
@media(min-width:1200px) {
  .charging-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
  .charging-locations { margin-top: 4px; }
  .charge-place { margin-top: 22px; }
  .charging-overview { min-width: 0; }
  .charging-period h2 { font-size: 1.125rem; }
}

/* Mate4Mobile identity: quiet branding, vehicle-first content. */
.brand-lockup{display:block;margin-bottom:30px;max-width:100%;height:auto}.sidebar-brand{display:block;margin:20px 0 7px;opacity:.85}.boot-mark{animation:brand-breathe 1.8s ease-in-out infinite}.primary{background:#e9eeeb;color:#111815}.primary:hover{background:#fff}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:#9ce6c5}@keyframes brand-breathe{50%{opacity:.45;transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){.boot-mark{animation:none}}

.demo-banner{background:#22332b;color:#c3e2d2;border:1px solid #354a3e}.metric-value{font-variant-numeric:tabular-nums}

/* Explore dashboards */
.chart-series-0{--series:#9ce6c5}
.chart-series-1{--series:#89abff}
.chart-series-2{--series:#f2b880}
.chart-series-3{--series:#c9a7ff}
.chart-line{stroke:var(--series,var(--green))}
.chart-bar{fill:var(--series,var(--blue))}
.chart-scatter{fill:var(--series,var(--green));fill-opacity:.75;stroke:none}
.chart-axis.right{fill:var(--muted);text-anchor:start}
.chart-legend{display:flex;flex-wrap:wrap;gap:6px 16px;padding:8px 2px 0;font-size:.75rem;color:var(--muted)}
.chart-legend-item{display:inline-flex;align-items:center;gap:6px}
.chart-legend-item b{color:var(--text);font-weight:550;font-variant-numeric:tabular-nums}
.chart-swatch{width:10px;height:10px;border-radius:3px;background:var(--series,var(--green));display:inline-block}

.explore-tabs.segmented {
  display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:3px;
  padding:4px; border-radius:10px; background:var(--surface);
}
.explore-tabs button { min-width:0; padding:6px; border-radius:7px; overflow-wrap:anywhere; }
.explore-body { display:grid; gap:24px; min-width:0; padding:24px 0; }
.explore-body > * { min-width:0; }
.explore-body .metrics-strip { grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; gap:16px; }
.explore-body .metric-value { font-size:clamp(1.15rem,2.5vw,1.85rem); }
.explore-body .chart-host,.calendar-wrap { background:var(--surface); padding:clamp(14px,2.4vw,24px); border-radius:12px; }
.explore-body .chart-host:empty { display:none; }
.explore-body .section-head,.explore-body .settings-note { margin:0; }
.explore-records .disclosure { margin:0; border-bottom:1px solid var(--line); }
.explore-map { height:clamp(300px,48vh,520px); margin:0; border-radius:12px; isolation:isolate; }
.explore-map .map-frame { height:100%; }
.route-count { position:absolute; left:14px; bottom:20px; z-index:500; pointer-events:none; display:flex; align-items:center; gap:8px; background:var(--bg); color:var(--text); border-radius:8px; padding:8px 12px; font-size:.875rem; }
.route-count svg { width:16px; height:16px; color:var(--green); }
.month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; margin-top:16px; text-align:center; }
.month-grid > span:not(.day-cell) { color:var(--muted); font-size:.75rem; padding-bottom:6px; }
.day-cell { display:grid; place-items:center; min-height:44px; border-radius:6px; background:var(--raised); color:var(--muted); font-variant-numeric:tabular-nums; }
button.day-cell { color:var(--text); box-shadow:inset 0 0 0 1px var(--muted); }
.day-cell.level-1 { background:#305342; } .day-cell.level-2 { background:#34694e; }
.day-cell.level-3 { background:#71b492;color:#10241a; } .day-cell.level-4 { background:var(--green);color:#10241a; }
#calendar-readout { display:block; min-height:1.4em; margin-top:12px; font-size:.875rem; }
#calendar-month { max-width:55%; min-height:44px; color:var(--text); background:var(--raised); border:0; border-radius:6px; padding:4px 8px; }
#explore-fixed:empty { display:none; }
@media(max-width:720px){
  .explore-tabs.segmented { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .explore-body .metrics-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #view-explore > .section-head { flex-wrap:wrap; }
}

.explore-plot > h3 { margin:0 0 12px; }

@media(min-width:900px){
  .explore-body:has(.explore-map) { grid-template-columns:minmax(0,1.45fr) minmax(240px,1fr); align-items:start; }
  .route-history { max-height:clamp(300px,48vh,520px); overflow:auto; }
}
.route-history .history-row { min-height:70px; padding:12px 0; }

.route-history { scrollbar-width:none; }
.route-history::-webkit-scrollbar { display:none; }

.drive-search { display:grid; gap:7px; margin:14px 0; color:var(--muted); font-size:.85rem; }
.drive-search input { width:100%; min-height:44px; padding:8px 12px; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:7px; font:inherit; font-size:1rem; }
.place-share { display:grid; gap:5px; color:var(--muted); font-size:.75rem; }
.place-share progress { width:100%; height:4px; border:0; accent-color:var(--green); }
.month-summary,.home-history #battery-observed { margin:8px 0; color:var(--muted); font-size:.85rem; font-variant-numeric:tabular-nums; }
.curve-modes { margin-bottom:12px; }
.journey-tabs { flex-wrap:wrap; }

.curve-picker { display:flex; gap:12px; align-items:center; justify-content:space-between; color:var(--muted); margin:8px 0 14px; font-size:.875rem; }
.curve-picker select { max-width:75%; min-height:44px; padding:6px 10px; background:var(--surface); color:var(--text); border:1px solid var(--line); border-radius:6px; }

.report-library { margin-top:20px; }
.report-library .menu-row { min-height:48px; }
#trip-range { display:flex; flex-wrap:wrap; align-items:end; gap:10px; }
#trip-range label { display:grid; flex:1; gap:4px; color:var(--muted); font-size:.8rem; min-width:115px; }
#trip-range input { color-scheme:dark; width:100%; min-height:44px; border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:6px; padding:6px; }
#trip-result .metrics-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
#report-chart { margin-top:20px; }

.speed-bands > div { display:grid; grid-template-columns:8em minmax(24px,1fr) 5em; align-items:center; gap:8px; margin:9px 0; font-size:.8rem; font-variant-numeric:tabular-nums; }
.speed-bands progress { width:100%; height:5px; accent-color:var(--green); }
.speed-bands b { text-align:right; }
.state-rail { height:15px; border-radius:4px; background:var(--raised); position:relative; overflow:hidden; }
.state-rail span { position:absolute; height:100%; background:var(--muted); }
.state-rail .state-online,.state-rail .state-charging { background:var(--green); }
.state-rail .state-asleep { background:#819ee1; }
.state-rail .state-offline { background:#717679; }
.report-period { display:flex; justify-content:space-between; color:var(--muted); font-size:.75rem; margin-top:6px; }
.report-link { margin:6px 6px 6px 0; }

.visit-comparison { width:100%; border-collapse:collapse; margin:12px 0; font-size:.85rem; font-variant-numeric:tabular-nums; }
.visit-comparison th,.visit-comparison td { text-align:right; padding:9px 3px; border-bottom:1px solid var(--line); }
.visit-comparison th[scope=row] { text-align:left; color:var(--muted); font-weight:500; }
.visit-comparison small { display:block; color:var(--muted); }
.day-cell.level-0:not(:focus) { box-shadow:none; }

.usage-panel { margin:0 0 28px; }
.usage-panel .section-head { flex-wrap:wrap; margin-bottom:8px; }
.usage-graphic { display:grid; grid-template-columns:minmax(95px, .8fr) minmax(150px,1.2fr); align-items:center; gap:16px; margin:16px 0; }
.usage-donut { display:grid; place-items:center; position:relative; max-width:170px; width:100%; justify-self:center; }
.usage-donut svg { width:100%; transform:rotate(-90deg); }
.usage-donut circle { fill:none; stroke:var(--band,var(--raised)); stroke-width:10; }
.usage-donut circle[data-usage-band] { cursor:pointer; pointer-events:visiblePainted; }
.usage-donut strong { position:absolute; pointer-events:none; text-align:center; font-size:clamp(1rem,4vw,1.65rem); font-variant-numeric:tabular-nums; }
.usage-donut small,.usage-badge small { display:block; color:var(--muted); font-size:.8rem; font-weight:400; }
.band-lower { --band:var(--green); } .band-typical { --band:#8eaed9; } .band-higher { --band:#e2b38a; } .band-unknown { --band:#747a80; }
.usage-key { width:100%; min-height:44px; display:grid; grid-template-columns:8px 1fr auto 12px; align-items:center; gap:6px; border-bottom:1px solid var(--line); text-align:left; font-size:.8rem; }
.usage-key i { width:7px; height:7px; background:var(--band); border-radius:50%; } .usage-key svg { width:12px; }
.usage-panel .metrics-strip { margin:16px 0; } .usage-panel .metric-value { font-size:clamp(1.1rem,3vw,1.6rem); }
#badge-count { margin-left:6px; color:var(--muted); font-weight:400; font-variant-numeric:tabular-nums; }
#usage-milestones { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(134px,100%),1fr)); gap:8px; }
.usage-badge { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:14px; background:var(--surface); border-radius:10px; }
.badge-emblem { display:grid; place-items:center; width:35px; height:40px; margin-bottom:5px; background:var(--raised); color:var(--muted); clip-path:polygon(50% 0,96% 17%,90% 70%,50% 100%,10% 70%,4% 17%); }
.badge-emblem svg { width:20px; height:20px; }
.usage-badge.earned .badge-emblem { background:var(--green); color:var(--bg); }
.badge-status { margin-top:auto; padding-top:7px; font-size:.78rem; color:var(--muted); }
.earned .badge-status { color:var(--green); }
.usage-badge progress { width:100%; height:4px; accent-color:var(--green); }
@media(max-width:370px){.usage-graphic { gap:8px; grid-template-columns:88px 1fr; }.usage-key { gap:4px; } }
