: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);
}

/* Goal-302 spotlight tour overrides the original centered onboarding dialog. */
.coach-experience-dialog.coach-onboarding-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.coach-experience-dialog.coach-onboarding-dialog::backdrop {
  background: transparent;
  backdrop-filter: none;
}

.coach-spotlight-pane,
.coach-spotlight-frame,
.coach-spotlight-arrow,
.coach-coachmark {
  position: fixed;
}

.coach-spotlight-pane {
  z-index: 1;
  background: rgba(5, 20, 40, 0.72);
  pointer-events: auto;
}

.coach-spotlight-frame {
  z-index: 2;
  background: transparent;
  border: 3px solid #67a7ff;
  border-radius: 14px;
  box-shadow:
    0 0 0 4px rgba(47, 128, 237, 0.22),
    0 10px 36px rgba(5, 20, 40, 0.34);
  pointer-events: auto;
}

.coach-spotlight-arrow {
  z-index: 5;
  width: 18px;
  height: 18px;
  background: var(--psa-card);
  box-shadow: -2px -2px 4px rgba(11, 37, 69, 0.08);
  transform: rotate(45deg);
}

.coach-spotlight-arrow[data-placement="left"],
.coach-spotlight-arrow[data-placement="above"] {
  box-shadow: 2px 2px 4px rgba(11, 37, 69, 0.08);
}

.coach-onboarding-dialog .coach-coachmark {
  z-index: 6;
  display: flex;
  flex-direction: column;
  left: 12px;
  top: 12px;
  width: min(430px, calc(100vw - 24px));
  max-height: min(680px, calc(100dvh - 24px));
  overflow: hidden;
  color: var(--psa-ink);
  background: var(--psa-card);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 20px 54px rgba(5, 20, 40, 0.28);
  pointer-events: auto;
}

.coach-onboarding-dialog .coach-dialog-header,
.coach-onboarding-dialog .coach-dialog-progress,
.coach-onboarding-dialog .coach-dialog-actions,
.coach-onboarding-dialog .coach-dialog-status {
  flex: 0 0 auto;
}

.coach-onboarding-dialog .coach-dialog-header {
  padding: 20px 20px 14px;
}

.coach-onboarding-dialog .coach-dialog-progress {
  padding: 12px 20px 0;
}

.coach-onboarding-dialog .coach-onboarding-content {
  min-height: 0;
  padding: 18px 20px;
  overflow-y: auto;
}

.coach-onboarding-dialog .coach-dialog-actions {
  padding: 14px 20px 20px;
  background: var(--psa-card);
  box-shadow: 0 -1px 0 rgba(11, 37, 69, 0.08);
}

.coach-onboarding-dialog .coach-dialog-status {
  margin: -12px 20px 12px;
}

.coach-onboarding-dialog.coach-tour-fallback .coach-coachmark {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.coach-tour-target-active {
  scroll-margin-block: 24px;
}

.coach-tour-conditional {
  margin-bottom: 0;
  color: var(--psa-muted);
  font-size: 0.92rem;
}

.coach-page-utilities {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.coach-guide-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: var(--psa-blue);
  border-radius: 50%;
  font-size: 0.78rem;
  line-height: 1;
}

/* Structural Manage Teams preview: rendered by Razor, exposed only while onboarding is active. */
.coach-onboarding-preview[hidden],
.coach-onboarding-preview.is-empty {
  display: none !important;
}

.coach-onboarding-preview {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  border-top: 1px solid var(--psa-line);
  background: #fff;
}

.coach-onboarding-preview-sidebar {
  padding: clamp(18px, 2.4vw, 26px);
  border-right: 1px solid var(--psa-line);
  background: #f8fbff;
}

.coach-onboarding-preview-main {
  min-width: 0;
  padding: clamp(20px, 2.6vw, 30px);
}

.coach-preview-workspace-grid {
  align-items: start;
}

.coach-preview-card small,
.coach-preview-workflow-row small {
  color: var(--psa-muted);
  font-weight: 700;
}

.setup-progress-card .coach-preview-progress-label {
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
}

.coach-preview-workflow-row,
.coach-preview-card .btn.disabled {
  pointer-events: none;
  user-select: none;
}

.coach-preview-card .btn.disabled {
  opacity: 0.72;
}

@media (max-width: 991.98px) {
  .coach-onboarding-preview {
    grid-template-columns: 1fr;
  }

  .coach-onboarding-preview-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--psa-line);
  }
}

@media (max-width: 575.98px) {
  .coach-onboarding-dialog .coach-coachmark {
    top: auto;
    width: calc(100vw - 16px);
    max-height: min(58dvh, 520px);
    border-radius: 16px;
  }

  .coach-onboarding-dialog .coach-dialog-header {
    padding: 16px 16px 12px;
  }

  .coach-onboarding-dialog .coach-dialog-progress {
    padding: 10px 16px 0;
  }

  .coach-onboarding-dialog .coach-onboarding-content {
    padding: 14px 16px;
  }

  .coach-onboarding-dialog .coach-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px 16px 16px;
  }

  .coach-onboarding-dialog .coach-dialog-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .coach-page-utilities {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coach-onboarding-dialog *,
  .coach-onboarding-dialog *::before,
  .coach-onboarding-dialog *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .coach-spotlight-frame {
    border-color: Highlight;
    forced-color-adjust: none;
  }
}

/* Goal-302: first-use guidance and durable coach support */
.coach-modal-open {
  overflow: hidden;
}

.coach-support-nav {
  font-size: 0.9rem;
  opacity: 0.82;
}

.coach-guide-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--psa-blue);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-align: left;
}

.coach-guide-replay:hover,
.coach-guide-replay:focus-visible {
  background: #eef5ff;
  border-color: #cbdcf2;
}

.coach-guide-replay:focus-visible,
.coach-dialog-close:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.3);
  outline-offset: 2px;
}

.coach-experience-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--psa-ink);
  background: var(--psa-card);
  border: 1px solid var(--psa-line);
  border-radius: 16px;
  box-shadow: var(--psa-shadow);
}

.coach-experience-dialog::backdrop {
  background: rgba(7, 24, 45, 0.68);
  backdrop-filter: blur(2px);
}

.coach-dialog-shell {
  max-height: calc(100dvh - 34px);
  overflow-y: auto;
  border-radius: 15px;
}

.coach-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--psa-line);
}

.coach-dialog-header h2,
.coach-onboarding-content h3,
.coach-support-confirmation h3 {
  margin-bottom: 8px;
  color: var(--psa-navy);
  text-wrap: balance;
}

.coach-dialog-header p,
.coach-onboarding-content p,
.coach-support-confirmation p {
  text-wrap: pretty;
}

.coach-dialog-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--psa-muted);
  background: var(--psa-soft);
  border: 0;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}

.coach-dialog-progress {
  padding: 16px 24px 0;
  color: var(--psa-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.coach-dialog-progress-track {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--psa-line);
  border-radius: 999px;
}

.coach-dialog-progress-track span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: var(--psa-sky);
  border-radius: inherit;
  transition: width 180ms ease;
}

.coach-onboarding-content,
#coachSupportForm,
.coach-support-confirmation {
  padding: 24px;
}

.coach-onboarding-content {
  min-height: 210px;
}

.coach-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 24px;
}

.coach-dialog-actions > div {
  display: flex;
  gap: 10px;
}

.coach-dialog-status {
  min-height: 1.5rem;
  margin: -16px 24px 16px;
  color: #a12222;
}

.coach-support-context {
  padding: 12px 14px;
  background: var(--psa-soft);
  border: 1px solid var(--psa-line);
  border-radius: 8px;
}

.coach-form-error-summary {
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #821f1f;
  background: #fff2f2;
  border-left: 4px solid #b83232;
  border-radius: 6px;
  font-weight: 700;
}

.field-validation-error {
  display: block;
  min-height: 1.25rem;
  margin-top: 4px;
  color: #a12222;
  font-size: 0.875rem;
}

.coach-support-confirmation {
  text-align: center;
}

@media (max-width: 575.98px) {
  .coach-experience-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .coach-dialog-shell {
    max-height: calc(100dvh - 18px);
    border-radius: 11px;
  }

  .coach-dialog-header,
  .coach-onboarding-content,
  #coachSupportForm,
  .coach-support-confirmation {
    padding: 18px;
  }

  .coach-dialog-progress {
    padding: 14px 18px 0;
  }

  .coach-dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 14px 18px 18px;
  }

  .coach-dialog-actions > div,
  .coach-dialog-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coach-dialog-progress-track span {
    transition: none;
  }
}




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;
}

.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-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--psa-navy);
  font-weight: 800;
  letter-spacing: 0;
}

.app-brand-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 48px;
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(219, 227, 239, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 37, 69, 0.12);
}

.app-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.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-header,
.auth-page .app-footer {
  display: none;
}

.auth-page .app-page {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.auth-page .app-main {
  min-height: 100vh;
}

.auth-screen {
  position: relative;
  min-height: 100vh;
  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%),
    var(--auth-login-background-image) center / 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-title,
.auth-brand .app-brand-subtitle {
  color: #fff;
}

.auth-brand .app-brand-logo-shell {
  width: 72px;
  height: 54px;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.auth-support {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.auth-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 104px);
  margin: 0 auto;
  padding: 36px 0 72px;
}

.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.6rem, 6vw, 5.7rem);
  line-height: 0.96;
  font-weight: 850;
  text-wrap: balance;
}

.auth-copy p {
  max-width: 560px;
  margin: 24px 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-login-instructions {
  font-family: inherit;
  font-weight: 400;
  line-height: 1.5;
}

.auth-login-instructions a {
  font-family: inherit;
  font-weight: 400;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.auth-form-row {
  color: var(--psa-muted);
  font-size: 0.9rem;
}

.auth-submit {
  min-height: 48px;
}

.auth-login-help {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  margin: 18px 0 0;
  padding: 10px 16px;
  border: 1px solid rgba(23, 75, 138, 0.28);
  border-radius: 8px;
  background: #f8fbff;
  text-align: center;
}

.auth-login-help-link {
  max-width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  border-radius: 4px;
  color: var(--psa-blue);
  font-family: inherit;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.auth-login-help-link:hover {
  color: var(--psa-navy);
  background: #e7f0fb;
  text-decoration: none;
}

.auth-login-help-link:focus-visible {
  outline: 3px solid rgba(23, 75, 138, 0.35);
  outline-offset: 4px;
  color: var(--psa-navy);
  background: #e7f0fb;
  text-decoration: none;
}

.auth-login-help-separator {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  color: var(--psa-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.auth-login-help-separator::before,
.auth-login-help-separator::after {
  content: "";
  min-width: 0;
  border-top: 1px solid var(--psa-border);
}

.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 .form-label {
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel {
  padding: clamp(18px, 2.6vw, 28px);
}

.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);
  text-wrap: pretty;
}

.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;
  text-wrap: balance;
}

.metric-support {
  display: block;
  margin-top: 4px;
  color: var(--psa-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.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: #fff;
  background: #9a5b00;
}

.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);
}

.team-card.active,
.workflow-card.active {
  border-color: var(--psa-blue);
  background: #f8fbff;
}

.workflow-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-summary-card {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(23, 75, 138, 0.18);
  border-radius: 8px;
  background: #f8fbff;
}

.workflow-summary-card-wide {
  grid-column: span 2;
}

.workflow-summary-card strong {
  color: var(--psa-navy);
  font-size: 1.05rem;
  font-weight: 850;
}

.workflow-card-note {
  color: var(--psa-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.workflow-context-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(23, 75, 138, 0.18);
  border-radius: 8px;
  background: #f8fbff;
}

.workflow-context-primary,
.workflow-context-secondary {
  display: grid;
  gap: 5px;
}

.workflow-context-primary strong {
  color: var(--psa-navy);
  font-size: 1.08rem;
  font-weight: 850;
}

.workflow-context-primary span:last-child,
.workflow-context-secondary span:last-child {
  color: var(--psa-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.workflow-context-secondary {
  justify-items: end;
  text-align: right;
}

.workflow-guidance {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(246, 178, 61, 0.28);
  border-radius: 8px;
  color: var(--psa-muted);
  background: rgba(246, 178, 61, 0.12);
  font-size: 0.9rem;
}

.workflow-guidance strong {
  color: var(--psa-navy);
  font-weight: 850;
}

.workflow-guidance.success {
  border-color: rgba(11, 122, 75, 0.28);
  color: #245343;
  background: rgba(11, 122, 75, 0.12);
}

.workflow-guidance.success strong {
  color: #0b5f3d;
}

.workflow-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.selected-team-grid {
  grid-template-columns: 1fr;
}

.selected-team-card {
  min-height: 112px;
}

.workflow-message-strip {
  display: grid;
  gap: 8px;
}

.workflow-message-strip .alert {
  margin: 0;
}

.score-team-label {
  display: grid;
  gap: 2px;
}

.score-team-label small {
  color: var(--psa-muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.star-rating-group {
  display: grid;
  gap: 6px;
  margin: 0;
}

.star-rating-group legend {
  margin-bottom: 0;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 8px;
  color: #64748b;
  background: #edf2f7;
  font-size: 1.32rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #fff;
  background: var(--psa-blue);
}

.star-rating input:focus-visible + label {
  outline: 3px solid rgba(23, 75, 138, 0.28);
  outline-offset: 2px;
}

.workflow-section-list {
  display: grid;
  gap: 18px;
}

.workflow-section-list-locked {
  filter: grayscale(0.1);
}

.workflow-group {
  display: grid;
  gap: 10px;
}

.workflow-group-heading h3 {
  margin: 0;
  color: var(--psa-navy);
  font-size: 0.98rem;
  font-weight: 850;
}

.workflow-row-list {
  display: grid;
  gap: 10px;
}

.workflow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border-radius: 8px;
  color: inherit;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(11, 37, 69, 0.08),
    0 1px 2px -1px rgba(11, 37, 69, 0.12),
    0 6px 18px rgba(11, 37, 69, 0.06);
  text-decoration: none;
  transition-property: box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: ease;
}

.workflow-row:hover,
.workflow-row:focus {
  color: inherit;
  box-shadow:
    0 0 0 1px rgba(23, 75, 138, 0.26),
    0 2px 5px -1px rgba(11, 37, 69, 0.14),
    0 12px 28px rgba(11, 37, 69, 0.1);
  transform: translateY(-1px);
}

.workflow-row-disabled {
  opacity: 0.62;
  pointer-events: none;
}

.workflow-row-main,
.workflow-row-status {
  display: grid;
  gap: 5px;
}

.workflow-row-main strong {
  color: var(--psa-navy);
  font-size: 1rem;
  font-weight: 850;
}

.workflow-row-main span,
.workflow-row-main small,
.workflow-row-status span:last-child {
  color: var(--psa-muted);
  line-height: 1.35;
  text-wrap: pretty;
}

.workflow-row-status {
  justify-items: end;
  text-align: right;
  font-size: 0.86rem;
}

.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;
}

.practice-location-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.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-choice-meter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--psa-navy);
  box-shadow: inset 0 0 0 1px rgba(47, 128, 237, 0.18);
}

.practice-choice-meter strong {
  font-weight: 850;
}

.practice-choice-meter span {
  color: var(--psa-muted);
  font-size: 0.9rem;
}

.practice-choice-meter.ready {
  background: #eefbf4;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.22);
}

.practice-choice-meter.over-limit {
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.2);
}

.practice-ranking {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border-color, #d9dee7);
  border-radius: 0.75rem;
  background: var(--surface-subtle, #f8f9fb);
}

.practice-ranking-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-ranking-item {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-color, #d9dee7);
  border-radius: 0.6rem;
  background: #fff;
}

.practice-ranking-ordinal {
  font-weight: 700;
}

.practice-ranking-description {
  min-width: 0;
  overflow-wrap: anywhere;
}

.practice-ranking-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.practice-ranking-button {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #aab6c5;
  border-radius: 10px;
  color: var(--psa-navy);
  background: #fff;
}

.practice-ranking-button:hover:not(:disabled) {
  border-color: var(--psa-blue);
  color: var(--psa-blue);
  background: #eef5fc;
}

.practice-ranking-button:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.32);
  outline-offset: 2px;
}

.practice-ranking-button:disabled {
  border-color: #d8dee7;
  color: #8b96a6;
  background: #f2f4f7;
  opacity: 0.72;
}

.practice-ranking-button-remove {
  border-color: #d6a6a6;
  color: #9b2c2c;
}

.practice-ranking-button-remove:hover:not(:disabled) {
  border-color: #b42318;
  color: #8f1d18;
  background: #fff4f3;
}

.practice-ranking-icon {
  display: block;
  pointer-events: none;
}

.practice-ranking-empty {
  color: var(--text-muted, #5d6675);
}

@media (max-width: 640px) {
  .practice-ranking-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .practice-ranking-actions {
    justify-content: flex-start;
  }
}

.coach-practice-scheduler {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.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;
}

.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;
}

.field-hint {
  margin: 8px 0 12px;
  color: var(--psa-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.conflict-season-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  color: var(--psa-muted);
}

.conflict-time-section-column {
  min-width: 0;
}

.conflict-time-multiselect {
  position: relative;
  width: 100%;
}

.conflict-time-multiselect summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 2.25rem 0.55rem 0.75rem;
  overflow: hidden;
  border: 1px solid #b8c5d6;
  border-radius: 6px;
  background: #fff;
  color: var(--psa-ink);
  cursor: pointer;
  list-style: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conflict-time-multiselect summary::-webkit-details-marker {
  display: none;
}

.conflict-time-multiselect summary::after {
  position: absolute;
  right: 0.85rem;
  content: "▾";
}

.conflict-time-multiselect summary:focus-visible {
  outline: 3px solid rgba(23, 75, 138, 0.32);
  outline-offset: 2px;
}

.conflict-time-multiselect.disabled summary {
  background: #eef2f6;
  color: var(--psa-muted);
  cursor: not-allowed;
}

.conflict-time-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  display: grid;
  width: min(100%, 30rem);
  max-width: calc(100vw - 2rem);
  gap: 0.25rem;
  padding: 0.5rem;
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.16);
}

.conflict-time-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.conflict-time-option:hover,
.conflict-time-option:focus-within {
  background: #eef5fc;
}

.conflict-time-option span {
  overflow-wrap: anywhere;
}

.form-panel section,
.nested-panel {
  padding: 18px;
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  background: #fbfdff;
}

.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);
}

.workflow-section {
  padding: 18px;
  border: 1px solid var(--psa-line);
  border-radius: 8px;
  background: #fbfdff;
}

.workflow-section + .workflow-section,
.workflow-section + .form-actions {
  margin-top: 18px;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  color: var(--psa-navy);
  font-size: 1.1rem;
  font-weight: 850;
}

.section-title-small {
  font-size: 0.95rem;
}

.section-subtitle,
.muted-copy {
  margin: 4px 0 0;
  color: var(--psa-muted);
  font-size: 0.92rem;
}

.selected-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.selected-color-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(11, 37, 69, 0.08),
    0 8px 18px -18px rgba(11, 37, 69, 0.42);
}

.selected-color-copy {
  min-width: 0;
}

.selected-color-value {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.selected-color-value strong {
  overflow-wrap: anywhere;
}

.selected-color-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.jersey-color-workflow {
  display: grid;
  gap: 22px;
}

.jersey-number-form,
.team-color-form {
  min-width: 0;
}

.team-color-form {
  padding-top: 20px;
  border-top: 1px solid rgba(11, 37, 69, 0.1);
}

.compact-form-actions {
  justify-content: flex-end;
}

.team-color-change-button {
  min-height: 40px;
  transition-property: background-color, border-color, color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: ease;
}

.team-color-change-button.is-selected,
.team-color-change-button.is-selected:hover,
.team-color-change-button.is-selected:active {
  border-color: var(--team-color-bg);
  color: var(--team-color-fg);
  background-color: var(--team-color-bg);
}

.team-color-change-button.is-selected:hover:not(:disabled) {
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.16);
}

.team-color-change-button:focus-visible {
  outline: 3px solid #f6c344;
  outline-offset: 2px;
}

.team-color-change-button:active:not(:disabled) {
  transform: scale(0.96);
}

.team-color-change-button.is-selected:disabled {
  border-color: var(--team-color-bg);
  color: var(--team-color-fg);
  background-color: var(--team-color-bg);
  opacity: 0.62;
}

.team-color-save-button {
  min-height: 40px;
  transition-property: background-color, border-color, color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: ease;
}

.team-color-save-button:hover,
.team-color-save-button:active {
  color: #fff;
  background-color: var(--psa-blue);
  border-color: var(--psa-blue);
}

.team-color-save-button:focus-visible {
  color: #fff;
  background-color: var(--psa-blue);
  border-color: var(--psa-blue);
  outline: 3px solid #f6c344;
  outline-offset: 2px;
}

.team-color-save-button:active:not(:disabled) {
  transform: scale(0.96);
}

.team-color-save-button:disabled {
  color: #fff;
  background-color: var(--psa-blue);
  border-color: var(--psa-blue);
  opacity: 0.62;
}

.team-color-form-actions {
  flex-wrap: wrap;
}

.color-remove-action {
  min-height: 40px;
  padding-inline: 8px;
}

.color-picker-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--psa-navy);
  background: transparent;
}

.color-picker-dialog::backdrop {
  background: rgba(11, 37, 69, 0.48);
}

.color-picker-surface {
  padding: 18px;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 24px 72px rgba(11, 37, 69, 0.28);
}

.color-picker-header,
.color-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.color-picker-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.color-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--psa-navy);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(11, 37, 69, 0.1),
    0 1px 2px -1px rgba(11, 37, 69, 0.08);
  text-align: left;
  transition-property: background-color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: ease;
}

.color-picker-option:hover {
  background: #f0f6ff;
  box-shadow:
    0 0 0 1px rgba(23, 75, 138, 0.26),
    0 8px 20px -18px rgba(23, 75, 138, 0.5);
}

.color-picker-option:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.36);
  outline-offset: 2px;
}

.color-picker-option:active {
  transform: scale(0.96);
}

.option-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #d8e2ef;
  cursor: pointer;
}

.option-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 0 0;
  padding: 0;
}

.option-row strong,
.option-row small {
  display: block;
}

.coach-question-radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.coach-question-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
}

.coach-question-radio-option .form-check-input {
  position: static;
  float: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
}

.coach-question-radio-option .form-check-label {
  cursor: pointer;
}

.coach-question-conditional {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--psa-line);
  border-radius: 12px;
  background: #f8fbff;
}

.coach-question-conditional h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.coach-question-conditional p {
  margin-bottom: 12px;
  color: var(--psa-muted);
}

.coach-question-conditional .form-select {
  max-width: 220px;
}

.option-row small {
  color: var(--psa-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.color-chip,
.league-color-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  color: var(--psa-navy);
  font-size: 0.88rem;
  font-weight: 750;
}

.color-swatch {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.color-swatch-empty {
  background:
    linear-gradient(45deg, transparent 46%, #9aa8ba 48%, #9aa8ba 52%, transparent 54%),
    #fff;
}

.league-color-usage {
  margin-top: 18px;
}

.league-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.league-color-swatches {
  display: inline-flex;
  gap: 4px;
}

.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);
}

.roster-entry-table {
  min-width: 560px;
}

.roster-entry-table .jersey-column {
  width: 220px;
}

.jersey-input {
  max-width: 180px;
}

.print-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.soccer-roster-sheet {
  padding: 22px;
  border: 1px solid #1f2937;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  box-shadow: var(--psa-shadow);
}

.soccer-roster-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 3px solid #111827;
}

.soccer-roster-header h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0;
}

.soccer-roster-header p {
  margin: 8px 0 0;
  font-weight: 850;
  text-transform: uppercase;
}

.soccer-roster-scores {
  display: grid;
  gap: 8px;
}

.soccer-roster-scores div,
.soccer-roster-fields div,
.soccer-roster-colors,
.soccer-roster-official-grid div,
.soccer-roster-signature div {
  min-height: 54px;
  padding: 8px;
  border: 1px solid #111827;
  background: #fff;
}

.soccer-roster-scores span,
.soccer-roster-fields span,
.soccer-roster-colors span,
.soccer-roster-official-grid span,
.soccer-roster-signature span {
  display: block;
  color: #374151;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.soccer-roster-scores strong,
.soccer-roster-fields strong,
.soccer-roster-colors strong,
.soccer-roster-official-grid strong,
.soccer-roster-signature strong {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 1rem;
  font-weight: 850;
}

.soccer-roster-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.soccer-roster-field-wide {
  grid-column: span 3;
}

.soccer-roster-colors {
  margin-top: 8px;
}

.soccer-roster-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  background: #fff;
}

.soccer-roster-table th,
.soccer-roster-table td {
  height: 34px;
  padding: 6px 8px;
  border: 1px solid #111827;
  color: #111827;
  vertical-align: middle;
}

.soccer-roster-table th {
  background: #eef2f7;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.soccer-roster-table th:first-child,
.soccer-roster-table td:first-child {
  width: 78px;
  text-align: center;
}

.soccer-roster-table th:nth-child(3),
.soccer-roster-table th:nth-child(4),
.soccer-roster-table th:nth-child(5),
.soccer-roster-table td:nth-child(3),
.soccer-roster-table td:nth-child(4),
.soccer-roster-table td:nth-child(5) {
  width: 64px;
  text-align: center;
}

.soccer-roster-empty {
  color: var(--psa-muted);
  font-weight: 800;
  text-align: center;
}

.soccer-roster-officials,
.soccer-roster-misconduct,
.soccer-roster-signature {
  margin-top: 14px;
}

.soccer-roster-officials h2,
.soccer-roster-misconduct h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.soccer-roster-official-grid,
.soccer-roster-signature {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.soccer-roster-misconduct {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid #111827;
  background: #f8fafc;
}

.soccer-roster-misconduct p {
  margin: 0 0 6px;
  color: #1f2937;
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .auth-content,
  .metric-grid,
  .workflow-grid,
  .workflow-summary-grid,
  .workflow-context-strip,
  .coach-choice-grid,
  .practice-location-grid {
    grid-template-columns: 1fr;
  }

  .workflow-summary-card-wide {
    grid-column: auto;
  }

  .workflow-context-secondary {
    justify-items: start;
    text-align: left;
  }

  .workflow-row {
    grid-template-columns: 1fr;
  }

  .workflow-row-status {
    justify-items: start;
    text-align: left;
  }

  .practice-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .soccer-roster-header,
  .soccer-roster-fields,
  .soccer-roster-official-grid,
  .soccer-roster-misconduct,
  .soccer-roster-signature {
    grid-template-columns: 1fr;
  }

  .soccer-roster-field-wide {
    grid-column: auto;
  }

  .selected-color-grid,
  .color-picker-options {
    grid-template-columns: 1fr;
  }

  .selected-color-card {
    align-items: stretch;
    flex-direction: column;
  }

  .selected-color-actions {
    justify-content: flex-start;
  }

  .practice-day-row {
    grid-template-columns: 1fr;
  }

  .auth-content {
    align-items: start;
    min-height: auto;
    padding-bottom: 48px;
  }

  .page-hero,
  .panel-header,
  .form-actions {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .auth-topbar {
    align-items: flex-start;
    gap: 16px;
    padding-inline: 18px;
  }

  .auth-brand {
    align-items: flex-start;
  }

  .auth-brand .app-brand-logo-shell {
    width: 64px;
    height: 50px;
  }

  .auth-content {
    width: min(100% - 28px, 1180px);
    padding-top: 8px;
    padding-bottom: 36px;
  }

  .auth-copy h1 {
    font-size: 2.3rem;
    line-height: 1.02;
  }

  .auth-copy p {
    font-size: 1rem;
  }

  .auth-proof {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .app-page {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .practice-summary {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.35in;
  }

  html,
  body {
    min-height: auto;
    background: #fff;
    font-size: 11px;
  }

  .app-header,
  .app-footer,
  .no-print {
    display: none !important;
  }

  .app-page,
  .app-main {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 0;
  }

  .page-stack,
  .soccer-print-page {
    display: block;
  }

  .soccer-roster-sheet {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .soccer-roster-header,
  .soccer-roster-table,
  .soccer-roster-officials,
  .soccer-roster-misconduct,
  .soccer-roster-signature {
    break-inside: avoid;
  }

  .soccer-roster-table th {
    background: #e5e7eb !important;
    print-color-adjust: exact;
  }
}

@media screen {
  /* Final cascade for the guided CoachWeb redesign. Kept after legacy CSS so it wins without touching login. */
  .coach-app {
    background: radial-gradient(circle at 10% 0%, rgba(125, 183, 232, 0.22), transparent 34%), linear-gradient(180deg, #eef3fa 0%, #f8fbff 42%, #f3f6fb 100%);
  }

  .coach-app .app-header {
    position: static;
    width: min(1280px, calc(100% - 32px));
    margin: 20px auto 0;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.08), 0 18px 60px rgba(11, 37, 69, 0.12);
  }

  .coach-app .app-navbar {
    min-height: 76px;
    border-bottom: 1px solid var(--psa-line);
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .coach-app .navbar > .container-fluid {
    padding-inline: clamp(18px, 2.6vw, 28px);
  }

  .coach-app .app-page {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 32px;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.08), 0 18px 60px rgba(11, 37, 69, 0.12);
  }

  .coach-app .app-main {
    min-height: calc(100vh - 172px);
  }

  .coach-app .app-footer {
    border-top: 0;
    background: transparent;
  }

  .coach-app .app-nav {
    gap: 6px;
  }

  .coach-app .app-nav .nav-link,
  .coach-app .navbar-nav .nav-link,
  .coach-app .btn-link.nav-link {
    min-height: 40px;
    padding: 0.56rem 0.95rem;
    border-radius: 999px;
    color: #3f4c61;
    transition-property: background-color, color, transform;
    transition-duration: 160ms;
    transition-timing-function: ease;
  }

  .coach-app .app-nav .nav-link:hover,
  .coach-app .navbar-nav .nav-link:hover,
  .coach-app .btn-link.nav-link:hover {
    color: var(--psa-navy);
    background: var(--psa-soft);
  }

  .coach-app .page-stack {
    gap: 22px;
    padding: clamp(20px, 2.6vw, 30px);
  }

  .coach-app .page-hero,
  .coach-guided-hero,
  .coach-workflow-hero {
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #0b2545, #174b8a);
    box-shadow: none;
  }

  .coach-app .page-hero,
  .coach-guided-hero,
  .coach-workflow-hero {
    padding: clamp(22px, 3vw, 32px);
  }

  .coach-app .page-hero h1,
  .coach-guided-hero h1,
  .coach-workflow-hero h1 {
    max-width: 760px;
    font-size: clamp(2.05rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }

  .coach-app .page-hero p,
  .coach-guided-hero p,
  .coach-workflow-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.78);
    text-wrap: pretty;
  }

  .coach-app .panel,
  .coach-app .metric-card,
  .coach-app .workflow-card,
  .coach-app .team-card,
  .coach-app .game-card,
  .coach-app .contact-card {
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.08), 0 10px 30px rgba(11, 37, 69, 0.08);
  }

  .coach-app .panel {
    padding: clamp(18px, 2.4vw, 26px);
  }

  .coach-app .panel-header {
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e4eaf3;
  }

  .coach-app .panel-title {
    color: var(--psa-navy);
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    font-weight: 900;
    text-wrap: balance;
  }

  .coach-app .btn,
  .coach-app .status-pill {
    border-radius: 999px;
  }

  .coach-app .btn {
    min-height: 40px;
  }

  .coach-app .status-pill {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }

  .coach-app .form-panel,
  .coach-app .nested-panel,
  .coach-app .form-panel section {
    border: 0;
    border-radius: 16px;
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px rgba(11, 37, 69, 0.08);
  }

  .coach-app .form-actions {
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(23, 75, 138, 0.14), 0 8px 24px rgba(11, 37, 69, 0.08);
  }

  .coach-app .workflow-summary-card,
  .coach-app .workflow-context-strip,
  .coach-app .empty-state,
  .coach-app .workflow-guidance,
  .coach-app .option-row,
  .coach-app .coach-choice-card span {
    border: 0;
    border-radius: 14px;
    background-color: #f8fbff;
    box-shadow: inset 0 0 0 1px rgba(11, 37, 69, 0.08);
  }

  .coach-workspace-shell {
    display: grid;
    min-height: calc(100vh - 172px);
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }

  .coach-setup-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(18px, 2.4vw, 26px);
    border-right: 1px solid var(--psa-line);
    background: #f8fbff;
  }

  .coach-selected-team-card,
  .setup-progress-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.08), 0 8px 24px rgba(11, 37, 69, 0.08);
  }

  .coach-selected-team-card strong,
  .coach-team-switcher strong {
    color: var(--psa-navy);
    font-size: 1.05rem;
    line-height: 1.15;
  }

  .coach-selected-team-card span,
  .coach-team-switcher small {
    color: var(--psa-muted);
    line-height: 1.35;
  }

  .coach-team-select-form,
  .coach-team-list,
  .coach-sidebar-section {
    display: grid;
    gap: 10px;
  }

  .coach-team-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 12px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.08);
    transition-property: background-color, box-shadow, transform;
    transition-duration: 160ms;
    transition-timing-function: ease;
  }

  .coach-team-switcher:hover,
  .coach-team-switcher:focus {
    color: inherit;
    background: #eef5ff;
    box-shadow: 0 0 0 1px rgba(23, 75, 138, 0.2), 0 10px 24px rgba(11, 37, 69, 0.08);
    transform: translateY(-1px);
  }

  .coach-team-switcher:active {
    transform: scale(0.96);
  }

  .coach-team-switcher.active {
    background: var(--psa-blue);
  }

  .coach-team-switcher.active strong,
  .coach-team-switcher.active small {
    color: #fff;
  }

  .coach-team-switcher.active .selected-team-indicator {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  }

  .coach-team-switcher.active:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
    box-shadow: 0 0 0 3px var(--psa-navy), 0 10px 24px rgba(11, 37, 69, 0.18);
  }

  .coach-team-switcher > span:first-child {
    display: grid;
    gap: 3px;
  }

  .setup-progress-card {
    margin-top: 0;
    color: #fff;
    background: var(--psa-navy);
  }

  .setup-progress-card > span,
  .setup-progress-card p {
    color: rgba(255, 255, 255, 0.72);
  }

  .setup-progress-card strong {
    color: #fff;
    font-size: 2.6rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  .setup-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
  }

  .setup-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #7db7e8;
  }

  .coach-setup-main {
    display: grid;
    align-content: start;
    gap: 22px;
    padding: clamp(20px, 2.6vw, 30px);
  }

  .coach-setup-main-full {
    grid-column: 1 / -1;
  }

  .coach-guided-hero,
  .coach-workflow-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
  }

  .coach-guided-hero .section-eyebrow,
  .coach-workflow-hero .section-eyebrow {
    color: rgba(255, 255, 255, 0.72);
  }

  .coach-workspace-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }

  .coach-checklist-panel {
    padding: 0 !important;
    overflow: hidden;
  }

  .coach-checklist-panel .panel-header {
    margin: 0;
    padding: 18px 20px;
  }

  .coach-checklist {
    display: grid;
    gap: 2px;
    padding: 12px;
  }

  .coach-checklist-section + .coach-checklist-section {
    margin-top: 4px;
    box-shadow: inset 0 1px rgba(11, 37, 69, 0.08);
  }

  .coach-checklist-section-heading {
    padding: 18px 20px 4px;
  }

  .coach-checklist-section-heading h3 {
    margin: 0;
    color: var(--psa-navy);
    font-size: 1.05rem;
    font-weight: 900;
    text-wrap: balance;
  }

  .coach-checklist-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(180px, auto);
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 14px;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition-property: background-color, box-shadow, transform;
    transition-duration: 160ms;
    transition-timing-function: ease;
  }

  a.coach-checklist-row:hover,
  a.coach-checklist-row:focus {
    color: inherit;
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px rgba(23, 75, 138, 0.16);
    transform: translateY(-1px);
  }

  a.coach-checklist-row:active {
    transform: scale(0.96);
  }

  .coach-checklist-row.next {
    background: #eef5ff;
    box-shadow: inset 0 0 0 1px rgba(23, 75, 138, 0.18);
  }

  .coach-checklist-row.locked {
    opacity: 0.68;
  }

  .coach-checklist-row.closed {
    background: #f8fafc;
    opacity: 0.76;
  }

  .coach-checklist-number {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 999px;
    color: var(--psa-blue);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(23, 75, 138, 0.2);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }

  .coach-checklist-copy,
  .coach-checklist-status {
    display: grid;
    gap: 4px;
  }

  .coach-checklist-group {
    color: var(--psa-muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .coach-checklist-copy strong {
    color: var(--psa-navy);
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .coach-checklist-copy span:not(.coach-checklist-group),
  .coach-checklist-copy small,
  .coach-checklist-status span:last-child {
    color: var(--psa-muted);
    line-height: 1.35;
  }

  .coach-checklist-status {
    justify-items: end;
    text-align: right;
    font-size: 0.86rem;
  }

  .coach-next-action-panel,
  .coach-team-balance-panel,
  .coach-resource-panel,
  .coach-workflow-team-card {
    display: grid;
    align-content: start;
    gap: 14px;
    border-radius: 16px;
    background: #f8fbff;
    box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.08), 0 10px 30px rgba(11, 37, 69, 0.08);
  }

  .coach-next-action-panel {
    padding: 20px;
  }

  .coach-team-balance-panel {
    padding: 20px;
  }

  .coach-team-balance-panel h2 {
    margin: 0;
    color: var(--psa-navy);
    font-size: 1.35rem;
    font-weight: 900;
    text-wrap: balance;
  }

  .team-balance-status {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.08);
  }

  .team-balance-status > span {
    color: var(--psa-muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .team-balance-status strong {
    overflow-wrap: anywhere;
    color: var(--psa-navy);
    font-size: 1rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
  }

  .coach-team-balance-panel p {
    margin: 0;
    color: var(--psa-muted);
    line-height: 1.5;
    text-wrap: pretty;
  }

  .coach-workspace-side {
    display: grid;
    align-content: start;
    gap: 18px;
  }

  .coach-workspace-grid.resources-only .coach-workspace-side {
    grid-column: 2;
  }

  .coach-resource-panel {
    display: grid;
    gap: 12px;
    padding: 20px;
  }

  .coach-resource-panel h2 {
    margin: 0;
    color: var(--psa-navy);
    font-size: 1.35rem;
    font-weight: 900;
    text-wrap: balance;
  }

  .coach-resource-panel p {
    margin: 0;
    color: var(--psa-muted);
    line-height: 1.5;
    text-wrap: pretty;
  }

  .coach-next-action-panel h2 {
    margin: 0;
    color: var(--psa-navy);
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 900;
    line-height: 1.08;
  }

  .coach-next-action-panel p {
    margin: 0;
    color: var(--psa-muted);
    line-height: 1.5;
  }

  .coach-next-deadline {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.08);
  }

  .coach-next-deadline span,
  .coach-workflow-team-card span {
    color: var(--psa-muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .coach-workflow-hero {
    align-items: stretch;
  }

  .coach-workflow-hero-copy {
    display: grid;
    align-content: start;
  }

  .workflow-back-link {
    width: fit-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    font-weight: 800;
    text-decoration: none;
    transition-property: background-color, transform;
    transition-duration: 160ms;
    transition-timing-function: ease;
  }

  .workflow-back-link:hover,
  .workflow-back-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
  }

  .workflow-back-link:active {
    transform: scale(0.96);
  }

  .coach-workflow-team-card {
    min-width: min(320px, 100%);
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
  }

  .coach-workflow-team-card strong {
    color: var(--psa-navy);
  }

  .coach-workflow-team-card small {
    color: var(--psa-muted);
    line-height: 1.35;
  }

  .coach-context-panel {
    background: #f8fbff !important;
  }

  @media (max-width: 991.98px) {
    .coach-app .app-header,
    .coach-app .app-page,
    .coach-app .app-footer .container {
      width: min(100% - 20px, 1280px);
    }

    .coach-workspace-shell,
    .coach-workspace-grid {
      grid-template-columns: 1fr;
    }

    .coach-workspace-grid.resources-only .coach-workspace-side {
      grid-column: 1;
    }

    .coach-setup-sidebar {
      border-right: 0;
      border-bottom: 1px solid var(--psa-line);
    }

    .coach-guided-hero,
    .coach-workflow-hero {
      align-items: flex-start;
      flex-direction: column;
    }
  }

  @media (max-width: 767.98px) {
    .coach-app .app-header {
      margin-top: 10px;
    }

    .coach-app .app-page {
      margin-bottom: 18px;
    }

    .coach-app .page-stack,
    .coach-setup-main,
    .coach-setup-sidebar {
      padding: 16px;
    }

    .coach-app .panel-header {
      align-items: flex-start;
    }

    .coach-checklist-row {
      grid-template-columns: 34px minmax(0, 1fr);
    }

    .coach-checklist-status {
      grid-column: 2;
      justify-items: start;
      text-align: left;
    }

    .team-color-form-actions .btn {
      width: 100%;
    }

    .roster-entry-table,
    .roster-entry-table tbody,
    .roster-entry-table tr,
    .roster-entry-table td {
      display: block;
      width: 100%;
    }

    .roster-entry-table thead {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .roster-entry-table tr {
      padding: 14px 0;
      border-bottom: 1px solid var(--psa-line);
    }

    .roster-entry-table td {
      padding: 4px 0;
      border: 0;
    }

    .roster-entry-table .jersey-entry-cell::before {
      display: block;
      margin-bottom: 6px;
      color: var(--psa-muted);
      content: attr(data-label);
      font-size: 0.84rem;
      font-weight: 700;
    }

    .roster-entry-table .jersey-input {
      min-height: 48px;
      font-size: 1rem;
    }

    .jersey-number-form .compact-form-actions .btn {
      width: 100%;
      min-height: 48px;
    }
  }
}
