:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #eef3ff;
  background: #0a0c12;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(119, 92, 255, .18), transparent 35%),
    radial-gradient(circle at top left, rgba(38, 208, 206, .12), transparent 30%),
    #0a0c12;
}
button, input, textarea, select { font: inherit; }
button {
  border: 0;
  border-radius: 12px;
  padding: .75rem 1rem;
  background: #7b67ff;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: #23283a; }
button.danger { background: #b73b59; }
button.success { background: #147d66; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 56px; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.05em; }
.hero p { max-width: 680px; color: #aeb7cc; }
.eyebrow { letter-spacing: .18em; font-size: .72rem; color: #7be0d3 !important; font-weight: 800; }
.status-pill, .tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #31384d;
  border-radius: 999px;
  padding: .45rem .75rem;
  background: rgba(19, 23, 34, .8);
  color: #b9c3da;
  white-space: nowrap;
}
.status-pill.ok { border-color: #2d8e78; color: #8ff0d6; }
.status-pill.bad { border-color: #a5445d; color: #ff9bb4; }
.panel {
  border: 1px solid #252a3a;
  border-radius: 20px;
  padding: 20px;
  background: rgba(15, 18, 27, .88);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
  margin-bottom: 18px;
}
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.connection-grid { display: grid; grid-template-columns: 2fr 2fr 1fr auto; gap: 14px; }
label { display: grid; gap: 8px; color: #b8c1d6; font-size: .88rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid #30364a;
  border-radius: 11px;
  padding: .72rem .78rem;
  color: #f4f7ff;
  background: #0d1018;
}
textarea { resize: vertical; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.align-end { align-items: end; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.panel-title h2 { margin: 0; font-size: 1.1rem; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: .75rem 0; }
.switch-row input { width: auto; transform: scale(1.25); }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.stat { border: 1px solid #252a3a; border-radius: 16px; padding: 16px; background: rgba(15,18,27,.78); }
.stat strong { display: block; font-size: 1.7rem; margin-top: 6px; }
.stat span { color: #939db4; font-size: .8rem; }
.stack { display: grid; gap: 10px; }
.card { border: 1px solid #282e40; border-radius: 14px; padding: 14px; background: #0d1018; }
.card p { margin: .4rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; color: #8f9ab1; font-size: .78rem; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.card-actions button { padding: .5rem .72rem; font-size: .8rem; }
.risk-low { color: #7be0d3; }
.risk-medium { color: #f8c96b; }
.risk-high { color: #ff8aa6; }
.empty, .muted { color: #8993aa; }
footer { display: flex; justify-content: space-between; gap: 20px; color: #727d94; font-size: .78rem; padding: 12px 4px; }
@media (max-width: 880px) {
  .grid.two, .stats, .connection-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; }
  .align-end { align-items: stretch; }
}
