:root {
  --bg: #061018;
  --bg-elevated: rgba(13, 24, 36, 0.74);
  --bg-card: rgba(17, 30, 45, 0.72);
  --bg-card-strong: rgba(20, 37, 55, 0.9);
  --text: #eef8ff;
  --muted: #8ea4b8;
  --line: rgba(178, 218, 255, 0.16);
  --accent: #18d7ff;
  --accent-2: #43f59e;
  --accent-3: #7c5cff;
  --warning: #ffbd3f;
  --danger: #ff4f68;
  --success: #45e58a;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --brightness: 1;
  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.theme-light {
  --bg: #eef6fb;
  --bg-elevated: rgba(245, 250, 255, 0.78);
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-strong: rgba(255, 255, 255, 0.92);
  --text: #07131d;
  --muted: #5d7082;
  --line: rgba(30, 82, 120, 0.16);
  --accent: #0078ff;
  --accent-2: #12a86b;
  --accent-3: #7656ff;
  --shadow: 0 24px 90px rgba(34, 75, 110, 0.24);
}

.theme-forest {
  --bg: #07130f;
  --bg-elevated: rgba(12, 30, 24, 0.8);
  --bg-card: rgba(16, 44, 34, 0.72);
  --bg-card-strong: rgba(18, 52, 41, 0.92);
  --text: #edfff6;
  --muted: #99b8aa;
  --line: rgba(123, 255, 184, 0.18);
  --accent: #52ffc8;
  --accent-2: #b7ff5c;
  --accent-3: #25a6ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 15%, rgba(24, 215, 255, 0.18), transparent 36%),
    radial-gradient(circle at 86% 5%, rgba(67, 245, 158, 0.14), transparent 32%),
    linear-gradient(135deg, var(--bg), #03060a 68%);
  overflow-x: hidden;
  filter: brightness(var(--brightness));
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.orb {
  position: absolute;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.34;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-one {
  left: -11vw;
  top: 2vh;
  background: var(--accent);
}

.orb-two {
  right: -10vw;
  top: 20vh;
  background: var(--accent-2);
  animation-delay: -4s;
}

.orb-three {
  left: 32vw;
  bottom: -24vh;
  background: var(--accent-3);
  animation-delay: -8s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 70%, transparent);
  opacity: 0.38;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -3vh, 0) scale(1.08); }
}

.screen {
  min-height: 100vh;
  display: none;
}

.screen.is-visible {
  display: block;
}

.login-screen.is-visible {
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 64px);
}

.login-shell {
  width: min(1040px, 100%);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 10px);
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand {
  justify-content: center;
  text-align: left;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #031016;
  font-weight: 900;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.login-shell h1 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.login-subtitle,
.login-hint {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin: clamp(34px, 6vw, 70px) 0 20px;
}

.profile-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.045));
  color: var(--text);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profile-card:hover,
.profile-card:focus-visible {
  transform: translateY(-8px) scale(1.02);
  border-color: color-mix(in srgb, var(--accent) 75%, white 15%);
  outline: none;
  box-shadow: 0 22px 80px rgba(0,0,0,0.35), 0 0 36px color-mix(in srgb, var(--accent) 30%, transparent);
}

.profile-avatar {
  width: clamp(88px, 14vw, 132px);
  height: clamp(88px, 14vw, 132px);
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071018;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  border: 5px solid rgba(255,255,255,0.5);
}

.guest-avatar { background: linear-gradient(135deg, #82e7ff, #eaffff); }
.driver-avatar { background: linear-gradient(135deg, #44ff9a, #10bdfc); }
.developer-avatar { background: linear-gradient(135deg, #ffbd3f, #ff4f68); }

.profile-name,
.profile-meta {
  display: block;
}

.profile-name {
  font-weight: 900;
  font-size: 1.3rem;
}

.profile-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-screen.is-visible {
  display: block;
  padding-top: 86px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: 76px;
  padding: 12px clamp(14px, 2.4vw, 34px);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(22px);
}

.hamburger,
.icon-button,
.profile-chip {
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 14px 38px rgba(0,0,0,0.22);
}

.hamburger {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 13px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 3px;
  background: var(--text);
}

.topbar h2 {
  margin: 0;
  font-size: 1.1rem;
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill,
.profile-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--bg-card);
}

.mini-icon {
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 40%, transparent));
}

.profile-chip span:first-child {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}

.side-menu {
  position: fixed;
  z-index: 80;
  top: 92px;
  left: clamp(12px, 2vw, 26px);
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--bg-card-strong) 92%, black 8%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
  transform: translateX(-115%);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.side-menu.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.side-menu h3,
.side-menu h4 {
  margin: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.menu-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-actions button,
.select-control,
.text-input,
.pin-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0 12px;
}

.select-control option {
  color: #081018;
}

.field-label {
  display: block;
  margin: 16px 0 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

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

.tile-toggle-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.dashboard-root {
  width: min(1540px, calc(100% - clamp(24px, 4vw, 64px)));
  margin: 0 auto;
  padding: 22px 0 52px;
}

.hero-panel,
.widget-card,
.modal-panel {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg-card) 92%, white 8%), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 4vw, 44px);
  border-radius: calc(var(--radius-xl) + 6px);
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  aspect-ratio: 1;
  right: -140px;
  top: -160px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
}

.hero-panel h1 {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-stats span {
  min-height: 120px;
  display: grid;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
}

.hero-stats strong {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.hero-stats small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: 22px;
}

.widget-card {
  min-height: 280px;
  grid-column: span 3;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.widget-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 44%);
  opacity: 0.7;
  pointer-events: none;
}

.widget-card > * {
  position: relative;
  z-index: 1;
}

.widget-dynamics,
.graphs-widget {
  grid-column: span 6;
}

.map-widget,
.battery-widget {
  grid-column: span 4;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.widget-header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.widget-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  font-size: 1.35rem;
}

.access-tag {
  margin: 0 0 3px;
  color: var(--accent-2);
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.interactive-card {
  transition: transform 180ms ease, border-color 180ms ease;
}

.interactive-card:hover,
.interactive-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  outline: none;
}

.speed-dial {
  width: min(320px, 78vw);
  aspect-ratio: 1;
  margin: -8px auto 0;
  display: grid;
  place-items: center;
  position: relative;
}

.dial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(135deg);
  overflow: visible;
}

.dial-track,
.dial-progress {
  fill: none;
  stroke-width: 18;
  stroke-linecap: round;
  stroke-dasharray: 415 580;
}

.dial-track {
  stroke: rgba(255,255,255,0.1);
}

.dial-progress {
  stroke: url(#speed-gradient);
  stroke-dasharray: calc(415 * var(--speed-progress)) 580;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 58%, transparent));
}

.dial-core {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(255,255,255,0.11), rgba(255,255,255,0.03));
}

.dial-core span {
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.dial-core small {
  color: var(--muted);
  font-weight: 700;
}

.dynamics-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.dynamics-footer strong {
  color: var(--text);
}

.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.metric-row strong {
  color: var(--text);
  font-size: 1.25rem;
}

.primary-metric strong {
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.bar-meter {
  height: 14px;
  margin: 22px 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  overflow: hidden;
}

.bar-meter span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent);
}

.widget-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.93rem;
}

.trip-readout {
  display: grid;
  gap: 4px;
  margin: 28px 0;
}

.trip-readout strong {
  color: var(--accent-2);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: -0.08em;
}

.trip-readout span {
  color: var(--muted);
}

.vehicle-soc {
  min-height: 180px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.vehicle-soc.large {
  min-height: 250px;
}

.vehicle-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--soc-level);
  background:
    radial-gradient(circle at 20% 4%, rgba(255,255,255,0.45), transparent 12%),
    linear-gradient(180deg, color-mix(in srgb, var(--soc-color) 80%, white 10%), var(--soc-color));
  opacity: 0.86;
  transition: height 400ms ease, background 400ms ease;
}

.vehicle-fill::before,
.vehicle-fill::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: -22px;
  height: 42px;
  background: rgba(255,255,255,0.38);
  border-radius: 50%;
  animation: wave 5s ease-in-out infinite;
}

.vehicle-fill::after {
  animation-delay: -2.5s;
  opacity: 0.5;
}

@keyframes wave {
  0%, 100% { transform: translateX(-3%) scaleY(0.75); }
  50% { transform: translateX(3%) scaleY(1); }
}

.vehicle-outline {
  position: relative;
  width: min(260px, 78%);
  height: 112px;
  border: 5px solid var(--text);
  border-radius: 22px 42px 20px 20px;
  opacity: 0.9;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.3));
}

.vehicle-outline .cab {
  position: absolute;
  width: 72px;
  height: 76px;
  left: 18px;
  top: -40px;
  border: 5px solid var(--text);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
}

.vehicle-outline .cargo {
  position: absolute;
  width: 84px;
  height: 48px;
  right: 18px;
  top: 22px;
  border: 5px solid var(--text);
  border-radius: 14px;
}

.vehicle-outline .wheel {
  position: absolute;
  bottom: -27px;
  width: 40px;
  height: 40px;
  border: 7px solid var(--text);
  border-radius: 999px;
  background: var(--bg);
}

.vehicle-outline .w1 { left: 34px; }
.vehicle-outline .w2 { right: 34px; }

.weather-display {
  display: grid;
  gap: 8px;
  min-height: 135px;
  align-content: center;
}

.weather-display strong {
  color: var(--accent);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.weather-display span {
  color: var(--muted);
  font-size: 1.1rem;
}

.map-surface {
  min-height: 240px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.065) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.065) 1px, transparent 1px),
    radial-gradient(circle at 25% 60%, rgba(67,245,158,0.2), transparent 22%),
    radial-gradient(circle at 78% 38%, rgba(24,215,255,0.2), transparent 24%),
    rgba(255,255,255,0.05);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  position: relative;
  overflow: hidden;
}

.route-line {
  position: absolute;
  left: 12%;
  top: 58%;
  width: 78%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  transform: rotate(-16deg);
  filter: drop-shadow(0 0 10px var(--accent));
}

.vehicle-marker {
  position: absolute;
  left: 48%;
  top: 44%;
  color: var(--accent-2);
  font-size: 2rem;
  transform: rotate(36deg);
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 18px var(--warning);
}

.map-pin.p1 { left: 22%; top: 64%; }
.map-pin.p2 { right: 20%; top: 34%; }

.info-grid-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.info-grid-small div {
  min-height: 118px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.045);
}

.info-grid-small span {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-grid-small strong {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.05em;
}

.graph-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.graph-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: var(--muted);
  padding: 9px 13px;
  font-weight: 700;
}

.graph-tabs button.is-active {
  color: #041019;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.chart-area {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(255,255,255,0.04);
}

.chart-area svg {
  width: 100%;
  height: 100%;
  min-height: 190px;
}

#chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px var(--accent));
}

.chart-area line {
  stroke: rgba(255,255,255,0.16);
  stroke-width: 2;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 18px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(12px);
}

.modal-panel {
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-xl);
}

.wide-panel {
  width: min(880px, 100%);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.modal-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.modal-copy,
.pin-error {
  color: var(--muted);
}

.pin-error {
  min-height: 1.4em;
  color: var(--danger);
}

.pin-input {
  height: 64px;
  margin: 12px 0;
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.35em;
}

.primary-button {
  min-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  color: #041018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 26%, transparent);
}

.battery-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1fr;
  gap: 18px;
  align-items: stretch;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-list div,
.trip-result {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.045);
}

.detail-list span,
.trip-result span {
  color: var(--muted);
}

.detail-list strong,
.trip-result strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

.charging-table-wrap {
  margin-top: 20px;
}

.charging-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.charging-table th,
.charging-table td {
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}

.charging-table th {
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-left: 6px;
}

.green { background: var(--success); box-shadow: 0 0 12px var(--success); }
.red { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.blank-cell { color: var(--muted); }

.trip-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  margin-top: 18px;
}

.is-hidden-by-access,
.is-hidden-by-customize {
  display: none !important;
}

@media (max-width: 1180px) {
  .widget-card,
  .map-widget,
  .battery-widget {
    grid-column: span 6;
  }

  .widget-dynamics,
  .graphs-widget {
    grid-column: span 12;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-screen.is-visible {
    padding-top: 132px;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .status-strip {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .status-pill {
    flex: 1 1 auto;
    justify-content: center;
  }

  .brand-lockup .eyebrow {
    display: none;
  }

  .profile-grid,
  .hero-stats,
  .info-grid-small,
  .battery-detail-grid {
    grid-template-columns: 1fr;
  }

  .widget-card,
  .widget-dynamics,
  .graphs-widget,
  .map-widget,
  .battery-widget {
    grid-column: span 12;
  }

  .login-shell {
    padding: 24px;
  }

  .profile-card {
    min-height: 190px;
  }

  .dashboard-root {
    width: calc(100% - 24px);
  }
}

@media (max-width: 460px) {
  .topbar {
    gap: 10px;
    padding: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .profile-chip span:last-child {
    display: none;
  }

  .hero-panel h1 {
    font-size: 2.2rem;
  }

  .widget-card {
    min-height: auto;
  }
}
