:root {
  --bg: #000000;
  --bg2: #0d0d0d;
  --bg3: #1a1a1a;
  --border: #2e2e2e;
  --text: #ebebeb;
  --muted: #9a9a9a;
  --accent: #ffffff;
  --accent2: #ffffff;
  --warn: #cfcfcf;
  --danger: #a8a8a8;
  --tesla: #8a8a8a;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  font-family: "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); min-height: 100%; }
a { color: var(--accent); }
button, input, select {
  font: inherit;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .55rem .85rem;
}
button {
  cursor: pointer;
  background: linear-gradient(180deg, #262626, #1a1a1a);
}
button:hover { border-color: var(--accent); }
button.primary { background: linear-gradient(180deg, #ffffff, #d9d9d9); border-color: #ffffff55; color: #000000; }
button.danger { border-color: #a8a8a855; }
input { width: 100%; max-width: 220px; }

.banner {
  background: linear-gradient(90deg, #1a1a1a, #262626);
  color: #ffffff;
  text-align: center;
  padding: .65rem 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 1px solid #ffffff14;
}
.banner.hidden { display: none; }
.banner.real { display:none !important;
  background: linear-gradient(90deg, #141414, #1f1f1f);
  color: #d4d4d4;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #9a9a9a, #2a2a2a);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.brand h1 { margin: 0; font-size: 1.15rem; font-weight: 650; }
.brand .sub { color: var(--muted); font-size: .8rem; }
.meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.pill {
  font-size: .75rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
}
.pill.on { color: var(--accent2); border-color: #ffffff44; }
.pill.warn { color: var(--warn); }
.pill.off { color: var(--danger); }

.layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.card h2 {
  margin: 0 0 .85rem;
  font-size: .95rem;
  font-weight: 650;
  color: #d4d4d4;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 640px) {
  .grid2, .grid3 { grid-template-columns: 1fr 1fr; }
}

.stat {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem .85rem;
}
.stat .label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 1.35rem; font-weight: 650; margin-top: .2rem; }
.stat .value.small { font-size: 1.05rem; }
.stat .hint { color: var(--muted); font-size: .75rem; margin-top: .15rem; }

#map {
  height: 280px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #000000;
}
.leaflet-container { background: #000000; font: inherit; }

.batt-wrap { display: flex; align-items: center; gap: 1rem; }
.batt-ring {
  --p: 67;
  width: 88px; height: 88px; border-radius: 50%;
  background: conic-gradient(var(--accent2) calc(var(--p) * 1%), #2e2e2e 0);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.batt-ring > span {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--bg2);
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem;
}

.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
.muted { color: var(--muted); font-size: .85rem; }
.note {
  font-size: .78rem;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding-left: .65rem;
  margin: .5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
th, td {
  text-align: left;
  padding: .45rem .35rem;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; }
tr:hover td { background: #1a1a1a55; }

.alert-item {
  display: flex; justify-content: space-between; gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
}
.alert-item .t { font-weight: 600; }
.alert-item .b { color: var(--muted); font-size: .8rem; }
.tag {
  font-size: .68rem;
  padding: .15rem .45rem;
  border-radius: 6px;
  background: #262626;
  color: var(--accent);
}

#chart {
  width: 100%;
  height: 180px;
  background: var(--bg3);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tabs { display: flex; gap: .35rem; margin-bottom: .75rem; flex-wrap: wrap; }
.tabs button.active { border-color: var(--accent); color: var(--accent); }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
  padding: 0 1rem 2rem;
}

.brand img.logo { background: #000; object-fit: cover; display: block; }

.brand img.logo { width:auto !important; height:2.3rem; border-radius:0 !important; object-fit:contain; background:#000; }

/* ===== Stardust Cloud additions (same palette: black / white / neutral grays) ===== */
html { -webkit-text-size-adjust: 100%; }
body { padding-bottom: env(safe-area-inset-bottom); }
.topbar { padding-top: max(1rem, env(safe-area-inset-top)); padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }
.filters { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin-bottom: .6rem; }
.filters button.active { border-color: var(--accent); color: var(--accent); }
.filters input[type=date] { max-width: 150px; }
#map.big { height: 460px; }
.list { overflow: auto; max-height: 300px; }
.list .item { padding: .55rem .6rem; border: 1px solid var(--border); border-radius: 10px; margin-bottom: .4rem; cursor: pointer; background: var(--bg3); }
.list .item:hover, .list .item.sel { border-color: var(--accent); }
.list .item .b { color: var(--muted); font-size: .8rem; }
.readonly { font-size: .72rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .2rem .55rem; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; }
.auth-card { width: 100%; max-width: 380px; text-align: center; }
.auth-card img.logo { height: 72px; margin: 0 auto .5rem; display: block; }
.auth-card input { max-width: none; margin-bottom: .6rem; }
.auth-card button { width: 100%; margin-top: .25rem; }
.err { color: #cfcfcf; min-height: 1.2rem; font-size: .85rem; margin-top: .5rem; }
.linkbtn { background: none !important; border: none !important; color: var(--muted); text-decoration: underline; padding: .3rem; width: auto !important; }
@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: center; gap: .55rem; }
  .meta { justify-content: center; }
  .layout { padding: .75rem .6rem 2rem; gap: .6rem; }
  .card { padding: .85rem .8rem; border-radius: 12px; }
  #map, #map.big { height: 320px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  input, select, button { font-size: 16px; } /* prevent iOS zoom on focus */
  table { font-size: .8rem; }
}
@media (display-mode: standalone) { .topbar { background: #000; } }
.sd-dark-tiles { filter: invert(1) grayscale(1) brightness(.85) contrast(.9); }
/* ===== Smart features (same palette) ===== */
.badge { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; margin-left: .25rem; border-radius: 999px; background: #ffffff; color: #000; font-size: .7rem; font-weight: 700; text-align: center; line-height: 1.2rem; }
.badge.hidden { display: none; }
.alert-item.unread .t::before { content: "● "; color: var(--accent); }
.ins-sec { margin-bottom: .9rem; }
.ins-sec h3 { margin: 0 0 .35rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.ins-sec p { margin: .2rem 0; font-size: .9rem; }
.learning { color: var(--warn); font-size: .82rem; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 70px; margin-top: .4rem; }
.bars div { flex: 1; background: #4a4a4a; border-radius: 2px 2px 0 0; min-height: 2px; }
.bars div.hi { background: #ffffff; }
.bars-x { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.tip { border-left: 2px solid var(--accent); padding: .35rem .6rem; margin: .4rem 0; background: var(--bg3); border-radius: 0 8px 8px 0; font-size: .88rem; }
.tip.warn { border-left-color: var(--warn); }
.list .item input[type=checkbox] { width: auto; margin: 0 .4rem 0 0; vertical-align: middle; }
.cmp { overflow-x: auto; }
.cmp table td, .cmp table th { white-space: nowrap; }
.minimap { height: 140px; width: 180px; border-radius: 10px; border: 1px solid var(--border); background: #000; }
.g3fix { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 640px) { .minimap { width: 140px; height: 110px; } }

/* Phone only: icon + title centered on one line, VIN line centered below */
@media (max-width: 640px) {
  .brand { flex-wrap: wrap; justify-content: center; width: 100%; row-gap: .15rem; }
  .brand > div { display: contents; }
  .brand h1 { text-align: center; }
  .brand .sub { flex-basis: 100%; text-align: center; }
  .brand img.logo { height: 1.9rem !important; }
}

/* Phone: keep everything inside the screen width */
html, body { max-width: 100%; overflow-x: hidden; }
.layout, .layout > *, .card, .grid2 > *, .grid3 > *, .g3fix > * { min-width: 0; }
.cmp { overflow-x: auto; max-width: 100%; }
@media (max-width: 640px) {
  .layout { padding-left: .6rem; padding-right: .6rem; }
  .g3fix { grid-template-columns: 1fr 1fr !important; }
  .g3fix > *:first-child { grid-column: 1 / -1; justify-self: center; }
  .grid2 > *, .grid3 > *, .g3fix > * { overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .brand .sub .vsep { display: none; }
  .brand .sub #vin { display: block; }
}
@media (max-width: 640px) { .topbar .meta { display: none !important; } }
@media (max-width: 640px) {
  .brand { align-items: center; }
  .brand img.logo { height: 1.6rem !important; align-self: center; display: block; margin: 0; }
  .brand h1 { margin: 0; line-height: 1.6rem; }
}
@media (max-width: 640px) {
  .brand img.logo { display: none !important; }
  .brand h1 { display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: 1.35rem; line-height: 1; flex-basis: 100%; }
  .brand h1::before { content: ""; width: 3.2rem; height: 2.4rem; background: url(/logo-car.png) center / contain no-repeat; flex: none; }
}
@media (max-width: 640px) {
  .brand h1 { font-size: 1.5rem; gap: .55rem; }
  .brand h1::before { width: 2.5rem; height: 1.6rem; }
  .brand .sub { font-size: .9rem; margin-top: .3rem; line-height: 1.4; }
}

/* ===================== Flagship polish layer (header untouched) ===================== */
:root { --card: #0b0b0b; --line: #1d1d1d; --line2: #2a2a2a; --ink2: #b5b5b5; --ease: cubic-bezier(.2,.7,.2,1); }
body { font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
.layout { gap: 1.1rem 1.25rem; padding-top: 1.4rem; }
.layout > section { min-width: 0; }
.wide { grid-column: 1 / -1; min-width: 0; }
.layout .card { background: linear-gradient(180deg, #0e0e0e, #090909); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 1px 0 #ffffff08 inset, 0 20px 40px -24px #000; padding: 1.15rem 1.25rem; margin-bottom: 1.1rem; animation: sd-in .5s var(--ease) both; transition: border-color .25s var(--ease); }
.layout .card:hover { border-color: var(--line2); }
.layout .card h2 { font-size: .74rem; font-weight: 600; letter-spacing: .09em; color: var(--muted); margin: 0 0 .9rem; }
@keyframes sd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.layout button, .layout input, .layout select { border-radius: 12px; border-color: var(--line2); background: #141414; transition: border-color .2s, background .2s, color .2s; }
.layout button:hover { border-color: #5a5a5a; background: #1a1a1a; }
.layout button:disabled { opacity: .4; cursor: default; }
.layout button.primary { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.layout .stat { background: #111; border: 1px solid var(--line); border-radius: 14px; }
.layout .stat .value { font-weight: 600; letter-spacing: -.01em; }
.layout .filters button.active, .layout .tabs button.active { background: #fff; color: #000; border-color: #fff; }
.layout .list .item { border-color: var(--line); background: #101010; border-radius: 14px; transition: border-color .2s, background .2s; }
.layout .list .item.sel { border-color: #fff; background: #161616; }
#map { border-color: var(--line); border-radius: 16px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: .2rem .15rem 1rem; flex-wrap: wrap; }
.eyebrow { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sec-title { margin: .2rem 0 0; font-size: 1.55rem; font-weight: 650; letter-spacing: -.02em; color: #fff; }
.seg { display: inline-flex; background: #111; border: 1px solid var(--line2); border-radius: 999px; padding: 3px; gap: 2px; }
.layout .seg button { border: 0; background: transparent; border-radius: 999px; padding: .4rem .95rem; font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.layout .seg button:hover { background: #1c1c1c; color: #fff; }
.layout .seg button.active { background: #fff; color: #000; box-shadow: 0 2px 10px #0008; }
.seg.sm button { padding: .32rem .8rem; font-size: .78rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .2rem; }
.card-head h2 { margin-bottom: .6rem !important; }
.card-head .muted { font-size: .76rem; }
.foot-note { color: #7d7d7d; font-size: .76rem; line-height: 1.5; margin-top: .85rem; }

/* tires */
.tire-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.tire { background: #101010; border: 1px solid var(--line); border-radius: 16px; padding: .85rem .9rem .5rem; transition: border-color .3s; }
.tire.flag { border-color: #a8a8a8; background: repeating-linear-gradient(135deg, #141414 0 10px, #111 10px 20px); }
.tire-head { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.cc-t { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tire-psi { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.tire.flag .tire-psi { color: #a8a8a8; }
.tire-psi span, .cc-v small { font-size: .8rem; color: var(--muted); font-weight: 500; margin-left: .2rem; letter-spacing: 0; }
.rates { display: flex; gap: .4rem; }
.rate { text-align: right; background: #0a0a0a; border: 1px solid var(--line); border-radius: 10px; padding: .3rem .5rem; min-width: 4.6rem; }
.rate b { display: block; font-size: .92rem; font-weight: 600; color: #fff; }
.rate span { display: block; font-size: .62rem; color: var(--muted); white-space: nowrap; }
.rate.learning b { color: #cfcfcf; font-weight: 500; font-style: italic; }
.tire-flag { margin: .5rem 0 0; font-size: .78rem; color: #cfcfcf; font-weight: 500; }
.tire-norm { font-size: .7rem; color: var(--muted); margin: -.1rem 0 .3rem; }
.leak-alert { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid #a8a8a8; background: linear-gradient(90deg, #1b1b1b, #101010); border-radius: 16px; padding: .85rem 1rem; margin-bottom: .9rem; animation: sd-in .4s var(--ease) both; }
.leak-alert[hidden] { display: none; }
.leak-alert b { display: block; color: #fff; font-size: .98rem; }
.leak-alert span { color: #cfcfcf; font-size: .84rem; line-height: 1.45; }
.la-ic { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #cfcfcf; color: #000; display: grid; place-items: center; font-weight: 800; animation: sd-pulse 2.4s ease-in-out infinite; }
@keyframes sd-pulse { 50% { box-shadow: 0 0 0 7px #cfcfcf1a; } }

/* chart cards */
.chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.1rem; }
.chart-grid.in { margin-top: .9rem; }
.chart-grid .card { margin-bottom: 1.1rem; }
.more .chart-grid .card { background: #0f0f0f; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .5rem; }
.cc-v { font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; color: #fff; margin-top: .1rem; }
.cc-v small { font-size: .78rem; }
.cc-s { font-size: .74rem; color: var(--muted); text-align: right; }
.delta { display: inline-block; padding: .15rem .45rem; border-radius: 999px; background: #161616; border: 1px solid var(--line); color: #cfcfcf; font-size: .72rem; }
.lg { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.lg i { display: inline-block; width: 12px; height: 2px; background: #fff; border-radius: 2px; }
.lg i.d { background: repeating-linear-gradient(90deg, #8f8f8f 0 4px, transparent 4px 7px); }
.lg i.d2 { background: repeating-linear-gradient(90deg, #5c5c5c 0 1px, transparent 1px 4px); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.1rem; }
details.more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary h2 { margin: 0 !important; }
details.more summary h2::after { content: "  ＋"; color: #fff; }
details.more[open] summary h2::after { content: "  －"; }

/* SVG chart */
.sdc { position: relative; width: 100%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.sdc svg { display: block; overflow: visible; }
.sdc .grid line { stroke: #1f1f1f; stroke-width: 1; }
.sdc .ax { fill: #6f6f6f; font-size: 10px; }
.sdc .ln { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sdc .area { pointer-events: none; }
.sdc .ref { stroke: #6a6a6a; stroke-dasharray: 2 4; }
.sdc .ref-l { fill: #8a8a8a; }
.sdc .band { fill: #ffffff08; }
.sdc .bar { fill: #d9d9d9; transition: fill .2s; }
.sdc .bar:hover { fill: #fff; }
.sdc .trend { stroke: #8f8f8f; stroke-width: 1.5; stroke-dasharray: 5 4; }
.sdc .cross, .sdc .dot { opacity: 0; transition: opacity .15s; pointer-events: none; }
.sdc .cross { stroke: #ffffff55; }
.sdc .dot { stroke: #000; stroke-width: 2; }
.sdc.hover .cross, .sdc.hover .dot { opacity: 1; }
.sdc-tip { position: absolute; top: -6px; transform: translateY(-100%); opacity: 0; pointer-events: none; background: #f2f2f2; color: #000; border-radius: 10px; padding: .35rem .55rem; font-size: .72rem; white-space: nowrap; box-shadow: 0 8px 24px #000c; transition: opacity .15s; display: flex; flex-direction: column; gap: .05rem; z-index: 5; }
.sdc.hover .sdc-tip { opacity: 1; }
.sdc-tip em { font-style: normal; color: #555; }
.sdc-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; border: 1px solid #0003; }
.sdc-empty { display: grid; place-items: center; color: #6a6a6a; font-size: .8rem; border: 1px dashed var(--line2); border-radius: 12px; }

/* patterns */
.pat-grid { display: grid; gap: .6rem; }
.pat { display: flex; gap: .75rem; padding: .7rem .75rem; background: #101010; border: 1px solid var(--line); border-radius: 14px; }
.pat-ic { flex: none; width: 2rem; height: 2rem; border-radius: 10px; background: #1a1a1a; border: 1px solid var(--line2); display: grid; place-items: center; color: #fff; font-size: .95rem; }
.pat-t { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pat-b { font-size: .9rem; line-height: 1.45; color: #e6e6e6; margin-top: .1rem; }
.pat-b b { color: #fff; font-weight: 600; }
.pat-c { font-size: .72rem; color: #7d7d7d; margin-top: .2rem; }

/* routes by day */
.chips { display: flex; gap: .45rem; overflow-x: auto; padding: .1rem 0 .65rem; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chips[hidden] { display: none; }
.layout .chips button { flex: none; display: flex; flex-direction: column; align-items: flex-start; padding: .45rem .8rem; border-radius: 14px; font-size: .82rem; font-weight: 600; }
.chips button small { font-weight: 400; color: var(--muted); font-size: .7rem; }
.layout .chips button.active { background: #fff; color: #000; border-color: #fff; }
.chips button.active small { color: #444; }
.leaflet-tooltip { background: #f2f2f2; color: #000; border: 0; border-radius: 8px; box-shadow: 0 6px 18px #000a; }

@media (max-width: 1100px) { .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .layout { padding-top: 1rem; }
  .layout .card { border-radius: 18px; padding: 1rem .95rem; margin-bottom: .75rem; }
  .sec-head { margin: 0 .2rem .8rem; }
  .sec-title { font-size: 1.3rem; }
  .seg { width: 100%; } .seg button { flex: 1; }
  #route-mode { width: 100%; }
  .tire-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .chart-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chart-grid .card { margin-bottom: .75rem; }
  .cc-v { font-size: 1.4rem; }
  .tire-psi { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) { .layout .card, .leak-alert, .la-ic { animation: none; } }
