/* Active charging presentation only. Real values, scene, ownership and swipe
 * handlers are unchanged. Normal single-session screens fill the viewport;
 * the existing short/zoomed/multiple/error fallback keeps natural scrolling. */
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-head { order: 1; }
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-highlight { order: 2; }
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-art { order: 3; }
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-notice { order: 4; }
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-overview { order: 5; }
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-electrical { order: 6; }
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-payment { order: 7; }
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > :is(.ev-charge-times, .meta) { order: 8; }
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-stop { order: 9; }

/* The bitmap and registered SVG overlay share an uncropped canvas below the readings. */
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-art:not(.ev-asset-recovery-active) {
  flex: 0 1 clamp(100px, calc(var(--ev-charge-viewport-r10) * .22), 176px);
  height: clamp(100px, calc(var(--ev-charge-viewport-r10) * .22), 176px);
  min-height: 84px;
  max-height: 176px;
  margin-block: 0;
}
body.charging-screen.ev-charge-layout-r10[data-charge-layout-r10="fit"] #screen > .ev-charge > .ev-charge-art:not(.ev-asset-recovery-active) {
  flex-grow: 1;
  max-height: clamp(156px, 47vw, 224px);
}
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-highlight {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 7px;
  padding: clamp(6px, calc((var(--ev-charge-viewport-r10) - 520px) * .065), 18px) 2px 8px;
  margin: 0;
}
/* Carry the artwork's dark backdrop to the station divider. */
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-highlight::before {
  content: "";
  inset: 0 calc(-1 * var(--charge-margin)) -1px;
  background: #03180f;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight .ev-charge-soc {
  display: block;
  min-width: 0;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight :is(.ev-charge-soc, .ev-charge-power) > span:first-child {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 3px;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight .ev-charge-soc strong {
  margin: 0;
  font-size: clamp(36px, 10.4vw, 44px);
  line-height: 1;
  letter-spacing: -.035em;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight .ev-charge-power strong {
  margin: 0;
  font-size: clamp(24px, 7.2vw, 31px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight .ev-charge-power small { font-size: .55em; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight .ev-charge-state {
  max-width: 116px;
  padding: 5px 7px;
  font-size: 11px;
  line-height: 1.15;
}
body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-highlight.ev-charge-ac { grid-template-columns: auto minmax(0, 1fr); }
body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight.ev-charge-ac .ev-charge-power strong {
  font-size: clamp(30px, 8.2vw, 36px);
}

body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics { padding-block: 7px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics > div { padding-inline: 8px; }
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-overview dd {
  margin-top: 4px;
  font-size: clamp(20px, 6.1vw, 26px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-overview dd small { font-size: 11px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-overview [data-ev-charge-eta] {
  font-size: clamp(16px, 4.8vw, 21px);
  line-height: 1.25;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-electrical dd {
  margin-top: 4px;
  font-size: clamp(16px, 4.6vw, 19px);
  line-height: 1.15;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-electrical {
  grid-template-columns: 1.25fr .8fr 1.1fr 1.2fr;
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-electrical > div { padding-inline: 5px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-electrical dt { font-size: 10px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-electrical > div:first-child dd {
  font-size: clamp(18px, 5.2vw, 22px);
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-electrical dd small { font-size: 10px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-electrical.ev-charge-electrical-ac {
  grid-template-columns: minmax(0,1fr) minmax(0,1.05fr) minmax(0,1.2fr) minmax(0,1.05fr);
}
body.charging-screen.ev-charge-layout-r10 .ev-charge-payment { padding-block: 5px 7px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-payment > p { margin-top: 2px; }
body.charging-screen.ev-charge-layout-r10 .ev-charge-times { padding-block: 3px; }

/* Share surplus height below the artwork while its backdrop stays contiguous. */
body.charging-screen.ev-charge-layout-r10[data-charge-layout-r10="fit"] #screen > .ev-charge > :is(.ev-charge-overview, .ev-charge-electrical, .ev-charge-payment) {
  margin-top: auto;
}

/* Keep the existing swipe in flow, at the bottom of its single-session page.
 * It has a real gap above the fixed navigation and cannot cover live values. */
body.charging-screen.ev-charge-layout-r10[data-charge-layout-r10="fit"] #screen > .ev-charge > .ev-charge-stop {
  margin-top: auto;
  margin-bottom: 0;
}
body.charging-screen.ev-charge-layout-r10[data-charge-layout-r10="fit"] .ev-charge-times { display: none; }
body.charging-screen.ev-charge-layout-r10:is([data-charge-layout-r10="scroll"], [data-charge-layout-r10="multiple"]) #screen > .ev-charge > .ev-charge-stop {
  margin-top: 12px;
}

@media (max-height: 620px) {
  body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-highlight { padding-bottom: 5px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight .ev-charge-soc strong { font-size: 34px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight .ev-charge-power strong { font-size: 25px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics { padding-block: 5px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-overview dd { font-size: 21px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-overview [data-ev-charge-eta] { font-size: 16px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-payment { padding-block: 3px 5px; }
}
@media (max-width: 355px) {
  body.charging-screen.ev-charge-layout-r10 #screen > .ev-charge > .ev-charge-highlight { column-gap: 5px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-highlight .ev-charge-state { padding-inline: 5px; font-size: 10px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics > div { padding-inline: 5px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-metrics dd small { font-size: 10px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-electrical dt { font-size: 9.5px; }
  body.charging-screen.ev-charge-layout-r10 .ev-charge-electrical dd small { font-size: 9px; }
}
