:root {
  color-scheme: light;
  --ink: #18222f;
  --muted: #647181;
  --line: #d9e1ea;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --green: #1f8a70;
  --blue: #2563eb;
  --amber: #b7791f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 32px;
  align-items: center;
  min-height: 280px;
}

.eyebrow,
.summary,
.metrics span,
.deals header p,
.empty {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.summary {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

#status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.route-map {
  width: 100%;
  max-height: 260px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 28px;
}

.metrics article,
.deal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metrics article {
  padding: 16px;
}

.metrics span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.metrics strong {
  font-size: 1.15rem;
}

.deals header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px;
}

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

.deal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
}

.route {
  font-weight: 800;
}

.details {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.score {
  min-width: 82px;
  text-align: right;
  font-weight: 800;
}

.score span {
  display: block;
  color: var(--green);
  font-size: 1.6rem;
}

.empty {
  padding: 24px 0;
}

@media (max-width: 720px) {
  .hero,
  .metrics,
  .deal {
    grid-template-columns: 1fr;
  }

  .route-map {
    max-width: 320px;
  }

  .score {
    text-align: left;
  }
}
