:root {
  --ink: #e8f4ff;
  --muted: #b3c5d6;
  --bg: #081522;
  --panel: #10263a;
  --line: #28445d;
  --cyan: #00d9ef;
  --cyan-soft: #0f3f51;
  --orange: #ff9c32;
  --danger: #ffbdaf;
  --success: #6ee7b7;
  --content-width: 760px;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 20% 0, #123f58 0, var(--bg) 43rem);
  color: var(--ink);
  font: 17px/1.55 Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--cyan); }

.site-header, .content, footer {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
}

.brand { color: var(--ink); font-size: 1.12rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand small { color: var(--muted); font-weight: 500; }
.brand-mark { display: inline-grid; width: 1.65rem; height: 1.65rem; margin-right: .45rem; place-items: center; border-radius: .5rem; background: var(--cyan); color: #00212b; }
.admin-nav { display: flex; gap: .9rem; font-size: .92rem; }

.content { padding: 1.75rem 0 3.5rem; }
footer { padding: 1.25rem 0 2.5rem; color: var(--muted); font-size: .9rem; }

.hero { padding: 2.3rem 0 2.4rem; }
.eyebrow { margin: 0 0 .65rem; color: var(--cyan); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { max-width: 13ch; margin: .1rem 0 1rem; font-size: clamp(2.3rem, 7vw, 3.75rem); line-height: 1.06; letter-spacing: -.04em; }
h2 { margin: 0; font-size: 1.23rem; line-height: 1.3; }
.lead { max-width: 39rem; margin: 0; color: var(--muted); font-size: 1.18rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; margin-top: 1.45rem; border: 0; border-radius: .75rem; background: var(--cyan); color: #00212b; cursor: pointer; font: inherit; font-weight: 800; padding: .75rem 1.1rem; text-decoration: none; }
.button:hover { background: #65e7f4; }
.button.secondary { margin-top: 0; border: 1px solid #48859a; background: transparent; color: var(--cyan); }
.fineprint, small { color: var(--muted); font-size: .86rem; }
.hero .fineprint { max-width: 36rem; margin: .8rem 0 0; }

.panel, .form-card {
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #122a3e, #0c1e30);
  box-shadow: 0 1rem 3rem #0004;
  padding: clamp(1.2rem, 4vw, 1.65rem);
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid > div { display: grid; align-content: start; gap: .45rem; }
.grid p { margin: 0; color: var(--muted); }
.step { display: inline-grid; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan); font-weight: 800; }

.form-card { max-width: 660px; margin-inline: auto; }
.centered { padding: 3.2rem 1.5rem; text-align: center; }
.centered h1 { max-width: none; }
.field { display: grid; gap: .42rem; margin: 1.35rem 0; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #426078; border-radius: .65rem; background: #091a2a; color: var(--ink); font: inherit; padding: .72rem; }
.field input[type=checkbox] { width: auto; margin-right: .55rem; accent-color: var(--cyan); }
.field input[type=file] { padding: .5rem; }
.field select { min-height: 2.9rem; }
.has-error input, .has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: .9rem; }
.notice { margin: 0 0 1.25rem; border-left: 4px solid var(--cyan); border-radius: .35rem; background: #0a2b37; padding: .9rem 1rem; }
.notice.success { border-color: var(--success); background: #10332d; }

.journey { display: grid; gap: .25rem; margin: 1.6rem 0; padding: 0; list-style: none; }
.journey li { display: grid; grid-template-columns: 5rem 1fr auto; align-items: center; gap: .85rem; border-top: 1px solid var(--line); padding: 1.1rem 0; }
.journey li:first-child { border-top: 0; }
.journey em { color: var(--muted); font-size: .9rem; font-style: normal; }
.journey .done strong { color: var(--success); }
.quiet { margin-top: 1.6rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.upload-note { margin: 1.6rem 0; border: 1px dashed #497189; border-radius: .8rem; background: #0a1b2b; padding: 1.1rem; }
.upload-note h2 { margin-bottom: .45rem; }
.upload-note p { margin: .35rem 0; color: var(--muted); }
.legal h1 { max-width: none; font-size: 2.15rem; }
.legal h2 { margin-top: 1.75rem; }

.dashboard-hero { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0 1.75rem; }
.dashboard-hero h1 { max-width: none; margin-bottom: .65rem; font-size: clamp(2.25rem, 6vw, 3.3rem); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.25rem; }
.metric-card { display: grid; gap: .25rem; min-height: 9.5rem; border: 1px solid var(--line); border-radius: 1rem; background: #0d2234; padding: 1.15rem; }
.metric-card span, .metric-card small { color: var(--muted); }
.metric-card strong { color: var(--cyan); font-size: 2.35rem; line-height: 1.08; }
.metric-card.accent strong { color: var(--orange); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.dashboard-panel { margin: 0; }
.dashboard-panel.wide { grid-column: 1 / -1; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading .eyebrow { margin-bottom: .25rem; }
.people-list { display: grid; margin: 0; padding: 0; list-style: none; }
.people-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: .9rem 0; }
.people-list strong, .people-list span { display: block; }
.people-list span { color: var(--muted); font-size: .9rem; }
.people-list a { font-size: .92rem; font-weight: 700; white-space: nowrap; }
.empty-state { margin: .5rem 0; color: var(--muted); }
.admin-help { margin-top: 1.25rem; }
.admin-help ol { margin: .8rem 0 0; padding-left: 1.35rem; }
.admin-help li + li { margin-top: .5rem; }

@media (max-width: 720px) {
  .grid, .metric-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-panel.wide { grid-column: auto; }
  .dashboard-hero { align-items: start; flex-direction: column; }
  .dashboard-hero .button { width: 100%; }
}

@media (max-width: 520px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .content { padding-top: 1rem; }
  h1 { font-size: 2.45rem; }
  .journey li { grid-template-columns: 4.25rem 1fr; align-items: start; }
  .journey li a, .journey li em { grid-column: 2; }
  .people-list li { align-items: flex-start; flex-direction: column; gap: .35rem; }
}
