html, body { margin: 0; }

.sw-shell {
  --sw-brand-start: #6315a1;
  --sw-brand-middle: #d652f0;
  --sw-brand-end: color-mix(in srgb, #f7c82e 60%, #d652f0);
  --sw-brand-gradient: linear-gradient(95.51deg, var(--sw-brand-start) 0%, var(--sw-brand-middle) 50%, var(--sw-brand-end) 100%);
  --sw-bg: #ffffff;
  --sw-card: #e0e0e0;
  --sw-card-border: #e0e0e0;
  --sw-text: #030207;
  --sw-muted: #757575;
  --sw-track: #f0f0f0;
  --sw-ring-start: var(--sw-brand-start);
  --sw-ring-middle: var(--sw-brand-middle);
  --sw-ring-end: var(--sw-brand-end);
  --sw-ok: #1fbf75;

  box-sizing: border-box;
  min-height: 100dvh;
  width: 100%;
  background: var(--sw-bg);
  color: var(--sw-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.sw-shell[data-theme="dark"] {
  --sw-bg: #171717;
  --sw-card: #404040;
  --sw-card-border: #6e6e6e;
  --sw-text: #ffffff;
  --sw-muted: #d0d1d2;
  --sw-track: #262626;
  --sw-ring-start: #9d4edd;
  --sw-ring-middle: #8a8cf0;
  --sw-ring-end: #69fdff;
  --sw-ok: #55e9a2;
}

.sw {
  box-sizing: border-box;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background: transparent;
  color: inherit;
}

.sw-shell *, .sw-shell *::before, .sw-shell *::after { box-sizing: border-box; }

.sw-top { display: flex; align-items: center; gap: 10px; padding: 4px 0 8px; }
.sw-logo {
  width: 28px; height: 28px; display: block; border-radius: 6px;
  object-fit: contain; flex-shrink: 0;
}
.sw-station-wrap {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
}
.sw-station {
  font-size: 14px; font-weight: 500; color: var(--sw-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sw-session-id {
  font-size: 11px; font-weight: 500; color: var(--sw-muted); opacity: .85;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.sw-theme-btn {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--sw-card); border: 2px solid var(--sw-card-border); color: var(--sw-text);
}
.sw-theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sw-theme-btn .sw-sun, .sw-shell[data-theme="dark"] .sw-theme-btn .sw-moon { display: none; }
.sw-shell[data-theme="dark"] .sw-theme-btn .sw-sun { display: block; }

.sw-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--sw-card); border: 2px solid var(--sw-card-border);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.sw-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--sw-muted); display: block; }
.sw-shell[data-state="live"] .sw-live i { background: var(--sw-ok); animation: sw-pulse 1.6s ease-out infinite; }
.sw-shell[data-state="reconnecting"] .sw-live i { background: #ffcc3d; animation: sw-blink 1s steps(2) infinite; }
.sw-shell[data-state="done"] .sw-live i { background: var(--sw-ok); }

@keyframes sw-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sw-ok) 60%, transparent); }
  100% { box-shadow: 0 0 0 8px transparent; }
}
@keyframes sw-blink { 50% { opacity: .2; } }

.sw-view { display: flex; flex-direction: column; gap: 12px; animation: sw-rise .5s ease both; }
@keyframes sw-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.sw-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 8px; }
.sw-title {
  margin: 0; font-size: 22px; line-height: 1.2; font-weight: 600;
  background: var(--sw-brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sw-shell[data-theme="dark"] .sw-title { background: none; color: var(--sw-text); }
.sw-subtitle { margin: 6px 0 0; font-size: 15px; color: var(--sw-muted); line-height: 1.4; }

.sw-ring { position: relative; width: min(82%, 290px); margin-top: 8px; }
.sw-ring svg { display: block; width: 100%; overflow: visible; }
.sw-ring-track, .sw-ring-arc { fill: none; stroke-width: 16; stroke-linecap: round; }
.sw-ring-track { stroke: var(--sw-track); }
.sw-ring-arc { stroke: url(#swRingGrad); }
.sw-ring-knob { fill: #fff; stroke: var(--sw-ring-middle); stroke-width: 3; filter: drop-shadow(0 0 6px var(--sw-ring-middle)); }
.sw-shell[data-state="connecting"] .sw-ring-knob { opacity: 0; }

.sw-ring-center {
  position: absolute; inset: 22% 0 0; display: flex; flex-direction: column; align-items: center;
}
.sw-bolt { width: 26px; height: 26px; fill: none; stroke: var(--sw-ring-end); stroke-width: 2.6; stroke-linejoin: round; }
.sw-shell[data-state="live"] .sw-bolt { animation: sw-zap 2.4s ease-in-out infinite; }
@keyframes sw-zap { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.9); } }

.sw-soc { font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.sw-soc small { font-size: .45em; font-weight: 500; margin-left: 2px; }
.sw-soc-label { font-size: 13px; color: var(--sw-muted); margin-top: 4px; }
.sw-eta {
  margin-top: 10px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--sw-card); border: 2px solid var(--sw-card-border);
}

.sw-card {
  background: var(--sw-card); border: 2px solid var(--sw-card-border); border-radius: 8px;
  padding: 16px; text-align: left;
}
.sw-shell[data-theme="dark"] .sw-charging > .sw-card,
.sw-shell[data-theme="dark"] .sw-done > .sw-card {
  border-color: var(--sw-card);
}
.sw-value { font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sw-value small { font-size: 14px; font-weight: 500; color: var(--sw-muted); margin-left: 4px; }
.sw-value.sw-big {
  font-size: 40px; background: var(--sw-brand-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sw-shell[data-theme="dark"] .sw-value.sw-big { background: none; color: var(--sw-text); }
.sw-shell[data-theme="dark"] .sw-value small,
.sw-shell[data-theme="dark"] .sw-chip { color: var(--sw-text); }
.sw-label { font-size: 13px; color: var(--sw-muted); margin-top: 4px; }

.sw-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.sw-chip {
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: var(--sw-bg); border: 2px solid var(--sw-card-border); color: var(--sw-muted);
}

.sw-chart { display: block; width: 100%; height: 96px; margin-top: 12px; overflow: visible; }
.sw-chart-line { fill: none; stroke: url(#swLineGrad); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sw-chart-hint { font-size: 11px; color: var(--sw-muted); text-align: center; margin-top: 6px; opacity: .8; }

.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sw-tile { cursor: pointer; position: relative; overflow: hidden; transition: transform .15s ease; border: none; width: 100%; font: inherit; color: inherit; text-align: center; }
.sw-tile:active { transform: scale(.97); }
.sw-tile .sw-alt {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; background: var(--sw-card);
  transform: translateY(100%); transition: transform .3s ease;
}
.sw-tile.sw-flipped .sw-alt { transform: none; }
.sw-alt-stack { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 10px; }
.sw-alt-stack .sw-value { font-size: 22px; }
.sw-alt-stack .sw-label { margin: 0; }

.sw-cost { display: flex; justify-content: space-between; align-items: center; }
.sw-cost .sw-label { margin: 0; font-size: 15px; }

.sw-check { width: 56px; height: 56px; margin: 0 0 12px; }
.sw-check svg { width: 100%; height: 100%; fill: none; stroke: var(--sw-ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sw-check circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: sw-draw .7s ease forwards; }
.sw-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: sw-draw .4s .6s ease forwards; }
@keyframes sw-draw { to { stroke-dashoffset: 0; } }

/* Desktop and tall phones: the charging blocks stay stacked, with the spare
   space below them. Short screens opt into the fit layout further down. */
.sw-ring-slot { display: flex; justify-content: center; width: 100%; }
.sw-charging .sw-hero { padding-top: 28px; }
.sw-charging .sw-subtitle { margin-top: 10px; }
.sw-charging .sw-ring { margin: 20px 0 22px; }
.sw-charging .sw-soc { font-size: 54px; }
.sw-charging .sw-soc-label { margin-top: 6px; }
.sw-charging .sw-eta { margin-top: 12px; }

@media (max-height: 820px) {
  html:has(.sw-charging),
  html:has(.sw-charging) body { height: 100%; overflow: hidden; }
  .sw-shell:has(.sw-charging) {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .sw-shell:has(.sw-charging) .sw {
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .sw-shell:has(.sw-charging) #body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .sw-charging { flex: 1 1 auto; min-height: 0; gap: clamp(6px, 1.2dvh, 12px); }
  .sw-charging .sw-hero {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: clamp(2px, 1dvh, 8px);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .sw-charging .sw-subtitle { margin-top: clamp(2px, 0.6dvh, 6px); }
  .sw-ring-slot {
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    container-type: size;
  }
  .sw-charging .sw-ring { margin: 0; }
  @supports (width: 1cqi) {
    .sw-charging .sw-ring {
      width: min(82cqi, 290px, calc((100cqb - 28px) * 240 / 166));
    }
  }
  .sw-charging .sw-ring { container-type: inline-size; }
  .sw-charging .sw-soc { font-size: clamp(36px, 19cqi, 54px); }
  .sw-charging .sw-bolt {
    width: clamp(18px, 9cqi, 26px);
    height: clamp(18px, 9cqi, 26px);
  }
  .sw-charging .sw-soc-label { margin-top: clamp(2px, 1.5cqi, 6px); }
  .sw-charging .sw-eta { margin-top: clamp(6px, 3cqi, 12px); }
  .sw-charging .sw-card { padding: clamp(10px, 1.6dvh, 16px); }
  .sw-charging .sw-chart {
    height: clamp(52px, calc(100dvh - 580px), 96px);
    margin-top: clamp(6px, 1dvh, 12px);
  }
  .sw-charging .sw-chart-hint { margin-top: 4px; }
}

/* Summary uses the same stack, gap, and card padding as the charging screen. */
.sw-done .sw-hero { padding-top: 28px; padding-bottom: 0; }
.sw-done .sw-subtitle { margin-top: 10px; line-height: 1.4; }
.sw-summary { padding: 4px 16px; }
.sw-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--sw-bg); }
.sw-row:last-child { border-bottom: 0; }
.sw-row span { color: var(--sw-muted); }
.sw-row b { font-weight: 600; font-variant-numeric: tabular-nums; }

.sw-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 16px; text-align: center; color: var(--sw-muted); }

.sw-home { gap: 28px; padding-top: 8px; }
.sw-home .sw-hero { padding-top: 36px; }
.sw-home-steps { display: flex; flex-direction: column; gap: 12px; }
.sw-home-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.sw-home-index {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  background: var(--sw-bg); border: 2px solid var(--sw-card-border); color: var(--sw-text);
}
.sw-home-step h2 { margin: 4px 0 0; font-size: 16px; line-height: 1.3; font-weight: 600; }
.sw-home-step p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--sw-muted); }

.sw-download {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px; border-radius: 8px; border: 2px solid var(--sw-ring-start);
  background: transparent; color: var(--sw-text); font-size: 16px; font-weight: 600;
  cursor: pointer; transition: transform .15s ease, opacity .2s;
}
.sw-download:active { transform: scale(.98); }
.sw-download:disabled { opacity: .55; cursor: wait; }
.sw-download svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }



@media (max-height: 820px) {
  html:has(.sw-done),
  html:has(.sw-done) body { height: 100%; overflow: hidden; }
  .sw-shell:has(.sw-done) {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .sw-shell:has(.sw-done) .sw {
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .sw-shell:has(.sw-done) #body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .sw-done {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: flex-start;
  }
  .sw-done .sw-hero { padding-top: clamp(8px, 2dvh, 28px); }
  .sw-check {
    width: clamp(44px, 8dvh, 56px);
    height: clamp(44px, 8dvh, 56px);
    margin-bottom: clamp(8px, 1.4dvh, 12px);
  }
  .sw-done .sw-subtitle { margin-top: clamp(6px, 1dvh, 10px); }
  .sw-row { padding: clamp(8px, 1.5dvh, 12px) 0; }
  .sw-download { padding: clamp(12px, 1.8dvh, 16px); }
}



@media (max-height: 700px) {
  .sw { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .sw-home { gap: 16px; padding-top: 0; }
  .sw-home .sw-hero { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sw *, .sw *::before, .sw *::after { animation: none !important; transition: none !important; }
  .sw-check circle, .sw-check path { stroke-dashoffset: 0; }
}

/* Receipt PDF — same sheet the Reef platform captures from the sales modal. */
@font-face {
  font-family: "ReefInter";
  src: url("/static/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.reef-receipt {
  width: 500px;
  box-sizing: border-box;
  color-scheme: light;
  background-color: #fff;
  color: #171717;
  padding: 0.5rem;
  font-family: ReefInter, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
.reef-receipt, .reef-receipt * { box-sizing: border-box; }
.reef-receipt h3, .reef-receipt h6 { margin: 0; line-height: 1.2; }
.reef-receipt-header { padding: 1rem 1rem 0.25rem; }
.reef-receipt-label { font-size: 0.85rem; font-weight: 500; color: #757575; }
.reef-receipt-body { padding: 1rem 3rem 1.5rem; }
.reef-receipt-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin: 0.5rem 0 3rem;
}
.reef-receipt-identity { flex: 1 1 auto; min-width: 0; }
.reef-receipt-session { margin-bottom: 0.25rem; font-size: 1.75rem; font-weight: 700; color: #171717; }
.reef-receipt-summary-title { margin-bottom: 0.25rem; font-size: 1rem; font-weight: 700; color: #171717; }
.reef-receipt-muted { font-size: 0.8rem; font-weight: 500; color: #414141; }
.reef-receipt-logo {
  height: 1.5rem; width: auto; max-width: 9.5rem; margin-top: 0.35rem;
  object-fit: contain; display: block; flex: none;
}
.reef-receipt-divider {
  height: 0.125rem; margin: 0.3125rem 0; border: 0; background: #d0d1d2; opacity: 1;
}
.reef-receipt-divider-loose { margin: 1.5rem 0; }
.reef-receipt-section { margin-bottom: 0.25rem; font-size: 0.85rem; font-weight: 500; color: #757575; }
.reef-receipt-section-cost { margin-bottom: 0.5rem; }
.reef-receipt-line { display: flex; justify-content: space-between; margin-bottom: 0.25rem; }
.reef-receipt-line:last-child { margin-bottom: 0; }
.reef-receipt-line-end { align-items: flex-end; margin-bottom: 0.5rem; }
.reef-receipt-energy { font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: #171717; }
.reef-receipt-strong { font-weight: 700; color: #171717; }
.reef-receipt-bar {
  width: 100%; height: 0.75rem; margin-bottom: 1rem;
  background: #f0f0f0; border-radius: 62.4375rem; overflow: hidden; display: flex;
}
.reef-receipt-bar-fill {
  height: 100%;
  flex: none;
  background: linear-gradient(93.51deg, #8127c9 -1.26%, #501a7a 126.34%);
}
.reef-receipt-soc-block { margin-bottom: 3rem; }
.reef-receipt-block { display: block; margin-bottom: 0.25rem; }
.reef-receipt-soc { font-size: 1rem; font-weight: 600; color: #171717; }
.reef-receipt-block-gap { margin-bottom: 1rem; }
.reef-receipt-block-gap-top { margin-top: 1.5rem; }
.reef-receipt-block-end { margin-bottom: 1.5rem; }
.reef-receipt-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem; font-size: 1.05rem; font-weight: 700; color: #171717;
}

/* Session pages are fixed workspaces. Long details live in the right drawer;
   the responsive overview never needs document scrolling. */
html:has(.sw-session-shell), html:has(.sw-session-shell) body { height: 100%; overflow: hidden; }
.sw-session-shell { height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.sw-session-shell .sw {
  width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column;
  padding: max(8px, env(safe-area-inset-top)) 16px max(10px, env(safe-area-inset-bottom));
}
.sw-session-shell .sw-top { flex: none; }
.sw-session-shell #body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sw-session-shell .sw-view { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.sw-session-shell .sw-hero { display: flex; flex: 1; min-height: 0; padding: 8px 0 0; }
.sw-session-shell .sw-ring-slot { display: flex; flex: 1; min-height: 0; container-type: size; align-items: center; justify-content: center; }
.sw-session-shell .sw-ring { width: min(290px, 82cqi, calc((100cqb - 12px) * 240 / 166)); margin: 0; container-type: inline-size; }
.sw-session-shell .sw-soc { font-size: clamp(30px, 19cqi, 54px); }
.sw-session-shell .sw-bolt { width: clamp(16px, 9cqi, 26px); height: clamp(16px, 9cqi, 26px); }
.sw-session-shell .sw-done .sw-hero { justify-content: center; }
.sw-session-shell .sw-subtitle { margin-top: 6px; }
.sw-details-stack { display: flex; flex-direction: column; gap: 10px; }
.sw-session-shell #details-slot { flex: none; }
.sw-session-shell #details-slot:empty { display: none; }
.sw-actions { display: flex; flex: none; gap: 8px; }
.sw-actions .sw-download { min-width: 0; padding: 12px 8px; font-size: 14px; }
.sw-compact-metrics { display: none; }
.sw-session-shell.sw-details-open .sw-compact-metrics { display: grid; }
.sw-compact-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 0; border-top: 1px solid var(--sw-card-border); }
.sw-compact-metrics div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sw-compact-metrics b { font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sw-compact-metrics span { font-size: 11px; color: var(--sw-muted); }
.sw-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(480px, 100vw); height: 100dvh; max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; background: var(--sw-bg); color: var(--sw-text); }
.sw-drawer[open] { display: flex; flex-direction: column; }
.sw-drawer::backdrop { background: rgb(0 0 0 / .45); }
.sw-drawer-header, .sw-drawer-footer { display: flex; flex: none; align-items: center; gap: 12px; padding: 12px 16px; }
.sw-drawer-header { border-bottom: 1px solid var(--sw-card-border); padding-top: max(12px, env(safe-area-inset-top)); }
.sw-drawer-header h2 { flex: 1; margin: 0; font-size: 18px; }
.sw-drawer-footer { border-top: 1px solid var(--sw-card-border); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.sw-drawer-content { flex: 1; min-height: 0; padding: 16px; overflow: auto; overscroll-behavior: contain; }
.sw-drawer-content .sw-card { flex: none; }
.sw-drawer-content .sw-chart { height: 96px; }
.sw-close { border: 1px solid var(--sw-card-border); border-radius: 8px; padding: 10px 14px; background: var(--sw-card); color: var(--sw-text); font: inherit; cursor: pointer; }
.sw-session-shell button:focus-visible, .sw-drawer-content:focus-visible { outline: 3px solid var(--sw-ring-middle); outline-offset: 3px; }
.sw-drawer [hidden] { display: none; }
@media (max-height: 620px) {
  .sw-session-shell .sw-compact-metrics { display: grid; }
  .sw-session-shell .sw-title { font-size: 20px; }
  .sw-session-shell .sw-subtitle { font-size: 13px; }
  .sw-session-shell .sw-charging .sw-soc-label { margin-top: 2px; font-size: 12px; }
  .sw-session-shell .sw-eta { display: none; } /* Repeats the visible charging heading. */
  .sw-session-shell .sw-done .sw-check { width: 40px; height: 40px; margin: 0 0 6px; }
}
@media (max-height: 360px) {
  .sw-session-shell .sw { padding-top: 4px; padding-bottom: 4px; }
  .sw-session-shell .sw-view { gap: 6px; }
  .sw-session-shell .sw-title { font-size: 18px; }
  .sw-session-shell .sw-ring-slot { container-type: normal; }
  .sw-session-shell .sw-ring { width: 100%; container-type: normal; }
  .sw-session-shell .sw-ring > svg, .sw-session-shell .sw-bolt, .sw-session-shell .sw-check { display: none; } /* Decorative artwork. */
  .sw-session-shell .sw-ring-center { position: static; flex-direction: row; justify-content: center; gap: 8px; }
  .sw-session-shell .sw-soc { margin: 0; font-size: 30px; }
  .sw-session-shell .sw-compact-metrics { padding: 6px 0; }
  .sw-session-shell .sw-actions .sw-download { padding: 8px; }
  .sw-session-shell .sw-hero { padding-top: 0; }
}

/* Tall screens keep related readings together; spare height belongs below the
   content, while the review/print actions stay at the bottom of the workspace. */
@media (min-height: 821px) {
  .sw-session-shell .sw-hero { flex: none; }
  .sw-session-shell .sw-ring-slot { flex: none; container-type: normal; padding: 16px 0 20px; }
  .sw-session-shell .sw-ring { width: min(82%, 290px); }
  .sw-session-shell .sw-actions { margin-top: auto; }
}
