:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #607080;
  --line: #d7dee5;
  --surface: #ffffff;
  --field: #f6f8fa;
  --navy: #18324a;
  --green: #2c6e49;
  --gold: #b37a17;
  --red: #a33b33;
  --blue: #2f5f98;
  --shadow: 0 18px 40px rgba(22, 34, 47, 0.1);
  --mobile-workflow-nav-height: calc(172px + env(safe-area-inset-bottom));
  --mobile-sticky-action-bottom: calc(var(--mobile-workflow-nav-height) + 12px);
  --mobile-sticky-content-clearance: calc(var(--mobile-workflow-nav-height) + 332px);
}

* {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(246, 248, 250, 0.96), rgba(239, 243, 246, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(44, 110, 73, 0.06) 34px 35px);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(16px, 4vw, 40px) 12px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.plan-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.header-select {
  display: grid;
  gap: 3px;
  min-width: 160px;
}

.header-select span {
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.header-select select {
  min-height: 42px;
  background: #ffffff;
}

.workflow-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 clamp(16px, 4vw, 40px) 10px;
}

.workflow-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 850;
  padding: 9px 13px;
}

.workflow-tab.active {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.home-panel.workflow-panel.active {
  flex: 1 1 100%;
  max-width: 1180px;
}

.platform-hero,
.value-grid,
.athlete-progress-grid,
.report-grid,
.travel-task-grid,
.assessment-lead-form {
  display: grid;
  gap: 14px;
}

.platform-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  margin-bottom: 18px;
}

.platform-hero-copy,
.facility-dashboard,
.home-section,
.value-grid article,
.athlete-progress-card,
.coach-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.platform-hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
}

.platform-hero-copy h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.platform-lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
}

.beta-entry-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #d7e1ea;
  border-radius: 8px;
  background: #f7fbff;
  padding: 14px;
}

.beta-entry-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.beta-entry-panel p:first-child {
  color: var(--navy);
  font-weight: 800;
}

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

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

.facility-dashboard {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 24px);
}

.auth-shell {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.auth-form label {
  display: grid;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
}

.auth-form input {
  min-width: 0;
}

.auth-actions,
.auth-account-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.auth-bootstrap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.auth-bootstrap-card {
  display: grid;
  gap: 4px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px 12px;
}

.auth-bootstrap-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-bootstrap-card strong {
  color: var(--navy);
  text-transform: capitalize;
}

.auth-bootstrap-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.auth-authorization-notice {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(58, 134, 255, 0.35);
  border-radius: 8px;
  background: rgba(58, 134, 255, 0.08);
  padding: 12px;
}

.auth-authorization-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.authorization-facility-summary {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 850;
}

.auth-authorization-notice[data-authorization-state="ambiguous"],
.auth-authorization-notice[data-authorization-state="disabled"],
.auth-authorization-notice[data-authorization-state="network_failure"],
.auth-authorization-notice[data-authorization-state="permission_failure"],
.auth-authorization-notice[data-authorization-state="session_expired"] {
  border-color: rgba(248, 81, 73, 0.5);
  background: rgba(248, 81, 73, 0.08);
}

body[data-authorization-shell="restricted"] #homePanel > :not(#authShell) {
  display: none;
}

body[data-authorization-shell="restricted"] .workflow-tabs,
body[data-authorization-shell="restricted"] .workflow-tab {
  display: none;
}

body[data-authorization-shell="restricted"] #authShell {
  margin: 0;
}

.auth-account-row {
  justify-content: space-between;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.auth-account-row span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-account-row strong {
  color: var(--navy);
}

.auth-recovery-request-form {
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
}

.auth-recovery-request-form > .profile-note {
  grid-column: 1 / -1;
}

.recovery-shell {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-items: center;
  padding: clamp(20px, 5vw, 56px);
  background:
    radial-gradient(circle at top right, rgba(58, 134, 255, 0.24), transparent 38%),
    linear-gradient(145deg, #102536, #18324a 58%, #244d3a);
}

html[data-auth-recovery-pending="true"] body > .app-header,
html[data-auth-recovery-pending="true"] body > .workflow-tabs,
html[data-auth-recovery-pending="true"] body > .app-shell,
body.auth-recovery-active > .app-header,
body.auth-recovery-active > .workflow-tabs,
body.auth-recovery-active > .app-shell {
  display: none;
}

html[data-auth-recovery-pending="true"] .recovery-shell,
body.auth-recovery-active .recovery-shell {
  display: grid;
}

.recovery-card {
  display: grid;
  gap: 16px;
  width: min(100%, 560px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  padding: clamp(24px, 5vw, 42px);
}

.recovery-card h1,
.recovery-card p {
  margin: 0;
}

.recovery-card h1 {
  color: var(--navy);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.08;
}

.recovery-card > p:not(.eyebrow),
.recovery-guidance {
  color: var(--muted);
  line-height: 1.5;
}

.recovery-form {
  display: grid;
  gap: 10px;
}

.recovery-form > label {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 850;
}

.password-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.password-visibility-button {
  min-height: 44px;
  min-width: 72px;
}

.recovery-guidance,
.recovery-status {
  font-size: 0.88rem;
}

.recovery-status {
  min-height: 1.4em;
}

.recovery-status.success {
  color: var(--green);
  font-weight: 800;
}

.recovery-status.error {
  color: var(--red);
  font-weight: 800;
}

.recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.facility-dashboard > p,
.home-section > p,
.coach-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-header,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-header h3,
.section-heading h3,
.value-grid h3,
.athlete-progress-card h4 {
  margin: 0;
  color: var(--navy);
}

.dashboard-header > span,
.section-heading > span {
  border: 1px solid rgba(179, 122, 23, 0.28);
  border-radius: 999px;
  background: rgba(179, 122, 23, 0.1);
  color: #7a5315;
  font-size: 0.74rem;
  font-weight: 850;
  padding: 6px 9px;
  white-space: nowrap;
}

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

.dashboard-grid article,
.report-grid article,
.travel-task-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.dashboard-grid strong {
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1;
}

.local-data-summary strong {
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1.15;
}

.dashboard-grid span,
.report-grid span,
.travel-task-grid span,
.local-data-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.dashboard-grid small,
.facility-list small,
.retention-signal-list small,
.local-data-summary small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.local-demo-notice {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(47, 95, 152, 0.24);
  border-radius: 8px;
  background: rgba(47, 95, 152, 0.08);
  padding: 12px;
}

.local-demo-notice strong {
  color: var(--blue);
}

.local-demo-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.facility-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facility-dashboard-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.retention-signal-list,
.facility-list,
.owner-value-grid,
.owner-snapshot-grid,
.creator-credibility-grid,
.coach-start-grid,
.demo-vs-future-grid,
.trial-demo-grid,
.coach-demo-steps,
.owner-demo-steps,
.facility-workflow-grid,
.facility-dashboard-actions {
  display: grid;
  gap: 10px;
}

.retention-signal-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-snapshot-grid {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

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

.creator-credibility-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.coach-start-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-vs-future-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coach-demo-path,
.owner-snapshot-panel,
.owner-value-snapshot,
.creator-credibility-panel,
.coach-start-workflow,
.demo-guide-panel,
.demo-vs-future-panel,
.trial-demo-talk-track,
.owner-demo-flow,
.facility-pilot-runbook,
.facility-workflow-overview {
  gap: 14px;
}

.coach-demo-path > p,
.owner-snapshot-panel > p,
.owner-value-snapshot > p,
.creator-credibility-panel > p,
.demo-boundary-note,
.owner-demo-flow > p,
.pilot-runbook-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.owner-value-grid article,
.owner-snapshot-grid article,
.creator-credibility-grid article,
.coach-start-grid article,
.demo-vs-future-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.coach-start-grid article {
  align-content: start;
  display: grid;
  gap: 10px;
}

.owner-snapshot-grid article {
  align-content: start;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 185px;
}

.coach-start-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(6, 214, 160, 0.26);
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
  font-weight: 900;
}

.owner-snapshot-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(6, 214, 160, 0.28);
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
  font-weight: 900;
}

.owner-value-grid strong,
.owner-snapshot-grid strong,
.creator-credibility-grid strong,
.coach-start-grid strong {
  color: var(--ink);
}

.owner-value-grid p,
.owner-snapshot-grid p,
.creator-credibility-grid p,
.coach-start-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pilot-framing-notice {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(6, 214, 160, 0.24);
  border-radius: 8px;
  background: rgba(6, 214, 160, 0.08);
  padding: 12px 14px;
}

.pilot-framing-notice strong {
  color: var(--ink);
}

.pilot-framing-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.secondary-action {
  opacity: 0.86;
}

.dashboard-guide-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.5);
  overflow: hidden;
}

.dashboard-guide-section summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  list-style-position: inside;
  padding: 12px 14px;
}

.dashboard-guide-section[open] summary {
  border-bottom: 1px solid var(--line);
}

.dashboard-guide-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.dashboard-guide-body > .dashboard-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.primary-dashboard-actions {
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
}

.demo-vs-future-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.demo-vs-future-grid li + li {
  margin-top: 6px;
}

.coach-demo-steps,
.trial-demo-grid,
.owner-demo-steps {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.coach-demo-steps article,
.trial-demo-grid article,
.owner-demo-steps article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.coach-demo-steps article > span,
.trial-demo-grid article > span,
.owner-demo-steps article > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(6, 214, 160, 0.28);
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.coach-demo-steps strong,
.trial-demo-grid strong,
.owner-demo-steps strong,
.facility-workflow-grid strong {
  color: var(--ink);
  line-height: 1.25;
}

.coach-demo-steps p,
.trial-demo-grid p,
.owner-demo-steps p,
.facility-workflow-grid p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.coach-demo-steps .track-button,
.trial-demo-grid .track-button,
.owner-demo-steps .track-button {
  width: 100%;
}

.pilot-readiness-grid,
.pilot-qa-grid,
.pilot-qa-check-grid {
  display: grid;
  gap: 10px;
}

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

.pilot-qa-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pilot-qa-check-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pilot-checklist-column,
.pilot-qa-card,
.pilot-qa-check-grid article {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.pilot-checklist-column h5 {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
}

.pilot-checklist-column ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-checklist-column li {
  display: grid;
  gap: 5px;
}

.pilot-checklist-column p,
.pilot-qa-card p,
.pilot-qa-check-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.pilot-qa-card strong,
.pilot-qa-check-grid strong {
  color: var(--ink);
  line-height: 1.3;
}

.pilot-qa-checklist {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.pilot-status {
  justify-self: start;
  border: 1px solid rgba(47, 95, 152, 0.28);
  border-radius: 999px;
  background: rgba(47, 95, 152, 0.1);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  text-transform: uppercase;
}

.pilot-status.ready {
  border-color: rgba(44, 110, 73, 0.32);
  background: rgba(44, 110, 73, 0.1);
  color: var(--green);
}

.pilot-status.review {
  border-color: rgba(179, 122, 23, 0.34);
  background: rgba(179, 122, 23, 0.12);
  color: #7a5315;
}

.pilot-status.needs-attention {
  border-color: rgba(163, 59, 51, 0.34);
  background: rgba(163, 59, 51, 0.1);
  color: var(--red);
}

.pilot-status.ready-to-demo {
  border-color: rgba(44, 110, 73, 0.32);
  background: rgba(44, 110, 73, 0.1);
  color: var(--green);
}

.pilot-status.manual-check-required {
  border-color: rgba(179, 122, 23, 0.34);
  background: rgba(179, 122, 23, 0.12);
  color: #7a5315;
}

.pilot-status.future-backend-only {
  border-color: rgba(96, 112, 128, 0.32);
  background: rgba(96, 112, 128, 0.12);
  color: var(--muted);
}

.dashboard-athlete-finder {
  gap: 14px;
}

.dashboard-athlete-finder > p,
.dashboard-athlete-more,
.dashboard-athlete-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-athlete-finder-controls,
.dashboard-athlete-list {
  display: grid;
  gap: 10px;
}

.dashboard-athlete-search-field {
  display: grid;
  gap: 6px;
}

.dashboard-athlete-search-field span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-athlete-filter-bar {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.dashboard-athlete-filter {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 11px;
  white-space: nowrap;
}

.dashboard-athlete-filter.active {
  border-color: rgba(6, 214, 160, 0.36);
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
}

.dashboard-athlete-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(180px, 1.15fr) max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.dashboard-athlete-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-athlete-row strong,
.dashboard-athlete-empty strong {
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dashboard-athlete-row span,
.dashboard-athlete-row small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-athlete-row .track-button {
  width: 100%;
}

.dashboard-athlete-empty {
  display: grid;
  gap: 5px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.48);
  padding: 12px;
}

.facility-workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facility-workflow-grid article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.retention-signal-list article,
.facility-list article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.retention-signal-list strong,
.facility-list strong {
  color: var(--green);
  font-size: 1.05rem;
}

.retention-signal-list span,
.facility-list span {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.facility-dashboard-actions {
  grid-template-columns: repeat(4, minmax(0, max-content));
  justify-content: start;
}

.local-demo-data-panel {
  gap: 14px;
}

.local-data-controls {
  gap: 14px;
}

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

.local-data-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.local-data-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 10px;
  justify-content: start;
}

.local-import-button {
  position: relative;
  overflow: hidden;
}

.local-import-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.danger-action {
  border-color: rgba(239, 68, 68, 0.42);
  color: var(--red);
}

.danger-action:hover {
  border-color: rgba(239, 68, 68, 0.72);
  background: rgba(239, 68, 68, 0.12);
}

.demo-data-status.error {
  color: var(--red);
  font-weight: 850;
}

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

.demo-data-summary article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.demo-data-summary strong {
  color: var(--green);
  font-size: 1.35rem;
}

.demo-data-summary span,
.demo-data-summary small,
.demo-data-status {
  color: var(--muted);
}

.demo-data-status {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.value-grid article,
.home-section {
  padding: 18px;
}

.value-grid ul,
.travel-mode p + .travel-task-grid {
  margin-top: 6px;
}

.value-grid ul {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.42;
}

.home-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.athlete-progress-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.athlete-progress-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.athlete-progress-card dl div {
  display: grid;
  gap: 2px;
}

.athlete-progress-card dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.athlete-progress-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

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

.report-grid strong {
  color: var(--navy);
  line-height: 1.35;
}

.coach-note {
  display: grid;
  gap: 6px;
  background: rgba(44, 110, 73, 0.06);
  padding: 14px;
}

.coach-note strong {
  color: var(--green);
}

.travel-task-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.travel-task-grid strong {
  color: var(--navy);
}

.workflow-launch .home-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.program-interest-field {
  grid-column: span 2;
}

.assessment-lead-form .primary-button {
  align-self: end;
}

.assessment-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.assessment-status.success {
  color: var(--green);
  font-weight: 850;
}

.monthly-report-form,
.monthly-report-card,
.report-filter-panel,
.athlete-progress-summary,
.report-kpi-grid,
.report-metric-list,
.report-notes-grid,
.report-clarity-grid,
.report-action-grid,
.report-readiness-flags,
.improvement-pill-list {
  display: grid;
  gap: 12px;
}

.monthly-report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: end;
}

.monthly-report-card.demo-preview {
  border-color: rgba(179, 122, 23, 0.4);
  background: linear-gradient(180deg, rgba(179, 122, 23, 0.06), #ffffff 180px);
}

.monthly-report-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.monthly-report-hero > div {
  min-width: 0;
}

.monthly-report-hero h2,
.monthly-report-hero p {
  margin: 0;
}

.monthly-report-hero h2 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.monthly-report-hero p {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.report-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.athlete-progress-summary article,
.report-kpi-grid article,
.report-card-section,
.report-notes-grid article,
.report-clarity-grid article,
.report-action-grid article,
.report-readiness-flags article,
.improvement-pill-list article {
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.report-kpi-grid article {
  display: grid;
  gap: 5px;
}

.athlete-progress-summary article {
  display: grid;
  gap: 5px;
  border-left: 4px solid rgba(47, 95, 152, 0.32);
}

.athlete-progress-summary span,
.profile-empty-state h4 {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.athlete-progress-summary strong {
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.3;
}

.athlete-progress-summary small {
  color: var(--muted);
  line-height: 1.4;
}

.athlete-progress-summary .summary-improving,
.progress-snapshot-card.summary-improving {
  border-left-color: rgba(44, 110, 73, 0.72);
}

.athlete-progress-summary .summary-flat,
.progress-snapshot-card.summary-flat {
  border-left-color: rgba(179, 122, 23, 0.72);
}

.athlete-progress-summary .summary-attention,
.athlete-progress-summary .summary-needs-attention,
.progress-snapshot-card.summary-attention,
.progress-snapshot-card.summary-needs-attention {
  border-left-color: rgba(163, 59, 51, 0.72);
}

.report-kpi-grid span,
.report-metric-row span,
.report-notes-grid span,
.improvement-pill-list small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.report-kpi-grid strong {
  color: var(--green);
  font-size: 1.1rem;
}

.report-card-section {
  display: grid;
  gap: 12px;
}

.report-metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(118px, 100%), 1fr));
  align-items: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.report-metric-row.improving {
  border-color: rgba(44, 110, 73, 0.28);
  background: rgba(44, 110, 73, 0.04);
}

.report-metric-row.flat {
  border-color: rgba(179, 122, 23, 0.28);
  background: rgba(179, 122, 23, 0.05);
}

.report-metric-row.needs-attention {
  border-color: rgba(163, 59, 51, 0.24);
  background: rgba(163, 59, 51, 0.05);
}

.report-metric-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-metric-row strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.report-metric-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.metric-badge {
  justify-self: start;
  max-width: 100%;
  border: 1px solid rgba(44, 110, 73, 0.24);
  border-radius: 999px;
  background: rgba(44, 110, 73, 0.08);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  padding: 6px 9px;
  overflow-wrap: anywhere;
  text-align: center;
}

.report-metric-row.flat .metric-badge {
  border-color: rgba(179, 122, 23, 0.28);
  background: rgba(179, 122, 23, 0.1);
  color: #7a5315;
}

.report-metric-row.needs-attention .metric-badge {
  border-color: rgba(163, 59, 51, 0.24);
  background: rgba(163, 59, 51, 0.08);
  color: var(--red);
}

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

.improvement-pill-list article {
  display: grid;
  gap: 4px;
  background: rgba(44, 110, 73, 0.06);
}

.improvement-pill-list span {
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 900;
}

.report-notes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-clarity-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.report-clarity-grid article,
.report-action-grid article,
.report-readiness-flags article {
  display: grid;
  gap: 6px;
}

.report-clarity-grid span,
.report-action-grid span,
.report-readiness-flags span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.report-clarity-grid p,
.report-action-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.report-readiness-flags strong {
  color: var(--navy);
  font-size: 1rem;
}

.report-readiness-flags small {
  color: var(--muted);
  line-height: 1.38;
}

.report-clarity-section {
  border-color: rgba(44, 110, 73, 0.24);
  background: rgba(44, 110, 73, 0.04);
}

.report-action-plan {
  border-color: rgba(47, 95, 152, 0.24);
  background: rgba(47, 95, 152, 0.05);
}

.report-notes-grid article p,
.travel-mode-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.travel-mode-callout {
  border-color: rgba(47, 95, 152, 0.28);
  background: rgba(47, 95, 152, 0.06);
}

.travel-mode-callout h3 {
  margin: 0;
  color: var(--blue);
}

.report-form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.report-form-status.success {
  color: var(--green);
  font-weight: 850;
}

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

.home-option {
  display: grid;
  gap: 6px;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  padding: 16px;
  text-align: left;
}

.home-option:hover {
  border-color: var(--green);
  background: rgba(44, 110, 73, 0.06);
}

.home-option strong {
  color: var(--navy);
  font-size: 1rem;
}

.home-option span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.home-option.disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.app-header h1,
.panel h2,
.summary-band h2,
.empty-state h2 {
  margin: 0;
  letter-spacing: 0;
}

.progression-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 14px;
}

.progression-topline,
.progression-meta,
.badge-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.progression-topline {
  justify-content: space-between;
}

.progression-topline h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.progression-topline strong {
  color: var(--green);
  font-size: 1.05rem;
}

.xp-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf3;
}

.xp-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.progression-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.badge-pill {
  border: 1px solid rgba(44, 110, 73, 0.24);
  border-radius: 999px;
  background: rgba(44, 110, 73, 0.08);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  padding: 5px 8px;
}

.badge-pill.muted {
  border-color: var(--line);
  background: var(--field);
  color: var(--muted);
}

.xp-feedback {
  min-height: 20px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 850;
}

.app-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  height: 100vh;
  padding: 12px clamp(16px, 4vw, 40px) 36px;
}

.panel,
.summary-band,
.level-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intake-panel {
  align-self: start;
  flex: 0 0 min(420px, 34vw);
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
  position: sticky;
  top: 0;
}

.workflow-panel {
  display: none;
}

.workflow-panel.active {
  display: block;
}

#feedbackPanel.workflow-panel.active {
  flex: 1 1 auto;
  max-width: 760px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

form {
  display: grid;
  gap: 16px;
}

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

.pdf-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 750;
}

.check-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 13px;
}

.check-group legend {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 850;
  padding: 0 5px;
}

.check-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2f3d49;
  font-size: 0.84rem;
}

.check-group input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.assessment-group label {
  display: grid;
  align-items: stretch;
  gap: 7px;
}

.assessment-group select {
  min-width: 0;
}

.schedule-group {
  gap: 12px;
}

.schedule-group > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.schedule-group > div > span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c7d1da;
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  padding: 10px 11px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(47, 95, 152, 0.22);
  outline-offset: 2px;
}

.primary-button,
.ghost-button,
.tab-button,
.track-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: var(--green);
  color: white;
  padding: 11px 16px;
}

.track-button.danger {
  border-color: rgba(163, 59, 51, 0.24);
  background: #fff7f6;
  color: var(--red);
}

.ghost-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  padding: 10px 14px;
}

.plan-workspace {
  display: grid;
  gap: 16px;
  flex: 1 1 auto;
  height: 100vh;
  min-width: 0;
  overflow-y: auto;
  padding-bottom: 36px;
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  min-width: 0;
  padding: 20px;
}

.summary-band p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.metrics-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 18px;
}

.metrics-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 16px;
  align-items: start;
}

.metrics-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.assessment-placement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.3fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
}

.assessment-placement h3 {
  margin: 0;
  color: var(--navy);
}

.assessment-placement p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.assessment-placement-grid div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.assessment-placement-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.assessment-placement-grid strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.latest-metric {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--muted);
  padding: 10px 12px;
}

.latest-metric strong {
  color: var(--navy);
  font-size: 0.86rem;
}

.latest-metric span {
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 850;
}

.latest-metric small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.metrics-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.metric-add-collapsible {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.45);
  overflow: hidden;
}

.metric-add-collapsible summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  padding: 12px 14px;
}

.metric-add-collapsible[open] summary {
  border-bottom: 1px solid var(--line);
}

.metric-add-collapsible .metrics-form {
  padding: 12px;
}

.metric-notes-field {
  grid-column: span 2;
}

.metric-history {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.metric-history p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.metric-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.metric-entry div {
  display: grid;
  gap: 2px;
}

.metric-entry strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.metric-entry span {
  color: #2f3d49;
  font-size: 0.95rem;
  font-weight: 800;
}

.metric-entry small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  gap: 10px;
  align-items: stretch;
}

.metric-strip div {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.metric-strip span {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 850;
}

.metric-strip small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

.level-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  padding: 9px 13px;
}

.tab-button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.level-detail {
  min-height: 420px;
  padding: 20px;
}

.level-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.level-heading h2 {
  margin: 0;
  font-size: 1.45rem;
}

.level-heading p,
.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.level-badge {
  border-radius: 999px;
  background: rgba(179, 122, 23, 0.12);
  color: #7b520f;
  font-weight: 850;
  padding: 8px 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.view-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.view-nav .primary-button,
.view-nav .track-button {
  min-height: 38px;
}

.week-progress {
  display: grid;
  place-items: center;
  min-width: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 8px 10px;
}

.week-progress span {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 850;
}

.week-progress small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.week-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.week-picker-panel,
.plan-metric-context {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  margin-top: 14px;
  padding: 12px;
}

.week-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.week-tab {
  display: grid;
  gap: 3px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
}

.week-tab.active {
  border-color: var(--green);
  background: rgba(44, 110, 73, 0.08);
  box-shadow: inset 0 3px 0 var(--green);
}

.week-tab span {
  font-weight: 850;
}

.week-tab small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.plan-metric-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.plan-metric-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.plan-metric-list strong,
.plan-metric-list span,
.plan-metric-list small {
  display: block;
}

.plan-metric-list span {
  color: var(--green);
  font-weight: 850;
}

.plan-metric-list small {
  color: var(--muted);
  margin-top: 2px;
}

.week-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
}

.week-card.complete {
  border-color: rgba(44, 110, 73, 0.55);
  background: rgba(44, 110, 73, 0.06);
}

.week-card.current-week {
  border-color: rgba(58, 134, 255, 0.58);
  box-shadow: inset 4px 0 0 var(--blue);
}

.week-card.upcoming-week {
  border-style: dashed;
}

.week-card.completed-week {
  border-color: rgba(6, 214, 160, 0.42);
}

.week-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.week-topline h3 {
  margin: 0;
  font-size: 1.02rem;
}

.week-focus {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.week-view-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(47, 95, 152, 0.06);
  color: var(--muted);
  margin-bottom: 12px;
  padding: 10px 12px;
}

.week-view-context strong {
  color: var(--navy);
}

.week-view-context span {
  font-size: 0.84rem;
}

.week-structure-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  margin-bottom: 12px;
  padding: 12px;
}

.week-structure-card p {
  margin: 0;
  color: #d6dee8;
  font-size: 0.86rem;
  line-height: 1.45;
}

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

.throwing-schedule-grid article {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.72);
  padding: 8px;
}

.throwing-schedule-grid article.rest-day {
  border-color: rgba(6, 214, 160, 0.34);
  background: rgba(6, 214, 160, 0.08);
}

.throwing-schedule-grid strong,
.throwing-schedule-grid span,
.throwing-schedule-grid small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.throwing-schedule-grid strong {
  color: var(--green);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.throwing-schedule-grid span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.throwing-schedule-grid small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.day-schedule {
  display: grid;
  grid-template-columns: repeat(7, minmax(340px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.day-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.day-tab {
  display: grid;
  gap: 3px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  padding: 8px 6px;
}

.day-tab.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.day-tab.current-day {
  border-color: rgba(6, 214, 160, 0.52);
  box-shadow: inset 0 -3px 0 var(--green);
}

.day-tab.today-day {
  border-color: rgba(245, 158, 11, 0.72);
}

.day-tab.completed-day {
  border-color: rgba(6, 214, 160, 0.34);
  background: rgba(6, 214, 160, 0.12);
  color: var(--green);
}

.day-tab.upcoming-day {
  border-style: dashed;
}

.day-tab span {
  font-size: 0.84rem;
  font-weight: 850;
}

.day-tab small {
  color: inherit;
  font-size: 0.68rem;
  font-weight: 750;
}

.day-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  background: #fbfcfd;
  min-width: 340px;
  padding: 12px;
}

.day-plan {
  min-width: 0;
}

.day-card.intensity-low {
  border-top-color: var(--green);
}

.day-card.intensity-medium {
  border-top-color: var(--gold);
}

.day-card.intensity-high {
  border-top-color: var(--red);
}

.day-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.day-header h4 {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
}

.day-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.day-header span {
  border-radius: 999px;
  background: var(--field);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 850;
  padding: 4px 7px;
  text-transform: uppercase;
}

.day-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.day-header-badges .today-badge {
  background: rgba(245, 158, 11, 0.14);
  color: #7b520f;
}

.day-details {
  display: grid;
  gap: 7px;
  margin: 0;
}

.day-details div {
  display: grid;
  gap: 2px;
}

.day-details dt {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.day-details dd {
  margin: 0;
  color: #2f3d49;
  font-size: 0.82rem;
  line-height: 1.35;
}

.practice-blocks {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.practice-block {
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.practice-block.complete {
  border-color: rgba(44, 110, 73, 0.5);
  background: rgba(44, 110, 73, 0.05);
}

.practice-block h5 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 0.84rem;
  letter-spacing: 0;
}

.section-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.section-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.section-check span {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 850;
}

.block-note {
  margin: 0;
  color: #2f3d49;
  font-size: 0.84rem;
  line-height: 1.4;
}

.drill-detail {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.drill-detail:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.drill-detail:last-child {
  padding-bottom: 0;
}

.drill-detail summary {
  color: #263746;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.3;
}

.drill-detail dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.drill-detail dt {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.drill-detail dd {
  margin: 2px 0 0;
  color: #2f3d49;
  font-size: 0.82rem;
  line-height: 1.35;
}

.drill-detail ol,
.drill-detail ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.drill-detail li + li {
  margin-top: 3px;
}

.visual-help {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #d7e4ef;
  border-radius: 8px;
  background: #f7fafc;
  padding: 10px;
}

.visual-help h6 {
  margin: 0;
  color: var(--navy);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.visual-help p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.learn-button {
  justify-self: start;
  min-height: 36px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 850;
  padding: 8px 11px;
}

.team-plan {
  display: grid;
  gap: 16px;
}

.team-plan-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.team-plan-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.team-plan-header p {
  margin: 7px 0 0;
  color: var(--muted);
}

.team-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.team-section h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.02rem;
}

.team-section p,
.team-section li {
  color: #2f3d49;
  font-size: 0.9rem;
  line-height: 1.45;
}

.team-section ul {
  margin: 0;
  padding-left: 19px;
}

.form-message {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-message.error {
  color: #b42318;
  font-weight: 800;
}

.run-of-show-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.run-of-show-summary article {
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.run-of-show-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.run-of-show-summary strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  margin-top: 3px;
}

.timeline-list,
.station-grid,
.assignment-grid {
  display: grid;
  gap: 10px;
}

.timeline-list article,
.assignment-grid article,
.station-card {
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
}

.timeline-list strong {
  color: var(--green);
  font-size: 0.82rem;
}

.timeline-list h4,
.station-card h4,
.assignment-grid h4 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 0.94rem;
}

.timeline-list p,
.station-card p,
.assignment-grid p {
  margin: 5px 0;
}

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

.station-card {
  display: grid;
  gap: 10px;
}

.station-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.station-card-header span {
  border: 1px solid #dfe6ed;
  border-radius: 999px;
  color: var(--green);
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 5px 8px;
}

.station-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.station-summary-list div {
  border-top: 1px solid #e7edf3;
  padding-top: 7px;
}

.station-summary-list dt {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.station-summary-list dd {
  color: #2f3d49;
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 2px 0 0;
}

.station-rotation-note,
.team-safety-note {
  border-left: 3px solid var(--green);
  margin: 0;
  padding-left: 10px;
}

.station-detail {
  border-top: 1px solid #e7edf3;
  padding-top: 8px;
}

.station-detail summary {
  color: var(--navy);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
  min-height: 34px;
  padding: 6px 0;
}

.station-learn-button {
  justify-self: start;
  min-height: 38px;
}

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

.station-objective {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.practice-next-action,
.active-plan-next-step {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--green);
  background: rgba(6, 214, 160, 0.08);
  padding: 10px 12px;
}

.practice-next-action span,
.active-plan-next-step span {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.practice-next-action strong,
.active-plan-next-step strong {
  color: var(--ink);
  line-height: 1.35;
}

.team-practice-details {
  cursor: pointer;
}

.team-practice-details > summary {
  color: var(--ink);
  font-weight: 850;
}

.team-practice-details-body {
  margin-top: 12px;
}

.team-drill {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.team-drill dt {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.team-drill dd {
  margin: 2px 0 0;
}

.managed-team-list,
.managed-player-list,
.managed-player-card,
.managed-player-actions,
.player-profile-card,
.athlete-metric-logger,
.player-metric-list,
.player-action-row,
.level-actions,
.player-plan-custom-form,
.draft-summary,
.feedback-form,
.feedback-history-panel,
.feedback-history-list {
  display: grid;
  gap: 10px;
}

.level-actions {
  justify-items: end;
}

.managed-team-card,
.player-profile-card,
.athlete-metric-logger,
.draft-summary,
.assignment-summary article,
.player-metric-list article {
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.managed-team-topline,
.player-profile-topline,
.athlete-metric-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.managed-team-topline h4,
.player-profile-topline h4,
.athlete-metric-heading h4,
.player-metric-list h4 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 0.96rem;
}

.managed-team-topline p,
.player-profile-topline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.team-cloud-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.team-cloud-status.success {
  color: var(--green);
}

.team-cloud-status.error {
  color: var(--red);
}

.team-cloud-status.duplicate-warning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.creation-unavailable-notice,
.control-unavailable {
  border: 1px solid rgba(210, 153, 34, 0.35);
  border-radius: 8px;
  background: rgba(210, 153, 34, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
  padding: 10px 12px;
}

.creation-unavailable-notice[hidden] {
  display: none;
}

.control-unavailable {
  display: inline-flex;
  align-items: center;
  max-width: 210px;
  padding: 7px 9px;
}

.athlete-metric-heading span {
  align-self: center;
  border: 1px solid rgba(44, 110, 73, 0.22);
  border-radius: 999px;
  background: rgba(44, 110, 73, 0.08);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  padding: 5px 9px;
}

.athlete-overview-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(58, 134, 255, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(6, 214, 160, 0.06));
  padding: 14px;
}

.athlete-overview-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.athlete-overview-heading h4,
.athlete-overview-card h5 {
  margin: 0 0 4px;
  color: var(--ink);
}

.athlete-overview-heading p,
.athlete-overview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.athlete-overview-heading > span {
  justify-self: end;
  border: 1px solid rgba(6, 214, 160, 0.28);
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 850;
  padding: 6px 10px;
  white-space: nowrap;
}

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

.athlete-overview-grid article,
.athlete-overview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 11px;
}

.athlete-overview-grid span,
.athlete-overview-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.athlete-overview-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.athlete-overview-grid small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.athlete-overview-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.athlete-overview-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.athlete-overview-card dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.athlete-overview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.athlete-overview-tags span,
.athlete-overview-mini {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(15, 22, 32, 0.78);
  color: var(--muted);
  font-size: 0.76rem;
  padding: 6px 8px;
}

.athlete-overview-mini {
  display: grid;
  gap: 3px;
}

.athlete-overview-mini strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.athlete-overview-metric-list {
  display: grid;
  gap: 7px;
}

.athlete-overview-metric-list div {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.athlete-overview-metric-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.athlete-overview-metric-list strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.athlete-overview-metric-list span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.athlete-overview-metric-list small {
  color: var(--muted);
  font-size: 0.74rem;
}

.managed-player-list {
  margin-top: 10px;
}

.roster-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.roster-toggle-row p,
.profile-note,
.feedback-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-note.warning {
  color: var(--red);
  font-weight: 800;
}

.athlete-context-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 8px;
}

.athlete-context-summary article {
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  min-width: 0;
}

.athlete-context-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.athlete-context-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.feedback-history-panel {
  margin-top: 16px;
}

.feedback-history-item,
.feedback-empty-state {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.feedback-history-item strong,
.feedback-empty-state h4 {
  color: var(--ink);
}

.feedback-history-item strong,
.feedback-empty-state h4,
.feedback-history-item p,
.feedback-empty-state p {
  margin: 0;
}

.feedback-history-item p,
.feedback-empty-state p {
  color: var(--muted);
  line-height: 1.45;
}

.feedback-type-chip {
  display: inline-block;
  width: max-content;
  border: 1px solid rgba(6, 214, 160, 0.28);
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 6px;
  padding: 5px 8px;
}

.feedback-history-item dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.feedback-history-item dl div {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.feedback-history-item dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.feedback-history-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.feedback-status.success {
  color: var(--green);
  font-weight: 850;
}

.feedback-status.error {
  color: #b42318;
  font-weight: 850;
}

.feedback-delivery {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(58, 134, 255, 0.06);
  padding: 12px;
}

.feedback-delivery p {
  margin: 0;
}

.feedback-email-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.feedback-email-link[hidden] {
  display: none;
}

.help-workspace,
.help-topic-grid,
.about-workspace,
.about-grid,
.about-audience-grid,
.beta-boundary-grid {
  display: grid;
  gap: 12px;
}

#helpPanel.workflow-panel.active,
#aboutPanel.workflow-panel.active {
  flex: 1 1 100%;
  grid-column: 1 / -1;
  max-width: none;
  width: 100%;
  min-height: calc(100vh - 124px);
  height: auto;
  overflow-y: visible;
  position: static;
}

.help-workspace {
  width: 100%;
}

.help-search-field {
  display: grid;
  gap: 6px;
}

.help-search-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.help-results-summary {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.help-topic-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.help-topic-card,
.help-empty-state,
.about-card,
.beta-workflow-boundary,
.demo-sandbox-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.about-workspace {
  align-content: start;
}

.about-grid,
.about-audience-grid,
.beta-boundary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card-feature {
  max-width: 980px;
}

.about-card h3,
.about-card p {
  margin: 0;
}

.about-card h3 {
  color: var(--ink);
}

.about-card p,
.about-audience-grid span,
.beta-boundary-grid p,
.demo-sandbox-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.about-audience-grid article,
.beta-boundary-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.42);
  padding: 12px;
}

.about-audience-grid strong,
.beta-boundary-grid strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.beta-boundary-grid span {
  display: inline-block;
  width: max-content;
  border: 1px solid rgba(6, 214, 160, 0.28);
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 8px;
  padding: 5px 8px;
}

.demo-sandbox-panel {
  padding: 0;
}

.demo-sandbox-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 14px;
}

.demo-sandbox-panel > summary::-webkit-details-marker {
  display: none;
}

.demo-sandbox-panel > summary span {
  display: grid;
  gap: 3px;
}

.demo-sandbox-panel > summary small {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-sandbox-panel > summary strong {
  color: var(--ink);
}

.demo-sandbox-panel > summary em {
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
  padding: 6px 10px;
  white-space: nowrap;
}

.demo-sandbox-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px;
}

.sandbox-warning {
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  padding: 12px;
}

.sandbox-warning strong {
  color: var(--gold);
}

.help-topic-card span {
  display: inline-block;
  width: max-content;
  border: 1px solid rgba(6, 214, 160, 0.28);
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  margin-bottom: 6px;
  padding: 5px 8px;
}

.help-topic-card h4,
.help-empty-state h4 {
  margin: 0;
  color: var(--ink);
}

.help-topic-card p,
.help-empty-state p,
.help-next-action p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.help-next-action {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.help-next-action strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.player-action-row {
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: start;
}

.managed-player-button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
}

.managed-player-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  padding: 10px;
}

.managed-player-card.active {
  border-color: var(--green);
  background: rgba(44, 110, 73, 0.08);
}

.managed-player-card strong {
  display: block;
  font-weight: 850;
}

.managed-player-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
  justify-content: start;
}

.player-plan-notice {
  border: 1px solid rgba(44, 110, 73, 0.25);
  border-radius: 8px;
  background: rgba(44, 110, 73, 0.08);
  color: var(--green);
  font-weight: 800;
  margin: 0;
  padding: 10px 12px;
}

.selected-athlete-primary-action,
.plan-form-section,
.athlete-profile-disclosure,
.plan-form-disclosure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  padding: 12px;
}

.selected-athlete-primary-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-color: rgba(6, 214, 160, 0.34);
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(58, 134, 255, 0.08));
}

.selected-athlete-primary-action h4,
.plan-form-section h4 {
  margin: 0 0 4px;
  color: var(--ink);
}

.selected-athlete-primary-action p,
.plan-form-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.athlete-profile-disclosure summary,
.plan-form-disclosure summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.athlete-profile-disclosure-body,
.plan-form-disclosure-body,
.plan-form-section {
  display: grid;
  gap: 10px;
}

.athlete-profile-disclosure-body,
.plan-form-disclosure-body {
  margin-top: 10px;
}

.active-plan-panel,
.plan-assignment-panel,
.player-workflow-action-panel,
.draft-review-summary,
.profile-guidance,
.current-session-callout {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(58, 134, 255, 0.32);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(6, 214, 160, 0.06));
  padding: 14px;
}

.active-plan-panel.empty {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.08);
}

.active-plan-panel.complete,
.current-session-callout.complete {
  border-color: rgba(6, 214, 160, 0.36);
  background: rgba(6, 214, 160, 0.08);
}

.plan-assignment-panel {
  border-color: rgba(6, 214, 160, 0.28);
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.08), rgba(58, 134, 255, 0.08));
}

.player-workflow-action-panel {
  grid-template-columns: minmax(180px, 0.75fr) minmax(220px, 1.2fr) minmax(180px, 0.7fr);
  align-items: start;
  border-color: rgba(6, 214, 160, 0.34);
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(58, 134, 255, 0.08));
}

.player-workflow-identity,
.player-workflow-summary,
.player-workflow-actions,
.draft-review-summary,
.draft-review-actions {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.player-workflow-identity h4,
.draft-review-heading h4 {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.player-workflow-identity p,
.draft-review-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.player-workflow-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.player-workflow-summary div,
.draft-review-grid article {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.68);
  padding: 9px;
}

.player-workflow-summary dt,
.draft-review-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-workflow-summary dd,
.draft-review-grid strong {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.draft-review-summary {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(6, 214, 160, 0.06));
}

.draft-review-summary.compact {
  margin-top: 2px;
}

.draft-review-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

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

.draft-review-actions {
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: start;
}

.active-plan-heading,
.plan-assignment-heading,
.active-plan-actions,
.active-plan-grid,
.plan-assignment-grid,
.plan-assignment-actions,
.guidance-steps,
.current-session-meta,
.plan-history-list {
  display: grid;
  gap: 10px;
}

.active-plan-heading,
.plan-assignment-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.active-plan-heading h4,
.plan-assignment-heading h4,
.current-session-callout h3 {
  margin: 0;
  color: var(--ink);
}

.active-plan-heading p,
.plan-assignment-heading p,
.current-session-callout p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.active-plan-status,
.plan-assignment-heading > span {
  justify-self: end;
  border: 1px solid rgba(6, 214, 160, 0.28);
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
  white-space: nowrap;
}

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

.plan-assignment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.active-plan-grid article,
.guidance-steps article,
.plan-assignment-card,
.plan-history-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.72);
  padding: 11px;
}

.plan-assignment-card {
  align-content: start;
  gap: 8px;
}

.plan-assignment-card.empty {
  border-style: dashed;
  background: rgba(17, 24, 39, 0.48);
}

.active-plan-grid span,
.guidance-steps span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
}

.plan-assignment-card p,
.plan-history-item small,
.plan-history-section .profile-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.plan-assignment-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.plan-assignment-card dl div {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.plan-assignment-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-assignment-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.active-plan-grid strong,
.guidance-steps strong,
.plan-assignment-card strong,
.plan-history-item strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.active-plan-actions,
.plan-assignment-actions {
  grid-template-columns: repeat(4, minmax(0, max-content));
  justify-content: start;
}

.plan-assignment-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-status-chip {
  justify-self: start;
  width: max-content;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 5px 8px;
}

.plan-status-chip.active {
  border-color: rgba(58, 134, 255, 0.32);
  background: rgba(58, 134, 255, 0.1);
  color: var(--blue);
}

.plan-status-chip.completed {
  border-color: rgba(6, 214, 160, 0.32);
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
}

.week-phase-objective {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.plan-history-section {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.plan-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-history-heading h5 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.plan-history-heading span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.plan-history-item {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
}

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

.guidance-steps article.current {
  border-color: rgba(58, 134, 255, 0.44);
}

.guidance-steps article.complete {
  border-color: rgba(6, 214, 160, 0.36);
}

.current-session-callout {
  margin-bottom: 14px;
}

.current-session-meta {
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: start;
}

.current-session-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 10px;
}

.athlete-management-center {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 16px;
}

.athlete-management-header,
.athlete-management-controls,
.athlete-card-topline,
.athlete-card-actions {
  display: grid;
  gap: 12px;
}

.athlete-management-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.athlete-management-header h3,
.athlete-management-header p,
.athlete-card-topline h4,
.athlete-card-topline p {
  margin: 0;
}

.athlete-management-header h3,
.athlete-card-topline h4 {
  color: var(--navy);
}

.athlete-management-header p,
.athlete-card-topline p,
.athlete-management-meta,
.athlete-card-details dt {
  color: var(--muted);
}

.athlete-management-controls {
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 0.32fr);
  align-items: end;
}

.athlete-filter-bar {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.athlete-filter-chip {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 8px 12px;
  white-space: nowrap;
}

.athlete-filter-chip.active {
  border-color: rgba(6, 214, 160, 0.42);
  background: rgba(6, 214, 160, 0.12);
  color: var(--green);
}

.athlete-management-results {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.athlete-management-meta {
  font-size: 0.82rem;
  font-weight: 800;
}

.athlete-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  min-width: 0;
}

.athlete-management-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  padding: 14px;
}

.athlete-management-card.active {
  border-color: rgba(6, 214, 160, 0.48);
  box-shadow: inset 3px 0 0 var(--green);
}

.athlete-card-topline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.athlete-alert {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(58, 134, 255, 0.1);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}

.athlete-alert.warning,
.athlete-alert.attention {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
}

.athlete-alert.danger {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.athlete-alert.ready {
  border-color: rgba(6, 214, 160, 0.28);
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
}

.athlete-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 0;
}

.athlete-card-details div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.athlete-card-details dt {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.athlete-card-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.athlete-card-summary,
.athlete-card-alert {
  margin: 0;
  line-height: 1.45;
}

.athlete-card-summary {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
}

.athlete-card-alert {
  display: -webkit-box;
  color: var(--muted);
  font-size: 0.84rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.athlete-card-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.athlete-card-actions .track-button,
.athlete-card-actions .primary-button {
  width: 100%;
}

.athlete-management-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.45);
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.athlete-management-empty h4 {
  margin: 0;
  color: var(--muted);
}

.profile-empty-state {
  display: grid;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(47, 95, 152, 0.06);
  color: var(--muted);
  padding: 14px;
}

.profile-empty-state.compact {
  padding: 12px;
}

.profile-empty-state h4,
.profile-empty-state p {
  margin: 0;
}

.profile-empty-state p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.athlete-dashboard,
.athlete-progress-summary,
.dashboard-card-grid,
.athlete-dashboard-split,
.dashboard-panel,
.role-preview-grid,
.dashboard-metric-list,
.top-improvement-list,
.training-snapshot-grid,
.dashboard-quick-actions {
  display: grid;
  gap: 10px;
}

.athlete-dashboard {
  border: 1px solid rgba(47, 95, 152, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(47, 95, 152, 0.06), #ffffff 180px);
  padding: 12px;
}

.athlete-dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.athlete-dashboard-heading h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.readiness-badge {
  border: 1px solid rgba(47, 95, 152, 0.24);
  border-radius: 999px;
  background: rgba(47, 95, 152, 0.08);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  padding: 6px 9px;
  white-space: nowrap;
}

.readiness-badge.ready {
  border-color: rgba(44, 110, 73, 0.24);
  background: rgba(44, 110, 73, 0.08);
  color: var(--green);
}

.readiness-badge.attention {
  border-color: rgba(179, 122, 23, 0.28);
  background: rgba(179, 122, 23, 0.1);
  color: #7a5315;
}

.readiness-badge.blocked {
  border-color: rgba(163, 59, 51, 0.24);
  background: rgba(163, 59, 51, 0.08);
  color: var(--red);
}

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

.dashboard-card-grid article,
.dashboard-panel,
.training-snapshot-grid article,
.dashboard-improvement-card {
  border: 1px solid #dfe6ed;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.dashboard-card-grid article,
.training-snapshot-grid article,
.dashboard-improvement-card {
  display: grid;
  gap: 4px;
}

.dashboard-card-grid span,
.training-snapshot-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-card-grid strong,
.training-snapshot-grid strong,
.dashboard-improvement-card strong {
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.3;
}

.dashboard-card-grid small,
.training-snapshot-grid small,
.dashboard-improvement-card small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.athlete-dashboard-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
}

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

.dashboard-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.role-preview-panel {
  border-color: rgba(6, 214, 160, 0.24);
  background: linear-gradient(180deg, rgba(6, 214, 160, 0.08), rgba(17, 24, 39, 0.72));
}

.role-preview-note {
  border: 1px solid rgba(6, 214, 160, 0.22);
  border-radius: 8px;
  background: rgba(6, 214, 160, 0.08);
  padding: 10px 12px;
}

.role-preview-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.role-preview-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  padding: 12px;
}

.role-preview-card strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.role-preview-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.role-preview-card div {
  display: grid;
  gap: 3px;
}

.role-preview-card dt {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-preview-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.subscription-preview-panel {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), rgba(17, 24, 39, 0.72));
}

.subscription-preview-note {
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
  padding: 10px 12px;
}

.subscription-tier-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.subscription-tier-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  padding: 12px;
}

.subscription-tier-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.subscription-tier-meta strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
}

.subscription-tier-meta span {
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 900;
  padding: 4px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.subscription-tier-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.subscription-tier-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.subscription-tier-list li {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.dashboard-metric-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) repeat(4, minmax(74px, 0.7fr)) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.dashboard-metric-row.improving {
  border-color: rgba(44, 110, 73, 0.25);
  background: rgba(44, 110, 73, 0.05);
}

.dashboard-metric-row.flat {
  border-color: rgba(179, 122, 23, 0.25);
  background: rgba(179, 122, 23, 0.05);
}

.dashboard-metric-row.needs-attention {
  border-color: rgba(163, 59, 51, 0.24);
  background: rgba(163, 59, 51, 0.05);
}

.dashboard-metric-row strong {
  display: block;
  color: var(--navy);
  font-size: 0.84rem;
}

.dashboard-metric-row small {
  color: var(--muted);
  font-size: 0.72rem;
}

.dashboard-metric-row div {
  display: grid;
  gap: 3px;
}

.dashboard-metric-row div > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-metric-row div > strong {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
}

.dashboard-metric-row em {
  justify-self: end;
  border: 1px solid rgba(44, 110, 73, 0.24);
  border-radius: 999px;
  background: rgba(44, 110, 73, 0.08);
  color: var(--green);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  padding: 5px 8px;
}

.dashboard-metric-row.flat em {
  border-color: rgba(179, 122, 23, 0.28);
  background: rgba(179, 122, 23, 0.1);
  color: #7a5315;
}

.dashboard-metric-row.needs-attention em {
  border-color: rgba(163, 59, 51, 0.24);
  background: rgba(163, 59, 51, 0.08);
  color: var(--red);
}

.top-improvement-list,
.training-snapshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-improvement-card span {
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 900;
}

.retest-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.retest-list li {
  color: #2f3d49;
  font-size: 0.86rem;
  line-height: 1.4;
}

.dashboard-quick-actions {
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: start;
}

.coach-actions-section #coachNextActionsContent,
.coach-action-summary-grid,
.coach-action-list,
.coach-action-item,
.coach-action-buttons {
  display: grid;
  gap: 12px;
}

.coach-action-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coach-action-summary-grid article,
.coach-action-item,
.coach-actions-empty {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.72);
  padding: 14px;
}

.coach-action-summary-grid article {
  display: grid;
  gap: 5px;
  min-height: 104px;
}

.coach-action-summary-grid strong {
  color: var(--green);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
}

.coach-action-summary-grid span {
  color: var(--ink);
  font-weight: 900;
}

.coach-action-summary-grid small,
.coach-action-item p,
.coach-action-item small,
.coach-actions-empty p {
  color: var(--muted);
  line-height: 1.4;
}

.coach-action-list {
  gap: 10px;
}

.coach-action-list-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.52);
  padding: 14px;
}

.coach-action-list-heading h4,
.coach-action-list-heading p {
  margin: 0;
}

.coach-action-list-heading h4 {
  color: var(--ink);
}

.coach-action-list-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.coach-action-item {
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.2fr) auto;
  align-items: center;
  border-left: 4px solid var(--blue);
}

.coach-action-item.warning {
  border-left-color: var(--gold);
}

.coach-action-item.danger {
  border-left-color: var(--red);
}

.coach-action-item.ready {
  border-left-color: var(--green);
}

.coach-action-item h4,
.coach-actions-empty h4 {
  margin: 6px 0 3px;
  color: var(--ink);
}

.coach-action-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.35;
}

.coach-action-badge {
  display: inline-flex;
  width: max-content;
  border: 1px solid rgba(58, 134, 255, 0.3);
  border-radius: 999px;
  background: rgba(58, 134, 255, 0.12);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
}

.coach-action-item.warning .coach-action-badge {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
}

.coach-action-item.danger .coach-action-badge {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.coach-action-item.ready .coach-action-badge {
  border-color: rgba(6, 214, 160, 0.32);
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
}

.coach-action-buttons {
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
}

.coach-actions-empty {
  text-align: left;
}

.athlete-metric-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(130px, 0.8fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr);
  gap: 10px;
  align-items: end;
}

.athlete-metric-grid label {
  display: grid;
  gap: 5px;
}

.athlete-metric-grid label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.athlete-metric-grid input,
.athlete-metric-grid select {
  min-height: 40px;
}

.athlete-metric-notes {
  grid-column: span 3;
}

.athlete-metric-grid .primary-button {
  min-height: 40px;
}

.team-plan-header.compact {
  margin-bottom: 4px;
}

.managed-player-button.active {
  border-color: var(--green);
  background: rgba(44, 110, 73, 0.08);
}

.managed-player-button span {
  font-weight: 850;
}

.managed-player-button small,
.assignment-summary small,
.player-metric-list small {
  color: var(--muted);
  font-size: 0.76rem;
}

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

.assignment-summary article,
.player-metric-list article {
  display: grid;
  gap: 3px;
}

.recent-athlete-metrics {
  background: #ffffff;
}

.recent-athlete-metric-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.recent-athlete-metric-row p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.assignment-summary strong,
.player-metric-list strong {
  color: var(--navy);
  font-size: 0.82rem;
}

.assignment-summary span,
.player-metric-list span {
  color: var(--green);
  font-weight: 850;
}

.feedback-status a {
  color: var(--green);
  font-weight: 800;
}

.assigned-plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.assigned-plan-toolbar span {
  color: var(--muted);
  font-weight: 800;
}

.track-button {
  border: 1px solid #b7c4cf;
  background: var(--field);
  color: var(--navy);
  min-width: 42px;
  min-height: 36px;
}

.track-button.done {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-content: center;
  text-align: center;
}

@media (max-width: 980px) {
  .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }

  .intake-panel {
    flex: none;
    height: auto;
    overflow-y: visible;
    position: static;
  }

  .plan-workspace {
    height: auto;
    overflow-y: visible;
  }
}

@media (max-width: 720px) {
  .recovery-shell {
    align-items: start;
    padding: max(20px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
  }

  .recovery-card {
    margin-top: 4vh;
    padding: 22px 18px;
  }

  .recovery-actions,
  .auth-recovery-request-form .auth-actions {
    display: grid;
  }

  .recovery-actions > button,
  .auth-recovery-request-form button,
  .password-input-row > button {
    min-height: 44px;
  }

  .app-header,
  .summary-band,
  .level-heading {
    grid-template-columns: 1fr;
  }

  .app-header {
    align-items: stretch;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions .ghost-button {
    flex: 1;
  }

  .summary-band {
    display: grid;
  }

  .metric-strip,
  .metrics-header,
  .metrics-form,
  .assessment-placement,
  .assessment-placement-grid,
  .assignment-summary,
  .report-filter-grid,
  .week-picker,
  .plan-metric-list,
  .field-grid,
	  .pdf-controls,
	  .week-grid,
	  .check-group,
	  .run-of-show-summary,
	  .station-grid,
	  .station-summary-list,
	  .team-plan-header,
  .platform-hero,
  .value-grid,
  .athlete-progress-grid,
  .report-grid,
  .travel-task-grid,
  .assessment-lead-form,
  .report-kpi-grid,
  .report-metric-row,
  .report-notes-grid,
  .report-clarity-grid,
  .report-action-grid,
  .report-readiness-flags,
  .improvement-pill-list,
  .auth-form,
  .dashboard-athlete-row,
  .athlete-progress-summary,
  .athlete-overview-grid,
  .athlete-overview-body,
  .selected-athlete-primary-action,
  .owner-snapshot-grid,
  .owner-demo-steps,
  .trial-demo-grid,
  .pilot-readiness-grid,
  .pilot-qa-grid,
  .facility-workflow-grid,
  .feedback-history-item dl,
  .local-data-summary,
  .local-data-actions,
  .help-topic-grid,
  .dashboard-card-grid,
  .athlete-dashboard-split,
  .dashboard-metric-row,
  .top-improvement-list,
  .training-snapshot-grid,
  .dashboard-quick-actions,
  .coach-action-summary-grid,
  .coach-action-item,
  .coach-action-buttons,
  .athlete-metric-grid,
  .athlete-management-header,
  .athlete-management-controls,
  .athlete-card-topline,
  .athlete-card-details,
  .athlete-card-actions,
  .workflow-launch .home-options {
    grid-template-columns: 1fr;
  }

  .platform-hero-copy,
  .facility-dashboard,
  .value-grid article,
  .home-section {
    padding: 16px;
  }

  .monthly-report-card {
    padding: 16px;
  }

  .monthly-report-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric-badge {
    justify-self: start;
  }

  .athlete-management-center {
    padding: 14px;
  }

  .athlete-filter-bar {
    margin-inline: -4px;
    padding-inline: 4px;
  }

  .athlete-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .athlete-alert {
    justify-self: start;
  }

  .platform-hero-copy h2 {
    font-size: 2.1rem;
  }

  .platform-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .timeline-list article {
    grid-template-columns: 1fr;
  }

  .facility-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facility-dashboard-split,
  .facility-dashboard-actions,
  .role-preview-grid,
  .subscription-tier-grid {
    grid-template-columns: 1fr;
  }

  .demo-data-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip div {
    min-height: 64px;
  }

  .metric-notes-field {
    grid-column: auto;
  }

  .metric-entry {
    grid-template-columns: 1fr;
  }

  .metric-entry .track-button {
    justify-self: start;
  }

  .managed-team-topline,
  .player-profile-topline,
  .athlete-metric-heading,
  .athlete-dashboard-heading,
  .roster-toggle-row,
  .player-action-row,
  .managed-player-actions,
  .assigned-plan-toolbar,
  .home-options,
  .dashboard-header,
  .section-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .program-interest-field,
  .athlete-metric-notes,
  .assessment-status {
    grid-column: auto;
  }

  .level-actions {
    justify-items: start;
  }
}

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

  .facility-summary-grid,
  .retention-signal-list,
  .demo-data-summary {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .app-header,
  .workflow-tabs,
  .view-nav,
  .report-filter-panel,
  .week-picker-panel,
  .plan-metric-context,
  .intake-panel,
  .summary-band,
  .progression-card,
  .xp-feedback,
  .metrics-panel,
  .level-tabs {
    display: none !important;
  }

  .app-shell,
  .plan-workspace {
    display: block;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .level-detail {
    border: 0;
    box-shadow: none;
  }

  .monthly-report-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* UI Modernization Phase 1: Level Up Performance OS */
:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: #30363d;
  --surface: #161b22;
  --field: #0d1117;
  --navy: #f8fafc;
  --green: #06d6a0;
  --gold: #f59e0b;
  --red: #ef4444;
  --blue: #3a86ff;
  --card: #1f2937;
  --card-soft: #111827;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(58, 134, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #0d1117 0%, #0b0f15 100%);
  color: var(--ink);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-left: 248px;
  min-height: 88px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.9);
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(18px);
  padding: 18px clamp(18px, 3vw, 36px);
}

.app-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.workspace-mode-banner {
  display: grid;
  justify-items: end;
  max-width: 520px;
  border: 1px solid rgba(88, 166, 255, 0.38);
  border-radius: 10px;
  background: rgba(58, 134, 255, 0.1);
  padding: 8px 12px;
  text-align: right;
}

.workspace-mode-copy {
  display: grid;
  justify-items: inherit;
}

.workspace-role-indicator {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  margin-top: 6px;
  border-top: 1px solid rgba(88, 166, 255, 0.22);
  padding-top: 6px;
}

.workspace-role-indicator strong,
.workspace-role-indicator span,
.workspace-role-indicator small {
  font-size: 0.72rem;
  line-height: 1.25;
}

.workspace-role-indicator strong {
  color: var(--ink);
}

.workspace-role-indicator span {
  color: var(--ink);
  font-weight: 750;
}

.workspace-role-indicator small {
  border-radius: 999px;
  background: rgba(63, 185, 80, 0.16);
  color: var(--green);
  font-weight: 850;
  padding: 1px 6px;
}

.workspace-mode-banner span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-mode-banner small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.workspace-mode-banner[data-workspace-mode="cloud"] {
  border-color: rgba(63, 185, 80, 0.5);
  background: rgba(63, 185, 80, 0.12);
}

.workspace-mode-banner[data-workspace-mode="cloud-blocked"] {
  border-color: rgba(248, 81, 73, 0.58);
  background: rgba(248, 81, 73, 0.12);
}

.workspace-mode-banner[data-workspace-mode="player-foundation"] {
  border-color: rgba(210, 153, 34, 0.55);
  background: rgba(210, 153, 34, 0.1);
}

.workspace-mode-banner[data-workspace-mode="authorization-blocked"] {
  border-color: rgba(248, 81, 73, 0.58);
  background: rgba(248, 81, 73, 0.12);
}

.header-actions {
  align-items: end;
}

.header-select span,
label span,
.check-group legend,
.schedule-group > div > span {
  color: var(--muted);
}

.header-select select {
  background: var(--card);
}

.workflow-tabs {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: grid;
  align-content: start;
  width: 248px;
  border-right: 1px solid var(--line);
  background: rgba(22, 27, 34, 0.96);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.22);
  padding: 24px 14px;
}

.workflow-tabs::before {
  content: "LEVEL UP OS";
  display: block;
  margin: 0 8px 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.workflow-tab {
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 11px 12px;
  text-align: left;
}

.workflow-tab:hover {
  border-color: rgba(58, 134, 255, 0.32);
  background: rgba(58, 134, 255, 0.08);
  color: var(--ink);
}

.workflow-tab:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.workflow-tab.active {
  border-color: rgba(6, 214, 160, 0.42);
  background: linear-gradient(135deg, rgba(6, 214, 160, 0.18), rgba(58, 134, 255, 0.1));
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--green);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  height: calc(100vh - 88px);
  margin-left: 248px;
  padding: 18px clamp(18px, 3vw, 36px) 36px;
}

.home-panel.workflow-panel.active,
#feedbackPanel.workflow-panel.active {
  max-width: none;
}

.panel,
.summary-band,
.level-detail,
.metrics-panel,
.progression-card,
.platform-hero-copy,
.facility-dashboard,
.home-section,
.value-grid article,
.athlete-progress-card,
.coach-note,
.monthly-report-card,
.team-section,
.managed-team-card,
.player-profile-card,
.athlete-metric-logger,
.draft-summary,
.feedback-history-item,
.feedback-empty-state,
.help-topic-card,
.help-empty-state,
.assignment-summary article,
.player-metric-list article,
.athlete-progress-summary article,
.profile-empty-state,
.dashboard-card-grid article,
.dashboard-panel,
.training-snapshot-grid article,
.dashboard-improvement-card,
.report-kpi-grid article,
.report-card-section,
.report-notes-grid article,
.report-clarity-grid article,
.report-action-grid article,
.report-readiness-flags article,
.improvement-pill-list article {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.96), rgba(22, 27, 34, 0.98));
  box-shadow: var(--shadow);
}

.intake-panel {
  height: calc(100vh - 124px);
  border-radius: 12px;
  padding: 18px;
  top: 18px;
}

.plan-workspace {
  height: calc(100vh - 124px);
  padding-bottom: 48px;
}

.summary-band {
  order: 1;
}

.metrics-panel {
  order: 2;
}

.metrics-panel.plan-metrics-compact {
  order: 5;
}

.level-tabs {
  order: 3;
}

.level-detail {
  order: 4;
}

.panel-header h2,
.summary-band h2,
.metrics-header h2,
.team-plan-header h2,
.platform-hero-copy h2,
.dashboard-header h3,
.section-heading h3,
.value-grid h3,
.athlete-progress-card h4,
.monthly-report-hero h2,
.athlete-dashboard-heading h4,
.athlete-metric-heading h4,
.profile-empty-state h4,
.player-profile-topline h4,
.managed-team-topline h4,
.player-metric-list h4,
.travel-mode-callout h3 {
  color: var(--ink);
}

.summary-band p:last-child,
.facility-dashboard > p,
.home-section > p,
.coach-note p,
.platform-lede,
.monthly-report-hero p,
.report-notes-grid article p,
.report-clarity-grid p,
.report-action-grid p,
.travel-mode-callout p,
.dashboard-panel > p,
.profile-empty-state p,
.feedback-history-item p,
.feedback-empty-state p,
.help-topic-card p,
.help-empty-state p,
.help-next-action p,
.profile-note,
.feedback-form p,
.team-plan-header p,
.team-section p,
.team-section li,
.athlete-progress-card dt,
.home-option span,
.managed-team-topline p,
.player-profile-topline p,
.retest-list li {
  color: var(--muted);
}

.eyebrow {
  color: var(--green);
  letter-spacing: 0.12em;
}

input,
select,
textarea {
  border-color: var(--line);
  background: #0f1620;
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(6, 214, 160, 0.24);
}

.primary-button {
  background: linear-gradient(135deg, var(--green), #20e3b2);
  color: #05130f;
  box-shadow: 0 12px 26px rgba(6, 214, 160, 0.18);
}

.ghost-button,
.track-button,
.tab-button {
  border: 1px solid var(--line);
  background: #111827;
  color: var(--ink);
}

.ghost-button:hover,
.track-button:hover,
.tab-button:hover,
.home-option:hover {
  border-color: rgba(58, 134, 255, 0.5);
  background: rgba(58, 134, 255, 0.12);
}

.metric-strip div,
.dashboard-grid article,
.report-grid article,
.travel-task-grid article,
.timeline-list article,
.assignment-grid article,
.station-card,
.assessment-placement,
.assessment-placement-grid div,
.latest-metric,
.pdf-controls,
.check-group,
.schedule-group > div,
.managed-player-card,
.home-option,
.report-metric-row,
.dashboard-metric-row,
.athlete-dashboard,
.week-picker-panel,
.plan-metric-context {
  border-color: var(--line);
  background: rgba(17, 24, 39, 0.72);
}

.week-tab,
.plan-metric-list article {
  border-color: var(--line);
  background: #111827;
  color: var(--ink);
}

.metrics-panel.plan-metrics-compact {
  gap: 12px;
  box-shadow: none;
  padding: 14px;
}

.metrics-panel.plan-metrics-compact .metrics-header {
  align-items: center;
}

.metrics-panel.plan-metrics-compact .metrics-header h2 {
  font-size: 1rem;
}

.metrics-panel.plan-metrics-compact .metric-add-collapsible:not([open]),
.metrics-panel.plan-metrics-compact .metric-history-collapsible:not([open]) {
  background: rgba(17, 24, 39, 0.38);
}

.metrics-panel.plan-metrics-compact .metric-history {
  border-top: 1px solid var(--line);
}

.metric-add-collapsible summary,
.metric-history-collapsible summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.metric-add-collapsible .metrics-form,
.metric-history-collapsible .metric-history-list {
  margin-top: 10px;
}

.week-tab.active {
  background: rgba(6, 214, 160, 0.12);
}

.week-card,
.day-card,
.practice-block {
  border-color: var(--line);
  background: rgba(17, 24, 39, 0.84);
  color: var(--ink);
}

.week-card.complete,
.practice-block.complete {
  background: rgba(6, 214, 160, 0.08);
}

.week-card.upcoming-week,
.day-tab.upcoming-day {
  border-color: rgba(148, 163, 184, 0.68);
}

.week-topline h3,
.day-header h4,
.section-check span,
.drill-detail summary {
  color: var(--ink);
}

.week-focus,
.week-phase-objective,
.day-header p,
.day-details dd,
.block-note,
.drill-detail dd,
.drill-detail li {
  color: #d6dee8;
}

.day-details dt,
.drill-detail dt {
  color: var(--green);
}

.day-tab {
  border-color: rgba(148, 163, 184, 0.42);
  background: #111827;
  color: var(--ink);
}

.day-tab:not(.active):hover {
  border-color: rgba(58, 134, 255, 0.55);
  background: rgba(58, 134, 255, 0.12);
}

.day-tab.completed-day {
  color: var(--ink);
}

.day-tab small {
  color: #cbd5e1;
}

.day-header-badges .today-badge {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
}

.week-view-context {
  border-color: var(--line);
  background: rgba(58, 134, 255, 0.1);
}

.week-view-context strong {
  color: var(--ink);
}

.dashboard-grid strong,
.report-kpi-grid strong,
.latest-metric span,
.assignment-summary span,
.player-metric-list span,
.athlete-progress-card dd,
.dashboard-improvement-card span,
.improvement-pill-list span {
  color: var(--green);
}

.athlete-progress-summary strong,
.dashboard-metric-row div > strong {
  color: var(--ink);
}

.level-badge,
.dashboard-header > span,
.section-heading > span,
.athlete-metric-heading span,
.readiness-badge,
.metric-badge,
.badge-pill {
  border-color: rgba(6, 214, 160, 0.28);
  background: rgba(6, 214, 160, 0.1);
  color: var(--green);
}

.readiness-badge.attention,
.monthly-report-card.demo-preview,
.dashboard-metric-row.flat em,
.report-metric-row.flat .metric-badge {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
}

.readiness-badge.blocked,
.dashboard-metric-row.needs-attention em,
.report-metric-row.needs-attention .metric-badge {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.report-empty-state {
  max-width: 100%;
  min-width: 0;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(31, 41, 55, 0.72);
  color: var(--muted);
  padding: 14px;
  overflow-wrap: anywhere;
}

.report-empty-state strong {
  display: block;
  color: var(--ink);
}

.report-empty-state p {
  margin: 6px 0 0;
}

.facility-dashboard,
.facility-dashboard *,
.monthly-report-card,
.monthly-report-card *,
.dashboard-panel,
.dashboard-panel *,
.facility-summary-grid,
.creator-credibility-grid,
.coach-start-grid,
.dashboard-guide-section,
.role-preview-grid,
.subscription-tier-grid,
.dashboard-metric-row,
.report-kpi-grid,
.report-card-section,
.report-metric-list,
.report-metric-row {
  min-width: 0;
}

.dashboard-grid article,
.creator-credibility-grid article,
.coach-start-grid article,
.role-preview-card,
.subscription-tier-card,
.report-kpi-grid article,
.report-metric-row,
.report-metric-row > div {
  max-width: 100%;
}

.dashboard-panel p,
.dashboard-panel small,
.dashboard-panel span,
.dashboard-panel strong,
.role-preview-card,
.subscription-tier-card,
.report-kpi-grid strong,
.report-metric-row strong,
.report-metric-row small {
  overflow-wrap: break-word;
}

.dashboard-grid article > span,
.report-kpi-grid article > span,
.athlete-progress-summary article > span,
.coach-action-summary-grid article > span,
.metric-strip small,
.assignment-summary span,
.local-data-summary span,
.demo-data-summary span {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 1.25;
}

.facility-dashboard,
.monthly-report-card {
  overflow-x: clip;
}

@media (min-width: 768px) {
  .facility-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .role-preview-grid,
  .subscription-tier-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  }

  .report-metric-row {
    grid-template-columns: repeat(auto-fit, minmax(min(118px, 100%), 1fr));
  }

  .report-kpi-grid,
  .coach-action-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }

  .athlete-progress-summary {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

@media (max-width: 980px) and (min-width: 768px) {
  .role-preview-grid,
  .subscription-tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.platform-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.platform-hero-copy {
  min-height: 0;
  align-content: start;
  padding: clamp(18px, 2vw, 24px);
}

.platform-hero-copy h2 {
  max-width: 980px;
  font-size: clamp(1.65rem, 2.4vw, 2.55rem);
}

.platform-lede {
  max-width: 980px;
}

.facility-dashboard {
  align-content: start;
}

.dashboard-grid,
.report-kpi-grid {
  gap: 12px;
}

.facility-summary-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.facility-dashboard-split {
  align-items: start;
}

.dashboard-grid article,
.metric-strip div,
.report-kpi-grid article {
  min-height: 92px;
  padding: 14px;
}

.dashboard-grid strong,
.metric-strip span,
.report-kpi-grid strong {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.facility-summary-grid,
.report-kpi-grid,
.coach-action-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}

.athlete-progress-summary,
.assignment-summary,
.local-data-summary,
.demo-data-summary {
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
}

.dashboard-grid article > span,
.report-kpi-grid article > span,
.athlete-progress-summary article > span,
.coach-action-summary-grid article > span,
.assignment-summary span,
.local-data-summary span,
.demo-data-summary span {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.metric-strip {
  max-width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
}

.metric-strip div {
  min-width: 0;
  overflow: visible;
  padding: 10px 8px;
  text-align: center;
}

.metric-strip span {
  max-width: 100%;
  font-size: clamp(1.05rem, 2vw, 1.65rem);
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.metric-strip small {
  max-width: 100%;
  line-height: 1.15;
  padding: 0 4px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.athlete-dashboard {
  border-color: rgba(58, 134, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(6, 214, 160, 0.06)),
    rgba(31, 41, 55, 0.92);
}

.dashboard-card-grid article,
.training-snapshot-grid article,
.dashboard-improvement-card {
  min-height: 92px;
}

.monthly-report-card {
  border-radius: 14px;
  padding: 22px;
}

.monthly-report-hero {
  border-bottom-color: var(--line);
}

.team-plan {
  gap: 18px;
}

.team-section,
.station-card,
.timeline-list article,
.assignment-grid article {
  border-radius: 12px;
}

.team-section h3,
.timeline-list h4,
.station-card h4,
.assignment-grid h4,
.drill-detail dt,
.team-drill dt {
  color: var(--ink);
}

.drill-detail dd,
.team-drill dd,
.visual-help p {
  color: var(--muted);
}

.visual-help {
  border-color: var(--line);
  background: rgba(17, 24, 39, 0.72);
}

@media (min-width: 1200px) {
  .home-panel.workflow-panel.active {
    grid-column: 1 / -1;
  }

  .home-panel.workflow-panel.active + .plan-workspace {
    display: none;
  }
}

@media (max-width: 1199px) {
  .app-header,
  .app-shell {
    margin-left: 88px;
  }

  .workflow-tabs {
    width: 88px;
    padding: 18px 8px;
  }

  .workflow-tabs::before {
    content: "LU";
    margin: 0 0 16px;
    text-align: center;
  }

  .workflow-tab {
    justify-content: center;
    min-height: 54px;
    padding: 8px 6px;
    font-size: 0.72rem;
    text-align: center;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .intake-panel,
  .plan-workspace {
    height: auto;
    overflow-y: visible;
    position: static;
  }

  .help-topic-grid,
  .about-grid,
  .about-audience-grid,
  .beta-boundary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body {
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: var(--mobile-workflow-nav-height);
  }

  .athlete-context-summary,
  .help-topic-grid,
  .about-grid,
  .about-audience-grid,
  .beta-boundary-grid {
    grid-template-columns: 1fr;
  }

  .app-header {
    position: static;
    display: grid;
    margin-left: 0;
    min-height: 0;
    padding: 10px 12px 6px;
  }

  .workspace-mode-banner {
    justify-items: start;
    max-width: none;
    padding: 7px 9px;
    text-align: left;
  }

  .workspace-mode-banner small {
    font-size: 0.68rem;
  }

  .workspace-role-indicator {
    justify-content: flex-start;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .header-select {
    grid-column: 1 / -1;
  }

  .workflow-tabs {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    border-top: 1px solid var(--line);
    border-right: 0;
    background: rgba(13, 17, 23, 0.96);
    box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.35);
    padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  }

  .workflow-tabs::before {
    content: none;
  }

  .workflow-tab {
    min-height: 46px;
    border-radius: 10px;
    font-size: 0.66rem;
    line-height: 1.1;
    padding: 7px 4px;
  }

  .workflow-tab.active {
    box-shadow: inset 0 3px 0 var(--green);
  }

  .app-shell {
    margin-left: 0;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 12px 12px var(--mobile-workflow-nav-height);
  }

  .demo-sandbox-panel > summary {
    align-items: start;
    flex-direction: column;
  }

  .home-panel.workflow-panel.active,
  .platform-hero,
  .platform-hero-copy,
  .facility-dashboard,
  .home-section,
  .value-grid,
  .value-grid article,
  .athlete-progress-grid,
  .athlete-progress-card,
  .report-grid,
  .travel-task-grid,
  .assessment-lead-form,
  .monthly-report-card {
    max-width: 100%;
    min-width: 0;
  }

  .home-panel.workflow-panel.active,
  .platform-hero-copy,
  .facility-dashboard,
  .home-section {
    position: static;
    height: auto;
    overflow: visible;
  }

  .platform-hero,
  .value-grid,
  .athlete-progress-grid,
  .creator-credibility-list,
  .report-grid,
  .travel-task-grid,
  .assessment-lead-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-hero {
    align-items: stretch;
  }

  .platform-hero-copy {
    min-height: 0;
    gap: 10px;
    padding: 14px;
  }

  .platform-lede {
    font-size: 0.94rem;
    line-height: 1.4;
  }

  .beta-entry-panel {
    gap: 7px;
    padding: 11px;
  }

  .beta-entry-panel p {
    font-size: 0.83rem;
    line-height: 1.35;
  }

  .beta-entry-actions {
    gap: 8px;
  }

  .summary-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric-strip {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
  }

  .report-metric-row,
  .dashboard-athlete-row,
  .dashboard-metric-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .active-plan-heading,
  .active-plan-grid,
  .player-workflow-action-panel,
  .draft-review-heading,
  .draft-review-grid,
  .draft-review-actions,
  .athlete-overview-heading,
  .athlete-overview-grid,
  .athlete-overview-body,
  .plan-assignment-heading,
  .plan-assignment-grid,
  .plan-assignment-card dl,
  .plan-assignment-actions,
  .plan-history-item,
  .guidance-steps,
  .current-session-meta,
  .active-plan-actions,
  .athlete-progress-summary,
  .owner-snapshot-grid,
  .owner-value-grid,
  .creator-credibility-grid,
  .coach-start-grid,
  .demo-vs-future-grid,
  .coach-demo-steps,
  .trial-demo-grid,
  .owner-demo-steps,
  .facility-workflow-grid,
  .feedback-history-item dl,
  .local-data-summary,
  .local-data-actions,
  .help-topic-grid,
  .dashboard-card-grid,
  .athlete-dashboard-split,
  .top-improvement-list,
  .training-snapshot-grid,
  .facility-dashboard-split,
  .facility-dashboard-actions,
  .role-preview-grid,
  .subscription-tier-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .facility-summary-grid,
  .retention-signal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-data-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .active-plan-status,
  .athlete-overview-heading > span,
  .draft-review-heading > span,
  .plan-assignment-heading > span {
    justify-self: start;
  }

  .active-plan-actions .primary-button,
  .active-plan-actions .track-button,
  .player-workflow-actions .primary-button,
  .player-workflow-actions .track-button,
  .draft-review-actions .primary-button,
  .draft-review-actions .track-button,
  .plan-assignment-actions .primary-button,
  .plan-assignment-actions .track-button,
  .plan-history-item .track-button,
  .view-nav .primary-button,
  .view-nav .track-button {
    width: 100%;
  }

  .view-nav,
  .week-view-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .day-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .throwing-schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-tab {
    min-width: 0;
  }

  .metric-badge {
    justify-self: start;
  }

  .plan-workspace,
  .summary-band,
  .level-detail,
  .monthly-report-card,
  .report-card-section,
  .athlete-progress-summary,
  .dashboard-metric-row,
  .report-metric-row {
    max-width: 100%;
    min-width: 0;
  }

  .panel,
  .summary-band,
  .level-detail,
  .metrics-panel {
    border-radius: 12px;
  }

  .intake-panel {
    padding: 14px;
  }

  .plan-workspace {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 460px) {
  .header-actions {
    grid-template-columns: 1fr;
  }

  .workflow-tab {
    font-size: 0.6rem;
  }
}

@media (max-width: 767px) {
  .station-actions,
  .station-actions .station-learn-button {
    width: 100%;
  }
}

.facility-management-root {
  position: relative;
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(6, 214, 160, 0.3);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(6, 214, 160, 0.08), rgba(15, 23, 42, 0.02));
}

.facility-management-heading,
.facility-management-section-heading,
.facility-team-card-heading,
.facility-dialog-heading,
.facility-dialog-section-heading,
.facility-coach-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.facility-management-heading h3,
.facility-management-section-heading h4,
.facility-team-card-heading h5,
.facility-dialog-heading h3,
.facility-dialog-section-heading h4 {
  margin: 0;
}

.facility-management-heading p:not(.eyebrow),
.facility-management-section-heading p,
.facility-team-card-heading p,
.facility-dialog-heading p:not(.eyebrow),
.facility-management-empty p,
.facility-coach-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.facility-management-summary,
.facility-team-grid,
.facility-archive-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.facility-management-summary article,
.facility-team-card,
.facility-management-empty,
.facility-archive-counts > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 12px;
}

.facility-management-summary article {
  display: grid;
  gap: 3px;
}

.facility-management-summary span,
.facility-management-summary small,
.facility-team-card-counts dt,
.facility-archive-counts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.facility-management-summary strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.05rem;
}

.facility-management-team-section,
.facility-dialog-form,
.facility-coach-panel,
.facility-coach-panel section,
.facility-coach-list {
  display: grid;
  gap: 12px;
}

.facility-management-team-section {
  margin-top: 18px;
}

.facility-team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facility-team-card {
  display: grid;
  gap: 12px;
}

.facility-team-card-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.facility-team-card-counts > div {
  display: grid;
  gap: 2px;
}

.facility-team-card-counts dd,
.facility-archive-counts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.facility-management-actions,
.facility-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facility-management-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facility-management-status-row .facility-management-status {
  flex: 1 1 auto;
}

.facility-management-actions button,
.facility-dialog-actions button,
.facility-dialog-form input,
.facility-dialog-form select,
.facility-dialog-form textarea,
.facility-coach-row button,
.facility-management-root [data-facility-management-toggle],
#teamCreateForm input,
#teamCreateForm select,
#teamCreateForm button,
#playerCreateForm input,
#playerCreateForm select,
#playerCreateForm button,
.dialog-close-button {
  min-height: 44px;
}

.facility-management-status,
.facility-dialog-status,
.facility-management-warning,
.facility-preservation-result {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(45, 125, 210, 0.1);
  color: var(--ink);
  font-weight: 750;
}

.facility-management-status:empty,
.facility-dialog-status:empty {
  display: none;
}

.facility-management-status.success,
.facility-dialog-status.success,
.facility-preservation-result {
  background: rgba(6, 214, 160, 0.12);
  color: var(--green);
}

.facility-management-status.error,
.facility-dialog-status.error,
.facility-management-warning {
  background: rgba(210, 153, 34, 0.12);
  color: var(--gold);
}

.facility-dialog-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(4, 10, 18, 0.76);
}

.facility-management-dialog {
  width: min(680px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.facility-dialog-heading {
  margin-bottom: 18px;
}

.dialog-close-button {
  flex: 0 0 44px;
  width: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
}

.facility-coach-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.facility-coach-row div {
  display: grid;
  gap: 3px;
}

.facility-coach-row small {
  color: var(--muted);
}

.facility-archive-counts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.facility-archive-counts > div {
  display: grid;
  gap: 2px;
}

.danger-action,
.track-button.danger {
  border-color: rgba(225, 78, 78, 0.5);
}

body.facility-dialog-open {
  overflow: hidden;
}

.facility-management-root button:focus-visible,
.facility-management-root input:focus-visible,
.facility-management-root select:focus-visible,
.facility-management-root textarea:focus-visible {
  outline: 3px solid rgba(6, 214, 160, 0.45);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .facility-management-root {
    padding: 14px;
  }

  .facility-management-heading,
  .facility-management-section-heading,
  .facility-team-card-heading,
  .facility-dialog-heading,
  .facility-coach-row,
  .facility-management-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .facility-management-summary,
  .facility-team-grid,
  .facility-archive-counts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facility-management-heading button,
  .facility-management-section-heading button,
  .facility-management-status-row button,
  .facility-management-actions button,
  .facility-dialog-actions button,
  .facility-coach-row button {
    width: 100%;
  }

  .facility-dialog-backdrop {
    align-items: end;
    padding: 0;
  }

  .facility-management-dialog {
    width: 100%;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    padding: 16px;
  }

  .facility-dialog-heading {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .dialog-close-button {
    justify-self: end;
  }

  .facility-dialog-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  :root {
    color-scheme: light;
    --ink: #17212b;
    --muted: #475569;
    --line: #d7dee5;
    --surface: #ffffff;
    --field: #f8fafc;
    --navy: #17212b;
    --green: #166534;
    --gold: #92400e;
    --red: #991b1b;
    --blue: #1d4ed8;
    --card: #ffffff;
    --card-soft: #ffffff;
    --shadow: none;
  }

  body {
    background: #ffffff !important;
    color: #17212b !important;
  }

  .app-header,
  .workflow-tabs,
  .view-nav,
  .report-filter-panel,
  .week-picker-panel,
  .plan-metric-context,
  .intake-panel,
  .summary-band,
  .progression-card,
  .xp-feedback,
  .metrics-panel,
  .level-tabs {
    display: none !important;
  }

  .app-shell,
  .plan-workspace {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .level-detail,
  .monthly-report-card,
  .report-kpi-grid article,
  .report-card-section,
  .report-notes-grid article,
  .report-metric-row {
    background: #ffffff !important;
    border-color: #d7dee5 !important;
    box-shadow: none !important;
    color: #17212b !important;
  }

  .monthly-report-card {
    border: 0 !important;
    padding: 0 !important;
  }

  .monthly-report-card * {
    color: inherit;
  }

  .monthly-report-card p,
  .monthly-report-card small,
  .monthly-report-card span {
    color: #475569 !important;
  }

  .monthly-report-card h2,
  .monthly-report-card h3,
  .monthly-report-card strong {
    color: #17212b !important;
  }
}

/* Phase 8B2AF: compact selected-athlete coaching path. */
.selected-athlete-workflow {
  padding: 0;
  border: 0;
  background: transparent;
}

.selected-athlete-primary-action {
  grid-template-columns: minmax(180px, 0.72fr) minmax(260px, 1.35fr) minmax(190px, 0.8fr);
  align-items: stretch;
  border-radius: 14px;
  padding: 14px;
}

.selected-athlete-identity,
.selected-athlete-action {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.selected-athlete-identity h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.selected-athlete-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.selected-athlete-summary > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(17, 24, 39, 0.72);
  padding: 9px;
}

.selected-athlete-summary dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-athlete-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.selected-athlete-action > .primary-button,
.player-action-row .primary-button {
  min-height: 46px;
}

.selected-athlete-more {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.selected-athlete-more summary {
  min-height: 44px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  line-height: 44px;
}

.selected-athlete-more > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.selected-athlete-more button {
  min-height: 44px;
}

.athlete-plan-customization {
  margin-top: 12px;
}

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

.training-domain-section {
  overflow: clip;
  border: 1px solid rgba(58, 134, 255, 0.32);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.training-domain-section.complete {
  border-color: rgba(6, 214, 160, 0.38);
}

.training-domain-section > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
}

.training-domain-section > summary::-webkit-details-marker {
  display: none;
}

.training-domain-section > summary::after {
  content: "▾";
  justify-self: end;
  color: var(--green);
  font-size: 1rem;
  transition: transform 160ms ease;
}

.training-domain-section:not([open]) > summary::after {
  transform: rotate(-90deg);
}

.training-domain-section > summary > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.training-domain-section > summary strong {
  color: var(--ink);
  font-size: 1rem;
}

.training-domain-section > summary small,
.training-domain-dose {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.35;
}

.training-domain-dose {
  justify-self: end;
  max-width: 260px;
  text-align: right;
}

.training-domain-content {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.training-domain-content .practice-block {
  margin: 0;
}

.training-drill-card {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.training-drill-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr);
  gap: 10px;
}

.training-drill-summary > div {
  display: grid;
  gap: 3px;
}

.training-drill-summary strong {
  color: var(--ink);
}

.training-drill-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.training-drill-summary p {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #d6dee8;
  font-size: 0.82rem;
  line-height: 1.35;
}

.training-drill-summary p span {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.training-drill-card .drill-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

.training-drill-card .drill-detail summary {
  min-height: 44px;
  padding: 11px 12px;
}

.training-drill-card .drill-detail dl,
.training-drill-card .visual-help {
  margin: 0 12px 12px;
}

.section-check-read-only {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
}

.section-check-read-only small {
  color: var(--muted);
}

.account-status-panel,
.player-workspace-panel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.account-status-card {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 640px;
  margin: 8vh auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 36px);
}

.account-status-card h2,
.account-status-card p {
  margin: 0;
}

.player-account-header,
.player-current-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.player-account-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.player-account-header h2,
.player-account-header p,
.player-current-heading h3,
.player-current-heading p {
  margin: 0;
}

.player-account-header > div,
.player-current-heading > div {
  display: grid;
  gap: 5px;
}

.player-workspace-status {
  margin: 10px 0 0;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
}

.player-workspace-status:empty {
  display: none;
}

.player-training-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.player-training-summary article,
.player-empty-training,
.player-current-training,
.player-workspace-disclosure {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.player-training-summary article {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.player-training-summary span,
.player-current-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-training-summary strong {
  color: var(--ink);
  line-height: 1.35;
}

.player-current-brief {
  display: grid;
  gap: 4px;
}

.player-current-brief strong {
  color: var(--ink);
}

.player-current-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 150px;
  text-align: right;
}

.player-current-meta span {
  color: var(--green);
  font-size: 1rem;
}

.player-current-meta small {
  color: var(--muted);
  line-height: 1.35;
}

.player-empty-training,
.player-current-training {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
}

.player-day-content {
  display: grid;
  gap: 14px;
}

.player-empty-training p {
  margin: 0;
}

.player-day-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
}

.player-day-picker button {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  padding: 7px 10px;
}

.player-day-picker button.active {
  border-color: var(--green);
  background: rgba(6, 214, 160, 0.12);
}

.player-day-picker small {
  color: var(--muted);
}

.player-workload-note,
.player-read-only-notice {
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 183, 3, 0.08);
  padding: 10px 12px;
}

.player-workload-note p,
.player-read-only-notice,
.player-sync-state {
  margin: 0;
  line-height: 1.5;
}

.player-sync-state {
  color: var(--muted);
  font-size: 0.8rem;
}

.player-workspace-disclosure {
  margin-top: 12px;
  overflow: clip;
}

.player-workspace-disclosure > summary {
  min-height: 48px;
  cursor: pointer;
  padding: 13px 15px;
  color: var(--ink);
  font-weight: 850;
}

.player-workspace-disclosure > p,
.player-history-list,
.player-beta-feedback-form {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 14px;
}

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

.player-history-list article {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  background: var(--field);
  padding: 10px;
}

.player-history-list span {
  color: var(--muted);
  font-size: 0.78rem;
}

.player-beta-feedback-form {
  display: grid;
  gap: 12px;
}

.player-beta-feedback-form .primary-button {
  min-height: 46px;
  justify-self: start;
}

@media (max-width: 720px) {
  html {
    scroll-padding-bottom: var(--mobile-sticky-content-clearance);
  }

  .learn-button {
    min-height: 44px;
  }

  .athlete-card-actions .primary-button {
    min-height: 44px;
  }

  body[data-athlete-workflow-state]:not([data-athlete-workflow-state^="draft-customization"]) #playersPanel,
  body[data-athlete-workflow-state]:not([data-athlete-workflow-state^="draft-customization"]) .plan-workspace {
    padding-bottom: var(--mobile-sticky-content-clearance);
  }

  .selected-athlete-primary-action {
    grid-template-columns: minmax(0, 1fr);
    max-height: none;
    overflow: visible;
  }

  .selected-athlete-primary-action:not([data-athlete-workflow-state^="draft-customization"]) .selected-athlete-action {
    position: fixed;
    z-index: 40;
    right: 12px;
    bottom: var(--mobile-sticky-action-bottom);
    left: 12px;
    max-height: min(46dvh, 300px);
    overflow: auto;
    border: 1px solid rgba(6, 214, 160, 0.34);
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.97);
    box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.36);
    padding: 10px;
  }

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

  .selected-athlete-action > .primary-button {
    width: 100%;
  }

  .selected-athlete-action > p {
    display: none;
  }

  .selected-athlete-more > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .selected-athlete-more > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .player-plan-custom-form .player-action-row {
    position: sticky;
    z-index: 40;
    bottom: var(--mobile-sticky-action-bottom);
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    border: 1px solid rgba(6, 214, 160, 0.34);
    border-radius: 12px;
    background: rgba(13, 17, 23, 0.97);
    box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.36);
    padding: 10px;
  }

  .player-plan-custom-form .player-action-row button {
    min-height: 46px;
    width: 100%;
  }

  .training-domain-section > summary,
  .training-drill-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .training-domain-dose {
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .training-domain-section > summary::after {
    position: absolute;
    right: 18px;
  }

  .training-domain-section > summary {
    position: relative;
    padding-right: 42px;
  }

  .player-account-header {
    align-items: center;
  }

  .player-account-header .track-button {
    min-height: 44px;
    flex: 0 0 auto;
  }

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

  .player-current-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .player-training-summary article {
    padding: 9px 8px;
  }

  .player-training-summary strong {
    font-size: 0.8rem;
  }

  .player-current-meta {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .player-day-picker {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }

  .player-day-picker button {
    flex: 0 0 72px;
    scroll-snap-align: start;
  }

  .player-beta-feedback-form .primary-button {
    width: 100%;
  }

  body.facility-dialog-open .selected-athlete-action,
  body.facility-dialog-open .player-plan-custom-form .player-action-row {
    visibility: hidden;
  }
}

@media (max-width: 430px) {
  .selected-athlete-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}
