/* The platform demo on the landing page: an app frame drawn like the real portal (dark rail, top bar, object panel, map), with the
   parts each scene needs (the history strip, the geofence chips, the dashboard tiles). Overrides the older demo rules of styles.css. */
.platform-demo { --rail: #0f1b2d; --panel-line: #e6ebf2; --ink: #14213d; --muted: #6b7a90; --brand: #1d4e89; --soft: #e8f0fb; --moving: #0f7b4f; --stopped: #d98b1f; --alert: #d6473c;
  display: grid; grid-template-columns: 72px 296px minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr); min-height: 560px; border: 1px solid #d9e0ea; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -30px #0b2a3a3d; font-family: var(--body); color: var(--ink); }

/* the top bar */
.demo-topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 18px 0 16px; border-bottom: 1px solid var(--panel-line); background: #fff; font-size: 12px; }
.demo-brand { display: inline-flex; align-items: center; gap: 8px; font: 800 17px/1 var(--display); letter-spacing: -0.03em; color: var(--brand); }
.demo-brand b { color: #f26a21; font-weight: 800; }
.demo-brand img { width: 22px; height: 22px; }
.demo-crumb { padding-left: 14px; border-left: 1px solid var(--panel-line); font: 600 14px var(--display); letter-spacing: -0.01em; }
.demo-topsearch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--panel-line); border-radius: 10px; background: #f5f7fa; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.demo-topsearch .icon { width: 14px; height: 14px; }
.demo-topicons { display: inline-flex; gap: 6px; }
.demo-topicons i { width: 30px; height: 30px; border-radius: 9px; background: var(--soft); display: block; position: relative; }
.demo-topicons i::after { content: ""; position: absolute; inset: 9px; border: 1.6px solid var(--brand); border-radius: 50%; }
.demo-user { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 4px; border: 1px solid var(--panel-line); border-radius: 10px; font-size: 11px; }
.demo-user b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; font: 700 12px var(--display); }

/* the rail: the page's section lights up with the scene */
.demo-rail { background: var(--rail); display: flex; flex-direction: column; align-items: stretch; padding: 10px 6px; gap: 2px; }
.demo-rail span { display: grid; justify-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 10px; color: #a9b6cc; font-size: 9.5px; font-weight: 600; transition: background-color 0.3s, color 0.3s; }
.demo-rail .icon { width: 18px; height: 18px; stroke-width: 1.6; }
.platform-demo[data-scene="live"] .rail-live, .platform-demo[data-scene="history"] .rail-history, .platform-demo[data-scene="geofence"] .rail-places, .platform-demo[data-scene="insights"] .rail-dash { background: #ffffff18; color: #fff; }

/* the object panel */
.demo-sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--panel-line); background: #fff; }
.demo-sidebar-body { padding: 16px 14px 0; display: flex; flex-direction: column; flex: 1; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; padding: 0 2px; }
.demo-heading h3 { margin: 0; font: 600 17px var(--display); letter-spacing: -0.02em; }
.demo-count { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--brand); }
.demo-search { display: flex; align-items: center; gap: 8px; height: 36px; margin: 0 0 10px; padding: 0 12px; border: 1px solid #d7dfe9; border-radius: 10px; background: #fff; color: var(--muted); font-size: 11.5px; }
.demo-search .icon { width: 14px; height: 14px; }
.demo-chips { display: flex; gap: 5px; margin: 0 0 10px; }
.demo-chips span { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--panel-line); color: var(--muted); font-size: 10.5px; font-weight: 600; }
.demo-chips span.on { background: var(--soft); border-color: #c9d9ee; color: var(--brand); }
.platform-demo .fleet-row { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; padding: 9px 8px; border: 1px solid transparent; border-radius: 12px; }
.platform-demo .fleet-row.selected { background: var(--soft); border-color: #c9d9ee; }
.platform-demo .fleet-row > span.vehicle-thumb { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #f0f3f7; color: #5b6b82; }
.platform-demo .fleet-row > div { flex: 1; min-width: 0; }
.platform-demo .fleet-row.selected .vehicle-thumb { background: #fff; color: var(--brand); }
.platform-demo .vehicle-thumb .icon { width: 18px; height: 18px; }
.platform-demo .fleet-row strong { display: block; font-size: 12.5px; font-weight: 600; }
.platform-demo .fleet-row small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.platform-demo .status-dot { width: 7px; height: 7px; background: var(--moving); }
.platform-demo .status-dot.amber { background: var(--stopped); }
.platform-demo .row-arrow { width: 14px; height: 14px; margin-left: auto; color: var(--brand); }
.platform-demo .sidebar-summary { margin-top: auto; padding: 14px 4px 16px; border-top: 1px solid var(--panel-line); display: flex; gap: 10px; align-items: center; }
.platform-demo .sidebar-summary .icon { width: 20px; height: 20px; color: var(--brand); }
.platform-demo .sidebar-summary strong { display: block; font-size: 11px; font-weight: 600; }
.platform-demo .sidebar-summary small { display: block; margin-top: 2px; font-size: 9.5px; color: var(--muted); }

/* the map */
.platform-demo .demo-map { position: relative; min-height: 504px; }
.platform-demo .map-topline { left: 16px; right: 16px; top: 16px; }
.platform-demo .map-context { font-size: 11px; padding: 8px 12px; border-radius: 10px; }
.map-tools { display: inline-flex; gap: 6px; }
.platform-demo .map-layer, .map-tool { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 3px 10px #16302d14; border: 1px solid #ffffffaa; }
.map-tool .icon, .platform-demo .map-layer .icon { width: 16px; height: 16px; }
/* name chips beside the vehicles (positions in the map's own coordinates, 900 x 550) */
.map-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 7px; border-radius: 8px; background: #fffffff2; border: 1px solid #fff; box-shadow: 0 4px 14px #1c413e1c; font-size: 10.5px; font-weight: 600; color: var(--ink); white-space: nowrap; transform: translateY(-50%); transition: opacity 0.3s; }
.map-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--moving); }
.map-chip.amber i { background: var(--stopped); }
.map-chip b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 9px var(--display); }
.map-chip .icon { width: 12px; height: 12px; color: #c1551f; }
.chip-transit { left: calc(407 / 900 * 100% + 28px); top: calc(274 / 550 * 100%); }
.chip-delivery { left: calc(244 / 900 * 100% + 22px); top: calc(130 / 550 * 100%); }
.chip-service { left: calc(160 / 900 * 100% + 22px); top: calc(340 / 550 * 100%); }
.chip-stop { left: calc(382 / 900 * 100% + 16px); top: calc(203 / 550 * 100%); }
.chip-zone { left: calc(498 / 900 * 100% - 60px); top: calc(165 / 550 * 100% - 34px); }
.only-history, .only-geofence { opacity: 0; pointer-events: none; }
.platform-demo[data-scene="history"] .only-history, .platform-demo[data-scene="geofence"] .only-geofence { opacity: 1; pointer-events: auto; }
.platform-demo[data-scene="history"] .chip-transit, .platform-demo[data-scene="history"] .chip-delivery, .platform-demo[data-scene="history"] .chip-service, .platform-demo[data-scene="insights"] .map-chip { opacity: 0; }
.platform-demo[data-scene="geofence"] .chip-delivery, .platform-demo[data-scene="geofence"] .chip-service { opacity: 0; }
/* the object card */
.platform-demo .map-object-card { right: 16px; bottom: 46px; width: 262px; border-radius: 14px; padding: 14px; box-shadow: 0 14px 36px #1c413e22; transition: bottom 0.4s var(--ease-out, ease), opacity 0.3s; }
.platform-demo[data-scene="history"] .map-object-card { bottom: 206px; }
.platform-demo[data-scene="insights"] .map-object-card, .motion-ready .platform-demo.is-visible[data-scene="insights"] .map-object-card { opacity: 0; pointer-events: none; }
/* the zone's own label in the drawing gives way to the chip */
.platform-demo .zone-overlay rect, .platform-demo .zone-overlay text { display: none; }
.platform-demo .object-avatar { background: var(--soft); color: var(--brand); border-radius: 10px; }
.platform-demo .object-card-heading strong { font-size: 12.5px; }
.platform-demo .object-card-heading small { font-size: 10.5px; }
.platform-demo .object-metrics > div > span { font-size: 10px; letter-spacing: 0; color: var(--muted); margin-bottom: 3px; }
.platform-demo .object-metrics strong { font-size: 26px; }
.platform-demo .object-metrics strong small { font-size: 11px; }
.platform-demo .object-online { color: var(--moving); }
.platform-demo .map-bottomline { font-size: 9.5px; height: 30px; }

/* the history strip: the portal's chart under the map */
.demo-strip { position: absolute; left: 16px; right: 16px; bottom: 40px; padding: 10px 14px 10px; border-radius: 14px; background: #fffffff5; border: 1px solid #fff; box-shadow: 0 14px 36px #1c413e22; transition: opacity 0.35s, transform 0.4s var(--ease-out, ease); transform: translateY(12px); }
.platform-demo[data-scene="history"] .demo-strip { transform: none; }
.strip-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 10.5px; }
.strip-head span { padding: 4px 9px; border-radius: 7px; color: var(--muted); font-weight: 600; }
.strip-head span.on { background: var(--soft); color: var(--brand); }
.strip-head em { margin-left: 10px; font-style: normal; color: var(--muted); font-size: 10px; }
.strip-chart { display: block; width: 100%; height: 64px; }
.strip-ribbon { position: relative; height: 6px; margin: 6px 0 8px; border-radius: 3px; background: #e9edf3; overflow: hidden; }
.strip-ribbon i { position: absolute; top: 0; bottom: 0; }
.strip-ribbon .trip { background: var(--moving); }
.strip-ribbon .stop { background: #c3ccd8; }
.platform-demo .replay-controls { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; }
.platform-demo .replay-controls button { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.platform-demo .replay-controls .icon { width: 12px; height: 12px; }
.speeds { display: inline-flex; gap: 2px; padding: 2px; border-radius: 7px; background: #f0f3f7; font-size: 10px; font-weight: 600; color: var(--muted); }
.speeds span { padding: 3px 7px; border-radius: 5px; }
.speeds span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0b2a3a1f; }
.platform-demo .replay-controls input { flex: 1; width: auto; min-width: 0; accent-color: #f26a21; }
.platform-demo .replay-controls > span:last-child { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* the dashboard over the map (insights scene) */
.platform-demo .insights-mini { position: absolute; left: 16px; right: 16px; bottom: 40px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; height: auto; margin: 0; padding: 14px; border: 1px solid #fff; border-radius: 14px; background: #fffffff5; box-shadow: 0 14px 36px #1c413e22; }
.ins-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ins-tiles > div { padding: 10px 12px; border: 1px solid var(--panel-line); border-radius: 10px; background: #fff; }
.ins-tiles small { display: block; margin-bottom: 2px; font-size: 9.5px; color: var(--muted); font-weight: 600; }
.ins-tiles strong { font: 600 20px var(--display); letter-spacing: -0.03em; }
.ins-tiles strong span { font: 500 10px var(--body); color: var(--muted); }
.ins-chart { display: flex; align-items: flex-end; gap: 8px; height: 132px; padding: 4px 4px 0; border-bottom: 1px solid var(--panel-line); }
.ins-chart span { flex: 1; display: block; height: 100%; position: relative; }
.ins-chart span::before { content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: calc(var(--bar) * 0.8); border-radius: 4px 4px 0 0; background: #9db6d8; }
.ins-chart span:last-child::before { background: var(--brand); }
.ins-chart em { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 9px; color: var(--muted); text-align: center; }
.platform-demo .insights-mini span { background: none; border-radius: 0; }

/* dark map keeps the chrome readable */
.platform-demo .dark-map .map-chip, .platform-demo .dark-map .map-object-card, .platform-demo .dark-map .demo-strip, .platform-demo .dark-map .insights-mini { background: #16213bf2; border-color: #ffffff22; color: #e7edf7; }
.platform-demo .dark-map .map-chip, .platform-demo .dark-map .object-card-heading strong, .platform-demo .dark-map .object-metrics strong, .platform-demo .dark-map .ins-tiles strong { color: #e7edf7; }
.platform-demo .dark-map .ins-tiles > div { background: #1d2a47; border-color: #ffffff1a; }

/* the screen sizes */
@media (max-width: 1150px) { .platform-demo { grid-template-columns: 64px 250px minmax(0, 1fr); } .demo-topsearch { display: none; } }
@media (max-width: 950px) { .platform-demo { grid-template-columns: 64px minmax(0, 1fr); } .demo-sidebar { display: none; } .platform-demo .demo-map { min-height: 460px; } }
@media (max-width: 700px) {
  .platform-demo { grid-template-columns: 1fr; grid-template-rows: 48px auto; min-height: 0; border-radius: 14px; }
  .demo-topbar { padding: 0 12px; gap: 10px; } .demo-topicons, .demo-user span { display: none; } .demo-crumb { font-size: 13px; }
  .demo-rail { display: none; }
  .platform-demo .demo-map { min-height: 420px; height: 420px; }
  .map-chip { font-size: 9.5px; padding: 4px 7px 4px 6px; }
  .chip-delivery, .chip-service { display: none; }
  .platform-demo .map-object-card { width: 220px; right: 12px; bottom: 40px; padding: 12px; }
  .platform-demo[data-scene="history"] .map-object-card, .motion-ready .platform-demo.is-visible[data-scene="history"] .map-object-card { opacity: 0; pointer-events: none; }
  .demo-strip { left: 12px; right: 12px; bottom: 36px; padding: 8px 10px; } .strip-head em { display: none; } .strip-chart { height: 48px; }
  .platform-demo .insights-mini { left: 12px; right: 12px; grid-template-columns: 1fr; gap: 10px; padding: 12px; } .ins-chart { height: 72px; }
  .platform-demo .map-topline { left: 12px; right: 12px; top: 12px; } .map-tool { display: none; }
}

/* ---- the dashboard scene: the real portal's dashboard in place of the map ---- */
.demo-dash { position: absolute; inset: 0; z-index: 4; overflow: hidden; padding: 16px; background: #f4f6fa; display: flex; flex-direction: column; gap: 12px; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.platform-demo[data-scene="insights"] .demo-dash { opacity: 1; }
.platform-demo[data-scene="insights"] .insights-mini, .platform-demo[data-scene="insights"] .map-topline, .platform-demo[data-scene="insights"] .map-bottomline { display: none; }
.dd-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.dd-kpis > div { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; min-width: 0; }
.dd-kpis small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-kpis small i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.k-ok { background: var(--moving); } .k-off { background: #8d9bb0; } .k-brand { background: var(--brand); } .k-alert { background: var(--alert); }
.dd-kpis strong { font: 600 22px var(--display); letter-spacing: -0.03em; }
.dd-kpis strong span { font: 500 11px var(--body); color: var(--muted); }
.dd-kpis em { font-style: normal; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-meter { display: block; height: 4px; border-radius: 2px; background: #eceff4; overflow: hidden; margin-top: 2px; }
.dd-meter i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.dd-kpis > div:first-child .dd-meter i { background: var(--moving); }
.dd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: auto; align-items: start; gap: 10px; }
.dd-card { padding: 12px 14px; border: 1px solid #e3e8f0; border-radius: 12px; background: #fff; min-width: 0; overflow: hidden; }
.dd-card h4 { display: flex; align-items: baseline; gap: 6px; margin: 0 0 10px; font: 600 12.5px var(--display); }
.dd-card h4 small { color: var(--muted); font: 500 10px var(--body); }
.dd-status { grid-column: span 4; } .dd-distance { grid-column: span 8; } .dd-driving { grid-column: span 4; } .dd-behaviour { grid-column: span 4; } .dd-vehicles { grid-column: span 4; }
.dd-stack { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: #eceff4; }
.dd-stack.thin { height: 8px; margin-top: 10px; }
.dd-stack i { display: block; min-width: 3px; }
.s-moving { background: var(--moving); } .s-idle { background: #6250d6; } .s-stopped { background: var(--stopped); } .s-offline { background: #8d9bb0; } .s-never { background: repeating-linear-gradient(45deg, #c5cdd9 0 3px, transparent 3px 6px); }
.dd-legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.dd-legend li { display: grid; grid-template-columns: 9px 1fr auto 34px; align-items: center; gap: 8px; padding: 5px 2px; border-top: 1px solid #eef1f5; font-size: 10.5px; }
.dd-legend li:first-child { border-top: 0; }
.dd-legend i { width: 9px; height: 9px; border-radius: 3px; }
.dd-legend b { font-weight: 600; } .dd-legend small { color: var(--muted); text-align: right; font-size: 10px; }
.dd-cols { display: flex; align-items: flex-end; gap: 10px; height: 118px; padding: 0 4px; border-bottom: 1px solid #e3e8f0; }
.dd-cols span { flex: 1; position: relative; height: 100%; }
.dd-cols span::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 16px; height: calc(var(--h) * 0.84); border-radius: 4px 4px 0 0; background: #9db6d8; }
.dd-cols span.today::before { background: var(--brand); }
.dd-cols em { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 9.5px; color: var(--muted); text-align: center; }
.dd-cols b { position: absolute; left: 50%; bottom: calc(var(--h) * 0.84 + 20px); transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 9.5px; white-space: nowrap; }
.dd-bigs { display: flex; gap: 18px; flex-wrap: wrap; }
.dd-bigs strong { display: block; font: 600 18px var(--display); letter-spacing: -0.02em; }
.dd-bigs small { color: var(--muted); font-size: 10px; }
.dd-inline { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10px; color: var(--muted); }
.dd-inline li { display: flex; align-items: center; gap: 5px; } .dd-inline i { width: 8px; height: 8px; border-radius: 2px; } .dd-inline b { color: var(--ink); }
.dd-score { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; position: relative; }
.dd-score svg { width: 72px; height: 72px; grid-row: span 2; }
.dd-score circle { fill: none; stroke-width: 8; stroke: #eceff4; stroke-linecap: round; }
.dd-score circle.ring { stroke: var(--stopped); }
.dd-score > div { position: absolute; left: 0; width: 72px; top: 50%; transform: translateY(-50%); text-align: center; }
.dd-score > div strong { display: block; font: 600 20px var(--display); } .dd-score > div small { font-size: 9px; color: var(--muted); font-weight: 600; }
.dd-score ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 10.5px; }
.dd-score ul b { font: 600 14px var(--display); margin-right: 4px; } .dd-score ul small { display: block; color: var(--muted); font-size: 9.5px; }
.dd-vehicles table { width: 100%; border-collapse: collapse; font-size: 10px; font-variant-numeric: tabular-nums; }
.dd-vehicles th { text-align: right; padding: 4px 6px; color: var(--muted); font-weight: 600; font-size: 9px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.dd-vehicles td { text-align: right; padding: 6px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.dd-vehicles th:first-child, .dd-vehicles td:first-child { text-align: left; padding-left: 0; font-weight: 600; }
.dd-vehicles td small { display: block; color: var(--muted); font-weight: 400; font-size: 9px; }
.dd-vehicles .good { color: var(--moving); font-weight: 700; } .dd-vehicles .warn { color: var(--stopped); font-weight: 700; } .dd-vehicles .bad { color: var(--alert); font-weight: 700; }
@media (max-width: 1150px) { .dd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dd-behaviour, .dd-vehicles { display: none; } .dd-status, .dd-driving { grid-column: span 6; } .dd-distance { grid-column: span 12; } }
@media (max-width: 700px) {
  .demo-dash { padding: 12px; gap: 10px; }
  .dd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .dd-kpis > div:nth-child(n + 5) { display: none; } .dd-kpis strong { font-size: 19px; }
  .dd-grid { grid-template-columns: 1fr; } .dd-status, .dd-driving, .dd-distance { grid-column: span 1; } .dd-driving, .dd-distance { display: none; } .dd-status .dd-legend li:nth-child(n + 4) { display: none; }
}

/* the dashboard scene has no object panel: the dashboard spans the panel's columns too */
.platform-demo[data-scene="insights"] { grid-template-columns: 72px minmax(0, 1fr); }
.platform-demo[data-scene="insights"] .demo-sidebar { display: none; }
.platform-demo .demo-dash { overflow: hidden; }
/* the dashboard shows its first three rows whole; the fourth peeks from below, like a page that goes on */
.platform-demo[data-scene="insights"] .demo-map { min-height: 700px; }
.dd-status { grid-column: span 3; } .dd-distance { grid-column: span 5; } .dd-driving { grid-column: span 4; }
.dd-behaviour { grid-column: span 4; } .dd-fuel { grid-column: span 4; } .dd-temp { grid-column: span 4; }
.dd-battery { grid-column: span 3; } .dd-fuelweek { grid-column: span 4; } .dd-vehicles { grid-column: span 5; }
.dd-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dd-bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 10.5px; }
.dd-bars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-bars b { font-weight: 600; white-space: nowrap; }
.dd-bars i { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; background: #eceff4; position: relative; overflow: hidden; }
.dd-bars i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 3px; background: var(--brand); }
.dd-bars i.warn::after { background: var(--stopped); }
.dd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dd-tiles > div { padding: 9px 10px; border-radius: 10px; background: #f4f6fa; min-width: 0; }
.dd-tiles strong { display: block; font: 600 16px var(--display); letter-spacing: -0.02em; }
.dd-tiles span { display: block; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-tiles small { display: block; font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-tiles .hot { background: #fdeeec; } .dd-tiles .hot strong, .dd-tiles .hot small { color: var(--alert); }
.dd-alert { margin: 10px 0 8px; padding: 7px 9px; border-radius: 8px; background: #fdeeec; color: var(--alert); font-size: 10px; }
.dd-alert b { display: block; font-size: 10.5px; }
.dd-fills { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 10.5px; font-weight: 600; }
.dd-fills li { display: flex; align-items: center; gap: 6px; } .dd-fills i { width: 7px; height: 7px; border-radius: 50%; background: var(--moving); }
.dd-fills small { margin-left: auto; color: var(--muted); font-weight: 400; }
@media (max-width: 1150px) { .dd-fuel, .dd-temp { display: none; } .dd-battery, .dd-fuelweek { display: none; } }
@media (max-width: 700px) { .dd-fuel, .dd-temp, .dd-battery, .dd-fuelweek, .dd-behaviour, .dd-vehicles { display: none; } }
