:root {
  color-scheme: light;
  --green-950: #0a3823;
  --green-800: #165c36;
  --green-700: #1d7042;
  --green-100: #e5f2e9;
  --gold: #c99a2e;
  --ink: #17231d;
  --muted: #66736c;
  --line: #d8e0db;
  --danger: #a62c2c;
  --surface: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: radial-gradient(circle at 15% 10%, rgba(201, 154, 46, 0.16), transparent 28rem), linear-gradient(145deg, var(--green-950), var(--green-700));
}

button, input, select { font: inherit; }

.access-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom));
}

.access-card {
  width: min(100%, 28rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 4rem rgba(4, 26, 15, 0.3);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 2rem 1.35rem;
  color: #fff;
  background: linear-gradient(150deg, var(--green-950), var(--green-700));
}

.brand__logo {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0.65rem 0.9rem rgba(0, 0, 0, 0.22));
}

.brand__eyebrow {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-card__content { padding: 1.75rem; }

.access-card__content > header {
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 7vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.access-card__intro {
  margin: 0.7rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #f5f8f6;
}

.login-mode-tab {
  min-height: 2.65rem;
  border: 0;
  border-radius: 0.65rem;
  color: var(--green-800);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.login-mode-tab.is-active {
  color: #fff;
  background: var(--green-800);
  box-shadow: 0 0.35rem 0.8rem rgba(22, 92, 54, 0.2);
}

.field-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-weight: 750;
}

.text-field {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.text-field:focus-within {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px var(--green-100);
}

.text-field.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(166, 44, 44, 0.1);
}

.text-field input {
  width: 100%;
  min-width: 0;
  padding: 0 1rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
}

.text-field select {
  width: 100%;
  min-height: 3.4rem;
  padding: 0 1rem;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.text-field input::placeholder { color: #99a29d; }

.field-label--spaced { margin-top: 1rem; }

.field-hint, .field-error, .form-status, .privacy-note {
  font-size: 0.78rem;
  line-height: 1.45;
}

.field-hint { margin: 0.5rem 0 0; color: var(--muted); }
.field-error { margin: 0.5rem 0 0; color: var(--danger); font-weight: 650; }

.primary-button {
  width: 100%;
  min-height: 3.5rem;
  margin-top: 1.3rem;
  border: 0;
  border-radius: 0.9rem;
  color: #fff;
  background: var(--green-800);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover { background: var(--green-950); }
.primary-button:active { transform: translateY(1px); }
.primary-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.primary-button:disabled { cursor: wait; opacity: 0.72; }

.phone-login__code {
  margin: 0.6rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 0.78rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.phone-login__restart {
  display: block;
  margin: 0.8rem auto 0;
  padding: 0.35rem;
  border: 0;
  color: var(--green-800);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
}

.form-status {
  min-height: 1.15rem;
  margin: 0.65rem 0 0;
  color: var(--green-800);
  font-weight: 650;
  text-align: center;
}

.accreditation-match-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.accreditation-match-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.accreditation-match-grid article > div,
.accreditation-record > div:first-child {
  display: grid;
  gap: 0.25rem;
}

.accreditation-match-grid span,
.accreditation-match-grid small,
.accreditation-record small { color: var(--muted); }
.accreditation-match-grid .primary-button { width: auto; min-width: 12rem; margin: 0; padding-inline: 1rem; }
.accreditation-metrics { margin: 1rem 0 2rem; }
.accreditation-approval { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.accreditation-approval select { min-height: 2.8rem; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff; }

@media (max-width: 680px) {
  .accreditation-match-grid article { align-items: stretch; flex-direction: column; }
  .accreditation-match-grid .primary-button { width: 100%; }
}

.privacy-note {
  margin: 1.35rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 420px) {
  .access-shell { padding-inline: 0; background: var(--surface); }
  .access-card { min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .brand { padding-top: max(2rem, env(safe-area-inset-top)); }
}

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

.portal-body { background: #f2f6f3; }

.portal-header {
  padding: max(0.75rem, env(safe-area-inset-top)) 1.25rem 0.75rem;
  background: var(--green-950);
  box-shadow: 0 0.3rem 1rem rgba(4, 26, 15, 0.16);
}

.portal-header-bar {
  width: min(100%, 68rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.portal-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.portal-brand img { width: 2.8rem; height: 2.8rem; object-fit: contain; }
.portal-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.portal-header-button {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  appearance: none;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.portal-header-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.portal-main { width: min(calc(100% - 2rem), 68rem); margin: 0 auto; padding: 2.5rem 0 4rem; }
.portal-main--narrow { max-width: 42rem; }
.welcome-block { margin-bottom: 2.5rem; }
.welcome-block h1, .season-panel h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.welcome-block > p:last-child, .panel-intro { color: var(--muted); line-height: 1.55; }

.section-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--green-700);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-main h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0.6rem 1.8rem rgba(11, 56, 35, 0.07);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.feature-card:hover { transform: translateY(-2px); border-color: #a8c5b3; box-shadow: 0 0.9rem 2.2rem rgba(11, 56, 35, 0.12); }
.feature-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.feature-card--wide { min-height: 12rem; }
.feature-card__icon { font-size: 2rem; }
.feature-card__title { margin-top: 1rem; font-size: 1.15rem; font-weight: 850; }
.feature-card__copy { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.feature-card__action { margin-top: auto; padding-top: 1rem; color: var(--green-700); font-weight: 800; }
.empty-state { padding: 1.5rem; border: 1px dashed #b9c9bf; border-radius: 1rem; color: var(--muted); background: #fff; }

.back-link { display: inline-block; margin-bottom: 1rem; color: var(--green-800); font-weight: 750; text-decoration: none; }
.season-panel { padding: clamp(1.35rem, 5vw, 2rem); border: 1px solid var(--line); border-radius: 1.3rem; background: #fff; box-shadow: 0 0.8rem 2rem rgba(11, 56, 35, 0.08); }
.panel-intro { margin: 0.7rem 0 1.8rem; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.primary-link { display: block; padding: 1rem; border-radius: 0.9rem; color: #fff; background: var(--green-800); font-weight: 800; text-align: center; text-decoration: none; }
.season-form > .field-label:not(:first-of-type) { margin-top: 1rem; }
.form-heading, .list-heading, .season-record, .season-record__meta { display: flex; align-items: center; }
.form-heading { justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; }
.form-heading h2, .list-heading h2 { margin: 0; }
.form-heading a { color: var(--green-800); font-size: 0.86rem; font-weight: 750; }
.action-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.action-toolbar .primary-button,
.action-toolbar .secondary-button {
  width: auto;
  min-width: 10rem;
  min-height: 3rem;
  margin-top: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-actions .primary-button,
.form-actions .secondary-button {
  flex: 1 1 12rem;
  margin-top: 0;
}

.notice { margin: 0 0 1.4rem; padding: 0.9rem 1rem; border-radius: 0.85rem; line-height: 1.45; }
.notice ul { margin: 0; padding-left: 1.2rem; }
.notice--success { border: 1px solid #abd1b8; color: var(--green-950); background: var(--green-100); }
.notice--error { border: 1px solid #e0b4b4; color: var(--danger); background: #fff2f2; }
.season-list { margin-top: 2rem; }
.list-heading { justify-content: space-between; margin-bottom: 1rem; }
.list-heading > span { min-width: 2rem; padding: 0.3rem 0.6rem; border-radius: 999px; color: var(--green-950); background: var(--green-100); font-weight: 850; text-align: center; }
.season-records { display: grid; gap: 0.75rem; }
.season-record { justify-content: space-between; gap: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.season-record h3 { margin: 0.35rem 0; font-size: 1rem; }
.season-record p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.season-record__meta { gap: 0.55rem; color: var(--green-800); font-size: 0.78rem; }
.status-badge { padding: 0.18rem 0.5rem; border-radius: 999px; color: #4e5a53; background: #edf0ee; font-size: 0.7rem; font-weight: 800; }
.status-badge--active { color: var(--green-950); background: var(--green-100); }
.status-badge--closed { color: #6f5621; background: #f7edcf; }
.secondary-button { flex: 0 1 auto; max-width: 100%; padding: 0.65rem 0.85rem; border: 1px solid #aac2b2; border-radius: 0.75rem; color: var(--green-800); font-size: 0.82rem; font-weight: 800; overflow-wrap: anywhere; text-align: center; text-decoration: none; }
.secondary-button:hover { background: var(--green-100); }
.check-field { display: flex; align-items: center; gap: 0.65rem; margin-top: 1rem; font-size: 0.9rem; font-weight: 700; }
.check-field input { width: 1.1rem; height: 1.1rem; accent-color: var(--green-800); }
.pass-right-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.pass-right-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #f8fbf9;
  cursor: pointer;
}

.pass-right-option input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--green-800);
}

.pass-right-option span {
  display: grid;
  gap: 0.15rem;
}

.pass-right-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.relation-panel { margin-top: 2rem; }
.relation-panel[id] { scroll-margin-top: 1rem; }
.relation-panel > h2 { margin: 0; }
.season-picker { margin: 1.2rem 0; }
.match-home-venue { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 0.85rem; background: #f7faf8; }
.match-home-venue .section-eyebrow { margin-bottom: 0.8rem; }
.season-picker .secondary-button { margin-top: 0.6rem; }
.compact-empty { margin: 1rem 0; }
.attached-teams { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.attached-teams span { padding: 0.45rem 0.7rem; border-radius: 999px; color: var(--green-950); background: var(--green-100); font-size: 0.82rem; font-weight: 750; }
.attach-form { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.65rem; margin-top: 1rem; }
.team-summary, .team-actions { display: flex; align-items: center; gap: 0.8rem; }
.team-logo { display: grid; flex: 0 0 auto; width: 3.5rem; height: 3.5rem; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 0.85rem; background: #f5f8f6; font-size: 1.5rem; }
.team-logo img { width: 100%; height: 100%; object-fit: contain; }
.team-actions { flex: 0 0 auto; }
.logo-form { margin: 0; }
.logo-button { display: block; cursor: pointer; }
.logo-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.optional-label { color: var(--muted); font-weight: 500; }
.file-field { width: 100%; padding: 0.65rem; border: 1px dashed #aac2b2; border-radius: 0.85rem; color: var(--muted); background: #f8faf9; }
.file-field::file-selector-button { margin-right: 0.75rem; padding: 0.55rem 0.7rem; border: 0; border-radius: 0.6rem; color: #fff; background: var(--green-800); font-weight: 750; cursor: pointer; }
.context-picker { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 0.75rem; }
.context-picker .secondary-button { min-height: 3.5rem; }
.compact-form { margin-top: 1.2rem; }
.phase-list { display: grid; gap: 0.55rem; margin-top: 1.2rem; }
.phase-list > div { display: grid; grid-template-columns: 2rem 1fr auto auto; align-items: center; gap: 0.7rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: 0.8rem; }
.phase-list span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: var(--green-950); background: var(--green-100); font-weight: 850; }
.phase-list small { color: var(--muted); }
.record-actions { display: flex; min-width: 0; max-width: 100%; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.record-actions form { margin: 0; }
.danger-button { padding: 0.65rem 0.85rem; border: 1px solid #ddb5b5; border-radius: 0.75rem; color: var(--danger); background: #fff7f7; font-size: 0.82rem; font-weight: 800; cursor: pointer; }
.danger-button:hover { background: #ffeaea; }
.match-context { display: grid; gap: 0.7rem; }
.match-context label, .score-grid label { display: grid; gap: 0.35rem; color: var(--ink); font-size: 0.82rem; font-weight: 750; }
.match-context select, .score-grid select, .score-grid input { width: 100%; min-height: 3rem; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: 0.75rem; color: var(--ink); background: #fff; }
.match-context .secondary-button { min-height: 3rem; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 0.7rem; margin-top: 1rem; }
.person-summary { display: flex; min-width: 0; flex: 1 1 auto; align-items: flex-start; gap: 0.85rem; }
.person-photo { display: grid; flex: 0 0 auto; width: 4rem; height: 4rem; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: #f5f8f6; font-size: 1.6rem; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo-form { flex: 0 0 auto; margin: 0; }
.person-photo--editable { position: relative; overflow: visible; cursor: pointer; }
.person-photo--editable img { overflow: hidden; border-radius: 50%; }
.person-photo__edit { position: absolute; right: -0.15rem; bottom: -0.15rem; display: grid; width: 1.45rem; height: 1.45rem; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--green-800); box-shadow: 0 0.15rem 0.4rem rgba(4, 26, 15, 0.22); font-size: 0.78rem; font-weight: 900; line-height: 1; }
.person-photo__input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.person-photo--editable:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.person-details { min-width: 0; flex: 1 1 auto; }
.person-name { display: flex; align-items: center; gap: 0.35rem; }
.inline-edit { display: inline-grid; flex: 0 0 auto; width: 1.55rem; height: 1.55rem; place-items: center; border-radius: 50%; color: var(--green-800); font-size: 0.9rem; font-weight: 900; line-height: 1; text-decoration: none; }
.inline-edit:hover { background: #d5eadc; }
.inline-edit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.person-record { align-items: flex-start; }
.person-record > div:first-child { min-width: 0; }
.phone-list { margin-top: 0.2rem; }
.phone-entry { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.55rem; margin-bottom: 0.55rem; }
.phone-entry .icon-button { flex: 0 0 auto; }
.phone-entry .icon-button:disabled { cursor: default; opacity: 0.35; }
.phone-add { width: auto; margin-top: 0.15rem; }
.roster-tags { display: grid; gap: 0.4rem; margin-top: 0.7rem; }
.roster-tags span { padding: 0.5rem 0.65rem; border-radius: 0.7rem; color: var(--green-950); background: var(--green-100); font-size: 0.78rem; line-height: 1.4; }
.roster-tags .inline-edit { margin-left: 0.25rem; }

@media (max-width: 560px) {
  .portal-main { padding-top: 1.6rem; }
  .date-grid { grid-template-columns: 1fr; gap: 0; }
  .season-record { align-items: flex-start; flex-direction: column; }
  .secondary-button { width: 100%; text-align: center; }
  .team-actions { width: 100%; }
  .team-actions > * { flex: 1; }
  .attach-form { grid-template-columns: 1fr; }
  .context-picker { grid-template-columns: 1fr; }
  .record-actions { width: 100%; }
  .record-actions > *, .record-actions form, .record-actions button { min-width: 0; flex: 1 1 9rem; width: 100%; text-align: center; }
  .phase-list > div { grid-template-columns: 2rem 1fr auto; }
  .phase-list > div .secondary-button { grid-column: 1 / -1; }
  .score-grid { grid-template-columns: 1fr; }
}

.sport-app-body .portal-header-bar {
  width: min(100%, 1180px);
}

.sport-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.sport-sync {
  min-height: 1.5rem;
  padding: 0 0.15rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
  white-space: nowrap;
}

.sport-sync::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #83d5a1;
  box-shadow: 0 0 0 0.18rem rgba(131, 213, 161, 0.14);
}

.sport-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.sport-loading {
  padding: 2rem;
}

.sport-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  padding: 0.65rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.35rem 1rem rgba(9, 39, 23, 0.06);
}

.sport-tabs button {
  flex: 0 0 auto;
  padding: 0.65rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  color: var(--green-800);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

.sport-tabs button.active {
  border-color: #b5cdbd;
  color: #fff;
  background: var(--green-800);
}

.sport-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.sport-metric {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
}

.sport-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.sport-metric strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--green-950);
  font-size: 1.35rem;
}

.sport-shell .season-panel,
.sport-shell .season-list {
  margin-top: 1rem;
}

.sport-shell .season-form {
  max-width: none;
}

.sport-shell .season-panel h1 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.sport-shell .season-record {
  gap: 1rem;
}

.sport-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sport-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 28, 18, 0.52);
}

.sport-modal__panel {
  position: relative;
  width: min(100%, 48rem);
  max-height: min(88vh, 48rem);
  overflow: auto;
  padding: clamp(1.1rem, 4vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 1.4rem 3.5rem rgba(4, 26, 15, 0.28);
}

.sport-modal__panel--wide {
  width: min(100%, 76rem);
  max-height: 92vh;
}

.parking-config-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.parking-config-list label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.parking-config-list input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0 0.9rem;
  font: inherit;
}

.benefit-current {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.benefit-current article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #bad0c1;
  border-radius: 0.75rem;
  background: var(--green-100);
}

.benefit-current span,
.benefit-current small {
  display: block;
}

.benefit-current small {
  margin-top: 0.2rem;
  color: var(--muted);
}

.benefit-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.benefit-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.55rem;
  margin: 1rem 0;
}

.benefit-seat-map {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #f4f7f5;
}

.benefit-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
  min-width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: 0.72rem;
}

.benefit-legend span {
  display: flex !important;
  align-items: center;
  gap: 0.3rem;
}

.benefit-legend i {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid #8eaa97;
  border-radius: 0.25rem;
  background: #fff;
}

.benefit-legend i.occupied { background: #d7dcda; }
.benefit-legend i.selected { border-color: var(--green-800); background: var(--green-700); }
.benefit-legend i.available { background: #fff; }
.benefit-legend i.reserved { border-color: #d0a33d; background: #ffe6a8; }
.benefit-legend i.confirmed { border-color: var(--green-800); background: var(--green-700); }
.benefit-legend i.blocked { border-color: #7c8580; background: #7c8580; }

.benefit-map-row {
  min-width: calc(var(--seat-columns) * 2.12rem + 5.5rem);
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  gap: 0.7rem;
}

.benefit-map-row > strong {
  color: var(--green-800);
  font-size: 0.75rem;
  text-align: right;
}

.benefit-map-row > div {
  display: grid;
  grid-template-columns: repeat(var(--seat-columns), 1.9rem);
  gap: 0.22rem;
}

.benefit-seat {
  display: grid;
  flex: 0 0 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid #91ad9a;
  border-radius: 0.38rem 0.38rem 0.58rem 0.58rem;
  color: var(--green-950);
  background: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.benefit-seat:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--green-800);
}

.benefit-seat.occupied {
  color: #7c8580;
  border-color: #c8cfcb;
  background: #dfe4e1;
  cursor: not-allowed;
}

.benefit-seat.selected {
  color: #fff;
  border-color: var(--green-950);
  background: var(--green-700);
  box-shadow: 0 0 0 3px rgba(28, 112, 65, 0.18);
}

.match-admin-seat.reserved { border-color: #d0a33d; color: #6f5009; background: #ffe6a8; }
.match-admin-seat.confirmed { border-color: var(--green-950); color: #fff; background: var(--green-700); }
.match-admin-seat.blocked { border-color: #6d7571; color: #fff; background: #7c8580; }
.match-admin-seat.released { border-style: dashed; color: #59645e; background: #edf1ef; }
.match-admin-seat { padding: 0; cursor: pointer; }
.match-admin-seat:hover { transform: translateY(-2px); border-color: var(--green-800); box-shadow: 0 2px 0 rgba(10,56,35,.16); }

.benefit-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  color: var(--green-950);
  background: var(--green-100);
}

.provider-workspace {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.8rem 2rem rgba(10, 48, 28, 0.06);
}

.provider-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.provider-heading h2,
.provider-heading p {
  margin: 0.15rem 0 0;
}

.provider-heading p:last-child {
  color: var(--muted);
}

.provider-columns {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.6fr);
  gap: 1rem;
}

.provider-subpanel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #f8faf9;
}

.provider-subpanel .list-heading {
  margin-bottom: 0.8rem;
}

.provider-mini-list,
.provider-product-grid {
  display: grid;
  gap: 0.7rem;
}

.provider-mini-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid #d7e1da;
  border-radius: 0.75rem;
  background: #fff;
}

.provider-mini-list strong,
.provider-mini-list small {
  display: block;
}

.provider-mini-list small {
  margin-top: 0.2rem;
  color: var(--muted);
}

.provider-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.provider-product {
  padding: 0.9rem;
  border: 1px solid #d4dfd7;
  border-radius: 0.85rem;
  background: #fff;
}

.provider-product__meta,
.provider-prices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.provider-product__meta > span:first-child {
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.provider-product h4 {
  margin: 0.65rem 0 0.25rem;
  font-size: 1rem;
}

.provider-product > p {
  min-height: 2.2rem;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.provider-prices {
  align-items: stretch;
  margin-bottom: 0.8rem;
}

.provider-prices > div {
  flex: 1;
  padding: 0.55rem;
  border-radius: 0.6rem;
  background: var(--green-100);
}

.provider-prices small,
.provider-prices strong {
  display: block;
}

.provider-prices small {
  color: var(--muted);
  font-size: 0.62rem;
}

.provider-prices strong {
  margin-top: 0.15rem;
  color: var(--green-950);
  font-size: 0.86rem;
}

.sport-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sport-modal__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.icon-button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-950);
  background: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--green-100);
}

.sport-shell select {
  width: 100%;
}

.sport-shell .logo-button {
  position: relative;
  overflow: hidden;
}

.sport-shell .logo-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.venue-browser {
  margin-top: 1.2rem;
}

.venue-metrics {
  margin-bottom: 0.25rem;
}

.venue-root-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.venue-root-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 0.45rem 1.25rem rgba(11, 56, 35, 0.05);
}

.venue-root-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.venue-root-card > header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.venue-root-card > header > strong {
  color: var(--green-800);
  font-size: 1.05rem;
}

.venue-root-card--single {
  display: flex;
  padding: 0;
  overflow: hidden;
}

.venue-root-card--single .venue-area-button {
  flex: 1;
  border: 0;
  border-radius: 0;
}

.venue-area-list {
  display: grid;
  gap: 0.5rem;
}

.venue-area-button {
  width: 100%;
  min-height: 3.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  background: #f8faf9;
  text-align: left;
  cursor: pointer;
}

.venue-area-button:hover,
.venue-area-button.active {
  border-color: #8eb29a;
  background: var(--green-100);
}

.venue-area-button.active {
  box-shadow: inset 0 0 0 1px var(--green-700);
}

.venue-area-button span,
.venue-area-button small {
  display: block;
}

.venue-area-button small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.venue-area-button > strong {
  color: var(--green-800);
  font-size: 0.88rem;
}

.venue-detail {
  scroll-margin-top: 5rem;
}

.venue-detail__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.venue-detail__heading > div:last-child {
  min-width: 7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  color: var(--green-950);
  background: var(--green-100);
  text-align: right;
}

.venue-detail__heading > div:last-child strong,
.venue-detail__heading > div:last-child span {
  display: block;
}

.venue-detail__heading > div:last-child strong {
  font-size: 1.25rem;
}

.venue-detail__heading > div:last-child span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.venue-seat-map {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #f4f7f5;
}

.venue-seat-row {
  min-width: calc(var(--seat-columns) * 2rem + 5.5rem);
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: center;
  gap: 0.75rem;
}

.venue-seat-row > strong {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 0.35rem 0.3rem;
  color: var(--green-800);
  background: #f4f7f5;
  font-size: 0.75rem;
  text-align: right;
}

.venue-seat-track {
  display: grid;
  grid-template-columns: repeat(var(--seat-columns), 1.8rem);
  gap: 0.2rem;
  align-items: center;
}

.venue-seat {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid #9eb8a7;
  border-radius: 0.38rem 0.38rem 0.55rem 0.55rem;
  color: var(--green-950);
  background: #fff;
  font-size: 0.58rem;
  font-weight: 800;
}

.general-admission {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.2rem;
  border: 1px solid #b5cdbd;
  border-radius: 0.9rem;
  background: var(--green-100);
}

.general-admission > span {
  display: grid;
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-800);
  font-size: 1.5rem;
}

.general-admission strong {
  color: var(--green-950);
  font-size: 1.2rem;
}

.general-admission p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .provider-heading,
  .provider-columns {
    display: flex;
    flex-direction: column;
  }

  .provider-subpanel {
    width: 100%;
  }

  .benefit-context-grid {
    grid-template-columns: 1fr;
  }

  .benefit-selection-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .sport-shell {
    width: min(100% - 1rem, 1180px);
    padding-top: 1rem;
  }

  .sport-tabs {
    border-radius: 0.7rem;
  }

  .portal-header-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-header-actions,
  .sport-header-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .sport-header-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-header-actions {
    overflow-x: auto;
  }

  .sport-metrics {
    grid-template-columns: 1fr;
  }

  .venue-root-grid {
    grid-template-columns: 1fr;
  }

  .venue-detail__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .venue-detail__heading > div:last-child {
    text-align: left;
  }
}
[data-sport-read-only="true"] [data-action],
[data-sport-read-only="true"] [data-create],
[data-sport-read-only="true"] [data-edit],
[data-sport-read-only="true"] [data-delete],
[data-sport-read-only="true"] [data-upload],
[data-sport-read-only="true"] .logo-button,
[data-sport-read-only="true"] [data-seat-benefit],
[data-sport-read-only="true"] [data-person-parking],
[data-sport-read-only="true"] [data-person-user],
[data-sport-read-only="true"] [data-person-roster],
[data-sport-read-only="true"] [data-match-seats],
[data-sport-read-only="true"] [data-match-inventory] {
  display: none !important;
}

.person-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .75rem;
  margin-top: .7rem;
}

.person-contacts > a,
.person-contacts .contact-actions {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.person-contacts a {
  color: var(--green-800);
  font-weight: 700;
  text-decoration: none;
}

.person-contacts .contact-actions a:last-child {
  padding: .25rem .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
}

.benefits-heading { margin-bottom: 1.5rem; }
.benefits-heading h1 { margin-bottom: .45rem; font-size: clamp(2rem, 7vw, 2.8rem); }
.benefits-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.5; }
.benefit-match-card { margin-bottom: 1.2rem; padding: clamp(1.1rem, 4vw, 1.6rem); border: 1px solid var(--line); border-radius: 1.25rem; background: #fff; box-shadow: 0 .7rem 1.8rem rgba(11,56,35,.07); }
.benefit-match-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.benefit-match-card__head h2, .benefit-match-card > h2 { margin: 0; font-size: 1.18rem; }
.benefit-match-card__head time { flex: 0 0 auto; padding: .55rem .7rem; border-radius: .7rem; color: var(--green-800); background: var(--green-100); font-size: .8rem; font-weight: 800; text-align: right; }
.benefit-venue { margin: .55rem 0 0; color: var(--muted); }
.benefit-deadline { margin: 1rem 0; padding: .7rem .8rem; border-radius: .75rem; color: var(--green-800); background: #e5f3e9; font-size: .85rem; font-weight: 750; }
.benefit-deadline--closed { color: #8b2c2c; background: #faecec; }
.benefit-section-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.benefit-section { padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #f8fbf9; }
.benefit-section[open] { display: grid; gap: .85rem; }
.benefit-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.benefit-section__head::-webkit-details-marker { display: none; }
.benefit-section__head::before { content: ''; display: inline-block; flex: 0 0 .55rem; width: .55rem; height: .55rem; border-right: 2px solid var(--green-800); border-bottom: 2px solid var(--green-800); transform: rotate(-45deg); transition: transform .18s ease; }
.benefit-section[open] > .benefit-section__head::before { transform: rotate(45deg); }
.benefit-section__title { flex: 1 1 auto; font-size: 1rem; font-weight: 850; }
.benefit-section__head > span:last-child { display: inline-flex; min-width: 2rem; min-height: 2rem; align-items: center; justify-content: center; border-radius: 999px; color: var(--green-800); background: var(--green-100); font-weight: 850; }
.benefit-section__meta { color: var(--muted); font-size: .86rem; font-weight: 700; }
.parking-benefit-groups, .seat-benefit-groups { display: grid; gap: .85rem; }
.parking-benefit-group, .seat-benefit-group { padding: .85rem; border: 1px solid var(--line); border-radius: .9rem; background: #fff; }
.parking-benefit-group[open], .seat-benefit-group[open] { display: grid; gap: .7rem; }
.parking-benefit-group__head, .seat-benefit-group__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; color: var(--green-900); cursor: pointer; list-style: none; }
.parking-benefit-group__head::-webkit-details-marker, .seat-benefit-group__head::-webkit-details-marker { display: none; }
.parking-benefit-group__head span, .seat-benefit-group__head span { color: var(--muted); font-size: .82rem; font-weight: 750; }
.personal-benefit-seat-list { display: grid; gap: .85rem; }
.personal-benefit-seat { width: 100%; min-height: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #fbfdfc; }
.personal-benefit-seat__identity { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.personal-benefit-seat__identity > div { display: flex; min-width: 0; flex-direction: column; gap: .2rem; }
.personal-benefit-seat__identity strong { line-height: 1.3; }
.personal-benefit-seat__identity span:not(.personal-benefit-seat__icon) { color: var(--muted); font-size: .86rem; }
.personal-benefit-seat__icon { display: grid; flex: 0 0 3rem; width: 3rem; height: 3rem; place-items: center; border-radius: .8rem; color: #fff; background: var(--green-800); font-weight: 900; }
.personal-benefit-seat__status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .8rem; }
.status-pill { padding: .3rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.status-pill--confirmed { color: #125c35; background: #dcefe3; }
.status-pill--released { color: #59645e; background: #edf1ef; }
.status-pill--pending { color: #7a5910; background: #fff0c8; }
.benefit-note { margin: .9rem 0 0; color: var(--muted); font-size: .85rem; }
.benefit-confirm-form { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem; }
.benefit-confirm-form label { display: grid; gap: .35rem; font-size: .78rem; font-weight: 750; }
.benefit-confirm-form input { width: 100%; min-height: 2.8rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .7rem; font: inherit; }
.parking-pass-form { display: grid; gap: .7rem; margin-top: 1rem; }
.parking-pass-form label { display: grid; gap: .35rem; font-size: .78rem; font-weight: 750; }
.parking-pass-form input { width: 100%; min-height: 2.8rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .7rem; font: inherit; }
.benefit-actions { display: flex; grid-column: 1 / -1; gap: .6rem; }
.benefit-actions button { min-height: 2.8rem; margin: 0; }
.benefit-pass-actions { display: flex; justify-content: flex-end; gap: .55rem; margin-top: .75rem; }
.benefit-pass-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; text-decoration: none; }
.secondary-button--danger { color: #8b2c2c; border-color: #e2b3b3; background: #fff7f7; }
.secondary-button--danger:hover { background: #faecec; }
.benefits-empty { text-align: center; }
.benefits-empty > span { font-size: 2.4rem; }
.benefits-empty h2 { margin: .6rem 0 .3rem; }
.benefits-empty p { margin: 0; color: var(--muted); }
@media (max-width: 600px) {
  .benefits-body .portal-header-bar { align-items: center; flex-direction: row; }
  .benefits-body .portal-header-actions { width: auto; overflow: visible; }
  .benefit-match-card__head { flex-direction: column; }
  .benefit-match-card__head time { text-align: left; }
  .benefit-confirm-form { grid-template-columns: 1fr; }
  .benefit-actions { flex-direction: column; }
  .parking-benefit-group__head { align-items: flex-start; flex-direction: column; }
  .benefit-pass-actions { justify-content: stretch; }
  .benefit-pass-button { width: 100%; }
  .benefit-pass-actions { flex-direction: column; }
}
