:root {
  --ink: #000000;
  --forest: #0047ab;
  --forest-2: #000080;
  --lime: #4fae62;
  --cream: #eef2f6;
  --paper: #ffffff;
  --line: #ccd6e0;
  --muted: #6d8196;
  --orange: #0047ab;
  --error: #d90429;
  --white: #fff;
  --shadow: 0 20px 60px rgba(0, 0, 0, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #050609;
  font-family: "DM Sans", sans-serif;
}

body.auth-locked {
  min-height: 100vh;
  overflow: hidden;
}

body.auth-locked main,
body.auth-locked .topnav,
body.auth-locked .profile-chip {
  display: none;
}

body.auth-locked .app-shell {
  min-height: 100vh;
}

body.auth-locked .topbar {
  justify-content: center;
  min-height: 136px;
}

body.auth-locked .brand {
  transform: none;
}

body.auth-locked .brand-logo {
  width: 108px;
  height: 108px;
}

body.auth-locked .account-modal {
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

body.auth-locked .modal-intro {
  color: var(--ink);
  font-size: .92rem;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; }

.topbar {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw 12px;
  color: var(--white);
  background: var(--forest-2);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  transform: translateY(6px);
}

.brand-logo {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: var(--paper);
  padding: 6px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.8);
}

.topnav { display: flex; gap: 34px; align-self: stretch; }
.topnav a {
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
}
.topnav a.active { color: var(--white); }
.topnav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--lime);
}

.profile-chip { display: flex; align-items: center; gap: 10px; }
.profile-chip strong, .profile-chip small { display: block; }
.profile-chip strong { font-size: .8rem; }
.profile-chip small { color: rgba(255,255,255,.55); font-size: .68rem; }
.account-button {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: transparent;
  color: white;
  padding: 8px 12px;
  font: inherit;
  font-size: .68rem;
  cursor: pointer;
}
.account-button:hover { background: rgba(255,255,255,.1); }
.logout-button {
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: white;
  padding: 8px 12px;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}
.logout-button:hover { background: rgba(255,255,255,.18); }
.avatar {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; color: var(--forest-2); background: var(--lime);
  font-weight: 700; font-size: .75rem;
}
.icon-button { border: 0; color: var(--white); background: transparent; cursor: pointer; }

.hero {
  min-height: 440px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 35%, rgba(255,255,255,.055) 0 1px, transparent 1.4px),
    radial-gradient(circle at 75% 70%, rgba(0,0,0,.16) 0 1px, transparent 1.5px),
    linear-gradient(115deg, #000080 0%, #000080 28%, #002c9c 58%, #0047ab 100%);
  background-size: 5px 5px, 7px 7px, auto;
}

.hero-copy { padding: 72px 5vw 66px; z-index: 1; }
.eyebrow, .step-label {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--lime); }
.hero h1 {
  margin: 16px 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(3.8rem, 7vw, 6.9rem);
  line-height: .9;
  letter-spacing: -.035em;
}
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-copy > p { max-width: 520px; color: rgba(255,255,255,.68); font-size: 1rem; line-height: 1.65; }
.hero-copy > .hero-promise {
  margin-top: 12px;
  color: #4fae62 !important;
  font-weight: 800;
}
.hero-stats { display: flex; gap: 30px; margin-top: 32px; color: rgba(255,255,255,.58); font-size: .75rem; }
.hero-stats span { display: flex; align-items: baseline; gap: 7px; }
.hero-stats strong { color: var(--white); font-family: "Oswald"; font-size: 1.2rem; }

.hero-art {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(79,174,98,.16), transparent 55%);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hero-radar {
  position: relative;
  width: min(330px, 72%);
  aspect-ratio: 1;
  margin-left: 10%;
  overflow: hidden;
  border: 2px solid rgba(79,174,98,.72);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(79,174,98,.12), transparent 64%),
    rgba(0,0,32,.62);
  box-shadow:
    0 0 0 12px rgba(0,0,0,.12),
    0 0 50px rgba(79,174,98,.2),
    inset 0 0 45px rgba(79,174,98,.12);
}
.radar-ring, .radar-crosshair, .radar-sweep, .radar-center, .radar-blip { position: absolute; }
.radar-ring {
  inset: 0;
  margin: auto;
  border: 1px solid rgba(79,174,98,.38);
  border-radius: 50%;
}
.radar-ring-one { width: 66%; height: 66%; }
.radar-ring-two { width: 34%; height: 34%; }
.radar-crosshair { background: rgba(79,174,98,.28); }
.radar-crosshair-x { left: 0; top: 50%; width: 100%; height: 1px; }
.radar-crosshair-y { left: 50%; top: 0; width: 1px; height: 100%; }
.radar-sweep {
  left: 50%;
  top: 0;
  width: 50%;
  height: 50%;
  border-left: 2px solid var(--lime);
  background: conic-gradient(from 270deg at 0 100%, rgba(79,174,98,.42), transparent 34%);
  transform-origin: 0 100%;
  animation: heroRadarSweep 3.4s linear infinite;
}
.radar-center {
  left: calc(50% - 4px);
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
}
.radar-blip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(79,174,98,.13), 0 0 14px var(--lime);
  animation: radarContact 2.2s ease-in-out infinite;
}
.blip-one { left: 67%; top: 27%; }
.blip-two { left: 28%; top: 61%; animation-delay: .7s; }
.blip-three { left: 72%; top: 70%; animation-delay: 1.35s; }
.radar-readout {
  position: absolute;
  right: 8%;
  top: 48px;
  z-index: 2;
  padding: 12px 14px;
  border-right: 3px solid var(--lime);
  text-align: right;
  background: rgba(0,0,32,.55);
}
.radar-readout small, .radar-readout strong, .radar-readout span { display: block; }
.radar-readout small { color: var(--lime); font-size: .55rem; letter-spacing: .15em; }
.radar-readout strong { margin-top: 5px; font: 600 .9rem "Oswald"; text-transform: uppercase; }
.radar-readout span { margin-top: 3px; color: rgba(255,255,255,.58); font-size: .62rem; }
@keyframes heroRadarSweep { to { transform: rotate(360deg); } }
@keyframes radarContact {
  0%, 100% { opacity: .25; transform: scale(.7); }
  45%, 70% { opacity: 1; transform: scale(1.15); }
}
.status-card {
  position: absolute; left: 12%; bottom: 48px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(9,9,9,.92);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.status-card small, .status-card strong { display: block; }
.status-card small { color: rgba(255,255,255,.5); font-size: .58rem; letter-spacing: .12em; }
.status-card strong { margin-top: 3px; font-size: .8rem; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(79,174,98,.18); }

.workspace {
  width: min(780px, 92vw);
  margin: -38px auto 18px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  box-shadow: none;
}

.profile-panel,
.search-panel,
.history-section,
.camps-section {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 20px 45px rgba(0,0,0,.28);
}
.profile-panel, .search-panel { padding: 34px 34px 30px; }
.search-panel { min-height: auto; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading > div:first-child { min-width: 0; }
.section-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
  flex: 0 0 auto;
}
.section-heading h2, .modal h2 {
  margin: 4px 0 0;
  font: 600 2rem/1.1 "Oswald";
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.save-state, .result-count {
  padding: 7px 10px;
  color: var(--forest);
  background: #e8eef5;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.form-section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.form-section h3 { margin: 0 0 18px; font: 600 1rem "Oswald"; letter-spacing: .03em; text-transform: uppercase; }
.subheading { display: flex; align-items: center; justify-content: space-between; }
.subheading span { color: var(--muted); font-size: .67rem; font-weight: 700; text-transform: uppercase; }
.form-grid { display: grid; gap: 16px; margin-top: 16px; }
.form-grid:first-of-type { margin-top: 0; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
label > span, .media-pane label > span {
  display: block;
  margin-bottom: 7px;
  color: #52677c;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.section-toggle-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest-2);
  background: #f5f8fb;
  cursor: pointer;
  font-weight: 800;
}
.section-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-toggle-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest-2);
  background: #f5f8fb;
  cursor: pointer;
  font-weight: 900;
}
.section-toggle-button:hover {
  border-color: var(--forest);
  color: var(--forest);
}
.section-collapsed .section-content,
.camps-section.section-collapsed #campsContent {
  display: none;
}
.field-label-with-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.field-label-with-note > span { margin: 0; }
.field-label-with-note small {
  color: var(--forest);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .035em;
}
input, select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cccccc;
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: var(--white);
  transition: border .2s, box-shadow .2s;
}
input:focus, select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(0,71,171,.14); }
input.invalid, select.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217,4,41,.12);
}
input.invalid:focus, select.invalid:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217,4,41,.18);
}
.input-with-suffix { position: relative; }
.input-with-suffix small { position: absolute; right: 13px; top: 17px; color: var(--muted); font-size: .6rem; font-weight: 700; }
.input-with-suffix input { padding-right: 45px; }

.media-tabs { display: flex; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.media-tab {
  padding: 10px 18px;
  border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); background: transparent;
  cursor: pointer; font-size: .78rem; font-weight: 700;
}
.media-tab.active { color: var(--forest); border-color: var(--forest); }
.media-pane { display: none; }
.media-pane.active { display: block; }
.upload-zone {
  min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed #aaaaaa;
  background: #f7f7f7;
  cursor: pointer;
}
.upload-zone strong { font-size: .82rem; }
.upload-zone small { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.upload-zone input { display: none; }
.upload-icon { margin: 0 0 8px!important; color: var(--forest)!important; font-size: 1.4rem!important; }
.file-status { margin: 8px 0 0; color: var(--muted); font-size: .72rem; }
.file-status.error { color: var(--forest); }

.primary-button, .contact-button {
  width: 100%; min-height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding: 0 20px;
  border: 0; color: var(--white); background: var(--forest);
  cursor: pointer; font-weight: 700;
  box-shadow: 5px 5px 0 var(--lime);
  transition: transform .18s, box-shadow .18s;
}
.profile-panel .primary-button { box-shadow: 5px 5px 0 #000; }
.profile-panel .primary-button:hover { box-shadow: 7px 7px 0 #000; }
.primary-button:hover, .contact-button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--lime); }
.primary-button:disabled, .contact-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--error); font-size: .75rem; }

.empty-state { min-height: 600px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.empty-state h3 { margin: 20px 0 8px; font: 600 1.1rem "Oswald"; text-transform: uppercase; }
.empty-state p { max-width: 300px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.map-preferences {
  width: min(100%, 560px);
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  text-align: left;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .1);
}
.map-preferences h3 {
  margin: 0 0 16px;
  color: var(--forest-2);
  font-size: .95rem;
}
.map-preferences .primary-button { margin-top: 20px; }
.map-preferences .form-message { margin-bottom: 0; }
.recruiting-map {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 8 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle, rgba(0,71,171,.09), transparent 67%);
}
#usaMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-layer { transform-origin: 0 0; }
.state-shape {
  fill: #080808;
  stroke: #ffffff;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  transition: fill .35s, opacity .35s;
}
.available-state {
  fill: var(--muted);
  cursor: pointer;
}
.available-state:hover,
.available-state:focus {
  fill: var(--forest);
  outline: none;
  stroke: var(--lime);
  stroke-width: 2.2;
}
.state-borders {
  fill: none;
  stroke: #fff;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.selected-state {
  fill: var(--lime);
  cursor: pointer;
  stroke: #ffffff;
  stroke-width: 1.8;
}
.selected-state:hover,
.selected-state:focus {
  fill: var(--lime);
  stroke: #ffffff;
}
.state-focused .state-shape:not(.selected-state) { opacity: 1; }
.state-focused .available-state:not(.selected-state) { fill: var(--muted); }
.map-unavailable #usaMap { display: none; }
.hidden { display: none!important; }

.search-summary {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding: 14px 16px;
  color: var(--white); background: var(--forest);
}
.search-summary small, .search-summary strong { display: block; }
.search-summary small { color: var(--lime); font-size: .57rem; letter-spacing: .1em; }
.search-summary strong { margin-top: 3px; font-size: .78rem; }
.text-button { border: 0; color: var(--lime); background: transparent; cursor: pointer; font-size: .7rem; font-weight: 700; }
.weekly-limit { padding: 22px 0 16px; }
.limit-copy { display: flex; justify-content: space-between; align-items: end; }
.limit-copy strong { font-size: .8rem; }
.limit-copy small { color: var(--muted); font-size: .62rem; }
.limit-track { height: 4px; margin-top: 10px; overflow: hidden; background: #d5d5d5; }
.limit-track span { display: block; width: 0; height: 100%; background: var(--orange); transition: width .25s; }
.filter-summary { min-height: 16px; margin: 2px 0 10px; color: var(--muted); font-size: .64rem; }

.school-list { display: grid; gap: 10px; }
.school-card {
  position: relative;
  display: grid;
  grid-template-columns: 24px 46px 1fr;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #d5d5d5;
  background: var(--white);
  cursor: pointer;
  transition: border .2s, transform .2s;
}
.school-card:hover { transform: translateY(-2px); border-color: #999999; }
.school-card.selected { border: 2px solid var(--forest); padding: 14px; }
.school-card.locked { opacity: .72; }
.school-select input { position: absolute; opacity: 0; }
.custom-check { width: 18px; height: 18px; margin: 0!important; border: 1px solid #aaaaaa; display: grid!important; place-items: center; }
.school-select input:checked + .custom-check { color: white; background: var(--forest); border-color: var(--forest); }
.school-select input:checked + .custom-check::after { content: "✓"; font-size: .7rem; }
.school-logo { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; color: white; background: var(--forest); font: 600 1rem "Oswald"; }
.school-logo.has-image { padding: 5px; background: #f7f7f7!important; border: 1px solid #e0e0e0; }
.school-logo img { width: 100%; height: 100%; object-fit: contain; }
.school-info h3 { margin: 0; font-size: .84rem; }
.school-info p { margin: 3px 0 7px; color: var(--muted); font-size: .67rem; }
.school-info .school-access {
  margin: 5px 0 7px;
  color: var(--lime);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.school-info .school-access.locked { color: var(--muted); }
.school-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: #666666; font-size: .59rem; font-weight: 700; text-transform: uppercase; }
.school-meta a { color: var(--forest); }
.source-locked { color: var(--muted); opacity: .75; }
.manual-review-tag {
  padding: 3px 7px;
  border: 1px solid rgba(25, 32, 43, .22);
  border-radius: 999px;
  background: #f1f3f5;
  color: #19202b;
  letter-spacing: .04em;
}
.data-health {
  margin: 0 0 10px;
  color: var(--slate);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact-rating {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e5e5e5;
}
.contact-rating-top {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #555555;
  font-size: .58rem;
  text-transform: uppercase;
}
.contact-rating-top strong { margin-right: auto; letter-spacing: .04em; }
.contact-rating-top b { color: var(--forest); font-size: .6rem; }
.contact-stars {
  display: inline-flex;
  gap: 1px;
  color: #cccccc;
  font-size: .72rem;
  letter-spacing: 0;
}
.contact-stars .earned { color: #d6a000; }
.contact-availability {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.contact-availability span {
  padding: 3px 5px;
  border: 1px solid #d9d9d9;
  color: #777777;
  background: #f7f7f7;
  font-size: .5rem;
  font-weight: 700;
  text-transform: uppercase;
}
.contact-availability .available {
  border-color: rgba(21,62,50,.25);
  color: var(--forest);
  background: rgba(130,203,142,.2);
}
.fit-badge {
  position: absolute; top: 9px; right: 9px;
  padding: 3px 5px; color: var(--forest); background: var(--lime);
  font-size: .48rem; font-weight: 800; letter-spacing: .06em;
}
.contact-button { margin-top: 18px; background: var(--orange); box-shadow: 5px 5px 0 var(--forest); }
.contact-button span { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--orange); background: var(--white); font-size: .7rem; }

.tier-summary {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}
.form-grid:has(#profilePlan),
#profilePlanSummary {
  display: none;
}
#accountPlanSummary {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f5f8fb;
}

.history-section {
  width: min(780px, 92vw);
  margin: 0 auto 18px;
  padding: 34px;
}
.history-section .section-heading { align-items: end; margin-bottom: 22px; }
.outline-button { padding: 10px 16px; border: 1px solid var(--forest); color: var(--forest); background: transparent; cursor: pointer; font-size: .72rem; font-weight: 700; }
.history-list { display: grid; gap: 10px; }
.history-empty { padding: 44px 20px; color: var(--muted); text-align: center; background: var(--white); border: 1px solid #d5d5d5; }
.status-pill { padding: 5px 8px; color: #000080; background: #e2f2e5; font-size: .59rem; font-weight: 700; text-transform: uppercase; }
.history-school-card {
  position: relative;
  border: 1px solid #d5d5d5;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  transition: border .2s, transform .2s, box-shadow .2s;
}
.history-school-card:hover { transform: translateY(-2px); border-color: #999999; box-shadow: 0 14px 26px rgba(0,0,0,.08); }
.history-school-card.expanded { border: 2px solid var(--forest); box-shadow: 0 16px 34px rgba(0,0,0,.12); }
.history-school-button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 15px;
  border: 0;
  background: transparent;
  color: var(--black);
  text-align: left;
  cursor: pointer;
}
.history-logo {
  width: 46px;
  height: 46px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: var(--forest);
  font: 600 1rem "Oswald";
}
.history-logo.has-image {
  padding: 5px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
}
.history-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.history-logo.has-image > span { display: none; }
.history-school-main { min-width: 0; }
.history-school-main strong { display: block; margin: 0; font-size: .84rem; }
.history-school-main small { display: block; margin: 3px 0 7px; color: var(--muted); font-size: .67rem; }
.history-meta-line { display: flex; flex-wrap: wrap; gap: 5px 12px; color: #666666; font-size: .59rem; font-weight: 700; text-transform: uppercase; }
.history-meta-line em {
  color: #666666;
  font-style: normal;
}
.history-card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.history-card-action em {
  padding: 4px 7px;
  color: var(--forest);
  background: var(--lime);
  font-size: .5rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}
.history-card-action b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,71,171,.22);
  color: var(--royal);
  background: #f5f8fb;
  font-size: 1rem;
}
.history-contact-list {
  display: grid;
  gap: 10px;
  margin: 0 15px 15px 73px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #f7f9fb;
}
.history-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}
.history-contact-card p,
.history-contact-card span,
.history-contact-card small,
.history-contact-card a {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: .72rem;
}
.history-contact-card strong { font-size: .82rem; }
.history-contact-card a { color: var(--royal); font-weight: 800; }
.history-contact-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-top: 4px;
}
.history-contact-actions button {
  min-height: 38px;
  padding: 10px 14px;
  font-size: .66rem;
}

.camps-section {
  width: min(780px, 92vw);
  margin: 0 auto 80px;
  padding: 34px;
}
.camps-heading { align-items: end; margin-bottom: 22px; }
.camps-heading h2 { margin: 4px 0 0; font: 600 2rem/1.1 "Oswald"; text-transform: uppercase; }
.camps-heading-actions { display: flex; align-items: end; gap: 12px; }
.camp-state-filter { width: min(240px, 100%); }
.camp-state-filter select { height: 42px; }
.camps-toggle {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--forest-2);
  color: #fff;
  background: var(--forest-2);
  cursor: pointer;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
}
.camps-toggle strong { color: var(--lime); font-size: 1rem; }
.camps-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .76rem;
}
.camps-summary p { margin: 0; }
.camps-summary span {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--forest);
  background: #e2f2e5;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}
.camp-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.camp-card {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.camp-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  color: var(--white);
  background: var(--forest-2);
}
.camp-date strong { font: 600 1rem/1.1 "Oswald"; text-transform: uppercase; }
.camp-date span { margin-top: 4px; color: #cccccc; font-size: .56rem; font-weight: 700; text-transform: uppercase; }
.camp-details {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(240px, 1.7fr) minmax(105px, .65fr);
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
}
.camp-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.camp-type { color: var(--forest); font-size: .52rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.camp-card h3 { margin: 3px 0 2px; font: 600 .98rem "Oswald"; text-transform: uppercase; }
.camp-card-heading p { margin: 0; color: var(--muted); font-size: .62rem; }
.camp-value { flex: 0 0 auto; padding: 4px 6px; color: #fff; background: var(--forest); font-size: .5rem; font-weight: 800; text-transform: uppercase; }
.camp-meta { display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 10px; margin: 0; padding: 0 12px; border: 0; border-left: 1px solid var(--line); }
.camp-meta span { color: var(--muted); font-size: .58rem; line-height: 1.3; }
.camp-meta strong { display: block; margin-bottom: 1px; color: var(--ink); font-size: .5rem; letter-spacing: .05em; text-transform: uppercase; }
.camp-relevance, .camp-notes { display: none; }
.camp-register {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
  padding-left: 8px;
  overflow-wrap: anywhere;
  text-align: right;
  color: var(--forest);
  font-size: .6rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.camp-register:hover { text-decoration: underline; }
.camp-empty { padding: 36px; color: var(--muted); background: var(--paper); text-align: center; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  padding: 25px;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(5px);
}
.modal { width: min(780px, 100%); max-height: 90vh; overflow-y: auto; padding: 34px; background: var(--paper); box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.modal-header > div { min-width: 0; }
.modal-header h2 { overflow-wrap: anywhere; }
.close-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 1.8rem; line-height: 1; }
.modal-intro { margin: 12px 0 22px; color: var(--muted); font-size: .8rem; }
.demo-notice {
  margin: -10px 0 20px;
  padding: 10px 12px;
  border-left: 3px solid var(--orange);
  color: #000080;
  background: #e8eef8;
  font-size: .68rem;
  line-height: 1.5;
}
.coach-list { display: grid; gap: 10px; }
.coach-card { padding: 18px; border: 1px solid var(--line); background: white; }
.coach-card-top { display: flex; justify-content: space-between; gap: 20px; }
.coach-card h3 { margin: 0; font: 600 1rem "Oswald"; text-transform: uppercase; }
.coach-card p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.tenure { color: var(--forest); font-size: .63rem; font-weight: 700; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.contact-lines a { color: var(--forest); font-size: .7rem; font-weight: 700; }
.coach-match-reason { margin-top: 10px!important; font-size: .65rem!important; line-height: 1.5; }
.coach-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.compose-button {
  padding: 9px 12px;
  border: 0;
  color: var(--white);
  background: var(--forest);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
}
.compose-button:disabled { opacity: .45; cursor: not-allowed; }
.email-modal { width: min(760px, 100%); }
.account-modal { width: min(560px, 100%); }
.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.account-modal .primary-button,
.account-modal .outline-button {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  margin-top: 0;
  text-align: center;
}
.signed-in-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  background: #f3f3f3;
}
.signed-in-panel p { margin: 0; }
.signed-in-panel .email-field { margin-top: 4px; }
.signed-in-panel select { width: 100%; }
.account-message { text-align: left; color: var(--forest); }
.email-recipient {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 20px 0;
  padding: 14px 16px;
  background: #eeeeee;
}
.email-recipient span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
}
.email-recipient strong { font-size: .8rem; }
.email-recipient small { color: var(--muted); font-size: .68rem; }
.email-field { display: block; margin-top: 16px; }
.email-field textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #cccccc;
  color: var(--ink);
  background: var(--white);
  font: .82rem/1.65 "DM Sans", sans-serif;
  resize: vertical;
  outline: none;
}
.email-field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(0,71,171,.14); }
.email-note { margin: 12px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.message-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .67rem;
}
.message-meta a { color: var(--forest); font-weight: 700; }
.message-meta strong { color: var(--ink); }
.email-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #f7f7f7;
}
.email-highlight-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--forest);
  font-size: .65rem;
}
.email-highlight strong, .email-highlight small { display: block; }
.email-highlight strong { font-size: .74rem; }
.email-highlight small { margin-top: 2px; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.email-actions { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 14px; }
.email-actions .outline-button { height: 54px; }
.email-send-button { margin-top: 22px; }
.sent-button {
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: #e8eef8;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 800;
}
.sent-button:disabled { opacity: .55; cursor: default; }
.copy-status { min-height: 18px; margin: 9px 0 0; color: var(--forest); font-size: .68rem; text-align: right; }

@media (max-width: 980px) {
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 350px; clip-path: none; }
  .hero-radar { width: min(290px, 72vw); margin-left: 0; }
  .workspace { margin-top: 18px; width: min(780px, 92vw); }
  .search-panel { min-height: auto; }
}

@media (max-width: 640px) {
  .topbar { min-height: 106px; padding: 16px 16px 10px; }
  .brand-logo { width: 74px; height: 74px; border-radius: 12px; padding: 5px; }
  .profile-chip > span:nth-child(2) { display: none; }
  .avatar { display: none; }
  .account-button, .logout-button { min-height: 40px; padding: 9px 12px; }
  .hero { min-height: auto; }
  .hero-copy { padding: 46px 20px 50px; }
  .hero-art { min-height: 300px; }
  .hero-radar { width: 230px; }
  .radar-readout { top: 18px; right: 18px; }
  .status-card { left: 18px; bottom: 18px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4rem); line-height: .92; }
  .hero-copy > p { font-size: .92rem; }
  .hero-stats { flex-direction: column; gap: 8px; }
  .profile-panel, .search-panel, .history-section, .camps-section {
    border-radius: 28px;
    padding: 24px 18px;
  }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; }
  .section-heading h2, .modal h2 { font-size: 1.6rem; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
    margin-top: 0;
  }
  .save-state { max-width: 150px; text-align: right; }
  .school-card {
    grid-template-columns: 24px 42px minmax(0, 1fr);
    padding: 12px;
  }
  .school-info { min-width: 0; }
  .school-info h3, .school-info p { overflow-wrap: anywhere; }
  .school-meta { gap: 5px; }
  .contact-rating-top { flex-wrap: wrap; }
  .contact-rating-top strong { width: 100%; }
  .empty-state { min-height: 480px; }
  .recruiting-map { width: min(100%, 360px); }
  .fit-badge { display: none; }
  .limit-copy { align-items: start; flex-direction: column; gap: 4px; }
  .history-section, .camps-section { width: min(100% - 32px, 780px); margin-bottom: 18px; }
  .camps-heading { align-items: stretch; flex-direction: column; }
  .camps-heading-actions { align-items: stretch; flex-direction: column; }
  .camp-state-filter { width: 100%; }
  .camps-toggle { justify-content: space-between; }
  .camp-list { grid-template-columns: 1fr; gap: 8px; }
  .camp-card { grid-template-columns: 1fr; }
  .camp-date { padding: 9px 12px; }
  .camp-details { display: block; padding: 11px 12px; }
  .camp-card-heading { gap: 7px; }
  .camp-meta { grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line); }
  .camp-register { justify-content: flex-start; margin-top: 8px; }
  .history-school-button {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 12px;
  }
  .history-logo { width: 42px; height: 42px; }
  .history-school-main strong,
  .history-school-main small { overflow-wrap: anywhere; }
  .history-meta-line { gap: 5px; }
  .history-card-action {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .history-card-action em { font-size: .56rem; }
  .history-contact-list {
    margin: 0 12px 12px;
    padding: 10px;
  }
  .history-contact-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .modal-backdrop { padding: 10px; align-items: flex-end; }
  .modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 24px 18px;
    border-radius: 16px 16px 0 0;
  }
  .coach-card-top, .contact-lines { flex-direction: column; gap: 6px; }
  .coach-actions, .account-actions { display: grid; grid-template-columns: 1fr; }
  .coach-actions button, .account-actions button { width: 100%; min-height: 46px; }
  .email-actions { grid-template-columns: 1fr; }
  .email-actions .outline-button { margin-top: 18px; }
  .email-send-button { margin-top: 0; }
  .signed-in-panel { align-items: stretch; flex-direction: column; }
}

@media (max-width: 360px) {
  .brand-logo { width: 66px; height: 66px; }
  .hero h1 { font-size: 2.85rem; }
  .profile-panel, .search-panel, .history-section, .camps-section { padding-inline: 14px; }
}
