:root {
  --ink: #07111f;
  --ink-2: #0c1728;
  --muted: #606a7a;
  --line: rgba(13, 24, 41, 0.11);
  --paper: #f6f8fb;
  --paper-2: #eef2f7;
  --panel: #ffffff;
  --maroon: #7a1026;
  --maroon-2: #9f1e34;
  --gold: #f0b323;
  --blue: #164b88;
  --green: #16834f;
  --shadow: 0 24px 70px rgba(9, 17, 31, 0.12);
  --soft-shadow: 0 12px 34px rgba(9, 17, 31, 0.08);
  --radius: 8px;
  --weight-regular: 400;
  --weight-soft: 405;
  --weight-polished: 410;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(960px 460px at 6% -12%, rgba(122, 16, 38, 0.055), transparent 56%),
    linear-gradient(180deg, #f9fbfd 0, var(--paper) 42%, #f7f9fc 100%);
  color: var(--ink);
  font-weight: var(--weight-regular);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

strong,
b,
th,
dt,
summary {
  font-weight: var(--weight-soft);
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
a,
input,
select,
textarea {
  outline-color: color-mix(in srgb, var(--maroon) 64%, white);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 10px clamp(18px, 2.5vw, 34px);
  background: #06101d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(6, 16, 29, 0.22);
}

.brand,
.main-nav,
.button-row,
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand {
  color: #ffffff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: var(--weight-polished);
  line-height: 1;
  text-shadow:
    -1px -1px 0 var(--maroon),
    1px -1px 0 var(--maroon),
    -1px 1px 0 var(--maroon),
    1px 1px 0 var(--maroon);
}

.brand-title,
.brand small {
  display: block;
}

.brand-title {
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: var(--weight-polished);
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: var(--weight-soft);
}

.main-nav {
  justify-content: center;
}

.top-actions {
  justify-content: flex-end;
}

.main-nav a,
.primary-button,
.secondary-button,
.ghost-button,
.back-button,
.moon-button,
.spotify-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: var(--weight-polished);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  padding: 12px 16px;
}

.main-nav a:first-child::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--maroon-2);
}

.main-nav a:hover {
  color: #ffffff;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

.moon-button {
  width: 42px;
  color: #ffffff;
}

.back-button {
  min-height: 44px;
  padding: 0 16px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.primary-button {
  padding: 0 15px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(122, 16, 38, 0.24);
}

.secondary-button {
  padding: 0 15px;
  background: var(--ink);
  color: #ffffff;
}

.ghost-button {
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.compact {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}

main {
  display: grid;
  width: min(1640px, 100%);
  margin: 0 auto;
  gap: 12px;
  padding: 10px;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(560px, 0.41fr) minmax(0, 0.59fr);
  gap: 14px;
  align-items: stretch;
}

.profile-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero {
  position: relative;
  height: 424px;
  min-height: 424px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  border: 1px solid rgba(122, 16, 38, 0.44);
  box-shadow: var(--soft-shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(122, 16, 38, 0.58), transparent 32%),
    linear-gradient(90deg, rgba(10, 12, 19, 0.9), rgba(10, 12, 19, 0.74));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 0.5fr) minmax(250px, 0.5fr);
  gap: 28px;
  align-items: center;
  height: 100%;
  min-height: 424px;
  padding: 26px 32px 0;
  color: #ffffff;
}

.player-photo {
  align-self: end;
  width: min(300px, 100%);
  height: 392px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 0;
  filter: saturate(1.06) contrast(1.03);
}

.hero-copy {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.class-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.class-line strong {
  color: var(--gold);
}

.class-line span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.profile-facts {
  display: grid;
  gap: 12px;
  padding: 6px 0 0;
}

.profile-facts span {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: var(--weight-polished);
}

.profile-facts svg {
  color: #ffffff;
}

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

.stat-tiles span {
  display: grid;
  min-height: 110px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 12px 8px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #07111f, #0d1a2a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

.stat-tiles svg {
  color: var(--gold);
}

.stat-tiles small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.7rem;
  font-weight: var(--weight-polished);
  text-transform: uppercase;
}

.stat-tiles strong {
  max-width: 100%;
  font-size: clamp(0.86rem, 0.96vw, 1.06rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.panel,
.workspace {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.email-panel {
  align-content: start;
  gap: 10px;
  padding: 18px 22px;
  min-height: 0;
}

.section-heading {
  display: grid;
  gap: 6px;
}

.section-heading.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: var(--weight-soft);
  line-height: 1.45;
}

.eyebrow {
  margin: 0;
  color: var(--maroon);
  font-size: 0.75rem;
  font-weight: var(--weight-polished);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--weight-polished);
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 3.8vw, 3.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0;
}

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

.email-grid {
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 0.58fr);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-polished);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: var(--weight-soft);
  box-shadow: inset 0 1px 0 rgba(13, 24, 41, 0.02);
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--maroon) 54%, white);
  box-shadow: 0 0 0 3px rgba(122, 16, 38, 0.11);
}

.template-label {
  gap: 8px;
}

.template-editor {
  width: 100%;
  min-height: 214px;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: var(--weight-soft);
  line-height: 1.5;
  white-space: pre-wrap;
  box-shadow: inset 0 1px 0 rgba(13, 24, 41, 0.02);
}

.template-editor:focus {
  outline: 0;
  border-color: color-mix(in srgb, var(--maroon) 54%, white);
  box-shadow: 0 0 0 3px rgba(122, 16, 38, 0.11);
}

.template-token {
  display: inline-block;
  border-bottom: 2px solid var(--gold);
  border-radius: 4px;
  padding: 0 3px 1px;
  background: rgba(250, 191, 45, 0.18);
  color: #5d0d1d;
  font-weight: var(--weight-polished);
}

.placeholder-help {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -2px;
}

.placeholder-help span {
  border: 1px solid rgba(122, 16, 38, 0.14);
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff8e8;
  color: #5d0d1d;
  font-size: 0.74rem;
  font-weight: var(--weight-polished);
}

textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.42;
}

.email-panel textarea {
  height: 152px;
  min-height: 152px;
}

.school-strip {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fafc, #f4f0e8);
  border: 1px solid rgba(13, 24, 41, 0.12);
  border-left: 6px solid var(--blue);
}

.school-strip strong {
  font-size: 1.14rem;
}

.school-title {
  display: block;
  font-size: 1.14rem;
  font-weight: var(--weight-polished);
}

.school-strip span,
.status {
  color: var(--muted);
  font-weight: var(--weight-soft);
}

.email-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status {
  margin: 0;
}

.status::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--green);
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(500px, 1.45fr) minmax(280px, 0.72fr) minmax(300px, 0.86fr);
  gap: 12px;
}

.queue-panel,
.video-panel,
.music-panel {
  align-content: start;
}

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

.queue button {
  display: grid;
  min-height: 176px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.queue button:hover {
  border-color: rgba(122, 16, 38, 0.28);
  box-shadow: 0 12px 26px rgba(9, 17, 31, 0.1);
  transform: translateY(-1px);
}

.queue button.selected {
  border-color: var(--maroon-2);
  box-shadow: inset 0 0 0 1px rgba(122, 16, 38, 0.28);
}

.school-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--school-color, #123d75);
  color: var(--school-accent, #ffffff);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(13, 24, 41, 0.12), 0 8px 18px rgba(9, 17, 31, 0.12);
  font-size: 1.02rem;
  font-weight: var(--weight-polished);
}

.queue strong {
  font-size: 0.9rem;
  line-height: 1.22;
}

.queue span:not(.school-logo) {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.queue-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-polished);
}

.queue-footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--maroon);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: var(--weight-polished);
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #101820;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101820;
}

.media-caption {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: var(--weight-soft);
}

.songs {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.song-row {
  display: grid;
  grid-template-columns: 34px 1fr auto 24px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.song-row:last-child {
  border-bottom: 0;
}

.song-play {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
}

.song-row strong {
  font-size: 0.85rem;
}

.song-row small {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.song-row .dots {
  color: var(--muted);
  text-align: right;
}

.spotify-button {
  width: 100%;
  min-height: 38px;
  background: #ffffff;
  border-color: var(--ink);
  color: var(--ink);
}

.utility-section {
  margin-top: 2px;
}

.profile-panel {
  position: static;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-weight: var(--weight-polished);
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 2.5vw, 34px);
  background: #06101d;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: var(--weight-soft);
}

.app-footer span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.app-footer strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

body.contacts-page .contacts-main {
  gap: 18px;
  width: min(1480px, 100%);
}

.contacts-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
  gap: 22px;
  align-items: end;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(6, 16, 29, 0.94), rgba(122, 16, 38, 0.76)),
    url("assets/basketball-court.jpg") center / cover;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.contacts-hero .eyebrow {
  color: var(--gold);
}

.contacts-hero p:not(.eyebrow) {
  max-width: 840px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

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

.contacts-metrics > span {
  display: grid;
  gap: 4px;
  min-height: 86px;
  align-content: center;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: var(--weight-soft);
  text-transform: uppercase;
}

.contacts-metrics .metric-value {
  color: #ffffff;
  font-size: 2rem;
  font-weight: var(--weight-polished);
}

.worksheet-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.worksheet-tabs button {
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: var(--weight-polished);
  cursor: pointer;
}

.worksheet-tabs button.active {
  color: var(--maroon);
  border-color: var(--maroon);
}

.table-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.32fr) minmax(190px, 0.26fr);
  align-items: end;
  gap: 12px;
}

.table-summary {
  color: var(--muted);
  font-weight: var(--weight-soft);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contacts-table {
  width: 100%;
  min-width: 2260px;
  border-collapse: collapse;
}

.contacts-table th,
.contacts-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.contacts-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-soft);
  text-transform: uppercase;
}

.contacts-table td {
  font-size: 0.9rem;
  line-height: 1.38;
}

.contacts-table td span,
.contacts-table td em,
.contacts-table td a {
  display: block;
}

.contacts-table td em {
  color: var(--muted);
  font-style: normal;
}

.contacts-table td a {
  color: var(--blue);
  font-weight: var(--weight-polished);
}

.contacts-table .history-button {
  width: max-content;
  color: var(--ink);
}

.history-modal[hidden] {
  display: none;
}

.history-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 10, 20, 0.58);
  backdrop-filter: blur(10px);
}

.history-dialog {
  width: min(980px, 96vw);
  max-height: min(780px, 92vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(3, 10, 20, 0.35);
}

.history-body {
  margin-top: 14px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-entry {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.history-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: var(--weight-soft);
}

.history-meta .item-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: var(--weight-polished);
}

.history-entry pre {
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  font-weight: var(--weight-soft);
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .main-nav,
  .top-actions {
    justify-content: flex-start;
  }

  .command-grid,
  .lower-grid,
  .contacts-hero {
    grid-template-columns: 1fr;
  }

  .queue {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 8px;
    min-height: 0;
    padding: 10px 16px;
  }

  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .top-actions {
    width: 100%;
  }

  .public-topbar .top-actions {
    display: none;
  }

  .back-button {
    flex: 1;
    min-height: 38px;
  }

  main {
    padding: 10px;
  }

  .hero,
  .hero-content {
    height: auto;
    min-height: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .player-photo {
    width: 100%;
    height: min(52vh, 430px);
    object-position: 50% 10%;
    border-radius: var(--radius);
  }

  .stat-tiles strong {
    font-size: 1.08rem;
  }

  .profile-facts span {
    font-size: 0.96rem;
  }

  .stat-tiles,
  .queue,
  .field-grid,
  .email-grid,
  .contacts-metrics,
  .table-tools {
    grid-template-columns: 1fr;
  }

  .song-row {
    grid-template-columns: 34px 1fr 24px;
  }

  .song-row small {
    display: none;
  }

  .queue-footer,
  .email-footer,
  .app-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.public-main strong,
.admin-main strong,
.contacts-main strong,
.response-main strong,
.app-footer strong {
  font-weight: var(--weight-polished);
}

/* 2026 public prospectus + admin studio */
.public-page {
  background:
    linear-gradient(180deg, #f8fafc 0, #eef2f6 44%, #f6f8fb 100%);
}

.public-main {
  width: min(1420px, 100%);
  gap: 18px;
  padding: 18px;
}

.public-main > section {
  scroll-margin-top: 132px;
}

.public-topbar .main-nav a:first-child::after {
  background: var(--gold);
}

.public-cta {
  border-color: rgba(240, 179, 35, 0.5);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  align-items: stretch;
  min-height: 650px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(6, 16, 29, 0.96), rgba(122, 16, 38, 0.84)),
    url("assets/basketball-court.jpg") center / cover;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.landing-photo-wrap {
  display: grid;
  align-items: center;
  padding: 34px 18px 34px 36px;
  background:
    linear-gradient(90deg, rgba(6, 16, 29, 0.34), rgba(6, 16, 29, 0)),
    radial-gradient(circle at 20% 16%, rgba(240, 179, 35, 0.16), transparent 32%);
}

.landing-photo {
  width: min(370px, 100%);
  height: min(596px, 76vh);
  justify-self: center;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.landing-copy {
  display: grid;
  align-content: center;
  gap: 24px;
  min-width: 0;
  padding: clamp(32px, 5vw, 76px);
}

.availability {
  margin: 0;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: var(--weight-polished);
}

.landing-copy h1 {
  max-width: 940px;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.94;
}

.landing-lede {
  max-width: 790px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.55;
  font-weight: var(--weight-polished);
}

.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-actions .ghost-button {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}

.hero-proof > span {
  display: grid;
  gap: 6px;
  min-height: 94px;
  align-content: center;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.17);
}

.hero-proof small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: var(--weight-soft);
  text-transform: uppercase;
}

.hero-proof .fact-value {
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  font-weight: var(--weight-polished);
  line-height: 1.05;
}

.impact-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.impact-band article,
.prospect-card,
.contact-section,
.video-showcase {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.impact-band article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
}

.impact-band svg {
  color: var(--maroon);
}

.impact-band h2,
.prospect-card h3,
.video-copy h2,
.contact-copy h2,
.section-intro h2 {
  margin: 0;
  font-size: clamp(1.22rem, 1.7vw, 2rem);
  line-height: 1.02;
}

.impact-band p,
.prospect-card p,
.section-intro p,
.video-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-weight: var(--weight-polished);
}

.prospectus-section {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 52px) 0;
}

.section-intro {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.prospectus-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
}

.prospect-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.prospect-card.featured {
  grid-row: span 2;
  background:
    linear-gradient(180deg, rgba(6, 16, 29, 0.94), rgba(10, 26, 44, 0.96)),
    url("assets/basketball-court.jpg") center / cover;
  color: #ffffff;
}

.prospect-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.video-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
}

.video-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.public-video-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 18px 42px rgba(9, 17, 31, 0.18);
}

.public-video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.response-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 36px);
}

.response-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - 190px);
}

.response-copy,
.response-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.response-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(26px, 5vw, 62px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(5, 12, 22, 0.84), rgba(122, 16, 38, 0.76)),
    url("assets/basketball-court.jpg") center / cover;
}

.response-copy h1 {
  max-width: 720px;
}

.response-copy p:not(.availability) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: var(--weight-polished);
}

.response-panel {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: clamp(18px, 3vw, 30px);
  background: #ffffff;
}

.response-school {
  padding: 13px 14px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 6px solid var(--maroon);
  color: var(--ink);
  font-weight: var(--weight-polished);
}

.response-options {
  display: grid;
  gap: 10px;
}

.response-option {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(9, 17, 31, 0.07);
}

.response-option:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 16, 38, 0.28);
  box-shadow: 0 16px 34px rgba(9, 17, 31, 0.12);
}

.response-option svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 999px;
  color: #ffffff;
}

.response-option.high svg {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-2));
}

.response-option.moderate svg {
  background: linear-gradient(135deg, var(--blue), #2266ad);
}

.response-option.exploring svg {
  background: linear-gradient(135deg, #315342, var(--green));
}

.response-option .option-title,
.response-option small {
  display: block;
}

.response-option .option-title {
  font-size: 1rem;
  font-weight: var(--weight-polished);
  line-height: 1.15;
}

.response-option small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: var(--weight-soft);
  line-height: 1.35;
}

.quick-note textarea {
  min-height: 104px;
}

.action-gallery {
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 46px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(6, 16, 29, 0.98), rgba(122, 16, 38, 0.9)),
    url("assets/basketball-court.jpg") center / cover;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.gallery-intro {
  max-width: 860px;
}

.gallery-intro h2 {
  color: #ffffff;
}

.gallery-intro p {
  color: rgba(255, 255, 255, 0.76);
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.12fr) repeat(2, minmax(210px, 0.72fr));
  grid-template-rows: repeat(2, 295px);
  grid-auto-rows: 295px;
  gap: 10px;
}

.gallery-frame {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #07111f;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.gallery-frame.featured {
  grid-row: span 2;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-frame:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.gallery-frame.shot-release img {
  object-position: 50% 22%;
}

.gallery-frame.touch img {
  object-position: 50% 35%;
}

.gallery-frame.release img {
  object-position: 50% 24%;
}

.gallery-frame.pressure img {
  object-position: 50% 52%;
}

.gallery-frame.rebound img {
  object-position: 50% 36%;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
  gap: 24px;
  padding: clamp(22px, 4vw, 44px);
}

.contact-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #07111f;
  color: #ffffff;
  font-weight: var(--weight-polished);
}

.contact-note svg {
  color: var(--gold);
}

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

.contact-form .full,
.contact-form button,
.form-status {
  grid-column: 1 / -1;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: var(--weight-soft);
}

.admin-corner-link {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--radius);
  background: rgba(6, 16, 29, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: var(--weight-polished);
}

.admin-page {
  background: #eef2f6;
}

.admin-login,
.admin-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(6, 16, 29, 0.96), rgba(122, 16, 38, 0.88)),
    url("assets/basketball-court.jpg") center / cover;
}

.admin-auth-overlay {
  background:
    linear-gradient(135deg, rgba(6, 16, 29, 0.98), rgba(122, 16, 38, 0.9)),
    url("assets/basketball-court.jpg") center / cover;
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(440px, 100%);
  padding: 30px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-card .brand-mark {
  width: 44px;
  height: 44px;
}

.login-card h1 {
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.login-error {
  color: var(--maroon) !important;
  font-weight: var(--weight-polished);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 20px;
  height: 100vh;
  padding: 22px;
  background: #06101d;
  color: #ffffff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.admin-brand .brand-title,
.admin-brand small {
  display: block;
}

.admin-brand small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: var(--weight-soft);
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: var(--weight-polished);
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-main {
  width: 100%;
  padding: 18px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(6, 16, 29, 0.96), rgba(19, 43, 70, 0.94)),
    url("assets/basketball-court.jpg") center / cover;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
}

.admin-header h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4rem);
}

.admin-header p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.52;
}

.admin-header-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.admin-metrics article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.admin-metrics small {
  color: var(--muted);
  font-weight: var(--weight-polished);
  text-transform: uppercase;
}

.admin-metrics .metric-value {
  font-size: 2.2rem;
  font-weight: var(--weight-polished);
  color: var(--ink);
}

.admin-metrics article > span:not(.metric-value) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-soft);
}

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

.webmail-panel {
  display: grid;
  gap: 16px;
}

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

.webmail-grid article {
  display: grid;
  gap: 6px;
  min-height: 132px;
  align-content: start;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f8fafc;
}

.webmail-grid small,
.suppression-card small {
  color: var(--muted);
  font-weight: var(--weight-polished);
  text-transform: uppercase;
}

.webmail-grid .webmail-value {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.2rem;
  font-weight: var(--weight-polished);
  color: var(--ink);
}

.webmail-grid article > span:not(.webmail-value),
.field-note,
.suppression-card p,
.run-toolbar span {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: var(--weight-soft);
  line-height: 1.42;
}

.field-note {
  display: block;
  margin-top: 6px;
}

.admin-panel {
  align-content: start;
}

.message-list {
  display: grid;
  gap: 10px;
  max-height: 500px;
  overflow: auto;
}

.message-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f8fafc;
}

.message-item .item-title,
.message-item span {
  display: block;
}

.message-item .item-title {
  color: var(--ink);
  font-weight: var(--weight-polished);
}

.message-item span,
.message-item p,
.message-item small {
  color: var(--muted);
}

.message-item p {
  margin: 0;
  line-height: 1.5;
}

.message-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.composer-card,
.run-card {
  display: grid;
  gap: 12px;
}

.admin-school-strip {
  background: #f8fafc;
}

.run-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f8fafc;
}

.suppression-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(122, 16, 38, 0.18);
  background:
    linear-gradient(180deg, rgba(122, 16, 38, 0.045), rgba(240, 179, 35, 0.035)),
    #ffffff;
}

.suppression-card .section-title {
  display: block;
  margin-bottom: 4px;
  font-weight: var(--weight-polished);
}

.suppression-card textarea {
  min-height: 112px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.check-row input {
  width: auto;
  min-width: 18px;
  height: 18px;
}

.progress-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px solid var(--line);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: var(--weight-soft);
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e8f0;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
  transition: width 240ms ease;
}

.run-log {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
  border-radius: var(--radius);
  background: #07111f;
  color: #ffffff;
}

.run-log p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
}

.run-log time {
  color: var(--gold);
  font-weight: var(--weight-polished);
}

.contact-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.24fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-contact-list {
  display: grid;
  max-height: min(680px, 72vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overscroll-behavior: contain;
}

.admin-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.admin-contact-row:last-child {
  border-bottom: 0;
}

.admin-contact-row.active {
  background: #f8fafc;
  box-shadow: inset 4px 0 0 var(--maroon);
}

.admin-contact-row small {
  color: var(--muted);
}

.admin-contact-row .check-row {
  align-items: center;
}

.school-logo-mini {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--school-color, #164b88);
  color: var(--school-accent, #ffffff);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(13, 24, 41, 0.14), 0 8px 18px rgba(9, 17, 31, 0.1);
  font-size: 0.8rem;
  font-weight: var(--weight-polished);
  letter-spacing: 0;
}

.contact-row-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-consent-date {
  display: grid;
  gap: 4px;
  min-width: 150px;
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-consent-date input {
  min-height: 34px;
  padding: 6px 8px;
}

.contact-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: var(--weight-polished);
  line-height: 1;
}

.contact-status.clear {
  color: #0f6f45;
  background: rgba(22, 131, 79, 0.12);
}

.contact-status.partial {
  color: #76520c;
  background: rgba(240, 179, 35, 0.18);
}

.contact-status.suppressed {
  color: var(--maroon);
  background: rgba(122, 16, 38, 0.12);
}

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

.admin-media-grid article {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f8fafc;
}

.admin-media-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.admin-media-grid .media-label {
  font-size: 0.9rem;
  font-weight: var(--weight-soft);
}

/* Premium SaaS polish: hierarchy comes from scale, color, and surface quality instead of bold type. */
h1,
h2,
h3,
h4,
h5,
h6,
.brand-title,
.item-title,
.section-title,
.metric-value,
.webmail-value,
.fact-value,
.school-title,
.option-title,
label,
button,
a,
th,
strong,
b {
  font-weight: var(--weight-polished);
}

p,
small,
span,
li,
td,
input,
select,
textarea,
.section-note,
.form-status {
  font-weight: var(--weight-regular);
}

.topbar,
.admin-sidebar,
.admin-header,
.landing-hero,
.action-gallery,
.contacts-hero,
.response-copy {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar {
  background:
    linear-gradient(135deg, rgba(5, 13, 24, 0.98), rgba(9, 24, 40, 0.96)),
    #06101d;
  box-shadow: 0 16px 44px rgba(4, 10, 19, 0.18);
}

.brand-mark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  text-shadow:
    -1px -1px 0 rgba(122, 16, 38, 0.95),
    1px -1px 0 rgba(122, 16, 38, 0.95),
    -1px 1px 0 rgba(122, 16, 38, 0.95),
    1px 1px 0 rgba(122, 16, 38, 0.95);
}

.main-nav a,
.admin-sidebar nav a {
  border: 1px solid transparent;
  transition: background 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.main-nav a:hover,
.admin-sidebar nav a:hover,
.main-nav a:focus-visible,
.admin-sidebar nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.primary-button,
.secondary-button,
.ghost-button,
.back-button {
  min-height: 42px;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.back-button:hover,
.response-option:hover,
.queue button:hover,
.admin-contact-row:hover {
  transform: translateY(-1px);
}

.primary-button {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--maroon), var(--maroon-2));
  box-shadow: 0 14px 32px rgba(122, 16, 38, 0.22);
}

.secondary-button {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0)),
    var(--ink);
  box-shadow: 0 12px 28px rgba(7, 17, 31, 0.12);
}

.ghost-button,
.response-option,
.admin-contact-row,
.message-item,
.webmail-grid article,
.admin-media-grid article,
.prospect-card,
.impact-band article,
.contact-section,
.video-showcase,
.panel,
.workspace {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92)),
    #ffffff;
  border-color: rgba(13, 24, 41, 0.105);
}

.panel,
.workspace,
.admin-metrics article,
.webmail-grid article,
.message-item,
.response-panel,
.prospect-card,
.impact-band article,
.contact-section,
.video-showcase {
  box-shadow: 0 14px 42px rgba(9, 17, 31, 0.07);
}

input,
select,
textarea,
.template-editor {
  min-height: 42px;
  background:
    linear-gradient(180deg, #ffffff, #fbfcfe);
  border-color: rgba(13, 24, 41, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

textarea,
.template-editor {
  line-height: 1.54;
}

.public-page {
  background:
    radial-gradient(840px 380px at 100% 0, rgba(240, 179, 35, 0.06), transparent 58%),
    linear-gradient(180deg, #fafbfc 0, #eef2f7 52%, #f8fafc 100%);
}

.landing-hero,
.action-gallery,
.contacts-hero,
.response-copy,
.admin-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.landing-hero::before,
.action-gallery::before,
.contacts-hero::before,
.response-copy::before,
.admin-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.075), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
  pointer-events: none;
}

.landing-hero > *,
.action-gallery > *,
.contacts-hero > *,
.response-copy > *,
.admin-header > * {
  position: relative;
  z-index: 1;
}

.landing-photo {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 26px 74px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  filter: saturate(1.05) contrast(1.02);
}

.landing-copy h1,
.response-copy h1,
.admin-header h1,
.contacts-hero h1 {
  font-weight: var(--weight-regular);
}

.landing-lede,
.impact-band p,
.prospect-card p,
.section-intro p,
.video-copy p,
.contact-copy p,
.response-copy p:not(.availability),
.admin-header p {
  font-weight: var(--weight-regular);
}

.hero-proof > span,
.contacts-metrics > span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.impact-band article,
.prospect-card,
.video-showcase,
.contact-section {
  position: relative;
}

.impact-band article::before,
.prospect-card:not(.featured)::before,
.video-showcase::before,
.contact-section::before,
.admin-metrics article::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--maroon), var(--gold), var(--blue));
  opacity: 0.8;
}

.gallery-frame,
.public-video-frame,
.admin-media-grid img {
  border: 1px solid rgba(255, 255, 255, 0.18);
  filter: saturate(1.04) contrast(1.02);
}

.admin-page {
  background:
    radial-gradient(960px 500px at 100% -10%, rgba(22, 75, 136, 0.08), transparent 58%),
    linear-gradient(180deg, #f8fafc 0, #edf1f6 100%);
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(10, 26, 44, 0.74), rgba(6, 16, 29, 0.98)),
    #06101d;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 18px 0 42px rgba(7, 17, 31, 0.08);
}

.admin-sidebar nav a {
  color: rgba(255, 255, 255, 0.76);
}

.admin-sidebar nav a:hover {
  color: #ffffff;
}

.admin-header {
  min-height: 214px;
  align-items: center;
  box-shadow: 0 20px 58px rgba(7, 17, 31, 0.16);
}

.admin-header-actions {
  align-items: center;
}

.admin-metrics article {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  background:
    linear-gradient(180deg, #ffffff, #f9fbfd);
}

.admin-metrics .metric-value,
.contacts-metrics .metric-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.webmail-grid article,
.run-toolbar,
.progress-panel,
.admin-school-strip,
.message-item,
.admin-contact-row,
.admin-media-grid article {
  background:
    linear-gradient(180deg, #fbfcfe, #f7f9fc);
}

.admin-contact-list {
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-contact-row {
  transition: background 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.admin-contact-row.active {
  background:
    linear-gradient(90deg, rgba(122, 16, 38, 0.065), rgba(248, 250, 252, 0.98));
}

.school-logo,
.school-logo-mini {
  box-shadow:
    0 0 0 1px rgba(13, 24, 41, 0.12),
    0 10px 22px rgba(9, 17, 31, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.contact-status {
  font-weight: var(--weight-regular);
}

.template-token,
.placeholder-help span,
.count-pill {
  font-weight: var(--weight-regular);
}

.run-log {
  background:
    linear-gradient(180deg, #07111f, #0b1829);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast {
  background:
    linear-gradient(135deg, #07111f, #102139);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: var(--weight-regular);
}

@media (max-width: 1100px) {
  .landing-hero,
  .video-showcase,
  .response-hero,
  .contact-section,
  .prospectus-grid,
  .webmail-grid,
  .admin-grid.two-col,
  .admin-campaign-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof,
  .impact-band,
  .gallery-grid,
  .admin-metrics,
  .admin-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-rows: none;
    grid-auto-rows: 295px;
  }

  .gallery-frame.featured {
    grid-row: span 2;
  }

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

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
    padding: 10px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 84%, transparent);
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 10px 12px;
  }

  .top-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .public-topbar .top-actions {
    display: none;
  }

  .public-main,
  .response-main,
  .admin-main {
    padding: 10px;
  }

  .public-main > section {
    scroll-margin-top: 260px;
  }

  .landing-copy {
    order: -1;
    gap: 14px;
    padding: 18px;
  }

  .landing-copy h1 {
    font-size: 2.35rem;
    line-height: 0.98;
  }

  .landing-lede {
    font-size: 0.96rem;
    line-height: 1.4;
  }

  .landing-photo-wrap {
    padding: 0 18px 18px;
  }

  .landing-photo {
    width: 100%;
    height: 124px;
    object-position: 50% 12%;
  }

  .hero-proof {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-top: 0;
    scrollbar-width: none;
  }

  .hero-proof::-webkit-scrollbar {
    display: none;
  }

  .hero-proof > span {
    flex: 0 0 134px;
    min-height: 66px;
    padding: 10px;
  }

  .hero-proof .fact-value {
    font-size: 1rem;
  }

  .impact-band,
  .gallery-grid,
  .admin-metrics,
  .admin-media-grid,
  .contact-form,
  .contact-tools,
  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .action-gallery {
    padding: 18px;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .gallery-frame,
  .gallery-frame.featured {
    min-height: 360px;
    height: min(520px, 75vh);
    grid-row: auto;
  }

  .admin-header,
  .message-actions,
  .run-toolbar,
  .admin-contact-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-row-actions {
    justify-content: flex-start;
  }

  .admin-corner-link {
    right: 10px;
    bottom: 10px;
  }

  .response-copy,
  .response-panel {
    padding: 20px;
  }

  .response-option {
    grid-template-columns: 34px 1fr;
    min-height: 86px;
    padding: 12px;
  }

  .response-option svg {
    width: 34px;
    height: 34px;
  }
}
