:root { color-scheme: dark; }

body {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    #020617;
}

/* Cards */
.bp-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 1rem;
}

/* Step rail buttons */
.step-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.82rem;
  color: #94a3b8;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.15s ease;
  cursor: pointer;
  text-align: left;
}
.step-btn:hover { color: #e2e8f0; background: rgba(30, 41, 59, 0.6); }
.step-btn.active { color: #67e8f9; background: rgba(8, 145, 178, 0.12); border-color: rgba(34, 211, 238, 0.35); }
.step-btn.done .step-idx { background: #0891b2; color: #041016; border-color: #0891b2; }
.step-idx {
  width: 1.4rem; height: 1.4rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; font-family: 'JetBrains Mono', monospace;
  border: 1px solid #334155; color: #94a3b8; background: #0b1220; flex: 0 0 auto;
}
.step-btn.active .step-idx { border-color: #22d3ee; color: #22d3ee; }

/* Selectable option chips / cards */
.opt {
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  transition: all 0.15s ease;
  cursor: pointer;
}
.opt:hover { border-color: rgba(34, 211, 238, 0.5); background: rgba(8, 145, 178, 0.08); }
.opt.sel { border-color: #22d3ee; background: rgba(8, 145, 178, 0.15); box-shadow: 0 0 0 1px rgba(34,211,238,0.3) inset; }
.opt.sel .opt-check { opacity: 1; }
.opt-check { opacity: 0; color: #22d3ee; transition: opacity 0.15s ease; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem;
  border: 1px solid rgba(51,65,85,0.9); color: #cbd5e1; background: rgba(15,23,42,0.6);
}
.pill.cyan { border-color: rgba(34,211,238,0.4); color: #67e8f9; background: rgba(8,145,178,0.12); }
.pill.amber { border-color: rgba(245,158,11,0.4); color: #fcd34d; background: rgba(180,83,9,0.12); }
.pill.rose { border-color: rgba(244,63,94,0.4); color: #fda4af; background: rgba(159,18,57,0.12); }
.pill.emerald { border-color: rgba(16,185,129,0.4); color: #6ee7b7; background: rgba(6,95,70,0.12); }

/* Range sliders */
input[type=range] { accent-color: #22d3ee; }

/* Topology canvas */
.topo-node { cursor: pointer; transition: filter 0.15s ease; }
.topo-node:hover { filter: brightness(1.25); }
.topo-node.active .node-box { stroke: #22d3ee; stroke-width: 2.5; }
.node-label { font: 600 12px 'Inter', sans-serif; fill: #e2e8f0; }
.node-sub { font: 500 10px 'JetBrains Mono', monospace; fill: #7dd3fc; }
.node-role { font: 500 9px 'Inter', sans-serif; fill: #94a3b8; }
.link-label { font: 600 9.5px 'JetBrains Mono', monospace; fill: #a3b2c7; }
.tier-label { font: 700 9px 'Inter', sans-serif; fill: #64748b; letter-spacing: 0.09em; }

/* Scorecard bars */
.bar-track { background: rgba(30,41,59,0.9); border-radius: 999px; overflow: hidden; }
.bar-fill { border-radius: 999px; transition: width 0.4s ease; }

/* Print / export */
@media print {
  header, #stepRail, #railProgress, #btnBack, #btnNext, footer, .no-print { display: none !important; }
  body { background: #fff !important; color: #0f172a !important; }
  .bp-card { background: #fff !important; border-color: #cbd5e1 !important; }
  .print-only { display: block !important; }
  #briefBody svg { max-width: 100% !important; height: auto !important; page-break-inside: avoid; }
  #briefBody .mb-4 { page-break-inside: avoid; }
  .bp-in { animation: none !important; }
}
.print-only { display: none; }

/* Fade-in for step transitions */
@keyframes bpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bp-in { animation: bpIn 0.25s ease; }

/* Thin scrollbars */
*::-webkit-scrollbar { height: 8px; width: 8px; }
*::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 999px; }
