:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.grid { display: grid; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-8 { padding: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }

.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.border { border-width: 1px; border-style: solid; }
.border-slate-700 { border-color: rgba(71, 85, 105, 0.65); }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.inline-block { display: inline-block; }

.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-emerald-300 { color: #6ee7b7; }
.text-amber-300 { color: #fcd34d; }

.bg-navy { background-color: #0b1220; }
.bg-slate-900\/70 { background-color: rgba(15, 23, 42, 0.7); }

@media (min-width: 768px) {
  .md\:p-6 { padding: 1.5rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:w-auto { width: auto; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:justify-between { justify-content: space-between; }
  .md\:items-center { align-items: center; }
  #costKpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .max-w-7xl { grid-template-columns: 280px 1fr; }
  #step-1 .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #documentsPanel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  #routeCards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #costKpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.panel {
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(71, 85, 105, 0.6);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
}

.step-marker {
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #94a3b8;
  transition: all 220ms ease;
}

.step-marker.active {
  border-color: rgba(96, 165, 250, 0.6);
  color: #e2e8f0;
  background: rgba(30, 58, 138, 0.22);
}

.step-marker.complete {
  border-color: rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
}

.status-badge,
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(100, 116, 139, 0.6);
  border-radius: 999px;
  padding: 5px 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
}

.workflow-step {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: all 240ms ease;
}

.workflow-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
}

.input {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(71, 85, 105, 0.8);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  padding: 0.62rem 0.75rem;
  transition: border-color 180ms ease;
}

.input:focus {
  border-color: rgba(96, 165, 250, 0.9);
  outline: none;
}

.input.invalid {
  border-color: rgba(248, 113, 113, 0.9);
}

.primary-btn,
.secondary-btn {
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 200ms ease;
}

.primary-btn {
  background: linear-gradient(120deg, #2563eb, #1d4ed8);
  color: #eff6ff;
  padding: 0.65rem 1rem;
}

.primary-btn:hover {
  filter: brightness(1.07);
}

.secondary-btn {
  border: 1px solid rgba(100, 116, 139, 0.75);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  padding: 0.58rem 0.95rem;
}

.secondary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.kpi {
  border-radius: 0.75rem;
  border: 1px solid rgba(71, 85, 105, 0.65);
  background: rgba(2, 6, 23, 0.55);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.kpi span {
  color: #94a3b8;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpi strong {
  font-size: 1rem;
}

.indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.dot-live { background: #34d399; }
.dot-review { background: #60a5fa; }
.dot-risk { background: #f59e0b; }
