:root {
  --bg: #071019;
  --bg2: #0f1f33;
  --surface: rgba(12, 24, 39, 0.85);
  --surface-strong: rgba(16, 34, 54, 0.92);
  --line: rgba(128, 171, 224, 0.33);
  --text: #ecf4ff;
  --muted: #9eb5d2;
  --cyan: #72d6ff;
  --lime: #9df28b;
  --amber: #ffd989;
  --rose: #ff9f9f;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, #233e62 0%, transparent 36%),
    radial-gradient(circle at 90% 10%, #1f5f60 0%, transparent 40%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg2) 100%);
}

.mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 28px 28px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 80%);
}

.shell {
  width: min(1280px, 95vw);
  margin: 20px auto 40px;
  display: grid;
  gap: 14px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.top-card,
.panel,
.tile {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.top-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}

.tag,
.kicker,
.mono {
  font-family: "IBM Plex Mono", monospace;
}

.tag {
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

h1 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}

.subtitle {
  margin-top: 8px;
  color: #c8daf7;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid rgba(114, 214, 255, 0.44);
  background: rgba(114, 214, 255, 0.16);
  color: #daf6ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.hidden {
  display: none !important;
}

.panel {
  padding: 16px;
}

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

.tile {
  padding: 14px;
  background: var(--surface-strong);
}

.kicker {
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
}

.metric {
  margin-top: 9px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan);
}

.metric.small {
  font-size: 1rem;
  line-height: 1.4;
  color: #d8e8ff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.action-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.split-meta {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

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

label {
  font-size: 0.9rem;
  color: #d6e8ff;
}

.form-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.form-grid.compact {
  max-width: 360px;
}

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

.checks {
  display: grid;
  gap: 5px;
  align-content: center;
}

.board-checks {
  grid-template-columns: repeat(3, minmax(0, auto));
  align-items: center;
  justify-content: start;
  column-gap: 14px;
}

input,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(159, 194, 236, 0.35);
  background: rgba(8, 16, 27, 0.82);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: "IBM Plex Mono", monospace;
  width: 100%;
}

textarea {
  resize: vertical;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn.solid {
  background: linear-gradient(135deg, #7fe0ff 0%, #b9ffdb 100%);
  color: #053447;
}

.btn.warm {
  background: linear-gradient(135deg, #ffd58a 0%, #ffaf85 100%);
  color: #4f2500;
}

.btn.ghost {
  border: 1px solid rgba(162, 190, 224, 0.48);
  color: #dcecff;
  background: rgba(143, 174, 212, 0.14);
}

.btn.tiny {
  padding: 6px 8px;
  font-size: 0.74rem;
}

.muted {
  color: var(--muted);
}

.error {
  color: var(--rose);
  margin-top: 10px;
  font-family: "IBM Plex Mono", monospace;
}

.table-wrap {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid rgba(160, 193, 231, 0.25);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  background: rgba(8, 16, 29, 0.8);
}

thead {
  background: rgba(120, 190, 255, 0.16);
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(159, 193, 236, 0.2);
  font-size: 0.88rem;
}

.status-pill {
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 4px 8px;
  font-family: "IBM Plex Mono", monospace;
}

.status-pill.applied,
.status-pill.submitted,
.status-pill.submitted_unverified {
  color: #003817;
  background: rgba(157, 242, 139, 0.9);
}

.status-pill.failed,
.status-pill.screened_out {
  color: #3c0707;
  background: rgba(255, 159, 159, 0.9);
}

.status-pill.qualified,
.status-pill.new,
.status-pill.not_applied {
  color: #032f42;
  background: rgba(114, 214, 255, 0.9);
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .top-actions {
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

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