:root {
  --bg-1: #081823;
  --bg-2: #14384f;
  --panel: rgba(9, 21, 34, 0.88);
  --panel-border: rgba(145, 220, 255, 0.2);
  --text: #e9f7ff;
  --muted: #a3c8db;
  --accent: #54d7ff;
  --critical: #ff6666;
  --high: #ffac4a;
  --medium: #ffe479;
  --low: #69e8ac;
  --ok: #64d8a8;
  --warn: #ff8b7f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 8% 15%, #105274 0%, var(--bg-1) 45%),
              radial-gradient(circle at 95% 82%, #112f43 0%, var(--bg-2) 52%);
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(84, 215, 255, 0.08) 95%),
                    linear-gradient(90deg, transparent 95%, rgba(84, 215, 255, 0.08) 95%);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.45;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(3px);
  box-shadow: 0 11px 26px rgba(0, 0, 0, 0.27);
  animation: rise 0.4s ease;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

h1 { margin: 0; font-size: clamp(1.7rem, 2.9vw, 2.8rem); letter-spacing: 0.03em; }
h2 { margin-top: 0; margin-bottom: 10px; }
h3 { margin: 10px 0; }

.eyebrow {
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  margin: 0 0 8px;
}

.sub { color: var(--muted); max-width: 720px; }
.actions { text-align: right; min-width: 270px; }

button {
  border: 0;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: #063044;
  background: linear-gradient(90deg, #59dbff, #9cffca);
}

button:hover { transform: translateY(-1px); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: rgba(0, 0, 0, 0.24);
  border-radius: 10px;
  padding: 12px;
}

.stat-label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { margin-top: 8px; font-size: 1.32rem; font-weight: 700; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
}

.corridor {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.risk-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.risk-critical { background: rgba(255, 102, 102, 0.2); color: var(--critical); }
.risk-high { background: rgba(255, 172, 74, 0.2); color: var(--high); }
.risk-medium { background: rgba(255, 228, 121, 0.2); color: var(--medium); }
.risk-low { background: rgba(105, 232, 172, 0.2); color: var(--low); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; }

.sev-critical { color: var(--critical); }
.sev-high { color: var(--high); }
.sev-medium { color: var(--medium); }
.sev-low { color: var(--low); }

a { color: #9de2ff; }
a:hover { color: #ccf0ff; }

.plan-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plan-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.plan-form input,
.plan-form select {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  padding: 10px;
  font: inherit;
}

.plan-form button {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.plan-result .decision {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.plan-result .decision.yes {
  border-color: rgba(100, 216, 168, 0.45);
  background: rgba(38, 82, 60, 0.25);
}

.plan-result .decision.no {
  border-color: rgba(255, 139, 127, 0.45);
  background: rgba(94, 42, 38, 0.24);
}

.options {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.option {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.option.ok { border-color: rgba(100, 216, 168, 0.35); }
.option.warn { border-color: rgba(255, 139, 127, 0.35); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .hero { flex-direction: column; }
  .actions { text-align: left; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .plan-form { grid-template-columns: 1fr; }
}
