/* R10 active-charge presentation only. Load after all R9 styles together with
 * charging-layout-r10.js. The helper supplies visible viewport/nav dimensions.
 * No telemetry, scene paths/animation, swipe transform or handler is changed. */
body.charging-screen.ev-charge-layout-r10 {
  --ev-charge-viewport-r10: 100vh;
  --nav: calc(70px + env(safe-area-inset-bottom, 0px));
  --ev-charge-nav-r10: var(--nav);
  --ev-charge-gap-r10: 6px;
  padding-bottom: calc(var(--ev-charge-nav-r10) + var(--ev-charge-gap-r10));
  scroll-padding-bottom: calc(var(--ev-charge-nav-r10) + 72px);
}
@supports (height: 100svh) {
  body.charging-screen.ev-charge-layout-r10 { --ev-charge-viewport-r10: 100svh; }
}
@supports (height: 100dvh) {
  body.charging-screen.ev-charge-layout-r10 { --ev-charge-viewport-r10: 100dvh; }
}
body.charging-screen.ev-charge-layout-r10 #screen {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 560px;
  height: calc(var(--ev-charge-viewport-r10) - var(--ev-charge-nav-r10) - var(--ev-charge-gap-r10));
  min-height: 0;
  padding: max(6px, env(safe-area-inset-top, 0px)) var(--charge-margin) 6px;
  overflow: visible;
}
body.charging-screen.ev-charge-layout-r10 #screen > .charging-title {
  flex: 0 0 44px;
  min-height: 44px;
  margin: 0 0 4px;
}
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge > :not(.ev-charge-art) { flex-shrink: 0; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-head {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 7px;
  padding-bottom: 5px;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-station h2 { font-size: 16px; line-height: 1.18; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-station strong { margin-top: 2px; font-size: 13px; line-height: 1.2; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-current { margin-top: 0; align-self: center; font-size: 12px; }
/* Secondary support/session metadata is still in the DOM and is restored in
 * scrolling/accessibility mode. Primary station/connector/type/side stay visible. */
body.charging-screen.ev-charge-layout-r10[data-charge-layout-r10="fit"] .ev-charge-station :is(p, small) { display: none; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight {
  align-items: center;
  gap: 5px;
  padding: 4px 2px 2px;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight > div > span:first-child { font-size: 11px; line-height: 1.2; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-soc { display: flex; align-items: baseline; gap: 5px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight .ev-charge-soc strong { margin: 0; font-size: 38px; line-height: 1.05; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight .ev-charge-power strong { font-size: 26px; line-height: 1.08; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-state { padding: 4px 6px; font-size: 12px; line-height: 1.15; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-state .icon { width: 13px; height: 13px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-art {
  flex: 1 1 56px;
  height: 56px;
  min-height: 56px;
  max-height: 160px;
  aspect-ratio: auto;
  margin-block: 0;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics { padding-block: 4px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics > div { padding-inline: 7px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics dt { font-size: 11px; line-height: 1.2; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics dd { margin-top: 2px; font-size: 18px; line-height: 1.15; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics dd small { font-size: 11px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-overview [data-ev-charge-eta] { font-size: 12px; line-height: 1.2; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-electrical dd { font-size: 16px; line-height: 1.2; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-payment { padding-top: 3px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge .ev-charge-balance { position: relative; min-height: 40px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge .ev-charge-balance::before { content: ""; position: absolute; inset: -2px 0; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-payment > p { margin-top: 1px; font-size: 11px; line-height: 1.2; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-times { padding-block: 4px; gap: 2px 8px; font-size: 10.5px; line-height: 1.2; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-stop.charge-swipe {
  --dock-inset: 6px;
  --dock-thumb: 48px;
  flex: 0 0 62px;
  min-height: 62px;
  height: 62px;
  margin-top: 6px;
  border-radius: 18px;
  scroll-margin-bottom: calc(var(--ev-charge-nav-r10) + 8px);
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-stop .charge-swipe-handle { border-radius: 13px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-stop .charge-swipe-label { top: 8px; font-size: 16px; line-height: 1.15; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-stop .charge-swipe-label small { font-size: 11px; line-height: 1.2; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-stop-guide { bottom: 10px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-notice { margin-block: 3px; font-size: 12px; line-height: 1.3; }
body.charging-screen.ev-charge-layout-r10 .ev-charge > .meta { margin-block: 3px; font-size: 11px; line-height: 1.3; }
/* Keep the approved 3D navigation, its safe-area and readable caption. */
body.charging-screen.ev-charge-layout-r10 #tabs .ev-nav-art { transform: none; margin-block: 0; }
body.charging-screen.ev-charge-layout-r10 #tabs button { font-size: 10px; }
/* No overflow clipping. Extra notices, long station names, multiple sessions,
 * landscape and zoom use ordinary document scrolling with a real nav gutter. */
body.charging-screen.ev-charge-layout-r10:is([data-charge-layout-r10="scroll"], [data-charge-layout-r10="multiple"]) #screen {
  height: auto;
  min-height: calc(var(--ev-charge-viewport-r10) - var(--ev-charge-nav-r10) - var(--ev-charge-gap-r10));
}
body.charging-screen.ev-charge-layout-r10:is([data-charge-layout-r10="scroll"], [data-charge-layout-r10="multiple"]) #screen > .ev-charge { flex: 0 0 auto; }
body.charging-screen.ev-charge-layout-r10:is([data-charge-layout-r10="scroll"], [data-charge-layout-r10="multiple"]) .ev-charge-art { flex: 0 0 90px; height: 90px; min-height: 90px; }
body.charging-screen.ev-charge-layout-r10[data-charge-layout-r10="multiple"] #screen > .ev-charge + .ev-charge { margin-top: 20px; }
@media (min-width: 720px) {
  body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics dt { font-size: 12px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics dd { font-size: 20px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-overview [data-ev-charge-eta] { font-size: 13px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-times { font-size: 12px; }
}
