:root {
  color-scheme: light;
  --ink: #152233;
  --muted: #5d6978;
  --line: #d9e0e8;
  --panel: #ffffff;
  --page: #f4f7fb;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #d9f2ef;
  --warning: #a33b16;
  --shadow: 0 18px 50px rgba(21, 34, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(244, 247, 251, 0.92)),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
a.primary-action,
a.secondary-action {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.page {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 3px solid var(--accent);
  border-radius: 7px;
  box-shadow: inset 8px 0 0 var(--accent-soft);
}

.entry,
.dashboard {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.entry {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 48px 0 84px;
}

.entry-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 4.8vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.2);
}

.primary-action:hover {
  background: var(--accent-strong);
}

.secondary-action {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.secondary-action:hover {
  border-color: #b5c0cc;
}

.alert,
.setup-note {
  max-width: 620px;
  margin: 22px 0 0;
  line-height: 1.55;
}

.alert {
  color: var(--warning);
  font-weight: 700;
}

.setup-note {
  color: var(--muted);
}

code {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 5px;
  background: #ffffff;
}

.dashboard {
  padding: 48px 0 84px;
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard h1 {
  font-size: clamp(2.2rem, 3.8vw, 4.2rem);
}

.vehicle-card {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.vehicle-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.vehicle-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.vehicle-facts div {
  min-width: 0;
  padding: 18px;
  background: #ffffff;
}

.vehicle-facts dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.vehicle-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

@media (max-width: 720px) {
  .topbar,
  .entry,
  .dashboard {
    width: min(100% - 24px, 1080px);
  }

  .dashboard-heading {
    display: grid;
  }

  .secondary-action {
    width: 100%;
  }

  .vehicle-facts {
    grid-template-columns: 1fr;
  }
}
