:root {
  --psa-navy: #0b2545;
  --psa-blue: #174b8a;
  --psa-sky: #2f80ed;
  --psa-gold: #f6b23d;
  --psa-green: #2f855a;
  --psa-ink: #172033;
  --psa-muted: #657184;
  --psa-line: #dbe3ef;
  --psa-border: #dbe3ef;
  --psa-soft: #f3f6fb;
  --psa-card: #ffffff;
  --psa-shadow: 0 18px 50px rgba(11, 37, 69, 0.12);
}

html {
  min-height: 100%;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--psa-ink);
  background: var(--psa-soft);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: var(--psa-blue);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
  transition-duration: 0.16s;
  transition-property: background-color, border-color, box-shadow, color, transform;
  transition-timing-function: ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  color: #fff;
  background-color: var(--psa-blue);
  border-color: var(--psa-blue);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--psa-navy);
  border-color: var(--psa-navy);
}

.btn-outline-primary {
  color: var(--psa-blue);
  border-color: rgba(23, 75, 138, 0.35);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--psa-blue);
  border-color: var(--psa-blue);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--psa-sky);
  box-shadow: 0 0 0 0.2rem rgba(47, 128, 237, 0.22);
}

.form-control,
.form-select {
  min-height: 44px;
  border-color: #cbd6e4;
  border-radius: 8px;
}

.form-label {
  color: #324158;
  font-weight: 700;
}

.local-datetime-field {
  display: grid;
  gap: 0.35rem;
}

.local-datetime-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.75rem, 0.55fr);
  gap: 0.65rem;
}

.local-datetime-part-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--psa-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.local-datetime-field .field-validation {
  display: block;
}

.local-datetime-field .field-validation:empty {
  display: none;
}

.reports-page {
  display: grid;
  gap: 22px;
}

.report-filter-form,
.report-specific-filters {
  display: grid;
  gap: 18px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.report-context-field {
  grid-column: span 2;
}

.report-actions,
.report-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.report-option-card h2 {
  margin-top: 6px;
}

.report-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--app-border, #d9e1ea);
  border-radius: 12px;
}

.report-table {
  min-width: 1100px;
  margin-bottom: 0;
}

.report-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4fa;
  white-space: nowrap;
}

.report-table td {
  max-width: 320px;
  vertical-align: top;
}

@media print {
  .app-header,
  .app-footer,
  .report-filter-panel,
  .report-actions {
    display: none !important;
  }

  .report-table-wrap {
    overflow: visible;
    border: 0;
  }
}

@media (max-width: 575.98px) {
  .report-context-field {
    grid-column: auto;
  }

  .local-datetime-control {
    grid-template-columns: 1fr;
  }
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding-left: 0;
}

.form-check .form-check-input {
  flex: 0 0 auto;
  margin-left: 0;
  margin-top: 0.25rem;
}

.form-check .form-check-label {
  margin: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-navbar {
  min-height: 72px;
  border-bottom: 1px solid rgba(219, 227, 239, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.08);
  backdrop-filter: blur(12px);
}

.app-brand,
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--psa-navy);
  text-decoration: none;
}

.app-brand-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 46px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(219, 227, 239, 0.95);
  background: #fff;
}

.app-brand-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.app-brand-copy {
  display: block;
  min-width: 0;
}

.app-brand-title,
.app-brand-subtitle {
  display: block;
  line-height: 1.1;
}

.app-brand-title {
  font-weight: 800;
}

.app-brand-subtitle {
  color: var(--psa-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.app-nav .nav-link,
.navbar-nav .nav-link {
  color: #3f4c61;
  font-weight: 700;
}

.app-nav .nav-link:hover,
.navbar-nav .nav-link:hover {
  color: var(--psa-blue);
}

.app-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.app-main {
  min-height: calc(100vh - 168px);
}

.app-footer {
  padding: 24px 0;
  border-top: 1px solid var(--psa-line);
  background: #fff;
}

.auth-page {
  background: var(--psa-navy);
}

.auth-page .app-page {
  width: 100%;
  padding: 0;
}

.auth-page .app-main {
  min-height: 0;
}

.auth-screen {
  position: relative;
  min-height: min(720px, calc(100svh - 132px));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 32, 61, 0.92) 0%, rgba(8, 32, 61, 0.82) 42%, rgba(8, 32, 61, 0.62) 100%),
    url("/img/employee-login-background.jpg") center 42% / cover no-repeat;
}

.auth-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
}

.auth-brand,
.auth-brand .app-brand-subtitle {
  color: #fff;
}

.auth-brand .app-brand-logo-frame {
  border-color: rgba(255, 255, 255, 0.72);
}

.auth-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: min(690px, calc(100svh - 132px));
  margin: 0 auto;
  padding: clamp(22px, 4vh, 44px) 0;
}

.auth-copy {
  max-width: 650px;
  color: #fff;
}

.auth-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-kicker {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.section-eyebrow {
  color: var(--psa-blue);
}

.auth-copy h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1;
  font-weight: 850;
}

.auth-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.6;
}

.auth-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.auth-proof strong {
  font-size: 2rem;
}

.auth-proof span {
  color: rgba(255, 255, 255, 0.78);
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.auth-card-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--psa-blue);
}

.auth-card h2 {
  margin: 0;
  color: var(--psa-navy);
  font-size: 2rem;
  font-weight: 850;
}

.auth-card-copy {
  margin: 8px 0 24px;
  color: var(--psa-muted);
}

.auth-form-row {
  color: var(--psa-muted);
  font-size: 0.9rem;
}

.auth-submit {
  min-height: 48px;
}

.dev-preview-box {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(246, 178, 61, 0.48);
  border-radius: 8px;
  color: #5a3a0d;
  background: rgba(246, 178, 61, 0.14);
  font-size: 0.9rem;
}

.dev-preview-box strong {
  color: var(--psa-navy);
}

.dev-preview-box code {
  color: var(--psa-navy);
  font-weight: 800;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--psa-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--psa-line);
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-hero,
.panel,
.metric-card,
.workflow-card,
.team-card,
.game-card,
.contact-card {
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  background: var(--psa-card);
  box-shadow: var(--psa-shadow);
}

.page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  color: #fff;
  background: linear-gradient(135deg, var(--psa-navy), var(--psa-blue));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 850;
  text-wrap: balance;
}

.page-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
}

.page-hero-copy {
  min-width: 0;
}

.page-hero-copy > .section-eyebrow {
  display: flex;
}

.page-hero-with-context .page-hero-copy {
  flex: 1 1 560px;
}

.page-hero-side {
  display: grid;
  flex: 0 1 360px;
  gap: 14px;
  width: min(100%, 360px);
}

.selected-season-context {
  flex: 0 1 340px;
  width: min(100%, 340px);
  min-width: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(5, 25, 50, 0.14);
  backdrop-filter: blur(4px);
}

.page-hero-side .selected-season-context {
  width: 100%;
  min-width: 0;
}

.page-hero .selected-season-context-label,
.page-hero .selected-season-context-title,
.page-hero .selected-season-context-sport,
.page-hero .selected-season-context-dates {
  max-width: none;
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
}

.page-hero .selected-season-context-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero .selected-season-context-title {
  margin-top: 6px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 850;
  line-height: 1.2;
  text-wrap: balance;
}

.page-hero .selected-season-context-sport {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
}

.page-hero .selected-season-context-dates {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-sport-selector,
.hero-season-selector {
  width: 100%;
}

.season-context-form-state {
  display: contents;
}

.page-hero .form-label {
  color: rgba(255, 255, 255, 0.9);
}

.hero-field-hint {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel {
  padding: clamp(18px, 2.6vw, 28px);
}

.choose-season-panel {
  width: 100%;
}

.season-selector-form {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(240px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.season-selector-field {
  min-width: 0;
}

.season-selector-season {
  max-width: 760px;
}

.season-selector-sport {
  max-width: 420px;
}

.dashboard-panel {
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  background: var(--psa-card);
  box-shadow: var(--psa-shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--psa-navy);
  font-size: 1.35rem;
  font-weight: 850;
}

.open-season-list {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.open-season-card {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(11, 37, 69, 0.08),
    0 12px 30px rgba(11, 37, 69, 0.08);
}

.open-season-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--psa-navy), #174b8a);
}

.open-season-title-region {
  display: grid;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.open-season-title-link {
  width: fit-content;
  max-width: none;
  color: #fff;
  text-decoration: none;
}

.open-season-title-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.open-season-title-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.open-season-title-region h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.open-season-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 22px 20px;
  box-shadow: inset 0 1px rgba(11, 37, 69, 0.08);
}

.open-season-actions .btn {
  min-height: 40px;
}

.open-season-sport {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--psa-navy);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.open-season-team-summary {
  display: grid;
  flex: 0 0 auto;
  min-width: 82px;
  justify-items: end;
  line-height: 1;
}

.open-season-team-summary strong {
  font-size: 1.65rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.open-season-team-summary span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.open-season-workflows {
  padding: 6px 22px;
}

.open-season-workflow-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.65fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 18px 0;
}

.open-season-workflow-row + .open-season-workflow-row {
  box-shadow: inset 0 1px rgba(11, 37, 69, 0.1);
}

.open-season-workflow-row.is-disabled {
  color: var(--psa-muted);
  background: #fbfcfe;
}

.open-season-workflow-summary {
  min-width: 0;
}

.open-season-workflow-summary h4 {
  margin: 0;
  color: var(--psa-navy);
  font-size: 1.05rem;
  font-weight: 900;
  text-wrap: balance;
}

.open-season-workflow-summary p {
  margin: 6px 0 0;
  color: var(--psa-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  text-wrap: pretty;
}

.open-season-workflow-summary strong {
  color: var(--psa-blue);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.open-season-schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.open-season-schedule-single {
  grid-template-columns: minmax(0, 1fr);
}

.open-season-schedule > div {
  min-width: 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f7f9fc;
  box-shadow: inset 0 0 0 1px rgba(23, 75, 138, 0.1);
}

.open-season-schedule dt {
  margin-bottom: 5px;
  color: var(--psa-muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.open-season-schedule dd {
  margin: 0;
  overflow-x: auto;
  color: var(--psa-navy);
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.contact-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title {
  margin: 0;
  color: var(--psa-navy);
  font-size: 1.12rem;
  font-weight: 850;
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--psa-muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px;
}

.metric-card-wide {
  grid-column: 1 / -1;
}

.metric-label {
  margin: 0;
  color: var(--psa-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-top: 10px;
  color: var(--psa-navy);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 850;
  line-height: 1.1;
}

.metric-support {
  display: block;
  margin-top: 4px;
  color: var(--psa-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "number title"
    "number copy";
  gap: 2px 10px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.08);
}

.step-card.active {
  border-color: rgba(23, 75, 138, 0.38);
  background: #f8fbff;
}

.step-number {
  grid-area: number;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--psa-blue);
  font-size: 0.78rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.step-card strong {
  grid-area: title;
  color: var(--psa-navy);
  font-weight: 850;
  line-height: 1.2;
}

.step-card small {
  grid-area: copy;
  color: var(--psa-muted);
  line-height: 1.35;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--psa-green);
  background: rgba(47, 133, 90, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.muted {
  color: #526173;
  background: #edf2f7;
}

.status-pill.warning {
  color: #8a570d;
  background: rgba(246, 178, 61, 0.18);
}

.setup-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(23, 75, 138, 0.14);
}

.setup-status strong {
  display: block;
  color: var(--psa-navy);
  font-weight: 850;
}

.setup-status p {
  margin: 2px 0 0;
  color: var(--psa-muted);
  line-height: 1.35;
  text-wrap: pretty;
}

.setup-status-complete {
  background: rgba(47, 133, 90, 0.08);
  box-shadow: inset 0 0 0 1px rgba(47, 133, 90, 0.2);
}

.setup-status-error,
.setup-status-warning {
  background: rgba(246, 178, 61, 0.1);
  box-shadow: inset 0 0 0 1px rgba(246, 178, 61, 0.28);
}

.coach-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.coach-impact-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(23, 75, 138, 0.18);
  border-radius: 8px;
  color: var(--psa-muted);
  background: #f8fbff;
}

.coach-impact-card strong {
  color: var(--psa-navy);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  text-wrap: balance;
}

.coach-impact-card small {
  line-height: 1.35;
  text-wrap: pretty;
}

.team-list,
.workflow-grid,
.card-grid {
  display: grid;
  gap: 14px;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card,
.workflow-card,
.game-card,
.contact-card {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.team-card:hover,
.workflow-card:hover,
.game-card:hover,
.contact-card:hover {
  border-color: rgba(23, 75, 138, 0.35);
  box-shadow: 0 20px 54px rgba(11, 37, 69, 0.16);
  transform: translateY(-2px);
}

.contact-maintenance-list {
  display: grid;
  gap: 12px;
}

.contact-maintenance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.08);
}

.contact-maintenance-card h3 {
  margin: 6px 0 10px;
  color: var(--psa-navy);
  font-size: 1.1rem;
  font-weight: 850;
  text-wrap: balance;
}

.contact-detail-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0;
}

.contact-detail-list dt {
  color: var(--psa-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.contact-detail-list dd {
  margin: 0;
  color: var(--psa-ink);
  overflow-wrap: anywhere;
}

.contact-maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  justify-content: flex-end;
}

.contact-maintenance-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.league-contact-form {
  display: grid;
  gap: 16px;
}

.team-card.active,
.workflow-card.active {
  border-color: var(--psa-blue);
  background: #f8fbff;
}

.practice-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.practice-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.practice-summary-card {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--psa-border);
  border-radius: 8px;
  color: var(--psa-muted);
  background: #fff;
  text-align: left;
}

.practice-summary-card.configured {
  border-color: rgba(23, 75, 138, 0.34);
  color: var(--psa-navy);
  background: #f4f9ff;
}

.practice-summary-card.active {
  border-color: var(--psa-blue);
  box-shadow: 0 0 0 3px rgba(23, 75, 138, 0.1);
}

.practice-summary-title {
  color: var(--psa-navy);
  font-size: 0.95rem;
  font-weight: 850;
}

.practice-summary-status {
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.practice-summary-meta {
  font-size: 0.82rem;
  line-height: 1.25;
}

.practice-summary-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed #b9c8db;
  border-radius: 8px;
  color: var(--psa-muted);
  background: #f8fbff;
}

.tool-summary-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--psa-border);
  border-radius: 8px;
  color: var(--psa-muted);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 850;
}

.tool-summary-state {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #526173;
  background: #edf2f7;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.tool-summary-pill.enabled {
  border-color: rgba(23, 75, 138, 0.28);
  color: var(--psa-navy);
  background: #f4f9ff;
}

.tool-summary-pill.enabled .tool-summary-state {
  color: #fff;
  background: var(--psa-blue);
}

.tool-summary-pill.disabled {
  color: #8a96a8;
  background: #f8fafc;
}

.tool-summary-pill.disabled .tool-summary-state {
  color: #5d6675;
  background: #e2e8f0;
}

.config-section {
  transition: opacity 0.16s ease, filter 0.16s ease;
}

.section-enable {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(23, 75, 138, 0.14);
  font-weight: 850;
}

.config-section.section-disabled {
  opacity: 0.72;
}

.config-section.section-disabled .nested-panel,
.config-section.section-disabled .rich-text-editor,
.config-section.section-disabled .practice-scheduler {
  background: #f8fafc;
}

.practice-location-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.practice-location-tab.active,
.practice-location-tab.active:hover,
.practice-location-tab.active:focus {
  color: #fff;
  background-color: var(--psa-blue);
  border-color: var(--psa-blue);
}

.practice-location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.practice-location-card {
  padding: 16px;
  border: 1px solid var(--psa-border);
  border-radius: 8px;
  background: #fff;
}

.practice-location-card[hidden] {
  display: none;
}

.practice-location-title {
  margin: 0;
  color: var(--psa-navy);
  font-size: 1rem;
  font-weight: 850;
}

.practice-day-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.practice-day-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}

.practice-day-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.practice-day-toggle {
  min-height: 32px;
}

.practice-time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.practice-slot {
  position: relative;
  margin: 0;
}

.practice-slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.practice-slot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--psa-border);
  border-radius: 6px;
  color: var(--psa-muted);
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.practice-slot input:checked + span {
  border-color: var(--psa-blue);
  color: #fff;
  background: var(--psa-blue);
}

.practice-slot input:disabled + span {
  opacity: 0.42;
  cursor: not-allowed;
}

.conflict-split-range {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--psa-navy);
  font-weight: 750;
}

.jersey-reminder-grid .form-check {
  min-height: 40px;
  padding: 8px 10px 8px 2rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 75, 138, 0.1);
}

.coach-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coach-choice-card {
  position: relative;
  display: grid;
  min-height: 92px;
  cursor: pointer;
}

.coach-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.coach-choice-card span {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  color: var(--psa-muted);
  background: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.coach-choice-card strong {
  color: var(--psa-navy);
}

.coach-choice-card small {
  line-height: 1.35;
}

.coach-choice-card input:checked + span {
  border-color: var(--psa-blue);
  color: #fff;
  background: var(--psa-blue);
  box-shadow: 0 12px 28px rgba(23, 75, 138, 0.2);
}

.coach-choice-card input:checked + span strong {
  color: #fff;
}

.coach-choice-card:active span {
  transform: scale(0.96);
}

.muted-surface {
  opacity: 0.62;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.data-list {
  margin: 0;
}

.data-list dt {
  color: var(--psa-muted);
  font-weight: 800;
}

.data-list dd {
  margin-bottom: 0.75rem;
}

.form-panel section,
.nested-panel {
  padding: 18px;
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  background: #fbfdff;
}

.field-hint {
  margin: 8px 0 0;
  color: var(--psa-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.field-validation,
.validation-summary {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-weight: 700;
}

.validation-summary ul {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(23, 75, 138, 0.22);
  border-radius: 8px;
  background: #f8fbff;
}

.form-actions strong {
  color: var(--psa-navy);
  font-weight: 850;
}

.form-actions p {
  color: var(--psa-muted);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.rich-text-editor,
.disclaimer-content {
  min-height: 150px;
  padding: 14px;
  border: 1px solid #cbd6e4;
  border-radius: 8px;
  background: #fff;
  line-height: 1.55;
}

.rich-text-editor:focus {
  border-color: var(--psa-sky);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(47, 128, 237, 0.22);
}

.disclaimer-content {
  max-height: 320px;
  overflow: auto;
}

.form-check-input:checked {
  background-color: var(--psa-blue);
  border-color: var(--psa-blue);
}

.empty-state {
  padding: 18px;
  border: 1px dashed #b9c8db;
  border-radius: 8px;
  color: var(--psa-muted);
  background: #f8fbff;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--psa-navy);
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.operation-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  box-shadow: var(--psa-shadow);
  text-decoration: none;
}

.operation-card.primary {
  border-color: rgba(23, 75, 138, 0.34);
  background: #f8fbff;
}

.operation-card:hover,
.operation-card:focus {
  color: inherit;
  border-color: rgba(23, 75, 138, 0.42);
  box-shadow: 0 20px 54px rgba(11, 37, 69, 0.16);
}

.operation-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--psa-blue);
  font-size: 0.8rem;
  font-weight: 850;
}

.operation-card strong {
  display: block;
  color: var(--psa-navy);
  font-size: 1rem;
  font-weight: 850;
}

.operation-card small {
  display: block;
  margin-top: 6px;
  color: var(--psa-muted);
  line-height: 1.45;
}

.operations-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.operations-count-panel {
  min-height: 140px;
  padding: 16px;
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  background: #fbfdff;
}

.operations-count-panel h3 {
  margin: 0 0 12px;
  color: var(--psa-navy);
  font-size: 1rem;
  font-weight: 850;
}

.operations-count-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  margin: 0;
}

.operations-count-list dt {
  color: var(--psa-muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.operations-count-list dd {
  margin: 0;
  color: var(--psa-navy);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.operations-note-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--psa-navy);
}

.operations-note-list li {
  overflow-wrap: anywhere;
}

.evaluation-filter-form {
  min-width: min(100%, 740px);
}

.evaluation-review-table {
  border: 1px solid var(--psa-line);
  border-radius: 8px;
}

.evaluation-review-table .table {
  margin-bottom: 0;
}

.evaluation-review-table th {
  color: var(--psa-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 4px 4px 0;
  padding: 4px 8px;
  border: 1px solid rgba(23, 75, 138, 0.18);
  border-radius: 6px;
  color: var(--psa-navy);
  background: #f8fbff;
  font-size: 0.8rem;
  font-weight: 850;
}

@media (max-width: 991.98px) {
  .auth-content,
  .metric-grid,
  .coach-impact-grid,
  .operations-grid,
  .operations-summary-grid,
  .season-selector-form,
  .workflow-grid,
  .workflow-steps,
  .coach-choice-grid,
  .contact-maintenance-card,
  .practice-location-grid {
    grid-template-columns: 1fr;
  }

  .practice-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-day-row {
    grid-template-columns: 1fr;
  }

  .auth-content {
    align-items: start;
    min-height: auto;
    padding-block: 32px;
  }

  .auth-screen {
    min-height: auto;
  }

  .page-hero,
  .panel-header,
  .form-actions {
    flex-direction: column;
  }

  .page-hero-side,
  .selected-season-context {
    flex-basis: auto;
    width: 100%;
    min-width: 0;
    max-width: 620px;
  }

  .page-hero-with-context .page-hero-copy {
    flex-basis: auto;
  }

  .season-selector-season,
  .season-selector-sport {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .auth-topbar {
    padding-inline: 18px;
  }

  .auth-content {
    width: min(100% - 28px, 1180px);
    padding-block: 24px;
  }

  .auth-copy h1 {
    font-size: 2.45rem;
  }

  .app-page {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .practice-summary {
    grid-template-columns: 1fr;
  }

  .open-season-header {
    align-items: flex-start;
    padding: 18px;
  }

  .open-season-workflows {
    padding-inline: 18px;
  }

  .open-season-actions {
    padding: 14px 18px 18px;
  }

  .open-season-workflow-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 16px;
  }

  .open-season-schedule {
    grid-template-columns: 1fr;
  }
}
