@font-face {
  font-family: Inter;
  src: url('assets/inter-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: Inter;
  src: url('assets/inter-700-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 700 900;
  font-display: block;
}
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
  background-color: #e9f1fc;
  background-size: 100% 100%; background-repeat: no-repeat;
  font-family: Inter, sans-serif; color: #0b1219;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hud { position: relative; width: 100vw; height: 100vh; }
.el[hidden] { display: none !important; }
.el-content { box-sizing: border-box; }
[data-type="text"] .el-content { font-variant-numeric: tabular-nums; }
[data-element-id="trip-unit"] .el-content { text-transform: lowercase; }
[data-element-id="brand"] .el-content { letter-spacing: -.025em; }
[data-element-id="battery-card"] > .el-content,
[data-element-id="map-card"] > .el-content,
[data-element-id="state-card"] > .el-content,
[data-element-id="trip-card"] > .el-content,
[data-element-id="navigation"] > .el-content {
  background: linear-gradient(135deg, #ffffff70, #ffffff28);
  border: 1.5px solid #ffffffc9;
  border-radius: 4.4cqh;
  box-shadow: inset 0 1px 1px #ffffff80, 0 2px 10px #6a8ab006;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
[data-element-id="navigation"] > .el-content { border-radius: 8cqh; }
[data-element-id="navigation"]::before,
[data-element-id="navigation"]::after {
  content: ''; position: absolute; width: 1px; top: 27%; height: 46%;
  background: #7799c750; z-index: 1;
}
[data-element-id="navigation"]::before { left: 50%; }
[data-element-id="navigation"]::after { display: none; }
[data-element-id="battery-shell"] > .el-content {
  border: .55cqh solid #7c9fc9; border-radius: 2cqh;
  box-shadow: inset 0 0 0 .5cqh #ffffffa0;
}
[data-element-id="battery-shell"]::after {
  content: ''; position: absolute; left: 100%; top: 29%; width: 7%; height: 42%;
  border-radius: 0 .6cqh .6cqh 0; background: #7c9fc9;
}
[data-element-id="battery-fill"] { border-radius: .8cqh; overflow: hidden; }
[data-element-id^="nav-"] { border-radius: 8cqh; touch-action: manipulation; }
[data-element-id^="nav-"]:active { background: #ffffff50; }

@font-face {
  font-family: Orbitron; src: url('assets/orbitron-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: block;
}
/* Scale the existing studio artwork as a whole; keep all live UI independent. */
html, body { background-image: none !important; background-color: #e9f1fc; }
body::before {
  content: ''; position: fixed; inset: 5%; pointer-events: none;
  background: url('assets/background.png') center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
[data-element-id="speed"] .el-content span { font-size: .90em; }
[data-element-id="map-tint"] > .el-content { border-radius: 4.4cqh; }
[data-element-id="map-tint"] { pointer-events: none; }
[data-element-id="battery-fill"] > .el-content {
  background: linear-gradient(90deg, #49a9ff, #075cff); border-radius: .65cqh;
}

[data-element-id$="-tile"] > .el-content {
  border-radius: 1.6cqh; background: #ffffff85; border: 1px solid #ffffffc0;
}
[data-element-id="map-power"], [data-element-id="map-regen"],
[data-element-id^="map-tc-"], [data-element-id="map-power-label"],
[data-element-id="map-regen-label"] { pointer-events: none; }
[data-element-id="map-tc-tile"] { pointer-events: auto; }
[data-element-id="map-power"] > .el-content,
[data-element-id="map-regen"] > .el-content,
[data-element-id^="map-tc-"] [data-element-id="value"] > .el-content {
  font-size: 5.6cqh !important; font-variant-numeric: tabular-nums;
}

/* Each NEUTRAL entry reveals this overlay for five seconds. */
[data-element-id="startup-bike"] { pointer-events: none; z-index: 1; }
[data-element-id="startup-bike"] > .el-content {
  border-radius: 2cqh;

}
[data-element-id="startup-bike"] img { object-fit: cover !important; object-position: center; border-radius: 2cqh; animation: neutral-startup 5s linear both; }
@keyframes neutral-startup {
  0% { opacity: 0; visibility: visible; }
  5%, 90% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

[data-element-id="battery-volt"], [data-element-id="battery-temp"],
[data-element-id="battery-delta"], [data-element-id="battery-volt-label"],
[data-element-id="battery-temp-label"], [data-element-id="battery-delta-label"] {
  pointer-events: none;
}
[data-element-id="battery-volt"] span, [data-element-id="battery-temp"] span,
[data-element-id="battery-delta"] span { font-size: min(1em, 5.6cqh); }

/* Charging artwork is a screen-local element; it disappears on returning to HUD. */
[data-element-id="charging-background"] { pointer-events: none; }
[data-element-id="charging-background"] img { object-fit: fill !important; }
[data-element-id="charging-panel"] > .el-content,
[data-element-id="charging-controls-panel"] > .el-content {
  background: linear-gradient(130deg, #ffffffed, #f2f7ffda);
  border: 1.5px solid #ffffffee; border-radius: 4.4cqh;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
[data-element-id="charging-settings"] > .el-content {
  background: #ffffff99; border: 1px solid #ffffff; border-radius: 2cqh;
}
[data-element-id="charging-shell"] > .el-content {
  border: .5cqh solid #7c9fc9; border-radius: 1.5cqh;
}
[data-element-id="charging-shell"]::after {
  content: ''; position: absolute; left: 100%; top: 30%; width: 4%; height: 40%;
  background: #7c9fc9; border-radius: 0 .5cqh .5cqh 0;
}
[data-element-id="charging-fill"] > .el-content {
  background: linear-gradient(90deg,#49a9ff,#075cff); border-radius: .7cqh;
}
[data-element-id="charging-temp"] span { font-size: 4.7cqh; }

/* Mask canvas glow without clipping its pointer hit area. */
[data-element-id="charging-slider-power"]::after,
[data-element-id="charging-slider-limit"]::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom,#f5f8fe 0 34%,transparent 38% 62%,#f5f8fe 66% 100%);
}

/* Exact transparent atlas option 02; full source image remains unchanged. */
[data-element-id="brand"] > .el-content {
  background-image: url('assets/mawgly-stark-10-variants.png');
  background-size: 216.412214% 1691.463415%;
  background-position: 95.737705% 8.888889%;
  background-repeat: no-repeat;
  width: 100%; height: auto; aspect-ratio: 524 / 82;
  top: 50% !important; bottom: auto !important; transform: translateY(-50%);
}
/* Screen-local opaque surface covers the main motorcycle artwork. */
[data-element-id="diagnostics-background"] > .el-content {
  background: radial-gradient(ellipse at 10% 80%, #dceafa 0%, transparent 65%), #f0f5fb;
}
[data-element-id^="diagnostics-"][data-element-id$="-tile"] > .el-content {
  border-radius: 2.5cqh;
  background: linear-gradient(120deg,#ffffffed,#ffffff80);
  border: 1px solid #ffffff;
}
[data-element-id="diagnostics-shell"] > .el-content {
  border: .4cqh solid #8ca8c8; border-radius: 1.6cqh;
  box-shadow: inset 0 0 0 .6cqh #f0f5fb;
}
[data-element-id="diagnostics-shell"]::after {
  content: ''; position: absolute; left: 100%; top: 30%; width: 2.3%; height: 40%;
  background: #8ca8c8; border-radius: 0 .5cqh .5cqh 0;
}
[data-element-id="diagnostics-fill"] > .el-content {
  background: linear-gradient(90deg,#7bb9f6,#356bab); border-radius: .7cqh;
}
[data-element-id="diagnostics-volt"] > .el-content,
[data-element-id="diagnostics-current"] > .el-content,
[data-element-id="diagnostics-delta"] > .el-content { font-size: 8.3cqh !important; }

/* Contain unexpected long host state strings within their allocated field. */
[data-element-id="diagnostics-state"] > .el-content { overflow: hidden !important; }
[data-element-id="diagnostics-state"] span {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Charging 2.2: deliberate bounded button actions, indicator-only tracks. */
[data-element-id="charging-power-surface"] > .el-content,
[data-element-id="charging-limit-surface"] > .el-content {
  background: #f8fbfff0; border: 1px solid #fff; border-radius: 3.3cqh;
}
[data-element-id^="charging-step-"] > .el-content {
  background: #e5eef9; border: 1px solid #cad9ec; border-radius: 1.8cqh;
  font-size: 4.5cqh !important;
}
[data-element-id^="charging-step-"]:active > .el-content { background: #cadff9; }
[data-element-id="charging-slider-power"]::after,
[data-element-id="charging-slider-limit"]::after { display: none; }
[data-element-id="charging-state"] > .el-content,
[data-element-id="charging-balancing"] > .el-content { font-size: 2.6cqh !important; }
[data-element-id="charging-slider-power"] canvas,
[data-element-id="charging-slider-limit"] canvas { clip-path: inset(43.75% 0); }
[data-element-id^="charging-buttons-"] { pointer-events: none; }
[data-element-id^="charging-step-"] { pointer-events: auto; }

[data-element-id^="charging-meter-"] canvas { clip-path: inset(43.75% 0); }
[data-element-id^="charging-setting-"] > .el-content { font-size: 4.4cqh !important; }

/* Portrait adaptation: both screens retain their native data and actions. */
@media (orientation: portrait) {
  body::before {
    inset: auto; left: -50vw; top: 38vh; width: 200vw; height: 27vh;
    background-size: contain; background-position: center;
    -webkit-mask-image: linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent);
    mask-image: linear-gradient(to bottom,transparent,#000 12%,#000 88%,transparent);
  }
  [data-element-id$="-tile"] > .el-content,
  [data-element-id="battery-card"] > .el-content,
  [data-element-id="trip-card"] > .el-content,
  [data-element-id="map-card"] > .el-content,
  [data-element-id="map-tint"] > .el-content,
  [data-element-id="state-card"] > .el-content { border-radius: 3cqw; }
  [data-element-id="brand"] > .el-content { background-size: 216.412214% 1691.463415%; }

  [data-element-id="brand"] { left: 5cqw !important; top: 3cqh !important; width: 65cqw !important; height: 5cqh !important; }
  [data-element-id="clock"],
  [data-element-id="charging-clock"] { left: 80cqw !important; top: 3.2cqh !important; width: 15cqw !important; height: 2.3cqh !important; }
  [data-element-id="state-card"] { left: 55cqw !important; top: 10cqh !important; width: 40cqw !important; height: 4.5cqh !important; }
  [data-element-id="state-value"] { left: 58cqw !important; top: 11cqh !important; width: 34cqw !important; height: 2.3cqh !important; }
  [data-element-id="speed-unit"] { left: 6cqw !important; top: 11cqh !important; width: 30cqw !important; height: 2cqh !important; }
  [data-element-id="speed"] { left: 5cqw !important; top: 16cqh !important; width: 43cqw !important; height: 13cqh !important; }
  [data-element-id="map-card"],
  [data-element-id="map-tint"] { left: 55cqw !important; top: 16cqh !important; width: 40cqw !important; height: 14cqh !important; }
  [data-element-id="map-label"] { left: 60cqw !important; top: 17.5cqh !important; width: 30cqw !important; height: 1.8cqh !important; }
  [data-element-id="map-value"] { left: 60cqw !important; top: 21cqh !important; width: 30cqw !important; height: 7.5cqh !important; }
  [data-element-id="startup-bike"] { left: 8cqw !important; top: 38cqh !important; width: 84cqw !important; height: 27cqh !important; }
  [data-element-id="battery-card"] { left: 5cqw !important; top: 65cqh !important; width: 44cqw !important; height: 9cqh !important; }
  [data-element-id="battery-shell"] { left: 8cqw !important; top: 68cqh !important; width: 16cqw !important; height: 3.8cqh !important; }
  [data-element-id="battery-fill"] { left: 9cqw !important; top: 68.5cqh !important; width: 14cqw !important; height: 2.8cqh !important; }
  [data-element-id="battery-value"] { left: 26cqw !important; top: 67.75cqh !important; width: 20cqw !important; height: 3.5cqh !important; }
  [data-element-id="battery-label"],
  [data-element-id="charge-power"] { left: 26cqw !important; top: 71.5cqh !important; width: 20cqw !important; height: 1.4cqh !important; }
  [data-element-id="trip-card"] { left: 52cqw !important; top: 65cqh !important; width: 43cqw !important; height: 9cqh !important; }
  [data-element-id="trip-label"] { left: 55cqw !important; top: 66.5cqh !important; width: 35cqw !important; height: 1.5cqh !important; }
  [data-element-id="trip-value"] { left: 55cqw !important; top: 69cqh !important; width: 23cqw !important; height: 3.2cqh !important; }
  [data-element-id="trip-unit"] { left: 80cqw !important; top: 70.5cqh !important; width: 11cqw !important; height: 1.8cqh !important; }
  [data-element-id="navigation"] { left: 5cqw !important; top: 90cqh !important; width: 90cqw !important; height: 7cqh !important; }
  [data-element-id="nav-menu"] { left: 5cqw !important; top: 90cqh !important; width: 45cqw !important; height: 7cqh !important; }
  [data-element-id="nav-maps"] { left: 50cqw !important; top: 90cqh !important; width: 45cqw !important; height: 7cqh !important; }
  [data-element-id="turn-left"] { left: 6cqw !important; top: 7.5cqh !important; width: 8cqw !important; height: 3cqh !important; }
  [data-element-id="turn-right"] { left: 86cqw !important; top: 7.5cqh !important; width: 8cqw !important; height: 3cqh !important; }
  [data-element-id="map-power-tile"] { left: 5cqw !important; top: 31cqh !important; width: 28cqw !important; height: 7cqh !important; }
  [data-element-id="map-power-label"] { left: 7cqw !important; top: 32cqh !important; width: 24cqw !important; height: 1.4cqh !important; }
  [data-element-id="map-power"] { left: 7cqw !important; top: 34.5cqh !important; width: 24cqw !important; height: 2.4cqh !important; }
  [data-element-id="map-regen-tile"] { left: 36cqw !important; top: 31cqh !important; width: 28cqw !important; height: 7cqh !important; }
  [data-element-id="map-regen-label"] { left: 38cqw !important; top: 32cqh !important; width: 24cqw !important; height: 1.4cqh !important; }
  [data-element-id="map-regen"] { left: 38cqw !important; top: 34.5cqh !important; width: 24cqw !important; height: 2.4cqh !important; }
  [data-element-id="map-tc-tile"] { left: 67cqw !important; top: 31cqh !important; width: 28cqw !important; height: 7cqh !important; }
  [data-element-id="map-tc-label"] { left: 69cqw !important; top: 32cqh !important; width: 24cqw !important; height: 1.4cqh !important; }
  [data-element-id="map-tc-1"],
  [data-element-id="map-tc-2"],
  [data-element-id="map-tc-3"],
  [data-element-id="map-tc-4"],
  [data-element-id="map-tc-5"] { left: 69cqw !important; top: 34.5cqh !important; width: 24cqw !important; height: 2.4cqh !important; }
  [data-element-id="battery-volt-tile"] { left: 5cqw !important; top: 77cqh !important; width: 28cqw !important; height: 9cqh !important; }
  [data-element-id="battery-volt-label"] { left: 7cqw !important; top: 78.3cqh !important; width: 24cqw !important; height: 1.5cqh !important; }
  [data-element-id="battery-volt"] { left: 7cqw !important; top: 81.3cqh !important; width: 24cqw !important; height: 3.1cqh !important; }
  [data-element-id="battery-temp-tile"] { left: 36cqw !important; top: 77cqh !important; width: 28cqw !important; height: 9cqh !important; }
  [data-element-id="battery-temp-label"] { left: 38cqw !important; top: 78.3cqh !important; width: 24cqw !important; height: 1.5cqh !important; }
  [data-element-id="battery-temp"] { left: 38cqw !important; top: 81.3cqh !important; width: 24cqw !important; height: 3.1cqh !important; }
  [data-element-id="battery-delta-tile"] { left: 67cqw !important; top: 77cqh !important; width: 28cqw !important; height: 9cqh !important; }
  [data-element-id="battery-delta-label"] { left: 69cqw !important; top: 78.3cqh !important; width: 24cqw !important; height: 1.5cqh !important; }
  [data-element-id="battery-delta"] { left: 69cqw !important; top: 81.3cqh !important; width: 24cqw !important; height: 3.1cqh !important; }
  [data-element-id="speed"] span { font-size: min(1em,29cqw); }
  [data-element-id="map-value"] span { font-size: min(1em,22cqw); }
  [data-element-id="map-power"] > .el-content,
  [data-element-id="map-regen"] > .el-content,
  [data-element-id^="map-tc-"] [data-element-id="value"] > .el-content { font-size: 6cqw !important; }
  [data-element-id="battery-volt"] > .el-content,
  [data-element-id="battery-temp"] > .el-content,
  [data-element-id="battery-delta"] > .el-content { font-size: 7cqw !important; }
  [data-element-id="battery-value"] > .el-content { font-size: 6cqw !important; }
  [data-element-id="trip-value"] span { font-size: min(1em,6cqw); }
  [data-element-id="state-value"] > .el-content { font-size: 4cqw !important; }
  [data-element-id="battery-shell"] > .el-content { border-width: .65cqw; border-radius: 1.5cqw; }
  [data-element-id="battery-fill"] > .el-content { border-radius: 1cqw; }
  [data-element-id="navigation"] > .el-content { border-radius: 5cqw; }
  [data-element-id^="nav-"] [data-element-id="icon"] { left: 10% !important; top: 26% !important; width: 20% !important; height: 48% !important; }
  [data-element-id^="nav-"] [data-element-id="label"] { left: 36% !important; top: 37% !important; width: 60% !important; height: 26% !important; }
  [data-element-id^="nav-"] [data-element-id="label"] > .el-content { font-size: 3.4cqw !important; }
  /* The charging background owns an opaque full-screen surface; its image is
     a shallow scenic header instead of a distorted full-height landscape. */
  [data-element-id="charging-background"] > .el-content { background: #e9f1fc; }
  [data-element-id="charging-background"] img {
    position: absolute !important; left: 0 !important; top: 7cqh !important;
    width: 100cqw !important; height: 20cqh !important;
    object-fit: cover !important; object-position: 72% 40% !important;
    -webkit-mask-image: linear-gradient(to bottom,transparent,#000 8%,#000 85%,transparent);
    mask-image: linear-gradient(to bottom,transparent,#000 8%,#000 85%,transparent);
  }

  [data-element-id="charging-breadcrumb-menu"] { left: 5cqw !important; top: 2.5cqh !important; width: 18cqw !important; height: 5.5cqh !important; }
  [data-element-id="charging-breadcrumb-current"] { left: 27cqw !important; top: 3.7cqh !important; width: 48cqw !important; height: 2.2cqh !important; }
  [data-element-id="charging-panel"] { left: 5cqw !important; top: 30cqh !important; width: 90cqw !important; height: 27cqh !important; }
  [data-element-id="charging-soc-label"] { left: 9cqw !important; top: 32cqh !important; width: 40cqw !important; height: 1.8cqh !important; }
  [data-element-id="charging-soc"] { left: 9cqw !important; top: 36cqh !important; width: 42cqw !important; height: 8cqh !important; }
  [data-element-id="charging-state"] { left: 9cqw !important; top: 46.5cqh !important; width: 80cqw !important; height: 2cqh !important; }
  [data-element-id="charging-power-label"] { left: 56cqw !important; top: 32cqh !important; width: 28cqw !important; height: 3.8cqh !important; }
  [data-element-id="charging-power"] { left: 56cqw !important; top: 36.5cqh !important; width: 34cqw !important; height: 5cqh !important; }
  [data-element-id="charging-balancing-label"] { left: 9cqw !important; top: 59cqh !important; width: 31cqw !important; height: 1.7cqh !important; }
  [data-element-id="charging-balancing"] { left: 44cqw !important; top: 59cqh !important; width: 47cqw !important; height: 1.7cqh !important; }
  [data-element-id="charging-native-settings"] { left: 25cqw !important; top: 24cqh !important; width: 70cqw !important; height: 5.5cqh !important; }
  [data-element-id="charging-power-surface"] { left: 5cqw !important; top: 63cqh !important; width: 90cqw !important; height: 14cqh !important; }
  [data-element-id="charging-limit-surface"] { left: 5cqw !important; top: 80cqh !important; width: 90cqw !important; height: 14cqh !important; }
  [data-element-id="charging-slider-power-label"] { left: 9cqw !important; top: 65cqh !important; width: 52cqw !important; height: 2.2cqh !important; }
  [data-element-id="charging-slider-limit-label"] { left: 9cqw !important; top: 82cqh !important; width: 52cqw !important; height: 2.2cqh !important; }
  [data-element-id="charging-setting-standard"],
  [data-element-id="charging-setting-fast"] { left: 62cqw !important; top: 65cqh !important; width: 29cqw !important; height: 2.5cqh !important; }
  [data-element-id="charging-setting-limit"] { left: 62cqw !important; top: 82cqh !important; width: 29cqw !important; height: 2.5cqh !important; }
  [data-element-id="charging-meter-standard"],
  [data-element-id="charging-meter-fast"] { left: 27cqw !important; top: 71cqh !important; width: 46cqw !important; height: 4cqh !important; }
  [data-element-id="charging-meter-limit"] { left: 27cqw !important; top: 88cqh !important; width: 46cqw !important; height: 4cqh !important; }
  [data-element-id="charging-step-standard-minus"],
  [data-element-id="charging-step-fast-minus"] { left: 9cqw !important; top: 70cqh !important; width: 13cqw !important; height: 6cqh !important; }
  [data-element-id="charging-step-standard-plus"],
  [data-element-id="charging-step-fast-plus"] { left: 78cqw !important; top: 70cqh !important; width: 13cqw !important; height: 6cqh !important; }
  [data-element-id="charging-step-limit-minus"] { left: 9cqw !important; top: 87cqh !important; width: 13cqw !important; height: 6cqh !important; }
  [data-element-id="charging-step-limit-plus"] { left: 78cqw !important; top: 87cqh !important; width: 13cqw !important; height: 6cqh !important; }
  [data-element-id="charging-swipe"] { left: 5cqw !important; top: 97cqh !important; width: 90cqw !important; height: 1.5cqh !important; }
  [data-element-id="charging-volt-label"] { left: 9cqw !important; top: 51cqh !important; width: 24cqw !important; height: 1.6cqh !important; }
  [data-element-id="charging-volt"] { left: 9cqw !important; top: 53.5cqh !important; width: 24cqw !important; height: 2.5cqh !important; }
  [data-element-id="charging-current-label"] { left: 38cqw !important; top: 51cqh !important; width: 24cqw !important; height: 1.6cqh !important; }
  [data-element-id="charging-current"] { left: 38cqw !important; top: 53.5cqh !important; width: 24cqw !important; height: 2.5cqh !important; }
  [data-element-id="charging-delta-label"] { left: 67cqw !important; top: 51cqh !important; width: 24cqw !important; height: 1.6cqh !important; }
  [data-element-id="charging-delta"] { left: 67cqw !important; top: 53.5cqh !important; width: 24cqw !important; height: 2.5cqh !important; }
  [data-element-id="charging-panel"] > .el-content,
  [data-element-id="charging-power-surface"] > .el-content,
  [data-element-id="charging-limit-surface"] > .el-content { border-radius: 4cqw; }
  [data-element-id="charging-soc"] span { font-size: min(1em,17cqw); }
  [data-element-id="charging-power"] span { font-size: min(1em,9cqw); }
  [data-element-id="charging-volt"] > .el-content,
  [data-element-id="charging-current"] > .el-content,
  [data-element-id="charging-delta"] > .el-content { font-size: 6cqw !important; }
  [data-element-id="charging-state"] > .el-content,
  [data-element-id="charging-balancing"] > .el-content { font-size: 3.4cqw !important; }
  [data-element-id^="charging-setting-"] > .el-content { font-size: 4.8cqw !important; }
  [data-element-id^="charging-step-"] > .el-content { font-size: 7cqw !important; border-radius: 3cqw; }
  [data-element-id="charging-breadcrumb-menu"] > .el-content { font-size: 4.5cqw !important; }
  [data-element-id="charging-breadcrumb-current"] > .el-content { font-size: 3.5cqw !important; }
  [data-element-id="charging-native-settings"] > .el-content { font-size: 3.6cqw !important; }
  [data-element-id="charging-swipe"] > .el-content { font-size: 2.7cqw !important; }
  [data-element-id="charging-power-label"] > .el-content {
    font-size: 3.4cqw !important; white-space: normal !important; line-height: 1.1 !important;
  }
}

/* Charging refinement: one header baseline, calm continuous indicators. */
[data-element-id^="charging-meter-"]::before {
  content: ''; position: absolute; inset: 0; background: #ccd9e9; border-radius: 999px;
}
[data-element-id^="charging-meter-"] > .el-content {
  background: #1685ff; border-radius: 999px; pointer-events: none;
}
[data-element-id="charging-slider-power-label"] > .el-content,
[data-element-id="charging-slider-limit-label"] > .el-content,
[data-element-id^="charging-setting-"] > .el-content { font-size: 4.2cqh !important; }
[data-element-id="charging-slider-power-hint"] > .el-content,
[data-element-id="charging-slider-limit-hint"] > .el-content { font-size: 2.1cqh !important; }
[data-element-id="charging-native-settings"] > .el-content { font-size: 2.5cqh !important; }
[data-element-id^="charging-step-"] > .el-content { border-radius: 1.6cqh; font-size: 4.5cqh !important; }
[data-element-id="charging-page-1"] > .el-content { background: #9cacc0; border-radius: 50%; }
[data-element-id="charging-page-2"] > .el-content { background: #526b91; border-radius: 50%; }
@media (orientation: portrait) {
  [data-element-id="charging-power-surface"], [data-element-id="charging-limit-surface"] { height: 15cqh !important; }
  [data-element-id="charging-slider-power-label"],
  [data-element-id="charging-setting-standard"], [data-element-id="charging-setting-fast"] { top: 65cqh !important; height: 2.5cqh !important; }
  [data-element-id="charging-slider-limit-label"], [data-element-id="charging-setting-limit"] { top: 82cqh !important; height: 2.5cqh !important; }
  [data-element-id="charging-slider-power-label"] > .el-content,
  [data-element-id="charging-slider-limit-label"] > .el-content,
  [data-element-id^="charging-setting-"] > .el-content { font-size: 4.8cqw !important; }
  [data-element-id="charging-step-standard-minus"], [data-element-id="charging-step-fast-minus"] { top: 69.5cqh !important; }
  [data-element-id="charging-step-standard-plus"], [data-element-id="charging-step-fast-plus"] { left: 76.5cqw !important; top: 69.5cqh !important; }
  [data-element-id="charging-step-limit-minus"] { top: 86.5cqh !important; }
  [data-element-id="charging-step-limit-plus"] { left: 76.5cqw !important; top: 86.5cqh !important; }
  [data-element-id^="charging-step-"] { width: 14.5cqw !important; height: 6.5cqh !important; }
  [data-element-id^="charging-step-"] > .el-content { border-radius: 3cqw; font-size: 7cqw !important; }
  [data-element-id="charging-meter-standard"], [data-element-id="charging-meter-fast"] { left: 28cqw !important; top: 72.5cqh !important; width: 44cqw !important; height: .5cqh !important; }
  [data-element-id="charging-meter-limit"] { left: 28cqw !important; top: 89.5cqh !important; width: 44cqw !important; height: .5cqh !important; }
  [data-element-id="charging-slider-power-hint"] { left: 26cqw !important; top: 74.4cqh !important; width: 48cqw !important; height: 1.6cqh !important; }
  [data-element-id="charging-slider-limit-hint"] { left: 26cqw !important; top: 91.4cqh !important; width: 48cqw !important; height: 1.6cqh !important; }
  [data-element-id="charging-slider-power-hint"] > .el-content,
  [data-element-id="charging-slider-limit-hint"] > .el-content { font-size: 3.1cqw !important; }
  [data-element-id="charging-native-settings"] > .el-content { font-size: 3.3cqw !important; }
  [data-element-id="charging-page-1"] { left: 46.8cqw !important; top: 97.5cqh !important; width: 1.6cqw !important; height: 1.6cqw !important; }
  [data-element-id="charging-page-2"] { left: 51.6cqw !important; top: 97.5cqh !important; width: 1.6cqw !important; height: 1.6cqw !important; }
}

/* Twelve read-only candidates compete in the same stacking context. Only
   opaque content has z-index; ancestor frames must never isolate candidates. */
[data-element-id^="charging-temp-"] { pointer-events: none; }
[data-element-id^="charging-temp-channel-"],
[data-element-id^="charging-temp-zero-gate-"] {
  z-index: auto !important; transform: none !important; opacity: 1 !important;
  isolation: auto !important; contain: none !important;
}
[data-element-id^="charging-temp-value-"] > .el-content,
[data-element-id^="charging-temp-zero-"]:not([data-element-id^="charging-temp-zero-gate-"]) > .el-content,
[data-element-id="charging-temp-fallback"] > .el-content,
[data-element-id="charging-temp-overflow"] > .el-content { background: #f5f8fd; }
@media (orientation: portrait) {
  [data-element-id="charging-volt-label"], [data-element-id="charging-volt"] { left: 9cqw !important; width: 18cqw !important; }
  [data-element-id="charging-current-label"], [data-element-id="charging-current"] { left: 30cqw !important; width: 18cqw !important; }
  [data-element-id="charging-delta-label"], [data-element-id="charging-delta"] { left: 51cqw !important; width: 18cqw !important; }
  [data-element-id="charging-temp-label"] { left: 72cqw !important; top: 51cqh !important; width: 19cqw !important; height: 1.6cqh !important; }
  [data-element-id^="charging-temp-value-"],
  [data-element-id^="charging-temp-zero-"]:not([data-element-id^="charging-temp-zero-gate-"]),
  [data-element-id="charging-temp-fallback"],
  [data-element-id="charging-temp-overflow"] { left: 72cqw !important; top: 53.5cqh !important; width: 19cqw !important; height: 2.5cqh !important; }
}
[data-element-id^="charging-temp-value-"] > .el-content,
[data-element-id^="charging-temp-zero-"]:not([data-element-id^="charging-temp-zero-gate-"]) > .el-content,
[data-element-id="charging-temp-fallback"] > .el-content,
[data-element-id="charging-temp-overflow"] > .el-content { font-size: 4.86cqh !important; }
@media (orientation: portrait) {
  [data-element-id^="charging-temp-value-"] > .el-content,
  [data-element-id^="charging-temp-zero-"]:not([data-element-id^="charging-temp-zero-gate-"]) > .el-content,
  [data-element-id="charging-temp-fallback"] > .el-content,
  [data-element-id="charging-temp-overflow"] > .el-content { font-size: 6cqw !important; }
}
/* Center each setting as one title/value pair; larger independent tap targets. */
[data-element-id^="charging-step-"] > .el-content { font-size: 5.5cqh !important; }
@media (orientation: portrait) {
  [data-element-id^="charging-setting-"] { left: 9cqw !important; width: 82cqw !important; }
  [data-element-id^="charging-setting-"] > .el-content { font-size: 4.8cqw !important; }
  [data-element-id^="charging-step-"] { width: 18.5cqw !important; height: 8.5cqh !important; }
  [data-element-id="charging-step-standard-minus"], [data-element-id="charging-step-fast-minus"],
  [data-element-id="charging-step-limit-minus"] { left: 8cqw !important; }
  [data-element-id="charging-step-standard-plus"], [data-element-id="charging-step-fast-plus"],
  [data-element-id="charging-step-limit-plus"] { left: 73.5cqw !important; }
  [data-element-id="charging-step-standard-minus"], [data-element-id="charging-step-fast-minus"],
  [data-element-id="charging-step-standard-plus"], [data-element-id="charging-step-fast-plus"] { top: 68.5cqh !important; }
  [data-element-id="charging-step-limit-minus"], [data-element-id="charging-step-limit-plus"] { top: 85.5cqh !important; }
  [data-element-id^="charging-step-"] > .el-content { font-size: 8.5cqw !important; }
  [data-element-id="charging-volt-label"], [data-element-id="charging-current-label"],
  [data-element-id="charging-delta-label"], [data-element-id="charging-temp-label"] { top: 50.3cqh !important; height: 3cqh !important; }
  [data-element-id="charging-volt-label"] > .el-content,
  [data-element-id="charging-current-label"] > .el-content,
  [data-element-id="charging-delta-label"] > .el-content,
  [data-element-id="charging-temp-label"] > .el-content { font-size: 2.8cqw !important; white-space: normal !important; text-align: center; line-height: 1.15 !important; }
}
@media (orientation: portrait) {
  [data-element-id="charging-soc-label"] { width: 42cqw !important; }
  [data-element-id="charging-power-label"] { width: 34cqw !important; }
  [data-element-id="charging-power-label"] > .el-content { text-align: center; }
}

/* Charging revision 2: paired preset actions and a compact diagnostic card. */
[data-element-id="charging-preset-0"], [data-element-id="charging-preset-1"] { pointer-events: none; }
[data-element-id="charging-preset-0-tap"], [data-element-id="charging-preset-1-tap"] { pointer-events: auto; }
[data-element-id^="charging-preset-"][data-type="text"] > .el-content { font-size: 3.8cqh !important; }
@media (orientation: landscape) { [data-element-id="charging-soc"] > .el-content, [data-element-id="charging-power"] > .el-content { font-size: 10.5cqh !important; } }
@media (orientation: portrait) {
[data-element-id="charging-panel"] { left: 5cqw !important; top: 22.5cqh !important; width: 90cqw !important; height: 30cqh !important; }
[data-element-id="charging-native-settings"] { left: 5cqw !important; top: 17cqh !important; width: 90cqw !important; height: 5.5cqh !important; }
[data-element-id="charging-soc-label"] { left: 8.88889cqw !important; top: 25.25cqh !important; width: 37.2222cqw !important; height: 2.5cqh !important; }
[data-element-id="charging-power-label"] { left: 53.8889cqw !important; top: 25.25cqh !important; width: 37.2222cqw !important; height: 2.5cqh !important; }
[data-element-id="charging-soc"] { left: 8.88889cqw !important; top: 29cqh !important; width: 37.2222cqw !important; height: 7cqh !important; }
[data-element-id="charging-power"] { left: 53.8889cqw !important; top: 29cqh !important; width: 37.2222cqw !important; height: 7cqh !important; }
[data-element-id="charging-state"] { left: 8.88889cqw !important; top: 37.125cqh !important; width: 37.2222cqw !important; height: 2cqh !important; }
[data-element-id="charging-balancing-label"] { left: 52.2222cqw !important; top: 37.25cqh !important; width: 20.8333cqw !important; height: 1.75cqh !important; }
[data-element-id="charging-balancing"] { left: 73.8889cqw !important; top: 37.25cqh !important; width: 18.8889cqw !important; height: 1.75cqh !important; }
[data-element-id="charging-volt-label"] { left: 9.16667cqw !important; top: 40.25cqh !important; width: 36.6667cqw !important; height: 2cqh !important; }
[data-element-id="charging-current-label"] { left: 54.1667cqw !important; top: 40.25cqh !important; width: 36.6667cqw !important; height: 2cqh !important; }
[data-element-id="charging-volt"] { left: 9.16667cqw !important; top: 42.875cqh !important; width: 36.6667cqw !important; height: 3cqh !important; }
[data-element-id="charging-current"] { left: 54.1667cqw !important; top: 42.875cqh !important; width: 36.6667cqw !important; height: 3cqh !important; }
[data-element-id="charging-delta-label"] { left: 9.16667cqw !important; top: 46cqh !important; width: 36.6667cqw !important; height: 2cqh !important; }
[data-element-id="charging-delta"] { left: 9.16667cqw !important; top: 48.625cqh !important; width: 36.6667cqw !important; height: 3cqh !important; }
[data-element-id="charging-temp-label"] { left: 54.1667cqw !important; top: 46cqh !important; width: 36.6667cqw !important; height: 2cqh !important; }
[data-element-id="charging-preset-0"] { left: 5cqw !important; top: 54cqh !important; width: 43.3333cqw !important; height: 6cqh !important; }
[data-element-id="charging-preset-1"] { left: 51.6667cqw !important; top: 54cqh !important; width: 43.3333cqw !important; height: 6cqh !important; }
[data-element-id="charging-power-surface"] { left: 5cqw !important; top: 61.5cqh !important; width: 90cqw !important; height: 16.5cqh !important; }
[data-element-id="charging-limit-surface"] { left: 5cqw !important; top: 79.5cqh !important; width: 90cqw !important; height: 16.5cqh !important; }
[data-element-id="charging-setting-standard"] { left: 8.33333cqw !important; top: 63.375cqh !important; width: 83.3333cqw !important; height: 3cqh !important; }
[data-element-id="charging-setting-fast"] { left: 8.33333cqw !important; top: 63.375cqh !important; width: 83.3333cqw !important; height: 3cqh !important; }
[data-element-id="charging-setting-limit"] { left: 8.33333cqw !important; top: 81.375cqh !important; width: 83.3333cqw !important; height: 3cqh !important; }
[data-element-id="charging-step-standard-minus"] { left: 8.33333cqw !important; top: 67.75cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-step-fast-minus"] { left: 8.33333cqw !important; top: 67.75cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-step-standard-plus"] { left: 73.8889cqw !important; top: 67.75cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-step-fast-plus"] { left: 73.8889cqw !important; top: 67.75cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-step-limit-minus"] { left: 8.33333cqw !important; top: 85.75cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-step-limit-plus"] { left: 73.8889cqw !important; top: 85.75cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-meter-standard"] { left: 29.1667cqw !important; top: 71.5cqh !important; width: 41.6667cqw !important; height: 0.5cqh !important; }
[data-element-id="charging-meter-fast"] { left: 29.1667cqw !important; top: 71.5cqh !important; width: 41.6667cqw !important; height: 0.5cqh !important; }
[data-element-id="charging-meter-limit"] { left: 29.1667cqw !important; top: 89.5cqh !important; width: 41.6667cqw !important; height: 0.5cqh !important; }
[data-element-id="charging-slider-power-hint"] { left: 28.6111cqw !important; top: 75.625cqh !important; width: 42.7778cqw !important; height: 2cqh !important; }
[data-element-id="charging-slider-limit-hint"] { left: 28.6111cqw !important; top: 93.625cqh !important; width: 42.7778cqw !important; height: 2cqh !important; }
[data-element-id^="charging-temp-value-"], [data-element-id^="charging-temp-zero-"]:not([data-element-id^="charging-temp-zero-gate-"]), [data-element-id="charging-temp-fallback"], [data-element-id="charging-temp-overflow"] { left: 54.1667cqw !important; top: 48.625cqh !important; width: 36.6667cqw !important; height: 3cqh !important; }
[data-element-id="charging-soc"] > .el-content { font-size: 12cqw !important; }
[data-element-id="charging-soc"] span, [data-element-id="charging-power"] span { font-size: 1em !important; }
[data-element-id="charging-soc-label"] > .el-content, [data-element-id="charging-power-label"] > .el-content { font-size: 3.5cqw !important; white-space: nowrap !important; }
[data-element-id="charging-volt-label"] > .el-content, [data-element-id="charging-current-label"] > .el-content, [data-element-id="charging-delta-label"] > .el-content, [data-element-id="charging-temp-label"] > .el-content { font-size: 3.4cqw !important; white-space: nowrap !important; }
[data-element-id^="charging-preset-"][data-type="text"] > .el-content { font-size: 4.5cqw !important; }
[data-element-id="charging-balancing-label"] > .el-content, [data-element-id="charging-balancing"] > .el-content { font-size: 2.8cqw !important; }
[data-element-id="charging-slider-power-hint"] > .el-content, [data-element-id="charging-slider-limit-hint"] > .el-content { font-size: 3.33333cqw !important; }
[data-element-id="charging-background"] img { top: 7.5cqh !important; height: 10.5cqh !important; }
}

/* Critic round 3: visible bike, inset hints, legible status and bounded unknown. */
[data-element-id="charging-power"] > .el-content[style*="font-variant-numeric: tabular-nums"] { font-size: 10.5cqh !important; }
@media (orientation: portrait) {
  [data-element-id="charging-background"] img { object-position: 72% 0% !important; }
  [data-element-id="charging-slider-power-hint"] { top: 74.875cqh !important; }
  [data-element-id="charging-slider-limit-hint"] { top: 92.875cqh !important; }
  [data-element-id="charging-balancing-label"] > .el-content,
  [data-element-id="charging-balancing"] > .el-content { font-size: 3.05556cqw !important; }
  [data-element-id="charging-power"] > .el-content[style*="font-variant-numeric: tabular-nums"] { font-size: 12cqw !important; }
}

/* Final unknown-state pass: short telemetry placeholders never auto-enlarge. */
[data-element-id="charging-volt"] > .el-content[style*="font-variant-numeric: tabular-nums"],
[data-element-id="charging-current"] > .el-content[style*="font-variant-numeric: tabular-nums"],
[data-element-id="charging-delta"] > .el-content[style*="font-variant-numeric: tabular-nums"] { font-size: 4.86cqh !important; }
@media (orientation: portrait) {
[data-element-id="charging-volt"] > .el-content[style*="font-variant-numeric: tabular-nums"],
[data-element-id="charging-current"] > .el-content[style*="font-variant-numeric: tabular-nums"],
[data-element-id="charging-delta"] > .el-content[style*="font-variant-numeric: tabular-nums"] { font-size: 6cqw !important; }
}

@media (orientation: portrait) { [data-element-id^="charging-preset-"][data-type="text"] > .el-content { font-size: 4cqw !important; } }

/* Preset labels describe power and target, not a starting SOC range. */
[data-element-id="charging-presets-label"] { pointer-events: none; }
[data-element-id="charging-presets-label"] > .el-content { font-size: 1.95cqh !important; }
@media (orientation: portrait) {
  [data-element-id="charging-presets-label"] { left: 15cqw !important; top: 53.125cqh !important; width: 70cqw !important; height: 1.5cqh !important; }
  [data-element-id="charging-presets-label"] > .el-content { font-size: 3.1cqw !important; }
  [data-element-id="charging-preset-0"], [data-element-id="charging-preset-1"] { top: 55.25cqh !important; height: 5.5cqh !important; }
}

/* Crawl replaces the map and its parameters; same native menu destination. */
[data-element-id="crawl-symbol"] > .el-content { font-size: 17cqh !important; }
[data-element-id="crawl-caption"] > .el-content { font-size: 3.8cqh !important; }
@media (orientation: portrait) {
  [data-element-id="crawl-forward"], [data-element-id="crawl-reverse"] { left: 55cqw !important; top: 16cqh !important; width: 40cqw !important; height: 22cqh !important; }
  [data-element-id="crawl-forward"] > .el-content, [data-element-id="crawl-reverse"] > .el-content { border-radius: 3cqw; }
  [data-element-id="crawl-symbol"] > .el-content { font-size: 16cqw !important; }
  [data-element-id="crawl-caption"] > .el-content { font-size: 4cqw !important; }
}

/* Square presets flank the shortened landscape adjustment rows. */
[data-element-id="charging-preset-0-tap"] > .el-content,
[data-element-id="charging-preset-1-tap"] > .el-content {
  white-space: pre-line !important; text-align: center; line-height: 1.35 !important;
}
@media (orientation: landscape) {
  [data-element-id="charging-preset-0-tap"] > .el-content,
  [data-element-id="charging-preset-1-tap"] > .el-content { font-size: 4.5cqh !important; }
}

/* Intro: full-width 16:9 clip over a synchronized studio-colour matte. */
[data-element-id="startup-matte"] { pointer-events: none; z-index: 1; }
[data-element-id="startup-bike"] { z-index: 2; }
[data-element-id="startup-bike"] > .el-content { border-radius: 0; }
[data-element-id="startup-bike"] img { position: absolute; top: 50%; left: 0; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; transform: translateY(-50%); object-fit: contain !important; border-radius: 0; animation: intro-startup 7.3s linear both; }
[data-element-id="startup-matte"] img { animation: intro-startup 7.3s linear both; }
@keyframes intro-startup { 0%, 94% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@media (orientation: portrait) {
  [data-element-id="startup-bike"], [data-element-id="startup-matte"] { left: 5cqw !important; top: 38cqh !important; width: 90cqw !important; height: 26.5cqh !important; }
}

/* Portrait keeps full-size step buttons and an independent square preset pair. */
[data-element-id="charging-presets-label"] { display: none; }
@media (orientation: portrait) {
[data-element-id="charging-panel"] { left: 5cqw !important; top: 20.5cqh !important; width: 90cqw !important; height: 32.25cqh !important; }
[data-element-id="charging-native-settings"] { left: 5cqw !important; top: 15cqh !important; width: 90cqw !important; height: 5.5cqh !important; }
[data-element-id="charging-soc-label"] { left: 8.88889cqw !important; top: 23.25cqh !important; width: 37.2222cqw !important; height: 2.5cqh !important; }
[data-element-id="charging-power-label"] { left: 53.8889cqw !important; top: 23.25cqh !important; width: 37.2222cqw !important; height: 2.5cqh !important; }
[data-element-id="charging-soc"] { left: 8.88889cqw !important; top: 27cqh !important; width: 37.2222cqw !important; height: 7cqh !important; }
[data-element-id="charging-power"] { left: 53.8889cqw !important; top: 27cqh !important; width: 37.2222cqw !important; height: 7cqh !important; }
[data-element-id="charging-state"] { left: 8.88889cqw !important; top: 35.375cqh !important; width: 37.2222cqw !important; height: 2cqh !important; }
[data-element-id="charging-balancing-label"] { left: 52.2222cqw !important; top: 35.5cqh !important; width: 20.8333cqw !important; height: 1.75cqh !important; }
[data-element-id="charging-balancing"] { left: 73.8889cqw !important; top: 35.5cqh !important; width: 18.8889cqw !important; height: 1.75cqh !important; }
[data-element-id="charging-volt-label"] { left: 9.16667cqw !important; top: 39.25cqh !important; width: 36.6667cqw !important; height: 2cqh !important; }
[data-element-id="charging-current-label"] { left: 54.1667cqw !important; top: 39.25cqh !important; width: 36.6667cqw !important; height: 2cqh !important; }
[data-element-id="charging-volt"] { left: 9.16667cqw !important; top: 41.875cqh !important; width: 36.6667cqw !important; height: 3cqh !important; }
[data-element-id="charging-current"] { left: 54.1667cqw !important; top: 41.875cqh !important; width: 36.6667cqw !important; height: 3cqh !important; }
[data-element-id="charging-preset-0"] { left: 8.33333cqw !important; top: 54.75cqh !important; width: 20cqw !important; height: 9cqh !important; }
[data-element-id="charging-preset-1"] { left: 71.6667cqw !important; top: 54.75cqh !important; width: 20cqw !important; height: 9cqh !important; }
[data-element-id="charging-presets-label"] { left: 30.5556cqw !important; top: 56.5cqh !important; width: 38.8889cqw !important; height: 4.5cqh !important; }
[data-element-id="charging-power-surface"] { left: 5cqw !important; top: 65.75cqh !important; width: 90cqw !important; height: 14cqh !important; }
[data-element-id="charging-limit-surface"] { left: 5cqw !important; top: 81.75cqh !important; width: 90cqw !important; height: 14cqh !important; }
[data-element-id="charging-setting-standard"] { left: 8.33333cqw !important; top: 67cqh !important; width: 83.3333cqw !important; height: 2.5cqh !important; }
[data-element-id="charging-setting-fast"] { left: 8.33333cqw !important; top: 67cqh !important; width: 83.3333cqw !important; height: 2.5cqh !important; }
[data-element-id="charging-setting-limit"] { left: 8.33333cqw !important; top: 83cqh !important; width: 83.3333cqw !important; height: 2.5cqh !important; }
[data-element-id="charging-step-standard-minus"] { left: 8.33333cqw !important; top: 70.375cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-step-fast-minus"] { left: 8.33333cqw !important; top: 70.375cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-step-standard-plus"] { left: 73.8889cqw !important; top: 70.375cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-step-fast-plus"] { left: 73.8889cqw !important; top: 70.375cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-step-limit-minus"] { left: 8.33333cqw !important; top: 86.375cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-step-limit-plus"] { left: 73.8889cqw !important; top: 86.375cqh !important; width: 17.7778cqw !important; height: 8cqh !important; }
[data-element-id="charging-meter-standard"] { left: 29.4444cqw !important; top: 74.125cqh !important; width: 41.1111cqw !important; height: 0.5cqh !important; }
[data-element-id="charging-meter-fast"] { left: 29.4444cqw !important; top: 74.125cqh !important; width: 41.1111cqw !important; height: 0.5cqh !important; }
[data-element-id="charging-meter-limit"] { left: 29.4444cqw !important; top: 90.125cqh !important; width: 41.1111cqw !important; height: 0.5cqh !important; }
[data-element-id="charging-slider-power-hint"] { left: 28.6111cqw !important; top: 76.5cqh !important; width: 42.7778cqw !important; height: 2cqh !important; }
[data-element-id="charging-slider-limit-hint"] { left: 28.6111cqw !important; top: 92.5cqh !important; width: 42.7778cqw !important; height: 2cqh !important; }
[data-element-id="charging-presets-label"] { display: block; }
[data-element-id="charging-presets-label"] > .el-content { font-size: 3.88889cqw !important; white-space: pre-line !important; text-align: center; line-height: 1.3 !important; }
[data-element-id="charging-preset-0-tap"] > .el-content, [data-element-id="charging-preset-1-tap"] > .el-content { font-size: 4.44444cqw !important; }
[data-element-id="charging-background"] img { top: 7.5cqh !important; height: 7.5cqh !important; }
}
@media (orientation: portrait) {
  [data-element-id="charging-background"] img { height: 10.5cqh !important; }
}

/* Read-only charging status; only the charging bolt breathes. */
[data-element-id="charging-state-badge"] > .el-content { border-radius: 999px; }
[data-element-id="charging-state"] > .el-content { font-size: 2.65cqh !important; }
[data-element-id="charging-state-icon"] { pointer-events: none; }
[data-element-id="charging-state-icon"] > .el-content { animation-duration: 1.6s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
@keyframes charging-state-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { [data-element-id="charging-state-icon"] > .el-content { animation: none !important; } }
body:has([data-element-id="charging-state-icon"] img[src$="charging-state-bolt.svg"]) [data-element-id="charging-power"] > .el-content:not([style*="font-variant-numeric: tabular-nums"]) { color: #15803d !important; }
[data-element-id="charging-soc-track"], [data-element-id="charging-soc-progress"], [data-element-id="charging-soc-limit-marker"], [data-element-id="charging-state-badge"] { pointer-events: none; }
[data-element-id="charging-soc-track"] > .el-content { background: #cdd9e7; border-radius: 999px; }
[data-element-id="charging-soc-progress"] > .el-content { background: #1685ff; border-radius: 999px; }
[data-element-id="charging-soc-limit-marker"] > .el-content { background: #415571; }
@media (orientation: portrait) {
  [data-element-id="charging-soc-track"], [data-element-id="charging-soc-progress"] { left: 11.1111cqw !important; top: 34.5cqh !important; width: 32.7778cqw !important; height: .375cqh !important; }
  [data-element-id="charging-soc-limit-marker"] { left: 11.1111cqw !important; top: 34.125cqh !important; width: 32.7778cqw !important; height: 1.125cqh !important; }
  [data-element-id="charging-state-badge"] { left: 8.88889cqw !important; top: 35.75cqh !important; width: 37.2222cqw !important; height: 2.75cqh !important; }
  [data-element-id="charging-state-icon"] { left: 10.2778cqw !important; top: 36.125cqh !important; width: 4.44444cqw !important; height: 2cqh !important; }
  [data-element-id="charging-state"] { left: 15.5556cqw !important; top: 35.75cqh !important; width: 29.1667cqw !important; height: 2.75cqh !important; }
  [data-element-id="charging-state"] > .el-content { font-size: 2.77778cqw !important; }
}
@media (orientation: portrait) { [data-element-id="charging-state"] > .el-content { font-size: 3.05556cqw !important; } }

/* MAIN shares the verified temperature reducer; transparent gates do not
   capture navigation or isolate the competing opaque values. */
[data-element-id^="battery-temp-channel-"],
[data-element-id^="battery-temp-zero-gate-"] {
  pointer-events: none; z-index: auto !important; transform: none !important;
  opacity: 1 !important; isolation: auto !important; contain: none !important;
}
[data-element-id^="battery-temp-value-"],
[data-element-id^="battery-temp-zero-"]:not([data-element-id^="battery-temp-zero-gate-"]),
[data-element-id="battery-temp-fallback"], [data-element-id="battery-temp-overflow"] { pointer-events: none; }
[data-element-id="battery-temp-tile"] > .el-content { background: #f5f8fd; }
[data-element-id^="battery-temp-value-"] > .el-content,
[data-element-id^="battery-temp-zero-"]:not([data-element-id^="battery-temp-zero-gate-"]) > .el-content,
[data-element-id="battery-temp-fallback"] > .el-content,
[data-element-id="battery-temp-overflow"] > .el-content { background: #f5f8fd; font-size: 5.6cqh !important; }
@media (orientation: portrait) {
  [data-element-id^="battery-temp-value-"],
  [data-element-id^="battery-temp-zero-"]:not([data-element-id^="battery-temp-zero-gate-"]),
  [data-element-id="battery-temp-fallback"], [data-element-id="battery-temp-overflow"] {
    left: 38cqw !important; top: 81.3cqh !important; width: 24cqw !important; height: 3.1cqh !important;
  }
  [data-element-id^="battery-temp-value-"] > .el-content,
  [data-element-id^="battery-temp-zero-"]:not([data-element-id^="battery-temp-zero-gate-"]) > .el-content,
  [data-element-id="battery-temp-fallback"] > .el-content,
  [data-element-id="battery-temp-overflow"] > .el-content { font-size: 7cqw !important; }
}

/* Approved soft capsule: SOC hue is supplied by stock JSON variants. */
[data-element-id="battery-shell"] > .el-content {
  border-radius: 999px !important; border-color: #8ca49a;
  background: #edf3ef; box-shadow: inset 0 1px 2px #51685918;
}
[data-element-id="battery-shell"]::after { display: none; }
[data-element-id="battery-fill"], [data-element-id="battery-fill"] > .el-content { border-radius: 999px !important; }

/* MAIN 2.16: compact header, no bottom navigation. */
[data-element-id="main-menu"] { border-radius: 999px; }
[data-element-id="main-menu"] > .el-content { background: #ffffffa0; border-radius: 999px; }
[data-element-id="main-menu"] [data-element-id="label"] > .el-content { font-size: 2.5cqh !important; }
[data-element-id="main-menu"]:active { background: #ffffffd0; }
@media (orientation: portrait) {
[data-element-id="main-menu"] { left: 5cqw !important; top: 2cqh !important; width: 29cqw !important; height: 5.5cqh !important; }
[data-element-id="main-menu"] [data-element-id="label"] > .el-content { font-size: 3.4cqw !important; }
body:has([data-element-id="main-menu"])::before { top: 44cqh; height: 26cqh; }
[data-element-id="brand"] { top: 9cqh !important; }
[data-element-id="state-card"] { top: 16cqh !important; }
[data-element-id="state-value"] { top: 17cqh !important; }
[data-element-id="speed-unit"] { top: 17cqh !important; }
[data-element-id="speed"] { top: 22cqh !important; }
[data-element-id="map-card"] { top: 22cqh !important; }
[data-element-id="map-tint"] { top: 22cqh !important; }
[data-element-id="map-label"] { top: 23.5cqh !important; }
[data-element-id="map-value"] { top: 27cqh !important; }
[data-element-id="startup-bike"] { top: 44cqh !important; }
[data-element-id="startup-matte"] { top: 44cqh !important; }
[data-element-id="crawl-forward"] { top: 22cqh !important; }
[data-element-id="crawl-reverse"] { top: 22cqh !important; }
[data-element-id="battery-card"] { top: 72cqh !important; }
[data-element-id="battery-shell"] { top: 76cqh !important; }
[data-element-id="battery-fill"] { top: 76.5cqh !important; }
[data-element-id="battery-value"] { top: 75.75cqh !important; }
[data-element-id="trip-card"] { top: 72cqh !important; }
[data-element-id="trip-label"] { top: 73.5cqh !important; }
[data-element-id="trip-value"] { top: 77cqh !important; }
[data-element-id="trip-unit"] { top: 78.5cqh !important; }
[data-element-id="battery-card"] { height: 11cqh !important; }
[data-element-id="trip-card"] { height: 11cqh !important; }
[data-element-id="startup-bike"] { height: 26cqh !important; }
[data-element-id="startup-matte"] { height: 26cqh !important; }
[data-element-id="map-power-tile"] { top: 37cqh !important; }
[data-element-id="map-power-label"] { top: 38cqh !important; }
[data-element-id="map-power"] { top: 40.5cqh !important; }
[data-element-id="map-regen-tile"] { top: 37cqh !important; }
[data-element-id="map-regen-label"] { top: 38cqh !important; }
[data-element-id="map-regen"] { top: 40.5cqh !important; }
[data-element-id="map-tc-tile"] { top: 37cqh !important; }
[data-element-id="map-tc-label"] { top: 38cqh !important; }
[data-element-id="map-tc"] { top: 40.5cqh !important; }
[data-element-id="map-tc-1"] { top: 40.5cqh !important; }
[data-element-id="map-tc-2"] { top: 40.5cqh !important; }
[data-element-id="map-tc-3"] { top: 40.5cqh !important; }
[data-element-id="map-tc-4"] { top: 40.5cqh !important; }
[data-element-id="map-tc-5"] { top: 40.5cqh !important; }
[data-element-id="battery-volt-tile"] { top: 86cqh !important; }
[data-element-id="battery-volt-label"] { top: 87.3cqh !important; }
[data-element-id="battery-volt"] { top: 90.3cqh !important; }
[data-element-id="battery-temp-tile"] { top: 86cqh !important; }
[data-element-id="battery-temp-label"] { top: 87.3cqh !important; }
[data-element-id="battery-temp"] { top: 90.3cqh !important; }
[data-element-id="battery-delta-tile"] { top: 86cqh !important; }
[data-element-id="battery-delta-label"] { top: 87.3cqh !important; }
[data-element-id="battery-delta"] { top: 90.3cqh !important; }
[data-element-id^="battery-temp-value-"], [data-element-id^="battery-temp-zero-"]:not([data-element-id^="battery-temp-zero-gate-"]), [data-element-id="battery-temp-fallback"], [data-element-id="battery-temp-overflow"] { top: 90.3cqh !important; }
}

/* Charging 2.16 — the approved MAIN capsule, scoped to CHARGING only.
   SOC hue/clip is supplied by the copied JSON configs; missing fill is hidden. */
[data-element-id="charging-battery-shell"],
[data-element-id="charging-battery-fill"] { pointer-events: none; }
[data-element-id="charging-battery-shell"] > .el-content {
  border: 1.5px solid #8ca49a; border-radius: 999px;
  background: #edf3ef; box-shadow: inset 0 1px 2px #51685918;
}
[data-element-id="charging-battery-fill"],
[data-element-id="charging-battery-fill"] > .el-content { border-radius: 999px; }
@media (orientation: portrait) {
  /* Keep primary readings on one baseline; make room before the state badge. */
  [data-element-id="charging-soc"], [data-element-id="charging-power"] {
    top: 26.75cqh !important; height: 6.5cqh !important;
  }
  [data-element-id="charging-battery-shell"] {
    left: 15.2778cqw !important; top: 33.625cqh !important;
    width: 24.4444cqw !important; height: 2.25cqh !important;
  }
  [data-element-id="charging-battery-fill"] {
    left: 16.1111cqw !important; top: 34cqh !important;
    width: 22.7778cqw !important; height: 1.5cqh !important;
  }
  [data-element-id="charging-state-badge"], [data-element-id="charging-state"] { top: 36.5cqh !important; }
  [data-element-id="charging-state-icon"] { top: 36.875cqh !important; }
  [data-element-id="charging-balancing-label"], [data-element-id="charging-balancing"] { top: 37cqh !important; }
  [data-element-id="charging-volt-label"], [data-element-id="charging-current-label"] { top: 40cqh !important; }
  [data-element-id="charging-volt"], [data-element-id="charging-current"] { top: 42.625cqh !important; }
  [data-element-id="charging-delta-label"], [data-element-id="charging-temp-label"] { top: 46.5cqh !important; }
  [data-element-id="charging-delta"],
  [data-element-id^="charging-temp-value-"],
  [data-element-id^="charging-temp-zero-"]:not([data-element-id^="charging-temp-zero-gate-"]),
  [data-element-id="charging-temp-fallback"], [data-element-id="charging-temp-overflow"] { top: 49.125cqh !important; }
}

/* MAIN 2.18: larger battery and menu separated from the wordmark. */
[data-element-id="main-menu"] [data-element-id="label"] > .el-content { font-size: 3cqh !important; }
@media (orientation: portrait) {
[data-element-id="main-menu"] { left: 61cqw !important; top: 2cqh !important; width: 34cqw !important; height: 6cqh !important; }
[data-element-id="main-menu"] [data-element-id="label"] > .el-content { font-size: 4cqw !important; }
[data-element-id="clock"] { left: 5cqw !important; top: 3.5cqh !important; width: 22cqw !important; }
[data-element-id="brand"] { top: 10cqh !important; }
[data-element-id="map-value"] { top: 25.75cqh !important; }
[data-element-id="battery-shell"] { left: 8cqw !important; top: 75.2cqh !important; width: 22.4cqw !important; height: 4.56cqh !important; }
[data-element-id="battery-fill"] { left: 9cqw !important; top: 75.7cqh !important; width: 20.4cqw !important; height: 3.56cqh !important; }
[data-element-id="battery-value"] { left: 33cqw !important; width: 14cqw !important; }
}
@media (orientation: portrait) {
[data-element-id="battery-shell"] { width: 20cqw !important; }
[data-element-id="battery-fill"] { width: 18cqw !important; }
[data-element-id="battery-value"] { left: 30.5cqw !important; width: 16.5cqw !important; }
[data-element-id="battery-value"] > .el-content { font-size: 5.5cqw !important; }
}

[data-element-id="main-menu"] [data-element-id="icon"] { left: 22% !important; }
[data-element-id="main-menu"] [data-element-id="label"] { left: 48% !important; }
@media (orientation: portrait) {
[data-element-id="main-menu"] [data-element-id="icon"] { left: 18% !important; }
[data-element-id="main-menu"] [data-element-id="label"] { left: 44% !important; }
[data-element-id="map-open-indicator"] { left: 86cqw !important; top: 23.3cqh !important; width: 5cqw !important; height: 2.2cqh !important; }
}


/* MAIN 2.22 draft: open lower readings, with original actions retained. */
[data-element-id="battery-card"] > .el-content,
[data-element-id="trip-card"] > .el-content {
  background: none !important; border: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
/* The raster's bike silhouette is right of its canvas centre. Translate
   the existing artwork, preserving its scale and all live overlays. */
@media (orientation: landscape) {
  body:has([data-element-id="main-menu"])::before { left: 1.2%; right: 8.8%; }
}
@media (orientation: portrait) {
  body:has([data-element-id="main-menu"])::before { left: -58.4vw; }
  [data-element-id="trip-label"] { left: 5cqw !important; top: 71cqh !important; width: 90cqw !important; height: 2cqh !important; }
  [data-element-id="trip-value"] { left: 28cqw !important; top: 74cqh !important; width: 30cqw !important; height: 3.2cqh !important; }
  [data-element-id="trip-unit"] { left: 59.5cqw !important; top: 75.4cqh !important; width: 12cqw !important; height: 1.8cqh !important; }
  [data-element-id="battery-card"] { left: 5cqw !important; top: 79cqh !important; width: 90cqw !important; height: 6cqh !important; }
  [data-element-id="trip-card"] { left: 5cqw !important; top: 70cqh !important; width: 90cqw !important; height: 8cqh !important; pointer-events: none; }
  [data-element-id="battery-shell"] { left: 5cqw !important; top: 79.5cqh !important; width: 60cqw !important; height: 4.56cqh !important; }
  [data-element-id="battery-fill"] { left: 6cqw !important; top: 80cqh !important; width: 58cqw !important; height: 3.56cqh !important; }
  [data-element-id="battery-value"] { left: 70cqw !important; top: 79.5cqh !important; width: 25cqw !important; height: 4.56cqh !important; }
  [data-element-id="battery-value"] > .el-content { font-size: 7cqw !important; }
}

/* MAIN 2.22 review round 1: intrinsic number/unit pair; live data unchanged. */
[data-element-id="trip-reading"] {
  display: flex; justify-content: center; align-items: baseline; gap: .5cqw;
}
[data-element-id="trip-reading"] > [data-element-id="trip-value"],
[data-element-id="trip-reading"] > [data-element-id="trip-unit"] {
  position: relative !important; inset: auto !important;
  width: max-content !important; height: auto !important; flex: 0 0 auto;
}
[data-element-id="trip-reading"] > .el > .el-content {
  position: relative !important; inset: auto !important;
  width: max-content !important; height: auto !important;
  display: block !important; line-height: 1 !important;
}
[data-element-id="trip-reading"] [data-element-id="trip-value"] > .el-content,
[data-element-id="trip-reading"] [data-element-id="trip-value"] span { font-size: 6.8cqh !important; }
[data-element-id="trip-reading"] [data-element-id="trip-unit"] > .el-content,
[data-element-id="trip-reading"] [data-element-id="trip-unit"] span { font-size: 3.4cqh !important; }
@media (orientation: portrait) {
  [data-element-id="trip-reading"] { left: 5cqw !important; top: 74cqh !important; width: 90cqw !important; height: 3.2cqh !important; gap: 1.5cqw; }
  [data-element-id="trip-reading"] [data-element-id="trip-value"] > .el-content,
  [data-element-id="trip-reading"] [data-element-id="trip-value"] span { font-size: 6cqw !important; }
  [data-element-id="trip-reading"] [data-element-id="trip-unit"] > .el-content,
  [data-element-id="trip-reading"] [data-element-id="trip-unit"] span { font-size: 4cqw !important; }
  [data-element-id="battery-volt-tile"], [data-element-id="battery-temp-tile"], [data-element-id="battery-delta-tile"] { top: 79cqh !important; }
  [data-element-id="battery-volt-label"], [data-element-id="battery-temp-label"], [data-element-id="battery-delta-label"] { top: 80.3cqh !important; }
  [data-element-id="battery-volt"], [data-element-id="battery-delta"], [data-element-id="battery-temp"],
  [data-element-id^="battery-temp-value-"],
  [data-element-id^="battery-temp-zero-"]:not([data-element-id^="battery-temp-zero-gate-"]),
  [data-element-id="battery-temp-fallback"], [data-element-id="battery-temp-overflow"] { top: 83.3cqh !important; }
  [data-element-id="battery-card"] { top: 90cqh !important; }
  [data-element-id="battery-shell"], [data-element-id="battery-value"] { top: 90.5cqh !important; }
  [data-element-id="battery-fill"] { top: 91cqh !important; }
}
