:root {
  --bg-1: #0a0b0d;
  --bg-2: #0f1114;
  --bg-3: #171b20;
  --ink: #e8eaee;
  --muted: rgba(232, 234, 238, 0.6);
  --muted-2: rgba(232, 234, 238, 0.36);
  --accent: #7df9ff;
  --accent-2: #ff5f56;
  --panel: rgba(12, 14, 16, 0.92);
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  --radius: 8px;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  color: var(--ink);
  font-family: var(--font-body);
}

.bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(520px 360px at 85% 12%, rgba(125, 249, 255, 0.12), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  z-index: -2;
}

.grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(800px 500px at 20% 90%, rgba(0, 0, 0, 0.6), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 26px 8vw 14px;
  gap: 24px;
  border-bottom: 1px solid var(--stroke);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

h1 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.4px;
}

.sub {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(8, 9, 11, 0.85);
  border: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: var(--font-mono);
}

.chip--pulse::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(125, 249, 255, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 249, 255, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(125, 249, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 249, 255, 0); }
}

.layout {
  display: grid;
  gap: 20px;
  padding: 12px 8vw 80px;
}

.layout--split {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
}

.col {
  display: grid;
  gap: 20px;
}

.col--left {
  position: sticky;
  top: 16px;
}

.col--main {
  display: grid;
  gap: 20px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
  pointer-events: none;
}

.panel--wide {
  grid-column: span 2;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel__head h2 {
  margin: 0;
  font-size: 18px;
}

.panel__tag {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(125, 249, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(125, 249, 255, 0.2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 7, 9, 0.9);
  color: var(--ink);
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(125, 249, 255, 0.18);
}

.field--area {
  min-height: 90px;
  resize: vertical;
}

.field--small {
  max-width: 140px;
}

.field--mit {
  border-color: rgba(255, 95, 86, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 95, 86, 0.15);
}

.field--alert {
  border-color: rgba(255, 95, 86, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 95, 86, 0.2);
}

.mit {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 95, 86, 0.08);
  border: 1px solid rgba(255, 95, 86, 0.18);
  display: grid;
  gap: 10px;
}

.mit__label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-family: var(--font-mono);
}

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

.label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--muted-2);
}

.range {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.range label {
  font-size: 12px;
  color: var(--muted);
}

.range__value {
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.checklist {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.checklist--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checklist input {
  margin-right: 8px;
}

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 200ms ease;
}

.progress__meta {
  font-size: 12px;
  color: var(--muted);
}

.tier {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
  font-family: var(--font-mono);
}

.carry {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(125, 249, 255, 0.18);
  background: rgba(8, 9, 11, 0.65);
}

.carry__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  border-radius: 8px;
}

.btn--small {
  justify-self: start;
  font-size: 12px;
}

.metric {
  display: flex;
  gap: 12px;
  align-items: center;
}

.metric--wide {
  flex-direction: column;
  align-items: flex-start;
}

.metric__label {
  min-width: 90px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-family: var(--font-mono);
}

.hint {
  font-size: 12px;
  color: rgba(255, 95, 86, 0.9);
  display: none;
}

.hint--visible {
  display: block;
}

.stack {
  display: grid;
  gap: 10px;
}

.stack--two {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .layout--split {
    grid-template-columns: 1fr;
  }

  .col--left {
    position: static;
  }

  .stack--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .top {
    flex-direction: column;
  }

  .checklist--grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
