:root {
  --bg: #0e1013;
  --screen: #15181d;
  --panel: #1b1f25;
  --border: #2a2f38;
  --border-soft: #23272e;
  --text: #e9ebee;
  --text-muted: #9aa0a8;
  --text-faint: #6b7280;
  --accent: #f5a623;
  --ok: #5fd97a;
  --bad: #f0553f;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, #f5a6230f, transparent 55%),
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px), var(--bg);
  background-size: auto, 26px 26px, 26px 26px;
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: clamp(24px, 6vw, 36px) 16px 44px;
}

button, select, textarea { font: inherit; }
button { color: inherit; }
.app { width: 100%; max-width: 480px; }
.brand { text-align: center; margin-bottom: 22px; }
.top-row, .bezel, .leds { display: flex; align-items: center; }
.top-row, .bezel { justify-content: space-between; }
.top-row { justify-content: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.eyebrow, .panel-eyebrow, .bezel-label, .foot-label, .beta-badge, .ig-link {
  font-family: "Cascadia Code", monospace;
}
.eyebrow { color: var(--text-faint); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }
.title { font-size: clamp(24px, 6vw, 28px); letter-spacing: -.5px; margin: 8px 0 0; }
.subtitle { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 6px auto 0; max-width: 360px; }
.beta-badge, .lang-selector {
  border: 1px solid #f5a62359; border-radius: 999px; font-size: 10px;
  letter-spacing: 1px; padding: 4px 10px; text-decoration: none;
}
.beta-badge { background: #f5a6231a; color: var(--accent); }
.dot { background: var(--accent); border-radius: 50%; display: inline-block; height: 5px; margin-right: 5px; width: 5px; }
.lang-selector {
  align-items: center; background: var(--panel); border-color: var(--border);
  color: var(--text-faint); cursor: not-allowed; display: inline-flex; gap: 5px;
}
.lang-selector:disabled { opacity: .8; }
.casing { background: linear-gradient(155deg, #3a3f47, #1c1f24 40%, #45403a); border-radius: 20px; box-shadow: 0 20px 50px -20px #0009; padding: 1.5px; }
.screen { background: var(--screen); border-radius: 18.5px; overflow: hidden; }
.bezel { background: linear-gradient(#1a1d22, #15181d); border-bottom: 1px solid var(--border-soft); padding: 12px 18px; }
.leds { gap: 6px; }
.led { animation: pulse 2.6s ease-in-out infinite; border-radius: 50%; height: 7px; width: 7px; }
.led-bad { background: var(--bad); }
.led-accent { animation-delay: .3s; background: var(--accent); }
.led-ok { animation-delay: .6s; background: var(--ok); }
.bezel-label { color: #565c66; font-size: 10.5px; letter-spacing: 1.5px; }
.screen-inner { padding: 26px 22px 22px; transition: opacity .5s ease, transform .5s ease; }
.screen-inner.booting { opacity: 0; transform: scale(.98); }
.gauge-wrap { color: var(--accent); font-family: monospace; font-size: 1.5rem; margin-bottom: 20px; text-align: center; }
.panel-eyebrow { color: #565c66; font-size: 10px; letter-spacing: 1.5px; margin-bottom: 8px; text-transform: uppercase; }
.panel-title { font-size: 18px; line-height: 1.35; margin: 0 0 16px; }
.vehicle-cards, .options { display: flex; flex-direction: column; gap: 10px; }
.vehicle-card, .option {
  align-items: center; background: var(--panel); border: 1px solid var(--border);
  border-radius: 13px; cursor: pointer; display: flex; gap: 14px; padding: 16px;
  text-align: left; transition: border-color .15s ease, background .15s ease, transform .12s ease; width: 100%;
}
.vehicle-card:hover, .option:hover { background: #f5a6230f; border-color: var(--accent); transform: translateY(-1px); }
.vehicle-card-body { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.vehicle-card-title { font-size: 15.5px; }
.vehicle-card-desc { color: var(--text-faint); font-size: 12.5px; line-height: 1.4; }
.vehicle-card-emoji { font-size: 26px; }
.option { border-radius: 11px; font-size: 14.5px; padding: 13px 15px; }
.result-card, [data-diagnostic-result] { background: var(--panel); border: 1px solid var(--border); border-radius: 13px; padding: 18px; }
[data-diagnostic-result][data-severity="critical"] { border-color: #f0553f80; }
[data-diagnostic-result] form { display: grid; gap: 10px; margin-top: 16px; }
[data-diagnostic-result] select, [data-diagnostic-result] textarea { background: var(--screen); border: 1px solid var(--border); border-radius: 9px; color: var(--text); padding: 10px; width: 100%; }
[data-diagnostic-result] button { background: var(--accent); border: 0; border-radius: 9px; color: var(--screen); cursor: pointer; padding: 10px; }
.error-box { background: #f0553f1a; border: 1px solid #f0553f66; border-radius: 11px; color: #ffb3a8; font-size: 14px; line-height: 1.5; padding: 18px; text-align: center; }
.foot-label { border-top: 1px solid var(--border-soft); color: #4b5157; font-size: 10px; letter-spacing: .4px; padding: 10px 18px; text-align: center; }
.developer-signature { color: #565c66; display: block; margin-top: 6px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { *, .led { animation: none !important; transition-duration: .001ms !important; } }
