@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/playfair-display-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/playfair-display-latin-wght-italic.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #1a1a1a;
  --panel: #202020;
  --input: #151515;
  --line: #363636;
  --text: #e6e6e6;
  --muted: #b7b7b7;
  --accent: #08e7e7;
  --accent-hover: #70f4f3;
  --radius: .2rem;
  --display-font: "Playfair Display", Georgia, serif;
  font: 16px/1.5 Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); }
a { color: var(--accent); }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { width: min(72rem, calc(100% - 2rem)); min-height: 4.25rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.brand { display: flex; flex: 0 1 auto; min-width: 0; }
.brand img { display: block; width: clamp(7rem, 27vw, 10.2rem); height: auto; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem 1.15rem; font-size: .8125rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.shell { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) 0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: clamp(1.1rem, 3vw, 2.25rem); }
h1, h2, h3, h4, p { margin: 0 0 .65rem; }
h1, h2 { font-family: var(--display-font); font-weight: 500; }
h1 { font-size: clamp(2rem, 5vw, 3.45rem); letter-spacing: -.025em; line-height: 1.1; margin-bottom: clamp(1.1rem, 3vw, 1.8rem); }
h2 { font-size: 1.45rem; line-height: 1.3; }
h3 { font-size: 1rem; }
h4 { font-size: .95rem; }
p, small { color: var(--muted); }
.panel { padding: clamp(.95rem, 2.7vw, 1.65rem); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
#recruiter-auth { display: grid; gap: .9rem; margin-top: 1.2rem; }
#recruiter-access { max-width: 30rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem; }
.wide { grid-column: 1 / -1; }
label { display: block; min-width: 0; font-size: .9rem; font-weight: 650; }
small { font-weight: 400; font-size: .85rem; }
label > small { display: block; margin-top: .12rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.phone-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.phone-field legend { padding: 0; font-size: .9rem; font-weight: 650; }
.phone-controls { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: .5rem; }
.phone-controls select, .phone-controls input { min-width: 0; max-width: 100%; font-size: 1rem; }
.phone-field > small { display: block; margin-top: .4rem; font-size: .75rem; line-height: 1.5; }
.extra-contact > summary { width: fit-content; color: var(--accent); font-size: .875rem; cursor: pointer; }
.extra-contact > .form-grid { margin-top: .7rem; }
input, textarea, select { display: block; width: 100%; background: var(--input); border: 1px solid var(--line); border-radius: var(--radius); padding: .62rem .68rem; color: var(--text); font: inherit; font-size: 1rem; margin-top: .35rem; }
textarea { resize: vertical; }
input[type="file"] { padding: .38rem; }
input::file-selector-button { font: inherit; font-size: .875rem; color: var(--text); background: #333737; border: 0; border-radius: .28rem; padding: .42rem .62rem; margin-right: .55rem; cursor: pointer; }
button { display: inline-block; min-height: 2.65rem; padding: .55rem .82rem; border: 1px solid transparent; border-radius: var(--radius); color: #0f0f0f; background: var(--accent); font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
button:hover { background: var(--accent-hover); }
button:disabled { cursor: wait; opacity: .65; }
.quiet { color: var(--text); background: transparent; border-color: var(--line); padding: .4rem .6rem; }
.quiet:hover { background: #333737; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.feedback { margin: .6rem 0 0; color: var(--accent); }
.feedback:empty { margin: 0; }
.sign-in .feedback:empty, #recruiter-auth .feedback:empty { display: none; }
.feedback.error { color: #ffc2c9; }
.bucket { margin-bottom: 1rem; }
.bucket h3 { color: var(--muted); font-size: .9rem; }
.stack { display: grid; gap: .55rem; }
.record { display: grid; gap: .45rem; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: .8rem .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.record h3, .record h4, .record p { margin-bottom: 0; }
.record p { font-size: .875rem; }
.pill { color: var(--accent); background: #203938; border-radius: .4rem; padding: .25rem .53rem; font-size: .8rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
#recruiter-referrals { display: grid; gap: .65rem; margin-bottom: 1.3rem; }
.record form { display: flex; align-items: end; flex-wrap: wrap; gap: .55rem; }
.record form select { width: auto; max-width: 100%; }
.record .contacts { white-space: pre-wrap; }
@media (max-width: 720px) { .workspace { grid-template-columns: 1fr; } }
@media (max-width: 470px) {
  .form-grid, .record { grid-template-columns: 1fr; }
  nav { gap: .4rem .55rem; }
  .pill { justify-self: start; }
  #referral button { width: 100%; }
}
.oauth-options { display: grid; gap: .7rem; margin-top: .9rem; }
.oauth-options form { margin: 0; }
.oauth-button {
  display: grid;
  grid-template-columns: 1.2rem auto;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .65rem;
  border: 1px solid #535b5b;
  border-radius: .5rem;
  background: #222727;
  color: var(--text);
  font-weight: 550;
  font-size: .875rem;
  line-height: 1.35;
  text-align: center;
}
.oauth-button img { display: block; width: 1.2rem; height: 1.2rem; object-fit: contain; }
.oauth-button--linkedin img { border-radius: .18rem; }
.oauth-button:not(:disabled):hover { background: #2b3333; border-color: #82908f; }
.oauth-button:not(:disabled):active { background: #181e1e; }
.oauth-button:disabled { cursor: not-allowed; opacity: .65; }
.oauth-availability { font-size: .8125rem; margin: 0; }
.signin-status { font-size: .875rem; margin: .75rem 0; }
.signin-methods { margin-top: 1.2rem; }
.signin-methods summary { color: var(--accent); cursor: pointer; }

/* Public Scout sign-in: the same quiet surfaces and controls as the portal. */
body[data-screen="sign-in"] .header-inner { min-height: 5rem; }
.auth-shell { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 3rem; }
.scout-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}
.scout-entry-intro { padding-top: .75rem; }
.scout-entry-label {
  color: var(--accent);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.scout-entry-intro h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.scout-entry-intro h1 em { display: block; color: var(--accent); }
.scout-entry-description { max-width: 42ch; font-size: .9375rem; line-height: 1.7; margin-bottom: 0; }
.scout-entry-reward {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  padding-top: 1.25rem;
  margin: 1.75rem 0 0;
  max-width: 25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
}
.scout-entry-reward strong { color: var(--text); font-size: 1.5rem; font-weight: 500; letter-spacing: -.025em; }
.scout-entry-card {
  min-width: 0;
  padding: 2rem;
  border: 1px solid var(--line);
  background: #1d1d1d;
}
.scout-entry-card h2 { font-size: 1.8rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.scout-entry-hint { font-size: .875rem; margin-bottom: 0; }
.scout-entry-card .signin-status {
  padding: .75rem;
  color: #f2e4c3;
  background: #ffffff08;
  border: 1px solid #555;
  line-height: 1.6;
}
.scout-entry-card #sign-in { display: grid; gap: 1rem; margin-top: 1.5rem; }
.scout-entry-card label { font-size: .8125rem; font-weight: 500; }
.scout-entry-card input { border-color: #4a4a4a; min-height: 3rem; font-weight: 400; margin-top: .5rem; }
.scout-entry-card #sign-in button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-inline: 1rem;
  min-height: 3rem;
  font-weight: 600;
  text-align: left;
}
.scout-entry-card #sign-in button span { font-size: 1.1rem; }
.scout-entry-card .feedback { margin: 0; font-size: .8125rem; line-height: 1.6; }
.scout-entry-divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .75rem; margin: 1.5rem 0 1rem; }
.scout-entry-divider::before, .scout-entry-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.scout-entry-card .oauth-options { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: .6rem; }
.scout-entry-card .oauth-options form:only-child { grid-column: 1 / -1; }
.scout-entry-card .oauth-button { min-height: 3rem; border-radius: 0; border-color: #4a4a4a; background: transparent; }
.scout-entry-card .oauth-button:not(:disabled):hover { background: #2a2a2a; border-color: #777; }
.scout-entry-help { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.7; }
@media (max-width: 760px) {
  .auth-shell { padding-top: 2rem; }
  .scout-entry { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .scout-entry-intro { padding-top: 0; }
  .scout-entry-intro h1 { max-width: 20ch; }
  .scout-entry-description { max-width: 48ch; }
  .scout-entry-reward { margin-top: 1.25rem; padding-top: 1rem; max-width: none; }
}
@media (max-width: 470px) {
  body[data-screen="sign-in"] .header-inner { min-height: 4.5rem; }
  .auth-shell { padding-top: 1.75rem; }
  .scout-entry-label { margin-bottom: .8rem; }
  .scout-entry-intro h1 { margin-bottom: .85rem; }
  .scout-entry-description { font-size: .875rem; }
  .scout-entry-card { padding: 1.25rem; }
}

/* Scout workspace */
body[data-screen="scout"] .shell { --gutter: clamp(1rem, 4vw, 3rem); padding-top: clamp(1.15rem, 3vw, 2.25rem); }
.scout-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.6rem, 5vw, 3.6rem);
  background: radial-gradient(ellipse at 82% 5%, #08e7e715, transparent 72%);
  border-block: 1px solid var(--line);
}
.hero-content { position: relative; max-width: 34rem; }
.hero-content h1 { font-size: clamp(2.35rem, 6.5vw, 4.6rem); line-height: 1; margin-bottom: .9rem; }
.hero-content p { font-size: clamp(.875rem, 1.7vw, 1.05rem); margin-bottom: 1.45rem; color: #d1ddda; }
.new-referral-button { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.85rem; padding: .55rem 1.15rem; border-radius: var(--radius); }
.new-referral-button span { font: 500 1.25rem/1 system-ui, sans-serif; }
.hero-art {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: clamp(18rem, 47vw, 37rem);
  aspect-ratio: 1.25;
  inset: 50% -3% auto auto;
  transform: translateY(-50%);
  opacity: .8;
}
.hero-art i {
  position: absolute;
  inset: calc(var(--orbit) * 10%) calc(var(--orbit) * 8%);
  border: 1px solid #5fc7bc68;
  border-radius: 50%;
  transform: rotate(-28deg);
}
.hero-art i:nth-child(1) { --orbit: 0; }
.hero-art i:nth-child(2) { --orbit: 1; }
.hero-art i:nth-child(3) { --orbit: 2; }
.hero-art i:nth-child(4) { --orbit: 3; }
.hero-art i::after {
  content: "";
  position: absolute;
  inset: 18% 10% auto auto;
  width: .44rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #9bf9ed;
  box-shadow: 0 0 .8rem #4ce8df;
}
.hero-art i:nth-child(even)::after { inset: auto auto 18% 10%; }
.tracker { margin-top: clamp(1.8rem, 4vw, 3.3rem); scroll-margin-top: 1rem; }
.tracker-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.tracker-heading h2 { margin-bottom: .8rem; font-size: clamp(1.2rem, 3vw, 1.55rem); letter-spacing: -.025em; }
.stage-distribution { display: flex; align-items: stretch; gap: 3px; height: .375rem; overflow: hidden; border-radius: 1rem; background: #303a39; }
.stage-distribution > span { min-width: 0; border-radius: 1rem; background: var(--stage-tone); }
[data-stage-tone="0"] { --stage-tone: #51d9d0; }
[data-stage-tone="1"] { --stage-tone: #99cff0; }
[data-stage-tone="2"] { --stage-tone: #c7bbfb; }
[data-stage-tone="3"] { --stage-tone: #bce491; }
[data-stage-tone="closed"] { --stage-tone: #abb5b2; }
.stage-filters { display: flex; flex-wrap: wrap; gap: .4rem .55rem; padding: .85rem 0 1.2rem; }
.stage-filter {
  display: inline-flex; align-items: center; gap: .45rem; color: #d4dbd9;
  background: transparent; border-color: var(--line); border-radius: var(--radius);
  min-height: 2.75rem; padding: .35rem .75rem; font-size: .8rem; white-space: nowrap;
}
.stage-filter:hover { background: #293331; }
.stage-filter[aria-pressed="true"] { background: #243d39; border-color: #69bfb3; color: #defaf6; }
.stage-filter strong { font-weight: 750; font-variant-numeric: tabular-nums; }
.stage-dot { flex: 0 0 auto; width: .47rem; height: .47rem; border-radius: 50%; background: var(--stage-tone, var(--accent)); }
.tracker-message { margin: 0; border-top: 1px solid var(--line); padding: 1.4rem 0; }
.pipeline-empty { display: grid; justify-items: start; gap: .35rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.pipeline-empty h3, .pipeline-empty p { margin: 0; }
.pipeline-empty button { margin-top: .55rem; }
.pipeline-list { border-block: 1px solid var(--line); }
.pipeline-columns, .pipeline-row > summary {
  display: grid; grid-template-columns: minmax(9rem, 1.5fr) minmax(7rem, 1.1fr) minmax(7.5rem, 1.15fr) minmax(6.2rem, .7fr) 1.25rem;
  gap: .65rem 1rem;
  align-items: center;
}
.pipeline-columns { font-weight: 650; color: #b8c4c1; font-size: .75rem; padding: .8rem .65rem; }
.pipeline-row { border-top: 1px solid var(--line); }
.pipeline-row > summary { list-style: none; cursor: pointer; padding: 1rem .65rem; min-height: 4.4rem; overflow-wrap: anywhere; }
.pipeline-row > summary::-webkit-details-marker { display: none; }
.pipeline-row > summary:hover, .pipeline-row[open] > summary { background: var(--panel); }
.pipeline-name { display: flex; align-items: center; gap: .65rem; font-size: .9rem; line-height: 1.35; }
.pipeline-initials {
  display: inline-grid; place-items: center; flex: 0 0 2.2rem; aspect-ratio: 1;
  background: #2a3b39; color: #bcece6; border-radius: 50%;
  font-size: .6875rem; letter-spacing: .025em;
}
.pipeline-role, .pipeline-date { font-size: .8125rem; color: #c1cdca; }
.pipeline-date { font-variant-numeric: tabular-nums; }
.pipeline-status {
  display: inline-flex; align-items: center; justify-self: start; gap: .4rem;
  background: #272f2e; color: #edf5f2; max-width: 100%;
  padding: .28rem .65rem; border-radius: 1rem; font-size: .75rem; font-weight: 650;
}
.pipeline-chevron { color: #b5c8c3; text-align: center; transition: transform .15s; }
.pipeline-row[open] .pipeline-chevron { transform: rotate(180deg); }
.pipeline-detail { padding: .8rem .75rem 1.2rem; background: var(--panel); }
.pipeline-detail p { margin: 0 0 .65rem; font-size: .8125rem; }
.pipeline-journey { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; list-style: none; padding: 0; margin: 0; font-size: .75rem; }
.pipeline-journey li { display: inline-flex; align-items: center; gap: .35rem; color: #bdcbc8; }
.pipeline-journey li[aria-current="step"] { font-weight: 750; color: var(--stage-tone); }
.pipeline-journey li + li::before { content: "→"; margin-right: .35rem; color: #a6b5b1; }
.referral-dialog {
  color: var(--text); background: var(--panel); border: 1px solid #555; border-radius: var(--radius);
  width: min(34rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem);
  padding: 0; box-shadow: 0 1.3rem 5rem #0008;
}
.referral-dialog::backdrop { background: #0b1413bb; }
.dialog-inner { padding: clamp(1rem, 4vw, 1.65rem); }
.dialog-heading, .form-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.dialog-heading { margin-bottom: 1rem; }
.dialog-heading h2 { margin: 0; }
.dialog-close { flex: 0 0 2.8rem; border-radius: 50%; font: 400 1.6rem/1 system-ui, sans-serif; }
.contact-hint { font-size: .8rem; margin: 0; }
.cv-input { border: 1px dashed #577773; border-radius: var(--radius); padding: .7rem .8rem; background: var(--input); }
.cv-input input { background: transparent; border: 0; padding-inline: 0; font-size: .8rem; }
#cv-feedback { margin: -.4rem 0 0; font-size: .8rem; }
#cv-feedback:empty { display: none; }
#referral .extra-contact label { display: block; margin-top: .55rem; }
.form-actions .feedback { margin: 0; font-size: .8rem; }
.form-actions button { flex: 0 0 auto; padding-inline: 1.1rem; }
body[data-screen="scout"] .signin-methods { margin-top: 2rem; }
body[data-screen="scout"] .signin-methods .oauth-options { max-width: 18rem; }
@media (max-width: 640px) {
  .hero-art { inset-inline-end: -9rem; opacity: .45; }
  .pipeline-columns { display: none; }
  .pipeline-row:first-child { border-top: 0; }
  .pipeline-row > summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 1rem; gap: .35rem .5rem; }
  .pipeline-name { grid-column: 1 / 3; }
  .pipeline-chevron { grid-column: 3; grid-row: 1; }
  .pipeline-role, .pipeline-status { grid-column: 1 / 3; }
  .pipeline-date { grid-column: 1 / 3; }
}
@media (max-width: 470px) {
  .form-actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .pipeline-chevron { transition: none; } }

/* Program landing, rewards and recruiter workflow */
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.guide-button { padding: .55rem 1rem; }
.guide-dialog { width: min(40rem, calc(100% - 1.5rem)); }
.guide-dialog details { border-top: 1px solid var(--line); padding: .95rem .1rem; }
.guide-dialog summary, .desk-settings summary { cursor: pointer; font-weight: 650; }
.guide-dialog p { margin: .6rem 0 .05rem; font-size: .9rem; }
.reward-overview { margin-top: clamp(1.4rem, 4vw, 2.75rem); padding: 1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.reward-overview > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem 1.2rem; }
.reward-overview > header p { font-size: .85rem; }
.reward-overview > header strong { color: var(--accent); }
.reward-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem 1.5rem; }
.reward-tier { min-width: 0; border-left: 2px solid #5b9b91; padding-left: .75rem; }
.reward-tier p, .reward-ledger { margin: .15rem 0 .35rem; font-size: .8rem; }
.reward-tier progress { display: block; width: 100%; height: .45rem; accent-color: var(--accent); }
.reward-ledger { margin-top: .7rem; }
#referral .check-line { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.4; font-weight: 500; }
#referral .check-line input { width: 1.2rem; height: 1.2rem; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.desk-intro { margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.desk-intro h1 { margin: 0 0 .5rem; }
.desk-filter { display: flex; align-items: center; gap: .65rem; width: fit-content; padding-bottom: 1rem; }
.desk-filter select { margin: 0; }
.desk-referral { border-top: 1px solid var(--line); padding: 1.1rem .25rem; }
.desk-referral h3 { margin-bottom: .2rem; }
.desk-referral p, .desk-referral label { font-size: .84rem; }
.desk-referral summary { cursor: pointer; }
.desk-referral form { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; margin-top: .55rem; }
.desk-referral form button, .desk-referral > button { margin: .15rem 0; }
.desk-settings { border-top: 1px solid var(--line); padding: 1rem 0; }
.desk-settings form { margin-top: .8rem; max-width: 34rem; }
.desk-settings p { margin-top: .5rem; }
.desk-bonuses { margin-top: .8rem; }
.desk-bonuses button { margin: .25rem .35rem .25rem 0; }

[hidden] { display: none !important; }
.desk-referral input[type="checkbox"] { display: inline-block; width: 1.15rem; margin: 0 .3rem; vertical-align: middle; }

body[data-screen="recruiter"] .shell { width: min(100rem, calc(100% - 2rem)); }
.recruiter-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(17.5rem, 82vw);
  align-items: start;
  gap: .85rem;
  overflow-x: auto;
  padding: .2rem .15rem .9rem;
  scroll-padding-inline: .2rem;
}
.board-column {
  min-height: 8rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input);
}
.board-column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  font-size: 1rem;
}
.board-count { font-size: .8rem; font-variant-numeric: tabular-nums; }
.board-column .desk-referral {
  min-width: 0;
  margin-top: .65rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow-wrap: anywhere;
}
.board-column [draggable="true"] { cursor: grab; }
.board-column .desk-referral form { display: grid; }
.board-move { width: 100%; margin: .5rem 0; }
.board-sync-status { margin: .1rem 0 .5rem; }

@media (prefers-reduced-motion: no-preference) {
  .scout-hero .hero-content > *, .desk-intro > * {
    animation: portal-reveal .65s cubic-bezier(.2, .65, .3, 1) backwards;
  }
  .scout-hero .hero-content > :nth-child(2), .desk-intro > :nth-child(2) { animation-delay: .1s; }
  .scout-hero .hero-content > :nth-child(3) { animation-delay: .2s; }
  .scout-hero .hero-content > :focus-within { animation: none; }
  .hero-art i::after { animation: scout-point-reveal 2.5s ease-out both; }
  .oauth-button, .scout-entry-card #sign-in button {
    transition: background-color .18s ease, border-color .18s ease;
  }
  .scout-entry-card #sign-in button span { transition: transform .18s ease; }
  .scout-entry-card #sign-in button:not(:disabled):hover span { transform: translateX(.15rem); }

  @supports (animation-timeline: view()) {
    .reward-overview > header, .tracker-heading {
      animation: portal-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 95%;
    }
  }
}

@keyframes portal-reveal {
  from { opacity: .65; transform: translateY(.45rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scout-light-reveal {
  from { opacity: .3; transform: translate3d(-.45rem, .75rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes scout-glow-drift {
  from { opacity: .2; transform: translate3d(-.6rem, .6rem, 0) scale(.98); }
  to { opacity: .85; transform: translate3d(.35rem, 0, 0) scale(1.02); }
}

@keyframes scout-point-reveal {
  from { opacity: .3; }
  to { opacity: 1; }
}

/* TTC website system, adapted for a compact working portal. */
:root { --radius: 0; --muted: #b3b3b3; --line: #333; }
button, input, textarea, select { border-radius: 0; }
.brand { align-items: center; gap: 1.25rem; text-decoration: none; }
.brand-product { border-left: 1px solid #454545; padding-left: 1.25rem; color: var(--text); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
body[data-screen="scout"] .header-inner { min-height: 5rem; }
body[data-screen="scout"] .shell { padding-top: 2rem; padding-bottom: 2rem; }
body[data-screen="scout"] .scout-hero { padding: 1.75rem 0 2.5rem; border-top: 0; background: none; }
body[data-screen="scout"] .hero-content { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 2rem; }
body[data-screen="scout"] .hero-content > * { animation: none; }
.portal-eyebrow, body[data-screen="scout"] .hero-content .portal-eyebrow { font: 500 .6875rem/1.5 Inter, sans-serif; color: var(--accent); letter-spacing: .25em; text-transform: uppercase; margin: 0 0 .8rem; }
body[data-screen="scout"] .hero-content h1 { grid-column: 1; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.15; margin: 0 0 .7rem; }
body[data-screen="scout"] .hero-content > p:not(.portal-eyebrow) { grid-column: 1; margin: 0; color: var(--muted); font-size: .9375rem; }
body[data-screen="scout"] .hero-actions { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-content: flex-end; }
body[data-screen="scout"] .hero-art { display: none; }
.new-referral-button, .empty-referral-button { min-height: 3rem; font-weight: 600; padding: .7rem 1.1rem; }
.guide-button { min-height: 3rem; font-weight: 500; border-color: #555; }
body[data-screen="scout"] nav .quiet { min-height: 2.7rem; font-size: .8125rem; font-weight: 500; padding-inline: .8rem; }
body[data-screen="scout"] .tracker { margin-top: 0; border: 1px solid var(--line); padding: 1.5rem; scroll-margin-top: 1.5rem; background: #1d1d1d; }
.tracker-heading h2 { font-size: 1.65rem; margin: 0 0 1.2rem; }
.stage-distribution { height: 3px; border-radius: 0; background: #343434; }
.stage-distribution > span { border-radius: 0; }
.stage-filters { gap: .4rem; padding: 1rem 0; }
.stage-filter { min-height: 2.75rem; font-size: .75rem; font-weight: 500; padding: .4rem .65rem; }
.stage-filter[aria-pressed="true"] { background: #08e7e712; border-color: #08e7e780; color: var(--text); }
.pipeline-empty { min-height: 15rem; justify-items: center; align-content: center; text-align: center; padding: 2rem 1rem; gap: .65rem; }
.pipeline-empty::before { content: "+"; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #08e7e74d; color: var(--accent); font-size: 1.4rem; font-weight: 300; margin-bottom: .35rem; }
.pipeline-empty h3 { font-size: 1rem; font-weight: 600; }
.pipeline-empty p { max-width: 42ch; font-size: .875rem; }
.pipeline-empty button { margin-top: .4rem; }
.pipeline-initials { background: #2a3232; border-radius: 2px; }
.pipeline-status { border-radius: 2px; }
.pipeline-columns { padding-inline: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; }
.pipeline-row > summary { padding-inline: 0; }
body[data-screen="scout"] .reward-overview { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 2rem; margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); background: #1d1d1d; scroll-margin-top: 1.5rem; }
.reward-overview > header { display: block; }
.reward-overview .portal-eyebrow { margin-bottom: .6rem; font-size: .625rem; }
.reward-overview h2 { font-size: 1.55rem; }
.reward-overview > header > p:last-child { font-size: .8125rem; line-height: 1.65; max-width: 34ch; margin-bottom: 0; }
.reward-grid { height: 100%; align-items: center; gap: 1.5rem; }
.reward-tier { padding: .5rem 0 .5rem 1rem; border-left: 1px solid #454545; }
.reward-tier strong { font-size: 1.125rem; font-weight: 500; }
.reward-tier p { font-size: .75rem; line-height: 1.6; margin: .4rem 0 .65rem; }
.reward-tier progress { appearance: none; height: 3px; border: 0; background: #3b3b3b; border-radius: 0; }
.reward-tier progress::-webkit-progress-bar { background: #3b3b3b; }
.reward-tier progress::-webkit-progress-value { background: var(--accent); }
.reward-tier progress::-moz-progress-bar { background: var(--accent); }
body[data-screen="scout"] .signin-methods { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.5rem; font-size: .8125rem; }
.signin-methods summary { color: var(--muted); }
.referral-dialog { width: min(42rem, calc(100% - 2rem)); border-color: #4a4a4a; }
.guide-dialog { width: min(42rem, calc(100% - 2rem)); }
.dialog-inner { padding: 1.75rem; }
.dialog-heading { margin-bottom: 1.25rem; }
.dialog-heading h2 { font-size: 1.8rem; }
.dialog-close { border-radius: 0; width: 2.75rem; min-height: 2.75rem; border-color: #454545; }
.form-intro { font-size: .875rem; line-height: 1.65; margin: -.35rem 0 .4rem; }
.form-section-label { display: flex; align-items: center; gap: .7rem; color: var(--accent); font-size: .625rem; letter-spacing: .15em; padding-top: .4rem; }
.form-section-label span { color: var(--text); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
#referral input:not([type="checkbox"]), #referral textarea { min-height: 3rem; border-color: #4a4a4a; font-size: 1rem; }
#referral .phone-controls select { min-height: 3rem; border-color: #4a4a4a; }
#referral label { font-weight: 500; font-size: .8125rem; }
#referral label > small { font-size: .75rem; }
#referral .cv-input { padding: 1rem; border-color: #555; }
#referral .cv-input input { margin-top: .65rem; min-height: 0; }
#referral .contact-hint { line-height: 1.5; font-size: .8125rem; }
#referral .check-line { font-size: .8125rem; line-height: 1.6; padding-top: .4rem; }
#referral .form-actions { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .2rem; }
#referral .form-actions button { min-height: 3rem; }
@media (max-width: 760px) {
  body[data-screen="scout"] .hero-content { grid-template-columns: minmax(0, 1fr); }
  body[data-screen="scout"] .hero-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 1.35rem; }
  body[data-screen="scout"] .reward-overview { grid-template-columns: 1fr; gap: 1.25rem; }
  .reward-overview > header > p:last-child { max-width: none; }
  .stage-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .9rem; scroll-padding-inline: .2rem; }
  .stage-filter { flex-shrink: 0; }
}
@media (max-width: 470px) {
  body[data-screen="scout"] .shell { padding-top: .5rem; }
  body[data-screen="scout"] .header-inner { min-height: 4.5rem; }
  .brand-product { display: none; }
  body[data-screen="scout"] .scout-hero { padding: 1.5rem 0 2rem; }
  body[data-screen="scout"] .tracker, body[data-screen="scout"] .reward-overview { padding: 1.15rem; }
  .tracker-heading h2 { font-size: 1.45rem; }
  .pipeline-empty { min-height: 17rem; padding-inline: .25rem; }
  .reward-grid { gap: 1rem; }
  .reward-tier { padding-left: .7rem; }
  .reward-tier strong { font-size: 1rem; }
  .referral-dialog, .guide-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .dialog-inner { padding: 1.1rem; }
  #referral .form-actions { flex-direction: column; align-items: stretch; }
  .dialog-heading h2 { font-size: 1.6rem; }
}
