:root {
  color-scheme: dark;
  --bg: #07090f;
  --surface: #111827;
  --surface-muted: #1b2433;
  --surface-glass: rgb(17 24 39 / 78%);
  --text: #f8fafc;
  --muted: #a7b0c0;
  --border: #283244;
  --accent: #ff7a1a;
  --accent-2: #f6b13b;
  --accent-contrast: #150702;
  --shadow: 0 18px 50px rgb(0 0 0 / 38%);
}

html[data-theme="dark"] {
  --bg: #0c111d;
  --surface: #151b2b;
  --surface-muted: #20283a;
  --text: #eef3ff;
  --muted: #aab4c8;
  --border: #30394e;
  --accent: #ff8a4c;
  --accent-contrast: #1a0b03;
  --shadow: 0 8px 28px rgb(0 0 0 / 35%);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #0c111d;
    --surface: #151b2b;
    --surface-muted: #20283a;
    --text: #eef3ff;
    --muted: #aab4c8;
    --border: #30394e;
    --accent: #ff8a4c;
    --accent-contrast: #1a0b03;
    --shadow: 0 8px 28px rgb(0 0 0 / 35%);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28rem),
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 24rem),
    linear-gradient(135deg, #07090f 0%, #0d1422 52%, #090b10 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-top-row {
  display: flex;
  align-items: center;
  order: 0;
  flex: 1 1 100%;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}

.header-top-row .brand {
  flex: 1 1 auto;
  min-width: 0;
}

.header-top-row .header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  order: 0;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
  min-width: max-content;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
}

.team-brand {
  width: auto;
  height: 4rem;
}

.team-header-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 16rem;
  max-height: 4rem;
  border-radius: 6px;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.team-brand-customized {
  gap: 0.75rem;
  width: auto;
  height: auto;
  min-height: 4rem;
  max-width: min(32rem, 36vw);
}

.team-header-text {
  max-width: 15rem;
  color: var(--team-header-text-color, var(--text));
  line-height: 1.08;
  overflow-wrap: break-word;
}

.team-header-text-small {
  font-size: 0.85rem;
}

.team-header-text-medium {
  font-size: 1.1rem;
}

.team-header-text-large {
  font-size: 1.4rem;
}

.team-header-text-bold {
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  order: 1;
  flex: 1 1 auto;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  background: var(--surface-muted);
}

.site-nav-icon {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  font-size: 0.95rem;
  line-height: 1;
}

.site-nav-form {
  display: inline-flex;
  margin: 0;
}

.team-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.team-switcher label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.team-switcher select {
  max-width: 11rem;
  min-height: 2.05rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: var(--surface-muted);
  color: var(--text);
}

.site-nav-form button {
  padding: 0.4rem 0.75rem;
  background: var(--surface-muted);
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav-form button:hover,
.site-nav-form button:focus {
  border-color: var(--accent);
}

.site-nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  padding: 0 0.3rem;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  order: 2;
  gap: 0.45rem;
  margin-left: 0;
}

.page-alerts {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.page-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent));
}

.page-alert strong,
.page-alert p {
  margin: 0;
}

.page-alert p {
  color: var(--muted);
}

.page-alert .button {
  flex: 0 0 auto;
  text-decoration: none;
}

.team-branding-preview {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 0.65rem;
}

.team-identity-sample,
.team-identity-form-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.team-identity-sample .team-header-text {
  max-width: 10rem;
  font-size: 0.8rem;
}

.team-identity-form-preview-wrap {
  margin: 1.25rem 0;
}

.team-logo-color-picker {
  display: grid;
  gap: 0.45rem;
  max-width: 42rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  background: var(--surface-muted);
}

.team-logo-color-picker p,
.team-logo-color-picker-status {
  margin: 0;
  color: var(--muted);
}

.team-logo-color-picker-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.team-color-copy-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.team-color-copy-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.team-color-copy-row > span {
  min-width: 9.5rem;
  font-weight: 700;
}

.team-branding-copy {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface-muted);
}

.team-branding-copy legend {
  padding: 0 0.35rem;
  font-weight: 900;
}

.team-branding-copy p {
  margin: 0;
  color: var(--muted);
}

.team-branding-copy-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.team-branding-target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 0.55rem;
}

.team-branding-target-grid label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  cursor: pointer;
}

.team-branding-target-grid input {
  width: auto;
  margin: 0;
}

.team-branding-copy-status {
  font-size: 0.85rem;
  font-weight: 700;
}

.team-logo-color-picker-status:not(:empty) {
  font-size: 0.82rem;
}

.team-identity-form-preview-wrap h3 {
  margin-bottom: 0.55rem;
}

.team-identity-form-preview {
  min-height: 4.75rem;
  max-width: 100%;
}

.team-identity-form-preview img {
  width: auto;
  height: auto;
  max-width: 12rem;
  max-height: 4rem;
  object-fit: contain;
}

.team-logo-preview {
  display: inline-grid;
  place-items: center;
  width: auto;
  height: auto;
  max-width: 9rem;
  max-height: 4.5rem;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.team-logo-placeholder {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  padding: 0;
  background: var(--surface-muted);
}

.team-color-swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  vertical-align: -0.05rem;
}

.notification-center {
  position: relative;
  display: inline-grid;
}

.notification-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  line-height: 1;
}

.notification-bell-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.4rem;
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--surface);
  border-radius: 999px;
  padding: 0 0.25rem;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 30;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(36rem, calc(100vh - 5.5rem));
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgb(0 0 0 / 45%);
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0.9rem;
  background: var(--surface);
}

.notification-panel-header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.notification-panel-header span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.notification-list {
  display: grid;
}

.notification-item {
  display: grid;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  padding: 0.9rem;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item-setup {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--surface) 94%, var(--accent));
}

.notification-item h3,
.notification-item p,
.notification-item time {
  margin: 0;
}

.notification-item h3 {
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.notification-item > p:not(.notification-kicker),
.notification-item time {
  color: var(--muted);
  font-size: 0.82rem;
}

.notification-kicker {
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-item .button {
  justify-self: start;
  margin-top: 0.25rem;
  text-decoration: none;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.notification-actions form {
  margin: 0;
}

.notification-actions a,
.notification-actions button {
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.notification-actions a {
  color: var(--accent-2);
}

.notification-empty {
  display: grid;
  gap: 0.25rem;
  padding: 1.4rem 0.9rem;
  text-align: center;
}

.notification-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.theme-toggle,
button,
input,
select,
textarea {
  font: inherit;
}

.theme-toggle,
button,
.button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle:hover,
button:hover,
.button:hover {
  border-color: var(--accent);
}

.upload-progress {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0;
}

.upload-progress progress {
  width: 100%;
  height: 0.8rem;
}

.upload-progress p {
  margin: 0;
  color: var(--muted);
}

.site-main {
  width: min(1440px, calc(100% - 2rem));
  margin: 1.25rem auto 3rem;
}

.login-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 4rem;
}

.login-page {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.login-video-frame {
  width: min(760px, 100%);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-video-frame video,
.login-video-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.login-video-frame video {
  object-fit: contain;
  background: #000;
}

.login-video-placeholder span {
  display: inline-grid;
  place-items: center;
  width: 5rem;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 2rem;
}

.home-screen {
  display: grid;
  gap: 2rem;
  width: min(100%, 64rem);
  margin: 0 auto;
}

.home-video-block {
  display: grid;
  gap: 0.75rem;
}

.home-video-block h1,
.home-video-block h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: 0;
}

.home-video-block video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

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

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

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.62);
}

.confirm-modal__panel {
  position: relative;
  width: min(100%, 28rem);
  border: 1px solid rgba(61, 47, 34, 0.22);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(12, 10, 8, 0.28);
  padding: 1.25rem;
}

.confirm-modal__panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.confirm-modal__panel p {
  margin: 0;
  color: var(--muted);
}

.confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.confirm-modal__actions button {
  width: auto;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(61, 47, 34, 0.28);
}

.button-danger {
  background: #a33a2a;
  color: #fff;
  border: 1px solid #a33a2a;
}

.login-form-wrap {
  width: min(760px, 100%);
  display: grid;
  gap: 1rem;
}

.login-form-wrap h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.login-form {
  display: grid;
  gap: 0.9rem;
}

.login-field {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) 1fr;
  align-items: center;
  gap: 0.75rem;
}

.login-field label {
  font-size: 1.15rem;
}

.login-field input {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: var(--surface);
  color: var(--text);
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 7vw, 6rem);
  margin-top: 0.5rem;
}

.login-secondary-action,
.login-trial-link span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.login-actions button {
  min-width: 7rem;
}

.login-trial-link {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 1.1rem;
}

.admin-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
}

.video-library,
.admin-dashboard-main,
.status-card,
.video-card,
.responsive-card,
.hero-card {
  background: var(--surface);
  color: var(--text);
}

.responsive-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}

.responsive-card,
.status-card,
.hero-card {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.hero-card {
  max-width: 760px;
  margin: 4rem auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.hero-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.library-controls,
.admin-dashboard-shell {
  gap: 1rem;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #0b1220;
  color: var(--text);
  padding: 0.6rem 0.75rem;
}

.video-meta,
.helptext {
  color: var(--muted);
}

.admin-dashboard-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: start;
  padding: 0.75rem;
  border-radius: 0.9rem;
  background: var(--bg);
}

.admin-sidebar,
.admin-dashboard-main,
.status-card {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  background: var(--surface);
}

.admin-dashboard-main {
  overflow-x: auto;
}

.coach-tool-guide {
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid #2fcf93;
  background: rgb(47 207 147 / 4%);
}

.coach-tool-guide summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

.coach-tool-guide summary::-webkit-details-marker {
  display: none;
}

.coach-tool-guide summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.coach-tool-guide-icon {
  display: inline-grid;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid rgb(47 207 147 / 55%);
  border-radius: 50%;
  color: #2fcf93;
  font-weight: 900;
}

.coach-tool-guide summary > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.coach-tool-guide summary strong,
.coach-tool-guide summary small {
  letter-spacing: 0;
}

.coach-tool-guide summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.coach-tool-guide summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 800;
}

.coach-tool-guide[open] summary::after {
  content: "-";
}

.coach-tool-guide-body {
  max-width: 54rem;
  padding: 0 1rem 1rem 3.4rem;
}

.coach-tool-guide-body > p {
  margin: 0 0 0.75rem;
}

.coach-tool-guide-body ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.25rem;
}

.coach-tool-guide-tip {
  margin-top: 0.9rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
  color: var(--muted);
}

.admin-dashboard-main table {
  width: 100%;
  border-collapse: collapse;
}

.admin-dashboard-main th,
.admin-dashboard-main td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.admin-dashboard-main th {
  background: var(--surface-muted);
}

.browser-health {
  display: grid;
  gap: 1.25rem;
}

.browser-health-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.browser-health-header h1,
.browser-health-header p,
.browser-health-activity h2,
.browser-health-activity p {
  margin: 0;
}

.browser-health-freshness,
.browser-health-scope,
.browser-health-source {
  color: var(--muted);
  font-size: 0.85rem;
}

.diagnostic-privacy-note {
  border: 1px solid color-mix(in srgb, #2fcf93 45%, var(--border));
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  background: color-mix(in srgb, #2fcf93 8%, var(--surface));
}

.browser-health-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--surface-muted);
}

.browser-health-filters label {
  display: grid;
  flex: 1 1 10rem;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.browser-health-filters button,
.browser-health-filters > a {
  min-height: 2.75rem;
}

.browser-health-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.browser-health-metrics article,
.browser-health-breakdowns > article,
.browser-health-activity {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--surface-muted);
}

.browser-health-metrics article {
  display: grid;
  gap: 0.15rem;
}

.browser-health-metrics span,
.browser-health-metrics small {
  color: var(--muted);
}

.browser-health-metrics strong {
  color: var(--text);
  font-size: 1.85rem;
  line-height: 1.1;
}

.browser-health-metric-silk {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border)) !important;
}

.browser-health-breakdowns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.browser-health-breakdowns h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.diagnostic-bar-row {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.65rem;
}

.diagnostic-bar-row > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.diagnostic-bar {
  display: block;
  overflow: hidden;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--border);
}

.diagnostic-bar i {
  display: block;
  width: var(--diagnostic-bar);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.browser-health-activity {
  padding: 0;
  overflow: hidden;
}

.browser-health-activity > header {
  padding: 1rem;
}

.browser-health-table-wrap {
  overflow-x: auto;
}

.browser-health-activity table {
  min-width: 58rem;
}

.browser-health-activity small,
.diagnostic-empty {
  color: var(--muted);
}

.diagnostic-severity {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.diagnostic-severity-info {
  background: rgb(59 130 246 / 18%);
  color: #93c5fd;
}

.diagnostic-severity-warning {
  background: rgb(245 184 75 / 18%);
  color: #f5c96f;
}

.diagnostic-severity-error {
  background: rgb(239 68 68 / 18%);
  color: #fca5a5;
}

.browser-health-source {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.admin-video-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.admin-video-library-card {
  display: grid;
  gap: 1rem;
  align-content: space-between;
  min-height: 12rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-video-library-card h3 {
  margin: 0.35rem 0;
}

.admin-video-library-card .video-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-sidebar ul {
  list-style: none;
  padding: 0;
}

.admin-sidebar a {
  display: block;
  padding: 0.45rem 0;
}

.status-warning {
  border: 1px solid #f5b84b;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #fff3cd;
  color: #6f4300;
}

@media (max-width: 720px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-inline: 0.75rem;
  }

  .header-top-row {
    flex: 0 0 100%;
    gap: 0.5rem;
  }

  .brand {
    flex: 0 1 auto;
    gap: 0.5rem;
    max-width: 100%;
    min-width: 0;
  }

  .brand-logo {
    width: 1.8rem;
    height: 1.8rem;
  }

  .team-brand {
    width: auto;
    height: 3.25rem;
    max-width: 100%;
  }

  .team-brand-customized {
    width: fit-content;
    max-width: 100%;
  }

  .team-header-logo {
    width: auto;
    height: auto;
    max-width: min(8rem, 28vw);
    max-height: 3.25rem;
    border-radius: 5px;
  }

  .team-brand-customized .team-header-text {
    max-width: 36vw;
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy small {
    max-width: 8.75rem;
    font-size: 0.58rem;
    letter-spacing: 0.045em;
    white-space: normal;
  }

  .site-nav {
    order: 3;
    flex: 0 0 100%;
    margin-left: 0;
    width: 100%;
  }

  .team-switcher {
    width: 100%;
  }

  .team-switcher select {
    max-width: none;
    flex: 1;
  }

  .header-actions {
    align-self: center;
    flex: 0 0 auto;
    margin-left: 0;
    white-space: nowrap;
  }

  .site-main {
    width: min(100% - 1rem, 1180px);
  }

  .library-controls,
  .admin-dashboard-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  .library-controls input,
  .library-controls select,
  .library-controls button {
    width: 100%;
  }

  .coach-tool-guide-body {
    padding-left: 1rem;
  }

  .browser-health-header {
    align-items: start;
    flex-direction: column;
  }

  .browser-health-breakdowns {
    grid-template-columns: 1fr;
  }
}

/* Coach Smoke basketball video portal */
.video-app-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 1.5rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
}

.library-hero-bar,
.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.library-hero-bar h1,
.section-heading-row h2 {
  margin: 0;
}

.library-hero-bar h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.library-subtitle,
.section-heading-row p {
  max-width: 760px;
  color: var(--muted);
}

.library-quick-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.library-quick-stats span,
.duration-badge,
.video-card-kicker,
.category-chip {
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: var(--text);
  text-decoration: none;
}

.library-quick-stats span {
  display: grid;
  min-width: 7rem;
  padding: 0.75rem 1rem;
  text-align: center;
}

.library-quick-stats strong {
  color: var(--accent-2);
  font-size: 1.3rem;
}

.video-toolbar {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(12rem, 0.45fr) minmax(10rem, 0.35fr) auto auto;
  gap: 0.85rem;
  align-items: end;
  margin: 1.5rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 1rem;
  background: rgb(7 9 15 / 58%);
}

.video-toolbar label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.video-toolbar input,
.video-toolbar select {
  width: 100%;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: var(--accent-contrast);
  font-weight: 900;
}

.category-chip-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.category-chip {
  padding: 0.5rem 0.8rem;
  font-weight: 800;
}

.category-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.category-breadcrumbs {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.25rem 0 1rem;
  color: var(--muted);
  font-weight: 800;
}

.category-breadcrumbs a {
  color: var(--accent-2);
  text-decoration: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.category-tile {
  display: flex;
  align-items: center;
  min-height: 8.5rem;
  padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0.75rem;
  background: rgb(17 24 39 / 70%);
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.category-tile:hover,
.category-tile:focus {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.video-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 1rem;
  margin: 1.25rem 0;
}

.featured-player-card,
.empty-state-card {
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1.2rem;
  background: var(--surface-glass, var(--surface));
  box-shadow: var(--shadow);
}

.featured-player-card {
  overflow: hidden;
}

.featured-player-link,
.video-card-link {
  position: relative;
  display: block;
  text-decoration: none;
}

.featured-video-frame,
.court-thumb,
.video-thumb,
.video-thumb-placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.featured-video-frame {
  position: relative;
  overflow: hidden;
  background: #0a0f1a;
}

.featured-video-thumb,
.video-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.court-thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, transparent 0 14%, rgb(255 255 255 / 22%) 14.5% 15%, transparent 15.5%),
    linear-gradient(90deg, transparent 49.5%, rgb(255 255 255 / 18%) 50%, transparent 50.5%),
    linear-gradient(135deg, #281209, #8b3a14 45%, #1a2233);
}

.court-thumb-large {
  min-height: 20rem;
}

.court-center,
.play-orb {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 92%, transparent);
  color: var(--accent-contrast);
  font-weight: 900;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 18%, transparent);
}

.play-orb {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.duration-badge {
  position: absolute;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.duration-badge {
  right: 0.65rem;
  bottom: 0.65rem;
  background: rgb(0 0 0 / 72%);
}

.playback-rate-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
  background: rgb(7 9 15 / 70%);
}

.playback-rate-controls button {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.playback-rate-controls button[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.playback-rate-controls .video-fullscreen-button {
  margin-left: auto;
}

.mock-player-controls {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #070b12;
  color: var(--muted);
}

.mock-timeline {
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
}

.mock-timeline span,
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.featured-copy {
  padding: 1rem 1.15rem 1.25rem;
}

.featured-copy h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.featured-copy p:not(.eyebrow) {
  color: var(--muted);
}

.video-grid {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.organize-video-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.organize-video-section {
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1rem;
  background: rgb(17 24 39 / 42%);
}

.organize-video-section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.organize-video-section-heading p,
.organize-video-empty {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.organize-video-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.organize-video-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0.85rem;
  background: rgb(17 24 39 / 70%);
}

.organize-video-position {
  display: inline-grid;
  min-height: 2.4rem;
  place-items: center;
  border-radius: 0.65rem;
  color: var(--accent-contrast, #111827);
  background: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
}

.organize-video-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.organize-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.organize-video-actions .button {
  min-height: 2.4rem;
  padding: 0.45rem 0.7rem;
}

.category-video-placement-heading {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .organize-video-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .organize-video-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .organize-video-actions .button {
    flex: 1 1 auto;
  }
}

.video-card {
  position: relative;
  overflow: hidden;
  border-color: rgb(255 255 255 / 10%);
  border-radius: 1rem;
  background: rgb(17 24 39 / 86%);
}

.video-card-body {
  padding: 0.9rem;
}

.video-card-kicker {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 0.55rem;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.25;
}

.video-title a {
  text-decoration: none;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.35rem 0 0.7rem;
  font-size: 0.9rem;
}

.progress-track {
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
}

.progress-track span {
  width: 42%;
}

.empty-state-card {
  padding: 2rem;
  text-align: center;
}

.compact-empty-state {
  margin-top: 1.5rem;
}

@media (max-width: 980px) {
  .video-toolbar,
  .video-stage {
    grid-template-columns: 1fr;
  }

  .library-hero-bar,
  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }
}

.daily-progress-page {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 3rem;
}

.daily-progress-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.daily-progress-header .eyebrow {
  margin: 0 0 0.25rem;
}

.daily-progress-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.daily-progress-header time,
.progress-period-date {
  color: var(--muted);
  font-weight: 700;
}

.progress-period-nav {
  max-width: 100%;
  margin-top: 1.25rem;
  overflow-x: auto;
}

.progress-period-toggle {
  display: grid;
  grid-template-columns: repeat(5, minmax(5.25rem, 1fr));
  width: min(100%, 38rem);
  min-width: 27rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: rgb(255 255 255 / 4%);
}

.progress-period-toggle a {
  padding: 0.55rem 0.65rem;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.progress-period-toggle a:last-child {
  border-right: 0;
}

.progress-period-toggle a:hover,
.progress-period-toggle a:focus-visible {
  color: var(--text);
  background: rgb(255 255 255 / 7%);
}

.progress-period-toggle a.is-active {
  color: #07130f;
  background: #2fcf93;
}

.daily-progress-chart {
  margin: 2rem 0 0;
}

.daily-progress-chart figcaption {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.daily-progress-axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 0.45rem 12rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.daily-progress-axis span:nth-child(2) {
  text-align: center;
}

.daily-progress-axis span:last-child {
  text-align: right;
}

.daily-progress-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgb(255 255 255 / 7%);
}

.daily-progress-row:last-child {
  border-bottom: 1px solid rgb(255 255 255 / 7%);
}

.daily-progress-label {
  min-width: 0;
}

.daily-progress-label h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.daily-progress-label output {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.daily-progress-track {
  position: relative;
  height: 1.25rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0.35rem;
  background:
    linear-gradient(to right, transparent 49.8%, rgb(255 255 255 / 12%) 50%, transparent 50.2%),
    rgb(255 255 255 / 6%);
}

.daily-progress-track span {
  display: block;
  width: var(--daily-progress-fill);
  min-width: 0;
  height: 100%;
  transition: width 220ms ease;
}

.daily-progress-row--watch .daily-progress-track span {
  background: #2fcf93;
}

.daily-progress-row--practice .daily-progress-track span {
  background: #ff9f43;
}

.video-study-breakdown {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.video-study-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.video-study-header .eyebrow,
.video-study-header h2,
.video-study-header > p {
  margin: 0;
}

.video-study-header h2 {
  margin-top: 0.25rem;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.video-study-header > p {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.video-study-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.video-study-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 0.65fr);
  gap: 1rem 1.5rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 4%);
}

.video-study-title h3,
.video-study-title p {
  margin: 0;
}

.video-study-title h3 {
  font-size: 1rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.video-study-title h3 a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.video-study-title p,
.video-study-time span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.video-study-time {
  min-width: 0;
  text-align: right;
}

.video-study-time strong,
.video-study-time span {
  display: block;
  font-variant-numeric: tabular-nums;
}

.video-study-track {
  height: 0.4rem;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
}

.video-study-track span {
  display: block;
  width: var(--video-study-fill);
  height: 100%;
  border-radius: inherit;
  background: #2fcf93;
}

.video-study-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.video-study-facts div {
  min-width: 0;
}

.video-study-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-study-facts dd {
  margin: 0.25rem 0 0;
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.video-study-empty,
.video-study-legacy {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 4%);
}

.video-study-empty h3,
.video-study-empty p {
  margin: 0;
}

.video-study-empty h3 {
  font-size: 1rem;
}

.video-study-empty p,
.video-study-legacy span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.video-study-legacy {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  border-style: dashed;
}

.video-study-legacy strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.practice-entry {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.practice-entry h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.practice-entry form {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.practice-entry form > div {
  display: grid;
  gap: 0.3rem;
}

.practice-entry input {
  width: 8rem;
}

.coach-progress-roster {
  margin-top: 2rem;
}

.coach-progress-roster-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.coach-progress-roster-header h2,
.coach-progress-roster-header p {
  margin: 0;
  letter-spacing: 0;
}

.coach-progress-roster-header h2 {
  font-size: 1.15rem;
}

.coach-progress-roster-header p,
.coach-progress-scale {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.coach-progress-list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  list-style: none;
}

.coach-progress-player {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) repeat(2, minmax(14rem, 1fr));
  align-items: center;
  gap: 1.25rem;
  min-height: 6rem;
  padding: 1rem 0;
  border-top: 1px solid rgb(255 255 255 / 9%);
}

.coach-progress-identity,
.coach-progress-metric {
  min-width: 0;
}

.coach-progress-identity strong,
.coach-progress-identity small {
  display: block;
  overflow-wrap: anywhere;
}

.coach-progress-identity small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.coach-progress-identity strong a,
.coach-progress-detail-link {
  color: var(--accent-2);
  text-decoration: none;
}

.coach-progress-identity strong a:hover,
.coach-progress-identity strong a:focus-visible,
.coach-progress-detail-link:hover,
.coach-progress-detail-link:focus-visible {
  text-decoration: underline;
}

.coach-progress-detail-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.player-progress-detail-header {
  align-items: flex-start;
}

.player-progress-detail-header h1 + p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.coach-progress-metric-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}

.coach-progress-metric-label span {
  font-weight: 800;
}

.coach-progress-metric-label output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.coach-progress-metric--watch .daily-progress-track span {
  background: #2fcf93;
}

.coach-progress-metric--practice .daily-progress-track span {
  background: #ff9f43;
}

.coach-progress-empty {
  padding: 1.5rem 0;
  border-top: 1px solid rgb(255 255 255 / 9%);
  color: var(--muted);
}

@media (max-width: 900px) {
  .coach-progress-player {
    grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1fr);
  }

.coach-progress-identity {
    grid-row: span 2;
  }
}

@media (max-width: 680px) {
  .daily-progress-header {
    align-items: start;
    flex-direction: column;
  }

  .daily-progress-axis {
    margin-left: 0;
  }

  .daily-progress-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .daily-progress-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .daily-progress-label output {
    margin-top: 0;
  }

  .video-study-header,
  .video-study-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .video-study-time {
    text-align: left;
  }

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

  .video-study-legacy {
    align-items: start;
    flex-direction: column;
  }

  .coach-progress-roster-header,
  .coach-progress-player {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .coach-progress-roster-header {
    display: grid;
  }

  .coach-progress-identity {
    grid-row: auto;
    padding-bottom: 0.25rem;
  }
}

.watch-app-shell {
  display: grid;
  gap: 1rem;
}

.watch-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.watch-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}

.watch-actions a {
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: none;
}

.watch-category-breadcrumbs {
  margin: 0;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.watch-main-column {
  display: grid;
  gap: 1rem;
}

.watch-player-card,
.watch-title-card,
.watch-notes-card {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1.2rem;
  background: var(--surface-glass, var(--surface));
  box-shadow: var(--shadow);
}

.watch-player-card video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}

.video-quality {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.65rem;
  padding: 0.5rem 1rem 1rem;
}

.video-quality a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.video-quality [aria-current="true"] {
  font-weight: 700;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.video-quality small {
  flex-basis: 100%;
}

.watch-title-card,
.watch-notes-card {
  padding: 1rem;
}

.watch-title-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.watch-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.watch-meta div {
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 0.85rem;
  padding: 0.75rem;
  background: rgb(255 255 255 / 5%);
}

.watch-meta dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-meta dd {
  margin: 0.2rem 0 0;
  font-weight: 800;
}

.watch-test-action {
  margin: 1rem 0 0;
}

.comment-form,
.reply-form,
.edit-comment-form,
.delete-comment-form {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0;
}

.comment-form textarea,
.reply-form textarea,
.edit-comment-form textarea {
  width: 100%;
}

.comment-picture-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.comment-picture-control input[type="file"] {
  width: min(100%, 20rem);
  padding: 0.45rem;
}

.comment-picture {
  display: grid;
  justify-items: start;
  margin: 0.75rem 0 0;
}

.comment-picture a {
  display: inline-grid;
  max-width: 100%;
}

.comment-picture img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 22rem;
  object-fit: contain;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0.85rem;
  background: #05070c;
}

.comments-list,
.comment-replies {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.25rem;
}

.comment article {
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 0.85rem;
  padding: 0.75rem;
  background: rgb(255 255 255 / 4%);
}

.video-test-card h1 {
  margin-top: 0;
}

.test-submission-list {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.25rem;
}

.test-submission-list li,
.inline-score-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.status-pass {
  color: #74f0a7;
  font-weight: 800;
}

.status-fail {
  color: #ff9b8f;
  font-weight: 800;
}

.tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.tag-list li {
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgb(255 255 255 / 6%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coach-notes-page {
  display: grid;
  gap: 1rem;
  width: min(100%, 72rem);
  margin: 0 auto;
}

.coach-notes-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.coach-notes-header h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.coach-notes-header .eyebrow,
.coach-notes-summary {
  margin: 0;
}

.coach-notes-summary {
  color: var(--muted);
  white-space: nowrap;
}

.coach-notes-summary strong {
  color: var(--text);
}

.coach-notes-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.coach-note-filters {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.coach-note-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.45rem;
  padding: 0.45rem 0.7rem;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.coach-note-filter:last-child {
  border-right: 0;
}

.coach-note-filter:hover,
.coach-note-filter:focus,
.coach-note-filter.is-active {
  background: var(--surface-muted);
  color: var(--text);
}

.coach-note-filter.is-active {
  box-shadow: inset 0 -3px var(--accent);
}

.coach-note-filter-count {
  min-width: 1.25rem;
  text-align: center;
  color: var(--text);
  font-size: 0.76rem;
}

.coach-notes-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.coach-notes-search input[type="search"] {
  width: min(17rem, 48vw);
  min-height: 2.45rem;
}

.coach-notes-search a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.coach-note-list {
  display: grid;
  gap: 0.75rem;
}

.coach-note-thread {
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 4px 16px rgb(0 0 0 / 14%);
}

.coach-note-thread.is-unread {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--surface) 94%, var(--accent));
}

.coach-note-thread.is-resolved {
  opacity: 0.82;
}

.coach-note-thread-header,
.coach-note-video-row,
.coach-note-reply-heading,
.coach-note-actions,
.coach-note-reply-options {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.coach-note-thread-header {
  align-items: start;
  justify-content: space-between;
}

.coach-note-author,
.coach-note-meta,
.coach-note-body,
.coach-note-replies p {
  margin: 0;
}

.coach-note-author {
  font-size: 1rem;
  font-weight: 850;
}

.coach-note-meta,
.coach-note-reply-heading {
  color: var(--muted);
  font-size: 0.8rem;
}

.coach-note-statuses {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.coach-note-status {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  font-size: 0.7rem;
  font-weight: 850;
}

.status-unread {
  border-color: #e36d1a;
  color: #ffb27b;
}

.status-reply {
  border-color: #c89a28;
  color: #f6cc62;
}

.status-resolved {
  border-color: #308a63;
  color: #79d9ad;
}

.coach-note-video-row {
  justify-content: space-between;
  border-block: 1px solid var(--border);
  padding: 0.55rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.coach-note-video-row a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.coach-note-video-row a:hover,
.coach-note-video-row a:focus,
.coach-note-actions a:hover,
.coach-note-actions a:focus {
  color: var(--accent-2);
  text-decoration: underline;
}

.coach-note-video-row a span {
  margin-left: 0.35rem;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.coach-note-body {
  overflow-wrap: anywhere;
}

.coach-note-image {
  display: inline-grid;
  justify-self: start;
}

.coach-note-image img {
  display: block;
  width: auto;
  max-width: min(100%, 24rem);
  max-height: 18rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  object-fit: contain;
}

.coach-note-replies {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--border);
  list-style: none;
}

.coach-note-replies li {
  display: grid;
  gap: 0.3rem;
}

.coach-note-reply-heading strong {
  color: var(--text);
}

.coach-note-reply-heading a {
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.coach-note-actions {
  padding-top: 0.25rem;
}

.coach-note-actions form {
  margin: 0;
}

.coach-note-actions button,
.coach-note-actions a {
  min-height: 2.1rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 750;
}

.coach-note-actions a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.coach-note-reply-form {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.coach-note-reply-form > label {
  font-size: 0.82rem;
  font-weight: 800;
}

.coach-note-reply-form textarea {
  width: 100%;
  resize: vertical;
}

.coach-note-reply-options label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.coach-note-reply-options input[type="file"] {
  max-width: 15rem;
}

.coach-note-reply-options input[type="number"] {
  width: 6.5rem;
}

.coach-note-reply-options .button-primary {
  margin-left: auto;
}

.coach-notes-empty {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
}

.coach-notes-empty h2,
.coach-notes-empty p {
  margin: 0;
}

.coach-notes-empty h2 {
  color: var(--text);
  font-size: 1.15rem;
}

.coach-notes-empty p {
  margin-top: 0.25rem;
}

@media (max-width: 980px) {
  .page-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .page-alert .button {
    align-self: start;
  }

  .login-field {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .login-actions {
    justify-content: space-between;
    gap: 1rem;
  }

  .watch-layout,
  .watch-meta {
    grid-template-columns: 1fr;
  }

  .coach-notes-header {
    align-items: start;
    flex-direction: column;
  }

  .coach-notes-controls,
  .coach-notes-search {
    align-items: stretch;
    width: 100%;
  }

  .coach-note-filters {
    width: 100%;
  }

  .coach-note-filter {
    flex: 1 0 auto;
    justify-content: center;
  }

  .coach-notes-search input[type="search"] {
    width: 100%;
    min-width: 0;
  }

  .coach-note-video-row {
    align-items: start;
    flex-direction: column;
  }

  .coach-note-reply-options .button-primary {
    margin-left: 0;
  }

  .notification-panel {
    position: fixed;
    top: 4.5rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-height: calc(100vh - 5.25rem);
  }

}

/* Keep the coach's sequence easy to follow on touch screens. */
.video-sequence-label { color: var(--text); font-size: .85rem; letter-spacing: .02em; }
.video-order-guide { color: var(--muted); line-height: 1.5; }
.watch-sequence { padding: 1rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); }
.watch-sequence > p { margin: 0 0 .75rem; }
.watch-sequence-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.watch-sequence-links > a { flex: 1 1 180px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem; min-width: 0; min-height: 56px; white-space: normal; }
.watch-sequence-links strong { overflow-wrap: anywhere; }
.video-sequence-end { margin: 0; padding: .5rem 0; }
/* Native touch scrolling with a finite, snapping video strip. */
.video-carousel { min-width: 0; max-width: 100%; }
.video-library .video-sequence { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 42rem); gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .3rem 0 .75rem; }
.video-sequence .video-card { min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.video-sequence .video-thumb, .video-sequence .court-thumb { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; }
.video-sequence .video-card-body { min-width: 0; }
.video-sequence .video-title { font-size: 1.1rem; overflow-wrap: anywhere; }
.video-sequence:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.video-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.video-carousel-controls[hidden] { display: none; }
.video-carousel-controls button { min-height: 44px; }
.video-carousel-controls span { color: var(--muted); font-size: .85rem; text-align: center; }
.video-carousel-controls button:disabled { opacity: .4; cursor: default; }
@media (max-width: 480px) {
 .video-sequence .video-card-body { padding: .75rem; }
 .video-carousel-controls span { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
 .video-library .video-sequence { scroll-behavior: auto; }
}

/* ==========================================================================
   2026-10 UX clean-up: spacing scale, slim header, bottom nav, profile,
   pricing. Appended last so it refines earlier rules without rewriting them.
   ========================================================================== */
:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --radius: 0.9rem;
  --tap: 44px;
  --bottom-nav-height: 64px;
}

/* Visible keyboard focus everywhere. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.button,
button {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-decoration: none;
  font-weight: 600;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-4);
}

.card h2 { margin: 0 0 var(--space-3); font-size: 1.1rem; }
.muted { color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Slim header: logo, bell, theme. */
.site-header {
  padding: var(--space-2) clamp(var(--space-4), 3vw, var(--space-6));
  padding-top: max(var(--space-2), env(safe-area-inset-top));
  gap: var(--space-2);
  flex-wrap: nowrap;
}
.header-top-row { flex: 0 1 auto; width: auto; }
.team-brand,
.team-brand-customized { height: auto; min-height: 0; }
.team-header-logo { max-height: 2.75rem; max-width: 10rem; }
.team-header-text { max-width: 12rem; }
.notification-bell,
.theme-toggle { min-width: var(--tap); min-height: var(--tap); }
.theme-toggle { padding: 0.4rem 0.7rem; }

/* Desktop: one compact row of links beside the logo. */
.site-nav {
  order: 1;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.site-nav a {
  min-height: 40px;
  border-color: transparent;
  background: transparent;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.site-nav a:hover { color: var(--text); background: var(--surface-muted); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-muted);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.site-nav .site-nav-profile { border-color: var(--border); color: var(--text); }
.header-top-row .header-actions { order: 2; }
.site-header > .header-top-row { order: 0; }

/* Bottom navigation for phones and tablets (incl. Fire / Silk). */
.bottom-nav { display: none; }

@media (max-width: 1023px), (pointer: coarse) {
  .site-header .site-nav:not(.site-nav-public) { display: none; }
  .site-header { justify-content: space-between; }
  .header-top-row { flex: 1 1 auto; width: 100%; }
  .theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom)); }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgb(0 0 0 / 30%);
  }
  .bottom-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: var(--bottom-nav-height);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
  }
  .bottom-nav svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .bottom-nav a[aria-current="page"] { color: var(--accent); }
  .bottom-nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
  }
  .bottom-nav a:focus-visible { outline-offset: -3px; }
  .bottom-nav-badge {
    position: absolute;
    top: 6px;
    left: calc(50% + 8px);
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 0.68rem;
    line-height: 1.15rem;
    text-align: center;
  }
}

.site-main { margin-top: var(--space-4); margin-bottom: var(--space-6); }

/* Library / category: videos first. */
.video-library { display: grid; gap: var(--space-4); }
.library-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); }
.library-header h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.library-header h1.library-heading-compact { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.library-header .category-breadcrumbs { margin: 0; font-size: 1rem; }
.library-header .category-breadcrumbs a,
.library-header .category-breadcrumbs span[aria-current] { display: inline-flex; align-items: center; min-height: var(--tap); }
.library-header .category-breadcrumbs span[aria-current] { color: var(--text); font-weight: 800; }
.video-library .section-heading-row { align-items: center; }
.video-library .section-heading-row h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
.video-library .category-tile { min-height: 5.5rem; }

.how-it-works {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}
.how-it-works summary {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-4);
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}
.how-it-works[open] summary { color: var(--text); }
.how-it-works > :not(summary) { margin: 0; padding: 0 var(--space-4) var(--space-4); }
.how-it-works dt { font-weight: 700; margin-top: var(--space-3); }
.how-it-works dd { margin: 0; color: var(--muted); }

/* Home. */
.home-screen { gap: var(--space-4); }
.home-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.home-header h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.home-quick-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.home-video-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.home-video-block h2 { font-size: 1.05rem; }

/* Login: pricing link. */
.login-trial-link a { color: var(--accent); font-weight: 700; }
.login-trial-link { font-size: 1rem; }

/* Profile. */
.profile-page { display: grid; gap: var(--space-4); width: min(100%, 64rem); margin: 0 auto; }
.profile-hero { display: flex; align-items: center; gap: var(--space-4); }
.profile-hero h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.1; }
.profile-meta { margin: var(--space-1) 0 0; color: var(--muted); }
.profile-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 1.5rem;
  font-weight: 900;
}
.profile-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin: 0 0 var(--space-4); }
.profile-stats dt { color: var(--muted); font-size: 0.85rem; }
.profile-stats dd { margin: 0; font-size: 1.5rem; font-weight: 800; }
.profile-team-list,
.profile-link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.profile-team-list li { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); }
.profile-team-list img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.profile-link-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--space-2); }
.profile-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--surface-muted);
  text-decoration: none;
  font-weight: 600;
}
.profile-link-list a::after { content: "›"; color: var(--muted); font-size: 1.2rem; }
.profile-link-list a:hover { border-color: var(--accent); }
.profile-page .team-switcher { display: grid; gap: var(--space-1); margin-top: var(--space-3); }
.profile-page .team-switcher select { max-width: none; min-height: var(--tap); border-radius: 0.6rem; }
.profile-logout { display: flex; justify-content: center; }
.profile-logout .button { min-width: 10rem; }

/* Pricing. */
.pricing-page { display: grid; gap: var(--space-5); width: min(100%, 60rem); margin: 0 auto; }
.pricing-hero { text-align: center; }
.pricing-hero h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.1; }
.pricing-lede { margin: var(--space-3) auto 0; max-width: 36rem; color: var(--muted); font-size: 1.05rem; }
.pricing-plans { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pricing-plan { position: relative; display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); }
.pricing-plan h2 { margin: 0; }
.pricing-plan p { margin: 0; }
.pricing-plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.pricing-badge { position: absolute; top: var(--space-4); right: var(--space-4); }
.pricing-price { display: flex; align-items: baseline; gap: var(--space-2); }
.pricing-amount { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.03em; }
.pricing-period { color: var(--muted); }
.pricing-plan .button { margin-top: var(--space-3); }
.table-scroll { overflow-x: auto; }
.pricing-matrix { width: 100%; border-collapse: collapse; min-width: 30rem; }
.pricing-matrix th,
.pricing-matrix td { padding: var(--space-3); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.pricing-matrix thead th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-matrix tbody th { font-weight: 600; }
.pricing-matrix .check { color: var(--accent); font-weight: 900; font-size: 1.1rem; }
.pricing-contact p { margin: 0 0 var(--space-3); color: var(--muted); }

/* Coach page guides start collapsed; tidy the summary. */
.coach-tool-guide:not([open]) { margin-bottom: var(--space-3); }

@media (max-width: 480px) {
  .site-main { width: calc(100% - 2rem); }
  .pricing-plan { padding: var(--space-4); }
}
.pricing-page > *,
.profile-page > *,
.video-library > * { min-width: 0; }
.video-library .section-heading-row h2 { margin-right: auto; }
.video-carousel-controls button { white-space: nowrap; }
@media (min-width: 1024px) and (pointer: fine) {
  .header-top-row { flex: 0 0 auto; }
  .header-top-row .brand { flex: 0 0 auto; }
  .team-brand-customized { max-width: none; }
  .team-header-text { white-space: nowrap; max-width: none; flex: 0 0 auto; }
  .team-header-logo { flex: 0 0 auto; height: 2.75rem; }
  .header-top-row .brand { min-width: max-content; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-team-switcher select { min-height: var(--tap); max-width: 9.5rem; }
@media (max-width: 480px) {
  .header-team-switcher select { max-width: 6.5rem; }
}
.header-team-switcher { width: auto; }
/* The full-screen playbook editor keeps its own controls; no bottom bar there. */
body.playbook-page .bottom-nav { display: none; }
body.playbook-page.has-bottom-nav { padding-bottom: 0; }
/* Coach/admin tools: on phones and tablets the tool list becomes one
   swipeable row of chips so the tool itself is on the first screen. */
@media (max-width: 1023px), (pointer: coarse) {
  .admin-dashboard-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-dashboard-shell > * { min-width: 0; max-width: 100%; }
  .admin-sidebar { padding: var(--space-2) 0; border: 0; background: transparent; box-shadow: none; }
  .admin-sidebar h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .admin-sidebar ul { display: flex; gap: var(--space-2); margin: 0; padding: 0 0 var(--space-1); list-style: none; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .admin-sidebar li { flex: 0 0 auto; margin: 0; }
  .admin-sidebar a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: 999px; background: var(--surface-muted); text-decoration: none; font-weight: 600; }
}
