:root {
  --bg: #05080d;
  --bg-soft: #0a0f16;
  --surface: rgba(12, 18, 26, 0.94);
  --surface-strong: rgba(17, 24, 35, 0.98);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f9ff;
  --muted: rgba(222, 232, 247, 0.68);
  --green: #44dfa0;
  --teal: #4ad9ca;
  --blue: #69aefc;
  --amber: #ffcc68;
  --orange: #ff8a63;
  --red: #ff6d78;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "SF Pro Display", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 255, 255, 0.1), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(94, 150, 255, 0.14), transparent 20%),
    linear-gradient(180deg, #06070b 0%, #05060a 46%, #020307 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.2px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 24%);
  background-size: 52px 52px, 88px 88px, 100% 100%;
  background-position: 0 0, 24px 36px, 0 0;
  opacity: 0.38;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.06), transparent 24%);
  opacity: 0.3;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(640px, calc(100% - 20px));
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) 0 calc(env(safe-area-inset-bottom) + 104px);
}

.app-topbar,
.section-nav,
.dashboard-stack,
.bottom-dock {
  position: relative;
  z-index: 1;
}

.app-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.brand-block {
  min-width: 0;
}

.brand-eyebrow,
.panel-kicker,
.subcard-kicker,
.section-nav a,
.state-chip,
.timestamp-pill,
.badge,
.action-chip {
  letter-spacing: -0.01em;
}

.brand-eyebrow,
.panel-kicker,
.subcard-kicker {
  color: #7cffbe;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 6px 0 4px;
  font-size: clamp(1.9rem, 8.4vw, 3.1rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.subdued,
.section-subtitle,
.mini-subdued,
.map-note,
.info-card small,
.hero-stat small {
  color: var(--muted);
}

.subdued,
.section-subtitle,
.mini-subdued,
.map-note {
  font-size: 12px;
  line-height: 1.5;
}

.topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 62%;
}

.state-chip,
.timestamp-pill,
.badge,
.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.state-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18);
  animation: pulse 1.8s infinite;
}

.state-idle {
  color: var(--green);
}

.state-driving {
  color: var(--amber);
}

.state-charging {
  color: var(--blue);
}

.state-sleep {
  color: #d6e1f2;
}

.state-offline {
  color: var(--orange);
}

.timestamp-pill[data-freshness="green"],
.action-chip[data-freshness="green"] {
  color: var(--green);
}

.timestamp-pill[data-freshness="amber"] {
  color: var(--amber);
}

.timestamp-pill[data-freshness="orange"] {
  color: var(--orange);
}

.timestamp-pill[data-freshness="red"] {
  color: var(--red);
}

.action-chip--button {
  appearance: none;
  cursor: pointer;
}

.action-chip--button:disabled {
  opacity: 0.52;
  cursor: progress;
}

.section-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0 8px;
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  white-space: nowrap;
  padding: 9px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-stack {
  display: grid;
  gap: 12px;
}

.surface {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(94, 150, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(16, 22, 32, 0.98), rgba(8, 12, 18, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%);
}

.hero-card,
.section-card,
.bottom-dock {
  position: relative;
  z-index: 1;
}

.hero-head,
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.34rem, 4.6vw, 1.82rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.quick-actions-inline,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-chip {
  color: rgba(255, 255, 255, 0.86);
}

.hero-main {
  display: grid;
  gap: 18px;
}

.battery-orbit {
  --charge: 0;
  width: 100%;
  height: 52px;
  margin: 0 auto;
  padding: 4px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(68, 223, 160, 0.98) 0 calc(var(--charge) * 1%), rgba(68, 223, 160, 0.12) calc(var(--charge) * 1%), rgba(255, 109, 120, 0.18) 100%);
  display: block;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.26);
}

.battery-orbit__inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.24), rgba(5, 8, 12, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.battery-value {
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.battery-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-meta {
  display: grid;
  gap: 10px;
}

.hero-stat,
.info-card,
.subcard,
.chart-card,
.history-item {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.hero-stat {
  padding: 14px;
}

.hero-stat span,
.info-card span,
.history-item__meta,
.history-item__submeta {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  word-break: keep-all;
}

.hero-stat strong,
.info-card strong,
.subcard-title {
  display: block;
  margin-top: 7px;
  font-size: 1.24rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-stat small,
.info-card small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.45;
  word-break: keep-all;
}

.info-card--wide {
  grid-column: 1 / -1;
}

.info-card__value--compact {
  font-size: 1rem;
  line-height: 1.14;
  word-break: keep-all;
}

.info-card__value--route,
.info-card__detail--route {
  line-height: 1.24;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.info-card__value--route {
  font-size: 0.95rem;
}

.drive-route-card {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  margin-bottom: 8px;
}

.drive-route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.drive-route-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.drive-route-row strong {
  font-size: 0.98rem;
  line-height: 1.14;
  word-break: keep-all;
  text-align: right;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-route-chips {
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.drive-route-empty {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(235, 241, 252, 0.82);
  font-size: 10px;
  font-weight: 700;
  word-break: keep-all;
  white-space: nowrap;
}

.drive-traffic {
  display: grid;
  gap: 6px;
}

.drive-traffic__labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.drive-traffic__label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(235, 241, 252, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-traffic__label--end {
  text-align: right;
}

.drive-traffic__bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.drive-traffic__gradient {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.drive-traffic__marker {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 4px;
  height: 14px;
  border-radius: 999px;
  background: rgba(180, 222, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(9, 18, 31, 0.75), 0 0 10px rgba(105, 174, 252, 0.52);
}

.drive-traffic__legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: rgba(223, 232, 248, 0.58);
}

.drive-traffic__axis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: rgba(223, 232, 248, 0.68);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip-row--compact {
  margin-top: 12px;
}

.alert-banner {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 109, 120, 0.24);
  background: linear-gradient(180deg, rgba(127, 31, 40, 0.86), rgba(92, 21, 28, 0.9));
  color: #fff4f5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.alert-banner.is-hidden {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.tone-green {
  color: var(--green);
}

.tone-blue {
  color: var(--blue);
}

.tone-teal {
  color: var(--teal);
}

.tone-amber {
  color: var(--amber);
}

.tone-orange {
  color: var(--orange);
}

.tone-red {
  color: var(--red);
}

.tone-muted {
  color: rgba(235, 241, 250, 0.72);
}

.info-grid {
  display: grid;
  gap: 10px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.home-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.home-feed-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    linear-gradient(180deg, rgba(16, 22, 32, 0.96), rgba(10, 14, 21, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-feed-card[data-tone="green"] {
  border-color: rgba(68, 223, 160, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(68, 223, 160, 0.04);
}

.home-feed-card[data-tone="blue"] {
  border-color: rgba(105, 174, 252, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(105, 174, 252, 0.04);
}

.home-feed-card[data-tone="teal"] {
  border-color: rgba(74, 217, 202, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(74, 217, 202, 0.04);
}

.home-feed-card[data-tone="amber"] {
  border-color: rgba(255, 204, 104, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 204, 104, 0.04);
}

.home-feed-card[data-tone="orange"] {
  border-color: rgba(255, 138, 99, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 138, 99, 0.04);
}

.home-feed-card[data-tone="red"] {
  border-color: rgba(255, 109, 120, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 109, 120, 0.04);
}

.home-feed-card[data-tone="muted"] {
  border-color: rgba(255, 255, 255, 0.055);
}

.home-feed-card[data-tone]::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  opacity: 0.85;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}

.home-feed-card[data-tone="green"]::before { background: linear-gradient(90deg, rgba(68, 223, 160, 0.75), transparent 80%); }
.home-feed-card[data-tone="blue"]::before { background: linear-gradient(90deg, rgba(105, 174, 252, 0.75), transparent 80%); }
.home-feed-card[data-tone="teal"]::before { background: linear-gradient(90deg, rgba(74, 217, 202, 0.75), transparent 80%); }
.home-feed-card[data-tone="amber"]::before { background: linear-gradient(90deg, rgba(255, 204, 104, 0.75), transparent 80%); }
.home-feed-card[data-tone="orange"]::before { background: linear-gradient(90deg, rgba(255, 138, 99, 0.75), transparent 80%); }
.home-feed-card[data-tone="red"]::before { background: linear-gradient(90deg, rgba(255, 109, 120, 0.75), transparent 80%); }

.home-feed-card--wide {
  grid-column: 1 / -1;
}

.home-feed-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-feed-card__kicker {
  color: #7cffbe;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-feed-card__title {
  margin-top: 6px;
  font-size: 1.02rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-feed-card__support {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.home-feed-card__badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 800;
}

.home-feed-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.home-feed-metric {
  padding: 10px 11px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.home-feed-metric span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.home-feed-metric strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-feed-metric small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.home-feed-row-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.home-feed-row {
  padding: 10px 11px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.home-feed-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-feed-row__top strong {
  font-size: 12px;
  line-height: 1.1;
}

.home-feed-row p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  line-height: 1.4;
}

.home-feed-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.home-feed-row__kind {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-feed-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.home-feed-card--wide .home-feed-card__title {
  font-size: 1.14rem;
}

.home-feed-card--wide .home-feed-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feed-card--compact .home-feed-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-grid.compact-grid .info-card {
  padding: 11px;
}

.info-card {
  padding: 12px;
}

.module-card {
  display: block;
  padding: 14px 13px;
  min-height: 112px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(26, 32, 45, 0.9), rgba(18, 22, 32, 0.95));
}

.module-card__code {
  display: inline-block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-card__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.84);
}

.module-card__value {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.module-card__detail {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.subcard {
  padding: 14px;
}

.subcard-kicker {
  margin-bottom: 8px;
}

.subcard-title {
  margin: 0 0 6px;
}

.split-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.chart-card {
  padding: 14px;
  margin-top: 12px;
}

.analysis-card {
  margin-top: 0;
}

.chart-card__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: start;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.chart-card__head .subdued {
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.chart-svg {
  width: 100%;
  height: 148px;
  display: block;
}

.chart-svg.is-touch-chart {
  touch-action: none;
}

.bar-chart {
  height: 180px;
}

.drive-select {
  width: 100%;
  margin: 2px 0 14px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.is-hidden {
  display: none !important;
}

.drive-live-card {
  margin-bottom: 12px;
}

.drive-console-card {
  border-color: rgba(255, 204, 104, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 204, 104, 0.14), transparent 28%),
    radial-gradient(circle at 0% 0%, rgba(74, 217, 202, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(16, 22, 32, 0.98), rgba(8, 12, 18, 0.95));
}

.drive-console-chip-row {
  justify-content: flex-end;
}

.drive-console-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.telemetry-focus-chip {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.telemetry-focus-chip span {
  color: rgba(223, 232, 248, 0.56);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemetry-focus-chip strong {
  display: block;
  font-size: 0.78rem;
  line-height: 1.02;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-console-hero {
  margin-top: 0;
}

.drive-console-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.telemetry-ribbon-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.telemetry-ribbon-card span {
  color: rgba(223, 232, 248, 0.62);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemetry-ribbon-card strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-console-rails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.telemetry-rail-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px 7px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.telemetry-rail-card span {
  color: rgba(223, 232, 248, 0.58);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemetry-rail-card strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-console-secondary {
  margin-top: 10px;
}

.drive-console-lower {
  display: grid;
  gap: 14px;
}

.drive-console-pane {
  min-width: 0;
}

.drive-console-subhead {
  margin-top: 14px;
  margin-bottom: 10px;
}

.drive-console-subtitle {
  font-size: 1rem;
  line-height: 1.06;
}

.drive-tire-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drive-tire-tile {
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.drive-tire-tile__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.drive-tire-tile span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.drive-tire-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 1.06rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.drive-tire-tile small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(223, 232, 248, 0.66);
}

.drive-tire-meter {
  position: relative;
  height: 14px;
  margin-top: 7px;
}

.drive-tire-meter__track,
.drive-tire-meter__band,
.drive-tire-meter__fill,
.drive-tire-meter__start,
.drive-tire-meter__current {
  position: absolute;
}

.drive-tire-meter__track {
  inset: 3px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.drive-tire-meter__band {
  left: 25%;
  right: 15%;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
  background: rgba(100, 211, 146, 0.32);
}

.drive-tire-meter__fill {
  left: 0;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(100, 211, 146, 0.16), rgba(100, 211, 146, 0.44));
}

.drive-tire-meter__start,
.drive-tire-meter__current {
  top: 0;
  width: 2px;
  height: 14px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.drive-tire-meter__start {
  background: rgba(255, 88, 88, 0.96);
}

.drive-tire-meter__current {
  background: rgba(100, 243, 172, 0.98);
  box-shadow: 0 0 10px rgba(100, 243, 172, 0.3);
}

.drive-tire-meter__start-label {
  position: absolute;
  top: 15px;
  transform: translateX(-50%);
  font-size: 9px;
  line-height: 1;
  color: rgba(255, 88, 88, 0.98);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.drive-live-card .subcard-title {
  margin-bottom: 4px;
}

.telemetry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin: 10px 0 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(23, 31, 44, 0.96), rgba(10, 15, 23, 0.92)),
    radial-gradient(circle at 0% 0%, rgba(105, 174, 252, 0.14), transparent 48%);
}

.telemetry-hero__title-wrap {
  display: grid;
  gap: 4px;
}

.telemetry-hero__title-wrap strong {
  font-size: 16px;
  line-height: 1.1;
}

.telemetry-hero__title-wrap small {
  color: rgba(223, 232, 248, 0.62);
  font-size: 11px;
}

.telemetry-hero__value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: rgba(255, 255, 255, 0.94);
}

@keyframes telemetryPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(65, 173, 255, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(65, 173, 255, 0.14);
  }
}

@keyframes telemetryLatestGlow {
  0%, 100% {
    border-color: rgba(68, 223, 160, 0.28);
  }
  50% {
    border-color: rgba(68, 223, 160, 0.48);
  }
}

.telemetry-phase {
  width: fit-content;
  min-height: 24px;
  padding: 5px 9px;
  font-size: 10px;
}

.telemetry-phase--warmup {
  color: #ffedd8;
  background: rgba(255, 138, 99, 0.18);
  border-color: rgba(255, 138, 99, 0.28);
}

.telemetry-phase--efficiency {
  color: #d9fff0;
  background: rgba(68, 223, 160, 0.18);
  border-color: rgba(68, 223, 160, 0.28);
}

.drive-tab-switch {
  margin-top: 14px;
  margin-bottom: 12px;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.drive-tab-switch button {
  flex: 1 1 calc(50% - 6px);
}

.drive-tab-pane {
  display: none;
}

.drive-tab-pane.is-active {
  display: block;
}

.drive-pane-grid {
  margin-top: 0;
}

.drive-log-card {
  margin-top: 0;
}

.drive-log-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.drive-log-row {
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.drive-log-row.is-latest {
  border-color: rgba(68, 223, 160, 0.32);
  background:
    linear-gradient(135deg, rgba(68, 223, 160, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
}

.drive-log-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  color: rgba(223, 232, 248, 0.7);
}

.drive-log-row__top strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
}

.drive-log-row__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  font-size: 11px;
  color: rgba(223, 232, 248, 0.78);
}

.drive-log-row__tire {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(223, 232, 248, 0.56);
}

html.drive-focused,
body.drive-focused {
  overflow: hidden;
  height: 100%;
}

body.drive-focused .app-shell {
  width: min(430px, 100%);
  height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 8px) 8px calc(env(safe-area-inset-bottom) + 8px);
  display: block;
}

body.drive-focused .app-topbar,
body.drive-focused .section-nav,
body.drive-focused .dashboard-stack > section:not(#drive-console),
body.drive-focused .bottom-dock {
  display: none !important;
}

body.drive-focused .dashboard-stack {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  gap: 0;
}

body.drive-focused .drive-console-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "head head"
    "hero hero"
    "route route"
    "primary secondary"
    "ribbon ribbon"
    "rails rails"
    "lower lower";
  grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr);
  gap: 5px;
  height: 100%;
  min-height: 0;
  padding: 8px;
  overflow: hidden;
  border-radius: 22px;
}

body.drive-focused .drive-console-card,
body.drive-focused .drive-console-card * {
  word-break: keep-all;
}

body.drive-focused .drive-console-card > .section-header:first-child {
  grid-area: head;
  margin-bottom: 0;
}

body.drive-focused #drive-console-headline,
body.drive-focused #drive-console-support,
body.drive-focused .drive-console-chip-row,
body.drive-focused #drive-console-hero-phase,
body.drive-focused #drive-console-hero-title {
  display: none !important;
}

body.drive-focused .drive-console-hero {
  grid-area: hero;
  margin: 0;
  padding: 12px 11px 12px;
  justify-items: center;
  text-align: center;
  grid-template-columns: 1fr;
  gap: 6px;
}

body.drive-focused .telemetry-hero__title-wrap {
  width: 100%;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 4px;
}

body.drive-focused .drive-console-ribbon {
  display: none !important;
}

body.drive-focused .telemetry-ribbon-card {
  padding: 7px 8px 6px;
  border-radius: 13px;
}

body.drive-focused .telemetry-ribbon-card span {
  font-size: 9px;
}

body.drive-focused .telemetry-ribbon-card strong {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

body.drive-focused .drive-console-rails {
  display: none !important;
}

body.drive-focused .telemetry-rail-card {
  padding: 6px 8px 5px;
  border-radius: 13px;
}

body.drive-focused .telemetry-rail-card span {
  font-size: 8px;
}

body.drive-focused .telemetry-rail-card strong {
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

body.drive-focused .drive-route-card {
  grid-area: route;
  margin-bottom: 0;
  padding: 6px 8px;
  gap: 4px;
  overflow: hidden;
}

body.drive-focused .drive-route-label,
body.drive-focused .drive-route-empty {
  font-size: 8px;
}

body.drive-focused .drive-route-chips {
  gap: 6px;
}

body.drive-focused .drive-traffic__label {
  font-size: 9px;
}

body.drive-focused .drive-traffic__legend {
  font-size: 8px;
}

body.drive-focused .drive-traffic__axis {
  font-size: 8px;
}

body.drive-focused .telemetry-hero__title-wrap strong {
  font-size: 13px;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.drive-focused .telemetry-hero__title-wrap small {
  font-size: 13px;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(223, 232, 248, 0.52);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

body.drive-focused .telemetry-hero__value {
  width: 100%;
  text-align: center;
  font-size: 46px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.04em;
  font-weight: 700;
}

body.drive-focused #drive-console-primary {
  grid-area: primary;
}

body.drive-focused #drive-console-secondary {
  grid-area: secondary;
  margin-top: 0;
}

body.drive-focused .info-grid.compact-grid {
  gap: 6px;
}

body.drive-focused .info-grid.compact-grid .info-card {
  padding: 6px 7px;
  display: grid;
  justify-items: center;
  text-align: center;
}

body.drive-focused .info-grid.compact-grid .info-card__label {
  width: 100%;
  text-align: center;
  justify-self: center;
}

body.drive-focused .info-card strong {
  display: block;
  width: 100%;
  font-size: 0.76rem;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

body.drive-focused .info-card span,
body.drive-focused .info-card small {
  display: block;
  width: 100%;
  font-size: 8px;
  word-break: keep-all;
  text-align: center;
}

body.drive-focused .info-card__value--compact {
  font-size: 0.74rem;
  line-height: 1.14;
}

body.drive-focused .info-card__value--route {
  font-size: 0.68rem;
  line-height: 1.12;
  text-align: left;
  justify-self: stretch;
}

body.drive-focused .info-card__detail--route {
  font-size: 8px;
  text-align: left;
  justify-self: stretch;
}

body.drive-focused .drive-console-lower {
  grid-area: lower;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  min-height: 0;
}

body.drive-focused .drive-console-pane {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.drive-focused .drive-console-subhead {
  margin-top: 0;
  margin-bottom: 4px;
  justify-content: center;
  text-align: center;
}

body.drive-focused .drive-console-subtitle {
  font-size: 0.72rem;
}

body.drive-focused .drive-console-subhead > div:first-child {
  width: 100%;
}

body.drive-focused .drive-console-subhead .panel-kicker {
  text-align: center;
}

body.drive-focused #drive-console-support,
body.drive-focused .info-card small,
body.drive-focused .drive-console-pane--log,
body.drive-focused #drive-console-actions {
  display: none !important;
}

body.drive-focused #drive-console-hero-detail {
  display: block !important;
}

body.drive-focused .drive-console-focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

body.drive-focused .telemetry-focus-chip {
  padding: 5px 6px 4px;
  border-radius: 11px;
}

body.drive-focused .telemetry-focus-chip span {
  font-size: 8px;
}

body.drive-focused .telemetry-focus-chip strong {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

body.drive-focused .drive-tire-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

body.drive-focused .drive-tire-tile {
  padding: 7px 8px;
  border-radius: 13px;
  min-width: 0;
}

body.drive-focused .drive-tire-tile span,
body.drive-focused .drive-tire-tile small {
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.drive-focused .drive-tire-tile strong {
  margin-top: 3px;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.drive-focused .drive-tire-meter {
  margin-top: 5px;
  height: 10px;
}

body.drive-focused .drive-tire-meter__track,
body.drive-focused .drive-tire-meter__band,
body.drive-focused .drive-tire-meter__fill {
  top: 2px;
  bottom: 2px;
}

body.drive-focused .drive-tire-meter__start,
body.drive-focused .drive-tire-meter__current {
  height: 10px;
}

body.drive-focused .drive-tire-meter__start-label {
  top: 11px;
  font-size: 8px;
}

body.drive-focused .drive-log-list {
  margin-top: 0;
  gap: 2px;
  overflow: hidden;
}

body.drive-focused .drive-log-row {
  padding: 5px 6px;
  border-radius: 11px;
}

body.drive-focused .drive-log-row__top {
  margin-bottom: 3px;
  font-size: 8px;
}

body.drive-focused .drive-log-row__top strong {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.drive-focused .drive-log-row__metrics {
  gap: 2px 5px;
  font-size: 8px;
}

body.drive-focused .drive-log-row__tire {
  margin-top: 3px;
  font-size: 7px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.drive-focused .telemetry-hero {
  animation: telemetryPulse 2.6s ease-in-out infinite;
}

body.drive-focused .drive-log-row.is-latest {
  animation: telemetryLatestGlow 1.9s ease-in-out infinite;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 8px 0 4px;
}

.chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.76);
}

.chart-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.map-panel {
  width: 100%;
  height: 270px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.map-note {
  margin-top: 10px;
}

.chart-switch {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.chart-switch button.is-active {
  color: #051017;
  background: linear-gradient(135deg, var(--green), #7fe3ff);
}

.climate-visual-card {
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(20, 26, 36, 0.94), rgba(8, 12, 18, 0.92));
}

.climate-visual-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.climate-visual-card__head .subcard-title {
  font-size: 1.08rem;
  line-height: 1.05;
  word-break: keep-all;
}

.climate-visual-card__head .badge {
  min-height: 28px;
  padding: 6px 10px;
  font-size: 10px;
}

.climate-stage {
  position: relative;
  min-height: 586px;
  margin-top: 10px;
  padding: 42px 0 22px;
}

.climate-car-wrap {
  position: relative;
  z-index: 1;
  width: min(80vw, 298px);
  margin: 0 auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.34));
}

.climate-car-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 704 / 1117;
  display: block;
  border-radius: 40px;
  background:
    url("/assets/model3-topview-1905.jpeg?v=20260327d") center center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 44px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.climate-car-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.climate-temp-pill,
.climate-callout {
  position: absolute;
  z-index: 2;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 24, 0.82);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.climate-temp-pill {
  min-width: 98px;
  padding: 10px 12px;
  text-align: center;
}

.climate-temp-pill span,
.climate-callout span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: rgba(230, 238, 250, 0.6);
}

.climate-temp-pill strong,
.climate-callout strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.climate-temp-pill--outside {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.climate-temp-pill--inside {
  left: 50%;
  top: 304px;
  transform: translateX(-50%);
}

.climate-temp-pill--driver {
  left: 50%;
  top: 228px;
  transform: translateX(-50%);
}

.climate-callout {
  width: 94px;
  padding: 11px 12px;
}

.climate-callout::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.climate-callout--fl,
.climate-callout--rl {
  text-align: right;
}

.climate-callout--fl::after,
.climate-callout--rl::after {
  right: -18px;
}

.climate-callout--fr::after,
.climate-callout--rr::after {
  left: -18px;
}

.climate-callout--fl {
  left: 0;
  top: 138px;
}

.climate-callout--fr {
  right: 0;
  top: 138px;
}

.climate-callout--rl {
  left: 0;
  bottom: 98px;
}

.climate-callout--rr {
  right: 0;
  bottom: 98px;
}

.climate-callout[data-tone="good"] strong {
  color: var(--green);
}

.climate-callout[data-tone="low"] strong {
  color: var(--orange);
}

.climate-callout[data-tone="high"] strong {
  color: var(--blue);
}

.climate-callout[data-tone="muted"] strong {
  color: rgba(255, 255, 255, 0.86);
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  padding: 14px;
}

.history-item__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.history-item__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.history-item__value {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.history-item__submeta {
  margin-top: 8px;
  line-height: 1.45;
}

.action-row {
  margin-top: 4px;
}

.action-button {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(68, 223, 160, 0.18), rgba(105, 174, 252, 0.18));
  border: 1px solid rgba(68, 223, 160, 0.18);
  font-weight: 700;
}

.action-button.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.bottom-dock {
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 10px;
  margin-top: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}

.bottom-dock a {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.74);
}

.bottom-dock a:hover,
.section-nav a:hover,
.action-chip:hover,
.action-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.empty-state {
  padding: 16px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.empty-state strong {
  display: block;
  font-size: 15px;
}

.empty-state small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.error-state {
  text-align: center;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (min-width: 720px) {
  .app-shell {
    width: min(980px, calc(100% - 32px));
  }

  .hero-main {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero-meta,
  .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-card {
    padding: 22px;
  }

  .chart-svg {
    height: 180px;
  }

  .drive-tab-switch button {
    flex: 1 1 auto;
  }
}
