:root {
  color-scheme: dark;
  --ink: #061126;
  --muted: #56657b;
  --paper: #f7f8fb;
  --white: #fff;
  --blue: #1f78ff;
  --orange: #ff6a21;
  --red: #f32722;
  --hot: #ff2b24;
  --dark: #050608;
  --panel: rgba(12, 14, 19, 0.78);
  --line: rgba(255, 255, 255, 0.16);
  --soft-line: rgba(6, 17, 38, 0.12);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
  font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  letter-spacing: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(255, 39, 34, 0.18), transparent 30%),
    #000;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

button:active {
  transform: translateY(0);
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(31, 120, 255, 0.32);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.product-shell {
  min-height: 100vh;
  padding: 18px;
}

.app-chrome {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto minmax(170px, auto);
  gap: 12px;
  align-items: center;
  max-width: 1880px;
  margin: 0 auto 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(6, 7, 10, 0.68);
  backdrop-filter: blur(22px) saturate(130%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.brand-lockup,
.card-brand,
.rail-status {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-lockup strong,
.card-brand strong {
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.brand-lockup > div > span,
.card-brand > div > span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.simple-card .card-brand strong {
  color: var(--ink);
}

.simple-card .card-brand > div > span {
  color: rgba(6, 17, 38, 0.54);
}

.fs-mark {
  position: relative;
  display: inline-grid;
  width: 37px;
  height: 31px;
  transform: skewX(-16deg);
}

.fs-mark i {
  display: block;
  width: 30px;
  height: 8px;
  background: linear-gradient(90deg, #ff3a32, #d80d11);
  clip-path: polygon(18% 0, 100% 0, 72% 100%, 0 100%);
}

.fs-mark i:nth-child(2) {
  width: 24px;
  margin-left: 6px;
}

.fs-mark i:nth-child(3) {
  width: 14px;
  margin-left: 3px;
}

.nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 122px;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.nav-item.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  color: #fff;
}

.nav-item[data-view="dtc"].active {
  background: linear-gradient(180deg, #ff4a26, #e21212);
}

svg.icon,
.primary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connection-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.segmented button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  box-shadow: none;
}

.segmented button.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  border-color: rgba(255, 106, 33, 0.7);
  background: linear-gradient(180deg, #ff8a35, #ff5a1c);
  color: #fff;
  box-shadow: 0 18px 42px rgba(255, 77, 25, 0.28);
}

.rail-status {
  justify-self: end;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
}

.rail-status strong,
.rail-status span {
  display: block;
}

.rail-status strong {
  font-size: 12px;
}

.rail-status span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd43b;
}

.dot.connected,
.dot.mini {
  background: #2edc86;
}

.mode-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view.active.simple-card {
  display: grid;
}

.mode-card {
  position: relative;
  height: calc(100vh - 96px);
  min-height: 900px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.mode-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  z-index: 4;
}

.simple-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 14px;
  padding: clamp(26px, 3vw, 44px);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(145deg, rgba(248, 251, 255, 0.94), rgba(238, 242, 248, 0.82));
}

.simple-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 248, 235, 0.58));
  z-index: 1;
}

.simple-card > * {
  position: relative;
  z-index: 3;
}

.simple-copy {
  margin-top: 22px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mode-pill.simple {
  border: 1px solid rgba(31, 120, 255, 0.52);
  color: #1766d8;
  background: rgba(255, 255, 255, 0.46);
}

.mode-pill.hot {
  margin-top: 26px;
  border: 1px solid rgba(255, 43, 36, 0.9);
  color: #ff392f;
  background: rgba(255, 43, 36, 0.08);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.simple-copy h2 {
  margin-top: 16px;
  font-size: clamp(54px, 5.1vw, 86px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
}

.enthusiast-top h2 {
  margin-top: 14px;
  font-size: clamp(46px, 3.6vw, 62px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
}

.simple-copy p {
  max-width: 560px;
  margin-top: 14px;
  color: #314057;
  font-size: clamp(19px, 1.3vw, 25px);
  line-height: 1.3;
}

.answer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 22px;
  align-items: center;
  margin-top: 4px;
  padding: 22px;
  border: 1px solid rgba(6, 17, 38, 0.1);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 80px rgba(6, 17, 38, 0.12);
  backdrop-filter: blur(24px) saturate(140%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(31, 120, 255, 0.18);
  border-radius: 999px;
  background: rgba(236, 244, 255, 0.9);
  color: #12213c;
  font-size: 12px;
  font-weight: 800;
}

.answer-card h3 {
  max-width: 440px;
  margin-top: 22px;
  font-size: clamp(36px, 3vw, 53px);
  line-height: 1;
  font-weight: 950;
}

.answer-card p {
  max-width: 430px;
  margin-top: 16px;
  color: #46566e;
  line-height: 1.45;
}

.answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary.inline,
.secondary.inline {
  min-width: 154px;
  padding: 0 18px;
}

.secondary.inline {
  border-color: rgba(31, 120, 255, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: #123b76;
}

.health-dial {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.ring {
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  border: 10px solid #e7ebf2;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    conic-gradient(rgba(6, 17, 38, 0.12) 0deg 360deg);
  box-shadow: inset 0 0 0 1px rgba(6, 17, 38, 0.09), 0 18px 42px rgba(6, 17, 38, 0.13);
}

.ring span {
  max-width: 112px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.health-dial small {
  max-width: 190px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.simple-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(6, 17, 38, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 50px rgba(6, 17, 38, 0.08);
}

.metric span {
  display: block;
  color: #536178;
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.simple-car {
  position: absolute;
  right: -10%;
  bottom: 9%;
  z-index: 2;
  width: min(110%, 1060px);
  max-width: none;
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.24));
}

.simple-cta {
  position: absolute;
  left: clamp(24px, 3vw, 44px);
  right: clamp(24px, 3vw, 44px);
  bottom: 24px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) auto repeat(3, minmax(96px, 0.6fr));
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(7, 11, 18, 0.82);
  color: #fff;
  backdrop-filter: blur(20px) saturate(130%);
}

.simple-cta strong {
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simple-cta button,
.alpha-strip button {
  border: 0;
  background: transparent;
  color: var(--orange);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none;
}

.simple-cta span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
}

.enthusiast-card {
  padding: clamp(22px, 2.5vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 78% 17%, rgba(255, 37, 31, 0.22), transparent 28%),
    linear-gradient(145deg, #030405, #0c0c0f 64%, #130405);
  color: #fff;
}

.enthusiast-hero-img {
  position: absolute;
  top: 5%;
  right: -8%;
  width: 86%;
  height: 45%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.84;
  filter: contrast(1.07) saturate(1.12);
}

.dark-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 86% 22%, transparent 0 18%, rgba(0, 0, 0, 0.26) 34%, rgba(0, 0, 0, 0.72) 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.94) 48%, rgba(0, 0, 0, 0.98));
}

.enthusiast-card > *:not(.enthusiast-hero-img):not(.dark-scrim) {
  position: relative;
  z-index: 3;
}

.enthusiast-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  min-height: 230px;
}

.card-brand.dark {
  color: #fff;
}

.enthusiast-top h2 {
  max-width: 720px;
  color: #f8f8f8;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.42);
}

.enthusiast-top em {
  color: var(--hot);
  font-style: normal;
}

.enthusiast-top p {
  max-width: 470px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.42;
}

.tach-card {
  align-self: start;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  width: 174px;
  height: 174px;
  margin-top: 70px;
  border: 1px solid rgba(255, 60, 45, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(10, 11, 15, 0.98) 0 52%, transparent 53%),
    repeating-conic-gradient(from -34deg, rgba(255, 255, 255, 0.7) 0deg 1.6deg, transparent 1.6deg 8deg),
    conic-gradient(from -120deg, rgba(255, 255, 255, 0.2), #ff2b24 72%, rgba(255, 43, 36, 0.05));
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.04), 0 0 40px rgba(255, 43, 36, 0.25);
}

.tach-card span,
.tach-card small {
  max-width: 118px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 12px;
}

.tach-card strong {
  font-size: 36px;
  line-height: 1;
}

.cockpit-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(270px, 1.08fr) minmax(220px, 0.9fr);
  gap: 12px;
}

.glass-panel {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 12, 16, 0.78);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px) saturate(140%);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-head h3 {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-head span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.quiet {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--hot);
  box-shadow: none;
  font-size: 12px;
}

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

.command-grid button {
  display: grid;
  align-content: space-between;
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-align: left;
}

.command-grid button span {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
}

.command-grid button strong {
  font-size: 11px;
}

.command-grid button.danger {
  grid-column: 1 / -1;
  border-color: rgba(255, 64, 48, 0.24);
  background: linear-gradient(145deg, rgba(255, 45, 30, 0.28), rgba(255, 45, 30, 0.08));
}

.console {
  display: none;
  min-height: 74px;
  max-height: 110px;
  margin: 10px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.46);
  color: rgba(255, 255, 255, 0.84);
  white-space: pre-wrap;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
}

.vehicle-visual {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #12080a, #07111f);
  background-size: 22px 22px, 22px 22px, auto;
}

.vehicle-visual img {
  position: absolute;
  right: -16%;
  bottom: -24%;
  width: 125%;
  height: 92%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.58;
  filter: saturate(1.2) contrast(1.05);
}

.device-node {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 3;
  min-width: 88px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 106, 33, 0.74);
  border-radius: 6px;
  background: rgba(50, 12, 10, 0.86);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(255, 64, 42, 0.18);
}

.can-drop {
  position: absolute;
  top: 72px;
  z-index: 4;
  width: 3px;
  height: 68px;
  left: calc(50% - 13px);
  background: #1f78ff;
  box-shadow: 0 0 16px rgba(31, 120, 255, 0.8);
}

.can-drop::after {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: inherit;
  transform: translateX(-50%);
}

.can-drop.orange {
  left: calc(50% + 13px);
  background: var(--orange);
  box-shadow: 0 0 16px rgba(255, 106, 33, 0.8);
}

.stack-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.stack-flow span {
  display: grid;
  min-height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(15, 22, 35, 0.84);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.bus-meters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 12px;
  margin-top: 10px;
}

.bus-meters label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.bus-meters strong {
  color: #fff;
}

meter {
  width: 100%;
  height: 8px;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hot), var(--orange));
}

.pill {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
}

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

.dtc-item {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.dtc-item strong,
.dtc-item span {
  display: block;
}

.dtc-item span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.live-stream {
  margin-top: 8px;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-grid div {
  position: relative;
  min-height: 58px;
  padding: 9px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-grid div:last-child {
  border-right: 0;
}

.stream-grid span,
.stream-grid small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  text-transform: uppercase;
}

.stream-grid strong {
  display: inline-block;
  margin-top: 7px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.stream-grid #busState,
.stream-grid #packetsSec {
  font-size: 20px;
}

.stream-grid small {
  display: inline-block;
  margin-left: 5px;
}

.stream-grid i {
  position: absolute;
  left: 16px;
  right: 28px;
  bottom: 9px;
  height: 12px;
  background:
    linear-gradient(135deg, transparent 0 22%, var(--hot) 22% 29%, transparent 29% 42%, var(--hot) 42% 50%, transparent 50% 64%, var(--hot) 64% 72%, transparent 72%);
  opacity: 0.9;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(13, 14, 18, 0.82);
}

.feature-strip div {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-strip div:last-child {
  border-right: 0;
}

.feature-strip span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.can-lab {
  display: none;
  margin-top: 12px;
}

canvas {
  display: block;
  width: 100%;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #170406;
}

.table-tools,
.filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

input {
  min-height: 34px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 7px 12px;
}

.filter input {
  width: 96px;
}

.table-wrap {
  max-height: 170px;
  margin-top: 10px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}

th {
  color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
}

td {
  color: rgba(255, 255, 255, 0.84);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: rgba(255, 43, 36, 0.16);
}

.frame-inspector {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
}

.frame-inspector span,
.frame-inspector dt {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.frame-inspector strong,
.frame-inspector dd {
  font-family: "Cascadia Mono", Consolas, monospace;
}

.frame-inspector strong {
  display: block;
  margin-top: 5px;
  color: #fff;
}

.frame-inspector dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.frame-inspector dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.82);
  overflow-wrap: anywhere;
  font-size: 12px;
}

.alpha-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 56px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 43, 36, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 43, 36, 0.2), transparent 54%),
    rgba(17, 10, 10, 0.78);
  text-align: center;
}

.alpha-strip span {
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.settings {
  display: none;
}

.view:not(.active) {
  display: none !important;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(7, 9, 14, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.toast span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.confirm-sheet {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #08090d;
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.confirm-sheet::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.confirm-sheet form {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.confirm-sheet p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1420px) {
  .mode-stage {
    grid-template-columns: 1fr;
  }

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

  .simple-card {
    min-height: 920px;
  }

  .enthusiast-hero-img {
    height: 370px;
  }
}

@media (max-width: 980px) {
  .product-shell {
    padding: 10px;
  }

  .app-chrome {
    position: relative;
    top: 0;
    grid-template-columns: 1fr;
  }

  .brand-lockup,
  .rail-status {
    justify-self: stretch;
  }

  .nav,
  .connection-cluster,
  .segmented {
    width: 100%;
  }

  .nav-item,
  .segmented button,
  .primary {
    flex: 1;
    min-width: 0;
  }

  .connection-cluster {
    flex-direction: column;
    align-items: stretch;
  }

  .mode-stage,
  .answer-card,
  .simple-grid,
  .enthusiast-top,
  .cockpit-grid,
  .stream-grid,
  .feature-strip,
  .frame-inspector,
  .frame-inspector dl,
  .simple-cta,
  .alpha-strip {
    grid-template-columns: 1fr;
  }

  .simple-card,
  .enthusiast-card {
    padding: 22px;
    border-radius: 20px;
  }

  .simple-card {
    min-height: 920px;
  }

  .simple-copy h2,
  .enthusiast-top h2 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .answer-card h3 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .health-dial {
    order: -1;
  }

  .simple-car {
    right: -54%;
    bottom: 5%;
    width: 170%;
  }

  .simple-cta {
    margin-top: 260px;
  }

  .enthusiast-top {
    min-height: 620px;
  }

  .tach-card {
    width: 168px;
    height: 168px;
    margin-top: 10px;
  }

  .enthusiast-hero-img {
    top: 230px;
    right: -42%;
    width: 150%;
    height: 360px;
  }

  .cockpit-grid {
    margin-top: 0;
  }

  .feature-strip div {
    min-height: 48px;
  }
}
