:root {
  color-scheme: dark;
  --bg: #0d1d22;
  --card: #12242a;
  --text: #eef4f1;
  --muted: #8fa4ac;
  --gold: #ffc65c;
  --mint: #83e3bf;
  --blue: #99c5ff;
  --line: rgba(215, 237, 232, 0.075);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
  background:
    radial-gradient(
      ellipse 650px 480px at 86% 0,
      rgba(217, 170, 68, 0.075),
      transparent
    ),
    radial-gradient(
      ellipse 600px 550px at 0 85%,
      rgba(72, 173, 152, 0.035),
      transparent
    ),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a,
input[type="range"] {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.38;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
a {
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
}
svg {
  display: block;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
[hidden] {
  display: none !important;
}
.app-shell {
  max-width: 1140px;
  margin: auto;
  padding: 22px 32px 24px;
  padding-top: max(22px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2.8px;
}
.brand .icon {
  color: var(--gold);
  width: 22px;
  height: 22px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.icon-button.small {
  width: 36px;
  height: 36px;
}
.icon-button.small .icon {
  width: 15px;
  height: 15px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--mint);
  background: rgba(131, 227, 191, 0.06);
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.status-pill i,
.page-footer i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.warning {
  color: var(--gold);
  background: rgba(255, 198, 92, 0.065);
}
.status-pill.demo {
  color: var(--blue);
  background: rgba(153, 197, 255, 0.065);
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  column-gap: 30px;
  row-gap: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-top-color: rgba(215, 237, 232, 0.105);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 75%),
    var(--card);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.045);
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 1.55px;
  color: var(--muted);
}
.solar-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 24px 4px 0;
  min-height: 258px;
  grid-column: 1;
  grid-row: 1;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-label {
  font-size: 13px;
  font-weight: 500;
  color: #b0bec1;
  margin-top: 20px;
}
.solar-number {
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 1.1;
  margin: 4px 0 10px;
  font-variant-numeric: tabular-nums;
}
.solar-number > span:first-child {
  font-size: 80px;
  font-weight: 300;
  letter-spacing: -4px;
}
.solar-unit {
  font-size: 23px;
  color: var(--gold);
  font-weight: 400;
}
.hero-caption {
  font-size: 13px;
  line-height: 1.5;
  color: #afbdc1;
}
.last-update {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.sun-art {
  width: 146px;
  height: 168px;
  flex-shrink: 0;
  margin-right: -6px;
  margin-top: 6px;
}
.sun-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sun-rays {
  transform-origin: 90px 90px;
  animation: breathe 9s ease-in-out infinite;
}
.sun-art.inactive {
  opacity: 0.35;
}
.sun-art.stale {
  filter: saturate(0.5);
  opacity: 0.55;
}
@keyframes breathe {
  50% {
    opacity: 0.6;
    transform: scale(0.96);
  }
}
h2 {
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.25px;
  line-height: 1.35;
}
.history-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 23px;
  align-self: stretch;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.section-heading h2 {
  margin-top: 5px;
}
.day-total {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.day-total small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 14px;
  gap: 8px;
}
.segmented {
  display: flex;
  background: rgba(1, 12, 16, 0.28);
  padding: 3px;
  border-radius: 11px;
  gap: 2px;
}
.segmented button {
  min-width: 43px;
  min-height: 35px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}
.segmented button[aria-pressed="true"] {
  color: var(--gold);
  background: rgba(255, 198, 92, 0.1);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 550;
  padding: 0 7px;
  white-space: nowrap;
}
.chart-latest {
  color: var(--gold);
}
.chart-area {
  display: flex;
  gap: 7px;
  height: 216px;
}
.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 23px;
  padding: 3px 0 7px;
  color: #8399a3;
  font-size: 9px;
  line-height: 1;
  flex-shrink: 0;
}
.chart-y-axis span:nth-child(2) {
  font-size: 8px;
  opacity: 0.75;
}
.battery-axis {
  text-align: right;
  color: rgba(131, 227, 191, 0.65);
}
.chart-plot {
  position: relative;
  flex: 1;
  min-width: 0;
  touch-action: pan-y;
  cursor: crosshair;
}
.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-grid {
  fill: none;
  stroke: rgba(220, 237, 230, 0.065);
  stroke-width: 1;
}
.chart-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  background: rgba(18, 36, 42, 0.85);
  padding: 10px;
  border-radius: 9px;
  pointer-events: none;
}
.chart-x-axis {
  display: flex;
  justify-content: space-between;
  margin: 5px 30px 0;
  color: var(--muted);
  font-size: 9px;
}
.scrubber {
  margin: 6px 0 0;
}
.chart-slider {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  background: transparent;
  width: 100%;
  height: 28px;
  margin: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.chart-slider::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(220, 237, 230, 0.07);
  border-radius: 4px;
}
.chart-slider::-moz-range-track {
  height: 3px;
  background: rgba(220, 237, 230, 0.07);
  border-radius: 4px;
}
.chart-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  background: var(--gold);
  border: 2px solid var(--card);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 198, 92, 0.14);
}
.chart-slider::-moz-range-thumb {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border: 2px solid var(--card);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 198, 92, 0.14);
}
.chart-selection {
  font-size: 9px;
  color: var(--muted);
  margin-top: 0;
  min-height: 14px;
}
.chart-readings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 3px;
}
.chart-reading {
  min-width: 0;
}
.legend-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  min-height: 38px;
  padding: 0 5px 0 0;
}
.legend-button i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.solar-series {
  color: var(--gold);
}
.home-series {
  color: var(--blue);
}
.battery-series {
  color: var(--mint);
}
.legend-button[aria-pressed="true"] {
  color: inherit;
}
.battery-series .legend-button i {
  width: 10px;
  height: 2px;
  border-radius: 0;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 3px,
    transparent 3px 5px
  );
}
.chart-reading strong {
  font-size: 16px;
  font-weight: 520;
  display: block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chart-reading small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.chart-reading.series-hidden strong {
  color: var(--muted);
  font-size: 14px;
}
.chart-footnote {
  font-size: 9px;
  color: #7b939c;
  margin-top: 16px;
}
.history-summary {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}
.history-summary strong {
  font-weight: 500;
  color: #beccc9;
  padding-left: 3px;
}
.home-section {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}
.battery-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 21px 18px;
  position: relative;
}
.battery-ring {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.battery-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-track {
  fill: none;
  stroke: rgba(220, 237, 230, 0.07);
  stroke-width: 5;
}
.ring-fill {
  fill: none;
  stroke: var(--mint);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s ease;
}
.battery-ring > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.battery-ring strong {
  font-size: 32px;
  font-weight: 450;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.battery-ring small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.battery-copy {
  min-width: 0;
  flex: 1;
}
.battery-copy .eyebrow {
  font-size: 8px;
  letter-spacing: 1.15px;
}
.battery-copy h2 {
  margin-top: 4px;
}
.battery-state {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--mint);
  margin-top: 8px;
  line-height: 1.4;
}
.battery-state.hold {
  color: var(--gold);
}
#battery-power {
  color: var(--muted);
  font-size: 11px;
}
.subtle {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.battery-copy .subtle {
  margin-top: 5px;
  font-size: 9px;
}
.battery-bolt {
  color: var(--mint);
  width: 18px;
  height: 18px;
  align-self: flex-start;
  margin-top: 6px;
}
.battery-bolt.hold {
  color: var(--gold);
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.flow-card {
  min-width: 0;
  padding: 17px 14px 15px;
  border: 1px solid rgba(220, 237, 230, 0.045);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.017);
}
.flow-title {
  display: flex;
  gap: 7px;
  align-items: center;
}
.flow-title .icon {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}
.flow-title h3 {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.home-flow {
  color: var(--blue);
}
.import-flow {
  color: #bed3e1;
}
.export-flow {
  color: var(--mint);
}
.flow-value {
  display: flex;
  gap: 4px;
  align-items: baseline;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.flow-value strong {
  font-size: 25px;
  font-weight: 450;
  letter-spacing: -0.7px;
}
.flow-value > span {
  font-size: 9px;
  color: var(--muted);
}
.flow-caption {
  color: var(--muted);
  font-size: 9px;
  margin-top: 8px;
  white-space: nowrap;
}
.grid-note {
  color: #789099;
  font-size: 9px;
  line-height: 1.5;
  margin: 11px 2px 0;
}
.car-card {
  grid-column: 1 / -1;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 400px 180px at 100% 0,
      rgba(153, 197, 255, 0.025),
      transparent
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.014), transparent),
    var(--card);
}
.car-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.car-identity {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.car-identity .eyebrow {
  font-size: 8px;
  letter-spacing: 1.2px;
}
.car-identity h2 {
  margin-top: 3px;
}
.car-symbol {
  width: 52px;
  height: 45px;
  background: rgba(153, 197, 255, 0.06);
  border: 1px solid rgba(153, 197, 255, 0.03);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.car-symbol svg {
  width: 37px;
  height: 28px;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: var(--card);
}
.car-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 20px;
}
.car-charge-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.car-state {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
}
.car-power {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.car-soc {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.car-soc strong {
  font-size: 32px;
  font-weight: 450;
  letter-spacing: -1px;
}
.car-soc > span {
  font-size: 12px;
  color: var(--muted);
}
#car-progress {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: rgba(153, 197, 255, 0.09);
  color: var(--blue);
  width: 100%;
  height: 4px;
  border-radius: 5px;
  overflow: hidden;
  margin: 12px 0 9px;
}
#car-progress::-webkit-progress-bar {
  background: rgba(153, 197, 255, 0.09);
  border-radius: 5px;
}
#car-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #78a8e6, var(--blue));
  border-radius: 5px;
}
#car-progress::-moz-progress-bar {
  background: var(--blue);
  border-radius: 5px;
}
.car-charge-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}
.car-charge-meta span:last-child {
  white-space: nowrap;
}
.car-charge > .subtle {
  margin-top: 5px;
  font-size: 9px;
}
.car-location {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.location-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
}
.location-heading > .icon {
  width: 20px;
  height: 20px;
  color: var(--blue);
}
.location-heading > div {
  flex: 1;
}
.location-heading p:first-child {
  font-size: 12px;
  color: #c1d1d5;
}
.location-heading .subtle {
  font-size: 9px;
  margin-top: 4px;
}
.location-heading .icon-button {
  width: 38px;
  height: 38px;
}
.location-heading .icon-button .icon {
  width: 15px;
  height: 15px;
}
.car-detail {
  font-size: 9px;
  line-height: 1.6;
  margin-top: 10px;
  max-width: 400px;
}
.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 17px;
  color: #7f96a0;
  font-size: 9px;
  line-height: 1.5;
}
.car-footer .text-button {
  padding-right: 0;
}
.car-notice {
  padding: 12px 14px;
  color: #bdd2e0;
  background: rgba(153, 197, 255, 0.045);
  font-size: 11px;
  line-height: 1.5;
  border-radius: 10px;
  margin-top: 16px;
}
.wake-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(255, 198, 92, 0.1);
  background: rgba(255, 198, 92, 0.025);
  border-radius: 14px;
}
.wake-choice strong {
  font-size: 12px;
  font-weight: 550;
  color: var(--gold);
}
.wake-choice p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 4px;
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.button.primary {
  background: var(--gold);
  color: #2b2414;
}
.button.primary:hover {
  background: #ffd27e;
}
.button.secondary {
  border: 1px solid rgba(153, 197, 255, 0.16);
  background: rgba(153, 197, 255, 0.06);
  color: var(--blue);
}
.wake-choice .button {
  font-size: 11px;
  white-space: nowrap;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: #69868d;
  font-size: 9px;
  line-height: 1.6;
}
.page-footer > span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}
.page-footer i {
  color: rgba(131, 227, 191, 0.5);
  width: 4px;
  height: 4px;
}
.demo-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(153, 197, 255, 0.07);
  background: rgba(153, 197, 255, 0.045);
  border-radius: 12px;
  color: #9eb7c8;
  font-size: 10px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.demo-banner > span {
  letter-spacing: 1.5px;
  font-size: 8px;
  font-weight: 700;
  color: var(--blue);
}
.demo-banner > a {
  margin-left: auto;
  color: var(--blue);
  padding: 5px;
}
.notice {
  padding: 14px 17px;
  margin: 0 0 16px;
  background: rgba(255, 198, 92, 0.055);
  border: 1px solid rgba(255, 198, 92, 0.09);
  border-radius: 13px;
  color: #d4c49f;
  font-size: 11px;
  line-height: 1.6;
}
.busy .icon {
  animation: rotate 1s linear infinite;
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
.connect-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.connect-card {
  padding: 40px 34px;
  max-width: 440px;
  width: 100%;
  background:
    radial-gradient(
      ellipse 350px 350px at 90% 0,
      rgba(255, 198, 92, 0.055),
      transparent
    ),
    var(--card);
}
.connect-sun {
  color: var(--gold);
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  stroke-width: 1.2;
}
.connect-card .eyebrow {
  font-size: 9px;
}
.connect-card h1 {
  font-size: 32px;
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 14px 0 16px;
}
.connect-description {
  font-size: 13px;
  color: #a9bcc2;
  line-height: 1.8;
}
.connect-card form {
  margin-top: 32px;
}
.connect-card label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 9px;
}
.connect-card input {
  width: 100%;
  border: 1px solid rgba(200, 225, 222, 0.16);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.15);
  color: var(--text);
  font-size: 13px;
  padding: 15px 13px;
  min-height: 48px;
  outline-offset: 2px;
}
.connect-card input::placeholder {
  color: #77929c;
  font-size: 11px;
}
.connect-card .button {
  width: 100%;
  justify-content: space-between;
  margin-top: 12px;
}
.connect-hint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 13px;
}
.text-link {
  display: inline-block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--blue);
  margin-top: 28px;
}
.form-error {
  color: var(--gold);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 12px;
}
.settings-dialog {
  max-width: 430px;
  width: calc(100% - 32px);
  color: var(--text);
  padding: 24px;
  margin: auto;
}
.settings-dialog::backdrop {
  background: rgba(0, 8, 13, 0.7);
  backdrop-filter: blur(7px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -6px -8px 10px 0;
}
.settings-dialog > .subtle {
  font-size: 12px;
  line-height: 1.7;
}
.connection-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.connection-info > .icon {
  color: var(--mint);
}
.connection-info strong {
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.connection-info .subtle {
  margin-top: 3px;
}
.shortcut-help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  padding-bottom: 20px;
}
.shortcut-help strong {
  font-weight: 550;
  color: #c0d0d2;
}
.settings-dialog > .button {
  width: 100%;
}
.noscript {
  padding: 30px;
  color: var(--gold);
}
@media (min-width: 1000px) {
  .app-shell {
    padding-top: 28px;
  }
  .solar-hero {
    padding-top: 24px;
  }
  .solar-number > span:first-child {
    font-size: 88px;
  }
  .sun-art {
    width: 165px;
    height: 185px;
  }
  .history-card {
    padding: 25px;
  }
  .chart-area {
    height: 224px;
  }
  .car-body {
    gap: 54px;
  }
  .battery-card {
    padding: 24px 20px;
  }
}
@media (max-width: 759px) {
  .app-shell {
    max-width: 520px;
    padding: 15px 22px 24px;
    padding-top: max(15px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .topbar {
    margin-bottom: 12px;
  }
  .brand {
    font-size: 11px;
    letter-spacing: 2.5px;
    gap: 8px;
  }
  .brand .icon {
    width: 20px;
    height: 20px;
  }
  .header-actions {
    gap: 4px;
  }
  .status-pill {
    font-size: 10px;
    padding: 7px 9px;
  }
  .header-actions > .icon-button {
    width: 38px;
    height: 38px;
  }
  .dashboard {
    display: flex;
    flex-direction: column;
    gap: 19px;
  }
  .solar-hero {
    order: 1;
    min-height: 224px;
    padding: 14px 0 0;
  }
  .hero-copy > .eyebrow {
    font-size: 8px;
    letter-spacing: 1.25px;
  }
  .hero-label {
    font-size: 12px;
    margin-top: 17px;
  }
  .solar-number > span:first-child {
    font-size: 75px;
    letter-spacing: -3.7px;
  }
  .solar-number {
    gap: 8px;
    margin-bottom: 8px;
  }
  .solar-unit {
    font-size: 20px;
  }
  .hero-caption {
    font-size: 11px;
    white-space: nowrap;
  }
  .sun-art {
    width: 123px;
    height: 144px;
    margin-right: -7px;
    margin-top: 20px;
  }
  .last-update {
    font-size: 9px;
  }
  .history-card {
    order: 2;
    padding: 21px 19px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .day-total {
    font-size: 26px;
  }
  .chart-toolbar {
    margin: 15px 0 12px;
  }
  .chart-area {
    height: 196px;
  }
  .chart-readings {
    gap: 12px;
  }
  .chart-reading strong {
    font-size: 16px;
  }
  .chart-footnote {
    margin-top: 14px;
  }
  .history-summary {
    margin-top: 15px;
    font-size: 8px;
    gap: 6px;
  }
  .home-section {
    order: 3;
  }
  .battery-card {
    padding: 19px 16px;
    gap: 14px;
  }
  .battery-ring {
    width: 78px;
    height: 78px;
  }
  .battery-ring strong {
    font-size: 29px;
  }
  .battery-copy h2 {
    font-size: 16px;
  }
  .battery-copy .eyebrow {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .battery-copy .subtle {
    font-size: 8px;
  }
  .battery-bolt {
    width: 16px;
    height: 16px;
    position: absolute;
    right: 16px;
    top: 18px;
    margin: 0;
  }
  .battery-state {
    font-size: 11px;
    gap: 4px;
    margin-top: 7px;
  }
  #battery-power {
    font-size: 10px;
  }
  .flow-grid {
    gap: 8px;
    margin-top: 10px;
  }
  .flow-card {
    padding: 15px 12px 14px;
    border-radius: 16px;
  }
  .flow-title {
    gap: 6px;
  }
  .flow-title h3 {
    font-size: 9px;
  }
  .flow-title .icon {
    width: 13px;
    height: 13px;
  }
  .flow-value {
    gap: 3px;
    margin-top: 13px;
  }
  .flow-value strong {
    font-size: 25px;
    letter-spacing: -0.8px;
  }
  .flow-value > span {
    font-size: 8px;
  }
  .flow-caption {
    font-size: 8px;
    margin-top: 7px;
  }
  .grid-note {
    font-size: 8px;
    margin: 10px 2px 0;
  }
  .car-card {
    order: 4;
    padding: 20px 19px;
  }
  .car-identity {
    gap: 10px;
  }
  .car-identity .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .car-identity h2 {
    font-size: 16px;
  }
  .car-symbol {
    width: 44px;
    height: 43px;
    border-radius: 12px;
  }
  .car-symbol svg {
    width: 32px;
  }
  .car-body {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
  }
  .car-charge-heading {
    gap: 8px;
  }
  .car-state {
    font-size: 12px;
  }
  .car-soc strong {
    font-size: 32px;
  }
  .car-location {
    padding: 13px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .location-heading {
    min-height: 38px;
    gap: 10px;
  }
  .car-detail {
    font-size: 8px;
    margin-top: 8px;
    line-height: 1.7;
  }
  .car-footer {
    margin-top: 14px;
    padding-top: 9px;
    font-size: 8px;
    gap: 9px;
    align-items: center;
  }
  .car-footer > span {
    max-width: 190px;
  }
  .car-footer .text-button {
    font-size: 10px;
    gap: 4px;
  }
  .page-footer {
    font-size: 8px;
    margin-top: 20px;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .page-footer > span:last-child {
    margin-left: 11px;
  }
  .wake-choice {
    padding: 13px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .wake-choice strong {
    font-size: 11px;
  }
  .wake-choice p {
    font-size: 10px;
  }
  .wake-choice .button {
    width: 100%;
    min-height: 42px;
  }
  .demo-banner {
    font-size: 8px;
    margin-bottom: 4px;
    padding: 8px 10px;
    gap: 6px;
  }
  .demo-banner > span {
    font-size: 7px;
  }
  .notice {
    font-size: 10px;
  }
  .connect-card {
    padding: 32px 26px;
  }
  .connect-card h1 {
    font-size: 29px;
  }
}
@media (max-width: 365px) {
  .app-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .solar-number > span:first-child {
    font-size: 64px;
  }
  .sun-art {
    width: 105px;
    height: 130px;
  }
  .hero-caption {
    font-size: 10px;
  }
  .history-card {
    padding: 18px 15px;
  }
  .chart-area {
    height: 180px;
  }
  .battery-card {
    gap: 11px;
    padding-left: 13px;
  }
  .battery-ring {
    width: 70px;
    height: 70px;
  }
  .battery-copy h2 {
    font-size: 14px;
  }
  .battery-state {
    font-size: 10px;
  }
  .flow-card {
    padding-left: 10px;
    padding-right: 9px;
  }
  .flow-value strong {
    font-size: 22px;
  }
  .car-card {
    padding: 18px 15px;
  }
  .car-identity .eyebrow {
    letter-spacing: 0.75px;
  }
  .chart-reading strong {
    font-size: 14px;
  }
  .chart-y-axis {
    width: 20px;
  }
  .chart-area {
    gap: 5px;
  }
  .chart-x-axis {
    margin-left: 25px;
    margin-right: 25px;
  }
}
@media (max-width: 759px) {
  .home-section {
    order: 2;
    align-self: stretch;
    width: 100%;
  }
  .history-card {
    order: 3;
  }
  .hero-copy > .eyebrow,
  .section-heading .eyebrow,
  .battery-copy .eyebrow,
  .car-identity .eyebrow {
    font-size: 9px;
  }
  .last-update,
  .flow-title h3,
  .flow-caption,
  .grid-note,
  .car-charge-meta,
  .car-charge > .subtle,
  .location-heading .subtle,
  .car-detail,
  .car-footer,
  .page-footer,
  .chart-y-axis,
  .chart-x-axis,
  .chart-selection,
  .chart-reading small,
  .chart-footnote,
  .history-summary,
  .battery-copy .subtle {
    font-size: 10px;
  }
  .legend-button {
    font-size: 11px;
    min-height: 44px;
  }
  .segmented button {
    min-height: 38px;
  }
  .flow-value > span {
    font-size: 9px;
  }
  .car-footer .text-button {
    font-size: 11px;
  }
  .car-identity .eyebrow {
    letter-spacing: 0.9px;
  }
  .car-footer > span {
    max-width: 210px;
  }
  .page-footer {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
