:root {
  --bg: #0d1117;
  --bg-2: #111722;
  --panel-dark: rgba(14, 20, 29, 0.82);
  --panel-mid: rgba(19, 27, 38, 0.9);
  --panel-light: #eef3f7;
  --panel-light-2: #f8fbfd;
  --ink: #10202c;
  --ink-soft: #526170;
  --ink-faint: #8792a1;
  --line: rgba(17, 35, 50, 0.1);
  --line-strong: rgba(17, 35, 50, 0.16);
  --cream: #fcf4e7;
  --teal: #11827a;
  --teal-deep: #0d655f;
  --amber: #cc8d2a;
  --blue: #4f85ff;
  --safe: #12715f;
  --risky: #a66318;
  --unknown: #536273;
  --invalid: #b54d3d;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-xl: 0 26px 70px rgba(3, 8, 14, 0.34);
  --shadow-lg: 0 18px 42px rgba(9, 17, 26, 0.16);
  --shadow-md: 0 12px 24px rgba(12, 18, 28, 0.08);
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 10%, rgba(79, 133, 255, 0.16), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(204, 141, 42, 0.15), transparent 24%),
    radial-gradient(circle at 68% 74%, rgba(17, 130, 122, 0.18), transparent 30%),
    linear-gradient(180deg, #10141b 0%, #0a0f15 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(10, 22, 34, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 13px 15px;
  outline: none;
  transition:
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

input::placeholder,
textarea::placeholder {
  color: #8c98a5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(17, 130, 122, 0.4);
  box-shadow: 0 0 0 4px rgba(17, 130, 122, 0.12);
}

textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.65;
}

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.beam {
  position: absolute;
  border-radius: 999px;
  opacity: 0.88;
  animation: drift 22s ease-in-out infinite alternate;
}

.beam-a {
  top: -6rem;
  left: -7rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(79, 133, 255, 0.18), transparent 70%);
}

.beam-b {
  top: 6rem;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(17, 130, 122, 0.16), transparent 68%);
}

.beam-c {
  bottom: -10rem;
  left: 30%;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, rgba(204, 141, 42, 0.15), transparent 72%);
}

.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  mix-blend-mode: soft-light;
}

.dashboard-shell {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  width: min(1480px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 26px;
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.brand-lockup,
.sidebar-card,
.hero-panel,
.panel {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.brand-lockup,
.sidebar-card {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(15, 23, 34, 0.96), rgba(11, 18, 27, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #edf6ff;
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(204, 141, 42, 0.98), rgba(17, 130, 122, 0.96));
  color: white;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 32px rgba(7, 18, 30, 0.28);
}

.eyebrow,
.section-kicker,
.nav-label,
.upload-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(237, 246, 255, 0.72);
}

.brand-lockup h1,
.hero-copy h2,
.panel-head h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

.brand-lockup h1 {
  margin-top: 8px;
  font-size: 2rem;
  line-height: 0.98;
}

.nav-stack {
  display: grid;
  gap: 12px;
}

.nav-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  text-decoration: none;
  color: #edf6ff;
  background:
    linear-gradient(180deg, rgba(20, 29, 41, 0.94), rgba(14, 22, 32, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-card:hover,
.nav-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(79, 133, 255, 0.26);
  box-shadow: 0 24px 44px rgba(8, 16, 24, 0.24);
  outline: none;
}

.nav-card strong {
  font-size: 1rem;
}

.nav-card small,
.sidebar-copy {
  color: rgba(237, 246, 255, 0.66);
  line-height: 1.6;
}

.section-kicker,
.nav-label {
  color: #86d8d2;
}

.status-cluster {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.status-pill.accent {
  background: rgba(17, 130, 122, 0.12);
}

.status-pill.ready::before,
.status-pill.healthy::before {
  background: #4dd39b;
  box-shadow: 0 0 0 5px rgba(77, 211, 155, 0.12);
}

.status-pill.running::before,
.status-pill.checking::before {
  background: #e4aa53;
  box-shadow: 0 0 0 5px rgba(228, 170, 83, 0.12);
}

.status-pill.error::before {
  background: #e06759;
  box-shadow: 0 0 0 5px rgba(224, 103, 89, 0.12);
}

.sidebar-card strong {
  margin-top: 10px;
  line-height: 1.5;
}

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

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.95fr);
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 246, 233, 0.96), rgba(230, 240, 245, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-copy h2 {
  margin-top: 10px;
  max-width: 11ch;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  line-height: 0.95;
  color: #10202c;
}

.lede,
.panel-copy,
.import-summary,
.finder-summary {
  line-height: 1.7;
  color: var(--ink-soft);
}

.lede {
  max-width: 64ch;
  margin: 16px 0 0;
  font-size: 1rem;
}

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

.panel,
.metric-card {
  background:
    linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(237, 243, 247, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.metric-card {
  padding: 18px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.metric-card span,
.micro-stat span {
  display: block;
  color: var(--ink-faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-card strong,
.micro-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
}

.panel {
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.command-panel {
  grid-column: 1;
  grid-row: 1;
}

.finder-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.single-panel {
  grid-column: 1;
  grid-row: 2;
}

.results-panel {
  grid-column: 1 / -1;
  grid-row: 3;
}

.panel-head {
  padding: 24px 24px 0;
}

.panel-head h3 {
  margin-top: 8px;
  font-size: 1.85rem;
  line-height: 1;
}

.panel-copy {
  margin: 10px 0 0;
}

.stack-form {
  display: grid;
  gap: 16px;
  padding: 18px 24px 24px;
}

.upload-drop {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(233, 243, 247, 0.9));
  border: 1px dashed rgba(17, 130, 122, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.upload-drop:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 130, 122, 0.5);
}

.upload-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-kicker {
  color: var(--teal);
}

.upload-drop strong {
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.upload-drop small {
  color: var(--ink-soft);
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.compact-field {
  max-width: 144px;
}

.wide-field {
  max-width: none;
}

.control-row,
.split-fields,
.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.split-fields > * {
  flex: 1 1 180px;
}

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

.micro-stat,
.import-summary,
.finder-summary {
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(237, 243, 247, 0.88));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 700;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(17, 130, 122, 0.14);
}

.primary-button {
  color: #f7fffd;
  background:
    linear-gradient(180deg, #159289 0%, #0f6c65 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 24px rgba(15, 108, 101, 0.2);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border: 1px solid rgba(10, 22, 34, 0.08);
  box-shadow: 0 10px 22px rgba(10, 17, 26, 0.06);
}

.finder-table-wrap,
.table-wrap {
  margin: 0 24px 24px;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(253, 253, 253, 0.92), rgba(240, 245, 248, 0.92));
  box-shadow: var(--shadow-md);
}

.finder-summary {
  margin: 0 24px 16px;
}

.finder-table,
.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.finder-table th,
.results-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 15px;
  background: rgba(248, 251, 253, 0.96);
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.finder-table td,
.results-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(17, 35, 50, 0.08);
  vertical-align: top;
  line-height: 1.5;
}

.finder-table tbody tr:hover td,
.results-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.5);
}

.results-table {
  min-width: 980px;
}

.finder-table {
  min-width: 620px;
}

.empty-row td {
  text-align: center;
  color: var(--ink-faint);
  padding: 24px 16px;
}

.email-cell,
.candidate-cell {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.result-cell {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.pill-note {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.tone-safe {
  color: var(--safe);
  background: rgba(18, 113, 95, 0.1);
  border-color: rgba(18, 113, 95, 0.14);
}

.tone-risky {
  color: var(--risky);
  background: rgba(166, 99, 24, 0.1);
  border-color: rgba(166, 99, 24, 0.14);
}

.tone-unknown {
  color: var(--unknown);
  background: rgba(83, 98, 115, 0.1);
  border-color: rgba(83, 98, 115, 0.14);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(18px, -16px, 0) scale(1.05);
  }
}

@media (max-width: 1220px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .brand-lockup {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1040px) {
  .hero-panel,
  .board-grid {
    grid-template-columns: 1fr;
  }

  .command-panel,
  .finder-panel,
  .single-panel,
  .results-panel {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    width: min(100vw, calc(100vw - 16px));
    padding-top: 8px;
  }

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

  .hero-panel,
  .brand-lockup,
  .sidebar-card,
  .panel {
    border-radius: 24px;
  }

  .hero-panel {
    padding: 18px;
  }

  .panel-head,
  .stack-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .finder-summary,
  .finder-table-wrap,
  .table-wrap {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hero-copy h2 {
    font-size: 2.7rem;
  }

  .hero-metrics,
  .micro-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero-metrics,
  .micro-stats {
    grid-template-columns: 1fr;
  }

  .action-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
