:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h2 {
  font-size: 1.2rem;
}

.lede {
  max-width: 680px;
  color: #526079;
  font-size: 1.1rem;
  line-height: 1.6;
}

.panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #dce4f2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(20, 34, 61, 0.08);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 150px 180px;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #374151;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  color: #111827;
  font: inherit;
}

textarea {
  resize: vertical;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.16);
}

.actions,
.section-title,
.route-card,
.route-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title,
.route-card {
  justify-content: space-between;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

button:hover {
  filter: brightness(0.95);
}

.secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.danger {
  background: #dc2626;
}

.message {
  min-height: 24px;
  color: #047857;
  font-weight: 700;
}

.message.error {
  color: #dc2626;
}

.routes {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.route-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.route-path {
  color: #1d4ed8;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.route-path:hover {
  text-decoration: underline;
}

.route-meta,
.empty {
  margin: 6px 0 0;
  color: #64748b;
}

@media (max-width: 760px) {
  .grid,
  .hero {
    display: block;
  }

  .route-card,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-actions {
    flex-wrap: wrap;
  }
}
