
#section-overview .hang-path__meta,
.hang-path__meta {
  display: none !important;
}
#section-overview .featured-hang-aside-insight,
#section-overview .featured-hang-aside-compare {
  display: none !important;
}
/* Dashboard overview + sidebar enhancements
   Brand language: glow + gradient depth (not hard outlines / identical ovals).
   Gold primary, bronze secondary, soft purple for path/progress. */

/* Overview · open ambient field (no section outline box) */
#section-overview {
  position: relative;
  border: none !important;
  outline: none !important;
  border-radius: 0;
  padding: 4px 0 12px;
  margin: 0;
  box-sizing: border-box;
  background: transparent;
  box-shadow: none;
}
/* Author display:flex on #section-overview was beating [hidden] and keeping Overview on screen */
.content-section[hidden],
#section-overview[hidden],
#section-training-log[hidden],
#section-leaderboard[hidden],
#section-monthly-challenges[hidden],
#section-your-gym[hidden],
#section-history[hidden],
#section-progress[hidden],
#section-achievements[hidden],
#section-settings[hidden],
#section-calculator[hidden] {
  display: none !important;
}
#section-overview::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: -28px -8% auto -4%;
  height: min(48vh, 460px);
  z-index: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(212, 175, 55, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 55% 60% at 92% 10%, rgba(168, 85, 247, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 45% 50% at 50% 40%, rgba(205, 127, 50, 0.05) 0%, transparent 60%);
  filter: blur(2px);
}
#section-overview > * {
  position: relative;
  z-index: 1;
}

/*
 * Overview panels: soft glow ONLY (no 1px ring, no inset edge, no outline).
 * Distinct sections come from gradient wash + ambient light, not hard breaks.
 */
#section-overview .card,
#section-overview .overview-pro-card,
#section-overview .activity-feed,
#section-overview .overview-achievements-card,
#section-overview .tier-progress-section,
#section-overview .overview-share-nudge,
#section-overview .featured-hang-path-panel,
#section-overview .featured-hang-aside,
#section-overview .stat-card,
#section-overview .overview-empty-state,
#section-overview .challenges-panel,
#section-overview .hang-path,
#section-overview .overview-pro-stat,
#section-overview .featured-hang-video-frame,
#section-overview .hang-video-slide-frame {
  border: 0 !important;
  border-width: 0 !important;
  outline: none !important;
  outline-width: 0 !important;
}

#section-overview .card,
#section-overview .overview-pro-card,
#section-overview .activity-feed,
#section-overview .overview-achievements-card,
#section-overview .tier-progress-section,
#section-overview .overview-share-nudge,
#section-overview .featured-hang-path-panel,
#section-overview .featured-hang-aside,
#section-overview .stat-card,
#section-overview .overview-empty-state,
#section-overview .challenges-panel {
  background:
    radial-gradient(ellipse 100% 80% at 8% 0%, rgba(212, 175, 55, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 100% 100%, rgba(205, 127, 50, 0.07) 0%, transparent 50%),
    linear-gradient(165deg, rgba(20, 20, 22, 0.88) 0%, rgba(9, 9, 11, 0.92) 100%);
  /* Diffuse glow only · no hairline edge */
  box-shadow:
    0 0 40px rgba(212, 175, 55, 0.1),
    0 20px 48px rgba(0, 0, 0, 0.32) !important;
}

/* Shape + glow variety */
#section-overview .stat-card {
  border-radius: 16px;
}
#section-overview .stat-card--hero {
  border-radius: 18px;
  box-shadow:
    0 0 48px rgba(212, 175, 55, 0.14),
    0 22px 50px rgba(0, 0, 0, 0.36) !important;
}
#section-overview .stat-card--rail {
  border-radius: 14px;
  box-shadow:
    0 0 28px rgba(212, 175, 55, 0.07),
    0 14px 32px rgba(0, 0, 0, 0.28) !important;
}
#section-overview .featured-hang-aside {
  border-radius: 18px;
  box-shadow:
    0 0 44px rgba(212, 175, 55, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.34) !important;
}
/* Nested journal inherits path panel chrome; no separate card shell */
#section-overview .featured-hang-path-panel .featured-hang-journal,
#section-overview .featured-hang-journal {
  border-radius: 0;
  box-shadow: none !important;
  background: transparent !important;
}
#section-overview .featured-hang-path-panel {
  --hp-from: #9a9ea6;
  --hp-to: #6ee0a0;
  --hp-from-glow: rgba(154, 158, 166, 0.35);
  --hp-to-glow: rgba(110, 224, 160, 0.4);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 95% 75% at 0% 0%, color-mix(in srgb, var(--hp-from) 16%, transparent) 0%, transparent 52%),
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--hp-to) 16%, transparent) 0%, transparent 52%),
    linear-gradient(160deg, rgba(16, 14, 22, 0.9) 0%, rgba(7, 7, 10, 0.94) 100%) !important;
  box-shadow:
    0 0 48px color-mix(in srgb, var(--hp-to) 18%, transparent),
    0 18px 44px rgba(0, 0, 0, 0.34) !important;
}
#section-overview .tier-progress-section,
#section-overview .tier-progress-section.overview-tier-progress {
  border-radius: 14px;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(212, 175, 55, 0.08) 0%, transparent 52%),
    linear-gradient(160deg, rgba(16, 14, 20, 0.9) 0%, rgba(7, 7, 10, 0.94) 100%) !important;
  box-shadow:
    0 0 40px rgba(168, 85, 247, 0.12),
    0 14px 36px rgba(0, 0, 0, 0.3) !important;
}
#section-overview .overview-share-nudge {
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 90% at 0% 0%, rgba(212, 175, 55, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(205, 127, 50, 0.1) 0%, transparent 50%),
    linear-gradient(145deg, rgba(28, 22, 10, 0.9) 0%, rgba(10, 9, 8, 0.94) 100%) !important;
  box-shadow:
    0 0 52px rgba(212, 175, 55, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.32) !important;
}
#section-overview .overview-pro-card,
#section-overview .overview-achievements-card,
#section-overview .activity-feed,
#section-overview .challenges-panel {
  border-radius: 18px;
}
#section-overview .card {
  border-radius: 16px;
}

/* Kill any inherited card border from dashboard.css / premium */
#section-overview .card.card,
#section-overview .stat-card.stat-card {
  border-color: transparent !important;
  border-style: none !important;
}

/* Welcome / hero: no card border */
#section-overview .overview-hero.welcome-banner {
  border: none;
  border-left: none;
  box-shadow: none;
  background: transparent;
  padding: 0 0 20px;
  margin-bottom: 8px;
  overflow: visible;
  border-radius: 0;
}

#section-overview .welcome-eyebrow {
  padding-left: 3px;
  letter-spacing: 1.5px;
  line-height: 1.45;
}

#section-overview .overview-hero.welcome-banner::after {
  display: none;
}

/* OVERVIEW_METRICS_BENTO */
/* Hero Best Hang + Grip Age; compact rail for the rest */
#section-overview .stats-grid {
  margin-top: 4px;
  margin-bottom: 10px;
}
#section-overview .tier-progress-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#section-overview .featured-hang-video-card + .overview-share-nudge,
#section-overview .featured-hang-video-card + .stats-grid,
#section-overview .featured-hang-empty + .stats-grid {
  margin-top: 0;
}

#section-overview .stats-grid--product.stats-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "best best grip grip"
    "streak days subs verified";
  gap: 12px;
}

#section-overview .stats-bento .stat-card[data-stat="besthang"] { grid-area: best; }
#section-overview .stats-bento .stat-card[data-stat="gripage"] { grid-area: grip; }
#section-overview .stats-bento .stat-card[data-stat="streak"] { grid-area: streak; }
#section-overview .stats-bento .stat-card[data-stat="days"] { grid-area: days; }
#section-overview .stats-bento .stat-card[data-stat="submissions"] { grid-area: subs; }
#section-overview .stats-bento .stat-card[data-stat="verified"] { grid-area: verified; }

#section-overview .stat-card {
  border: none !important;
  padding: 16px 16px 14px;
  min-height: 0;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#section-overview .stat-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 56px rgba(212, 175, 55, 0.18),
    0 20px 48px rgba(0, 0, 0, 0.36) !important;
}

/* Soft top wash · no hard hairline */
#section-overview .stat-card::before {
  display: block;
  opacity: 0.65;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
  border: none !important;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

#section-overview .stat-card--hero {
  min-height: 132px;
  padding: 20px 20px 18px;
  flex-direction: column;
  justify-content: space-between;
}

#section-overview .stat-card--hero .stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 8px;
}

#section-overview .stat-card--hero .stat-card-value {
  font-size: clamp(2rem, 3.2vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

#section-overview .stat-card--rail {
  min-height: 88px;
  padding: 14px 14px 12px;
  flex-direction: column;
}

#section-overview .stat-card--rail .stat-card-icon {
  display: none;
}

#section-overview .stat-card--rail .stat-card-value {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

#section-overview .stat-card--primary {
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, rgba(22, 20, 14, 0.98) 0%, rgba(12, 11, 8, 0.99) 100%);
  border-color: rgba(212, 175, 55, 0.24);
}

#section-overview .stat-card--primary:hover {
  border-color: rgba(212, 175, 55, 0.38);
}

#section-overview .stat-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1;
  width: 100%;
}

#section-overview .stat-card-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a0a0a0;
  margin-bottom: 4px;
  line-height: 1.3;
  white-space: nowrap;
}

#section-overview .stat-card-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #f4f4f4;
  white-space: nowrap;
}

#section-overview .stat-card--primary .stat-card-value {
  color: var(--gold);
}
#section-overview .stat-card--primary[data-stat="gripage"].stat-tone--younger .stat-card-value {
  color: #f59e0b !important;
}
#section-overview .stat-card--primary[data-stat="gripage"]:not(.stat-tone--younger) .stat-card-value {
  color: #f4f4f4;
}

#section-overview .stat-card--hero .stat-card-value {
  font-size: clamp(2rem, 3.2vw, 2.55rem);
  line-height: 1.05;
}

#section-overview .stat-card-unit {
  display: block;
  margin-left: 0;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: #9ca3af;
  white-space: normal;
}

#section-overview .stat-card[data-stat="days"] .stat-card-value {
  color: #f4f4f4;
}

/* Match top-10 leaderboard hang times (.time): Oswald + tabular nums, Oswald display */
#section-overview .stat-card[data-stat="besthang"] .stat-card-value,
#section-overview .stat-card[data-stat="besthang"] .stat-card-value.mono {
  font-family: 'Oswald', var(--font-heading), sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* Grip Age value color comes from tone classes (orange when younger) */
#section-overview .stat-card[data-stat="gripage"] .stat-card-value {
  color: #f4f4f4;
}

#section-overview .stat-card[data-stat="submissions"] .stat-card-value {
  font-variant-numeric: tabular-nums;
}

#section-overview .stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex-shrink: 0;
}

#section-overview .stat-card-icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  #section-overview .stats-grid--product.stats-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "best grip"
      "streak days"
      "subs verified";
    gap: 10px;
  }
  #section-overview .stat-card--hero {
    min-height: 118px;
    padding: 16px 14px;
  }
  #section-overview .stat-card--hero .stat-card-value {
    font-size: clamp(1.7rem, 6vw, 2.1rem);
  }
}

@media (max-width: 520px) {
  /* Keep Best Hang + Grip Age side by side on phone (same row as tablet) */
  #section-overview .stats-grid--product.stats-bento,
  #section-overview #overviewStatsGrid.stats-bento {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "best grip"
      "streak days"
      "subs verified" !important;
    gap: 8px !important;
  }
  #section-overview .stats-bento .stat-card[data-stat="besthang"] { grid-area: best !important; }
  #section-overview .stats-bento .stat-card[data-stat="gripage"] { grid-area: grip !important; }
  #section-overview .stat-card--hero {
    min-height: 0;
    padding: 12px 10px 11px;
  }
  #section-overview .stat-card--hero .stat-card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    border-radius: 9px;
  }
  #section-overview .stat-card--hero .stat-card-icon svg {
    width: 15px;
    height: 15px;
  }
  #section-overview .stat-card--hero .stat-card-label {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
    white-space: normal;
  }
  #section-overview .stat-card--hero .stat-card-value {
    font-size: clamp(1.45rem, 7.5vw, 1.85rem);
  }
  #section-overview .stat-card--hero .stat-card-unit {
    font-size: 0.7rem;
  }
  /* Compact tier path card under AI coach */
  #section-overview > #featuredHangPathPanel,
  #section-overview > .overview-tier-path-card {
    margin: 0 0 10px;
    padding: 12px 12px 10px;
  }
  #section-overview > #featuredHangPathPanel .hang-path__kicker {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }
  #section-overview > #featuredHangPathPanel .hang-path__tier-name {
    font-size: 1.05rem;
  }
  #section-overview > #featuredHangPathPanel .hang-path__track {
    height: 11px;
  }
  #section-overview > #featuredHangPathPanel .hang-path__need {
    font-size: 1.05rem;
  }
  #section-overview > #featuredHangPathPanel .hang-path__meta {
    font-size: 0.78rem;
  }
  #section-overview > #featuredHangPathPanel #aiPrPathCoach {
    margin-top: 8px;
  }
}

/* Sidebar nav groups (Linear-style) */
.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-nav-label {
  display: block;
  padding: 6px 14px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  user-select: none;
}

body.sidebar-collapsed .sidebar-nav-label {
  display: none;
}

body.sidebar-collapsed .sidebar-nav-group {
  margin-top: 6px;
  padding-top: 6px;
}

/* Calculator honesty note */
.calc-honesty-note {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--text-dim, #9ca3af);
  line-height: 1.45;
}

.calc-honesty-note.is-warning {
  color: #fbbf24;
}

.calc-required {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  margin-left: 6px;
}

/* Lightweight empty / skeleton placeholders in sections */
.section-empty-skeleton {
  display: grid;
  gap: 10px;
  padding: 8px 0 4px;
}

.section-empty-skeleton .skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: wdhc-skel 1.4s ease-in-out infinite;
}

.section-empty-skeleton .skeleton-block {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: wdhc-skel 1.4s ease-in-out infinite;
}

@keyframes wdhc-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Tier progress under metrics · full content width, gradient panel */
.overview-tier-progress {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: clamp(16px, 2.4vw, 22px) clamp(16px, 2.6vw, 26px);
  border: none !important;
}

.overview-tier-progress .tier-progress-bar-wrap {
  width: 100%;
  gap: clamp(10px, 1.5vw, 16px);
}

.overview-tier-progress .tier-progress-bar {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: clamp(8px, 1.1vw, 12px);
  background: rgba(255, 255, 255, 0.06);
}

.overview-tier-progress .tier-progress-fill {
  background: var(--tier-progress-color, var(--gold));
  box-shadow: 0 0 12px color-mix(in srgb, var(--tier-progress-color, var(--gold)) 45%, transparent);
}

.overview-tier-progress .tier-progress-next-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

.tier-progress-next-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Pro qualification card · gradient only, no border */
.overview-pro-card {
  margin-bottom: 20px;
  padding: 22px 24px;
  border: none !important;
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(212, 175, 55, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    linear-gradient(145deg, rgba(24, 18, 8, 0.96) 0%, rgba(8, 8, 10, 0.99) 60%) !important;
}

.overview-pro-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.overview-pro-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.overview-pro-card-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.overview-pro-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.overview-pro-stat {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-pro-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.overview-pro-stat-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.overview-pro-card-note {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.overview-pro-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.overview-pro-link:hover {
  text-decoration: underline;
}

.overview-pro-founding {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-transform: uppercase;
}

.overview-pro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.overview-pro-card--qualified {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.08);
}

.btn-outline--gold {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold);
}

@media (max-width: 768px) {
  .overview-pro-card-stats {
    grid-template-columns: 1fr;
  }
}

#section-overview .stat-card-label {
  font-family: var(--font-heading);
}



/* Sidebar Grip Age meta */
.sidebar-qs-meta {
  display: block;
  font-size: 0.65rem;
  color: #888;
  margin-top: 2px;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* Submit hang stepper */
.submit-stepper {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.submit-step {
  flex: 1;
  min-width: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #999;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-step span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
}

.submit-step.is-active {
  border-color: rgba(212, 175, 55, 0.45);
  color: #f0d878;
  background: rgba(212, 175, 55, 0.1);
}

.submit-step.is-done {
  border-color: rgba(110, 207, 138, 0.35);
  color: #9ed9b0;
}

.submit-step-panel[hidden] { display: none !important; }

.submit-step-nav {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.submit-step-nav .btn-primary,
.submit-step-nav .btn-outline {
  flex: 1;
}

/* Leaderboard around-you */
.portal-lb-mode {
  display: flex;
  gap: 6px;
}

.portal-lb-you-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

tr.portal-lb-you {
  background: rgba(212, 175, 55, 0.1) !important;
}

/* Settings */
.settings-section-label {
  margin: 0 0 12px;
  font-family: var(--font-heading, Oswald, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
}

.settings-account-card {
  padding: 18px 20px;
}

.settings-account-line {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #e8e8e8;
  font-weight: 600;
}

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

.progress-insight {
  margin: 10px 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
  color: #c8c8c8;
  line-height: 1.45;
  padding: 8px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.06);
  border-radius: 0 8px 8px 0;
}

.overview-more-details {
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 0;
}

.overview-more-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  color: #bbb;
  letter-spacing: 0.3px;
}

.overview-more-summary::-webkit-details-marker { display: none; }

.overview-more-details[open] .overview-more-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-more-details .overview-secondary-grid {
  padding: 16px;
  margin: 0;
}

/* Training Log page shell: sessions left, hang timer in the right rail */
#section-training-log {
  max-width: none;
  width: 100%;
}
#section-training-log .tl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px 20px;
  align-items: start;
}
#section-training-log .tl-layout-main {
  min-width: 0;
}
#section-training-log .tl-layout-rail {
  min-width: 0;
  position: sticky;
  top: 24px;
}
@media (max-width: 899px) {
  #section-training-log .tl-layout {
    grid-template-columns: 1fr;
  }
  #section-training-log .tl-layout-rail {
    position: static;
    order: -1;
  }
  #section-training-log .tl-layout-main {
    order: 1;
  }
}

#section-training-log .tl-page-header {
  margin-bottom: 18px;
  align-items: flex-start;
  gap: 12px 16px;
}

#section-training-log .tl-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#section-training-log .tl-week-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 55%),
    linear-gradient(165deg, rgba(18, 18, 20, 0.98) 0%, rgba(8, 8, 10, 0.99) 100%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

#section-training-log .tl-week-item {
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  gap: 4px;
}

#section-training-log .tl-week-item:last-child {
  border-right: none;
}

#section-training-log .tl-week-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #b8b8b8 !important;
}

#section-training-log .tl-week-value {
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  color: #f4f4f4;
}

#section-training-log .tl-week-sub {
  font-size: 0.78rem;
  color: #b0b0b0 !important;
}

#section-training-log .tl-stats-grid {
  margin-bottom: 18px;
  gap: 12px;
}

#section-training-log .tl-stats-grid .stat-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(16, 16, 18, 0.96) 0%, rgba(9, 9, 11, 0.98) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

#section-training-log .tl-stats-grid .stat-card:hover {
  border-color: rgba(212, 175, 55, 0.22);
}

#section-training-log .tl-stats-grid .stat-card-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#section-training-log .tl-sessions-panel {
  margin-bottom: 16px;
}

.tl-sessions-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 4px 0 12px;
}

#section-training-log .tl-sessions-header .section-title-sm {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8e8e8;
}

#section-training-log .tl-filter-bar--inline {
  margin-top: 0;
  gap: 6px 10px;
}

#section-training-log .tl-filter-select {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #e8e8e8;
  font-size: 0.85rem;
}

#section-training-log .tl-filter-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8b8b8 !important;
}

.tl-session-list {
  margin-bottom: 0;
}

.tl-session-loading {
  padding: 32px 18px;
  text-align: center;
  color: #c0c0c0;
  font-size: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 12, 14, 0.9);
}

.tl-session-list--filled {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 0;
  border: none;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

#section-training-log .tl-week-group {
  margin-bottom: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: linear-gradient(165deg, rgba(16, 16, 18, 0.98) 0%, rgba(8, 8, 10, 0.99) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

#section-training-log .tl-week-group + .tl-week-group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#section-training-log .tl-week-group-title {
  margin: 0;
  padding: 10px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8b8b8 !important;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tl-session-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0;
  transition: background 0.15s ease;
}

.tl-session-row:last-child { border-bottom: none; }

.tl-session-row:hover {
  background: rgba(255, 255, 255, 0.028);
}

.tl-session-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding: 14px 16px 12px;
}

.tl-session-time {
  font-family: 'Oswald', 'Arial Narrow', var(--font-heading), sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  padding-top: 1px;
}

.tl-session-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tl-session-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tl-session-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.tl-session-variation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f2f2f2;
  line-height: 1.3;
}

.tl-session-sub {
  font-size: 0.8rem;
  color: #b4b4b4;
  line-height: 1.35;
  white-space: normal;
}

.tl-session-holds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  line-height: 1.2;
  text-align: left;
}

.tl-set-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d8d8d8;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.tl-set-chip--summary {
  border-color: rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.08);
  color: #f0d78c;
}

.tl-set-chip--best {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold, #d4af37);
  background: rgba(212, 175, 55, 0.1);
}

.tl-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.tl-session-row:hover .tl-session-actions,
.tl-session-row:focus-within .tl-session-actions {
  opacity: 1;
}

.tl-action-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #c4c4c4;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.tl-action-btn:hover {
  color: #f0f0f0;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.tl-action-btn--accent {
  border-color: rgba(212, 175, 55, 0.28);
  color: #e8d48a;
}

.tl-action-btn--accent:hover {
  border-color: rgba(212, 175, 55, 0.5);
  color: #f5e6a8;
  background: rgba(212, 175, 55, 0.1);
}

.tl-action-btn--danger:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}

.tl-session-notes {
  margin: 0;
  padding: 0 16px 12px 86px;
  font-size: 0.85rem;
  color: #c0c0c0;
  line-height: 1.45;
}

#section-training-log .tl-badge {
  margin-left: 0;
}

#section-training-log .tl-badge-pr {
  font-size: 0.62rem;
  padding: 2px 7px;
}

.tl-empty-state {
  text-align: center;
  padding: 36px 20px;
  margin: 8px 0 16px;
  border-radius: 16px;
  border: 1px dashed rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    rgba(12, 12, 14, 0.9);
}

.tl-empty-state h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #f0f0f0;
}

.tl-empty-state p {
  margin: 0 0 18px;
  color: #c0c0c0;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.tl-empty-rich {
  padding: 28px 16px;
  text-align: center;
}

.tl-empty-rich .overview-empty-title {
  margin: 0 0 6px;
  color: #ececec;
}

.tl-empty-rich .overview-empty-copy {
  margin: 0;
  color: #b8b8b8;
}

.tl-insights-details {
  margin-top: 4px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(16, 16, 18, 0.98) 0%, rgba(8, 8, 10, 0.99) 100%);
  overflow: hidden;
}

.tl-insights-summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-family: var(--font-heading, Oswald, sans-serif);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d8d8d8;
  transition: color 0.15s ease, background 0.15s ease;
}

.tl-insights-summary::-webkit-details-marker { display: none; }

.tl-insights-summary:hover {
  color: #f0d78c;
  background: rgba(212, 175, 55, 0.04);
}

.tl-insights-details[open] .tl-insights-summary {
  color: var(--gold, #D4AF37);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0;
  background: rgba(212, 175, 55, 0.05);
}

.tl-insights-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#section-training-log .tl-heatmap-card {
  margin-bottom: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

#section-training-log .tl-charts-grid {
  margin-bottom: 0;
}

.tl-plans-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tl-plans-header .section-title-sm {
  margin: 0 0 4px;
}

.tl-plans-header .section-subtitle {
  margin: 0;
  max-width: 42ch;
}

.tl-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

@media (max-width: 700px) {
  #section-training-log .tl-week-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #section-training-log .tl-week-item:nth-child(2n) {
    border-right: none;
  }
  #section-training-log .tl-week-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* Shared high-end section chrome */
#section-training-log .section-title,
#section-history .section-title,
#section-achievements .section-title,
#section-progress .section-title,
#section-settings .section-title,
#section-leaderboard .section-title,
#section-your-gym .section-title,
#section-monthly-challenges .section-title {
  letter-spacing: 0.02em;
}

/* Readable secondary copy sitewide on dashboard sections */
#section-history .section-subtitle,
#section-progress .section-subtitle,
#section-settings .section-subtitle,
#section-leaderboard .section-subtitle,
#section-your-gym .section-subtitle,
#section-monthly-challenges .section-subtitle,
#section-achievements .section-subtitle,
#section-calculator .section-subtitle,
.settings-account-line,
.email-pref-desc,
.email-pref-note,
.progress-insight,
.overview-achievements-sub {
  color: #c8c8c8 !important;
}

.settings-card {
  margin-top: 16px;
}
.settings-card-row {
  margin-top: 16px;
}

.progress-empty {
  text-align: center;
  padding: 28px 20px;
  margin-bottom: 16px;
}
.progress-empty .overview-empty-title {
  margin: 0 0 8px;
}
.progress-empty .overview-empty-copy {
  margin: 0 0 16px;
  color: #c8c8c8;
}

/* Hide dead compact tier bar if ever re-shown */
#tierProgressSection[hidden] {
  display: none !important;
}

/* Mobile hang path: keep stack badge, tighten path text */
@media (max-width: 900px) {
  .featured-hang-path-panel .hang-path__kicker,
  .featured-hang-path-panel .hang-path__tiers {
    padding-right: 0;
  }
  .hang-stack-badge {
    position: static;
    align-self: flex-end;
    margin: 0 0 8px auto;
  }
  .featured-hang-path-panel {
    display: flex;
    flex-direction: column;
  }
  .featured-hang-path-panel .hang-path__tiers {
    margin-bottom: 14px;
  }
  .overview-primary-cta {
    gap: 10px;
  }
  .overview-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Readable secondary copy (was too dim on dark UI) */
#section-training-log .section-subtitle,
#section-history .section-subtitle,
#section-training-log .tl-filter-label,
#section-training-log .stat-card-label,
#section-training-log .tl-week-label,
#section-training-log .tl-week-sub,
#section-training-log .tl-heat-label,
#section-training-log .tl-active-sub,
#section-training-log .tl-active-session span,
#section-training-log .tl-week-group-title {
  color: #c8c8c8 !important;
}

#section-training-log .section-subtitle {
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 48ch;
}

#section-training-log .stat-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8b8b8 !important;
}

#section-training-log .tl-session-variation {
  color: #f0f0f0;
}

#section-training-log .tl-filter-select {
  color: #e8e8e8;
}

@media (max-width: 700px) {
  .tl-session-main {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 2px 10px;
    padding: 12px 12px 10px;
  }
  .tl-session-time { font-size: 1.2rem; }
  .tl-session-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .tl-session-actions {
    opacity: 1;
    justify-content: flex-start;
  }
  .tl-session-notes {
    padding-left: 12px;
  }
}

/* Welcome insight line */
#section-overview .welcome-insight {
  margin: 10px 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #c8c8c8;
  font-weight: 500;
  letter-spacing: 0.01em;
}

#section-overview .welcome-insight:not([hidden]) {
  padding: 8px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.06);
  border-radius: 0 8px 8px 0;
}

/* Primary CTA band */
.overview-primary-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 8px 0 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(10, 10, 10, 0.9) 55%);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.overview-primary-btn {
  min-width: 180px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

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

/* Empty states */
.overview-empty-state {
  text-align: center;
  padding: 28px 20px;
}

.overview-empty-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #eee;
}

.overview-empty-copy {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: #999;
  line-height: 1.5;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.overview-empty-inline {
  list-style: none;
  text-align: center;
  padding: 20px 12px !important;
}

.featured-hang-empty {
  margin-bottom: 16px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  border: none;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 55%),
    linear-gradient(165deg, rgba(16, 16, 18, 0.95), rgba(8, 8, 10, 0.98));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.featured-hang-empty .overview-empty-state {
  padding: 18px 12px;
}

/* Demoted streak as details */
.streak-card--demoted {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.streak-card--demoted > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.streak-card--demoted > summary::-webkit-details-marker { display: none; }

.streak-card--demoted[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.streak-card--demoted .streak-card-body {
  padding: 16px 18px 20px;
}

.overview-secondary-grid {
  margin-top: 8px;
}

.profile-card--compact .profile-edit-link {
  margin-top: 12px;
}

/* Hang history · dense timeline (expand for video) */
.hang-history-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hang-sort-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  font-weight: 600;
}

.hang-sort-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8e8e8;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 32px 8px 12px;
  border-radius: 999px;
  background-image: linear-gradient(45deg, transparent 50%, #D4AF37 50%),
    linear-gradient(135deg, #D4AF37 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.hang-sort-select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
}

.hang-history-list {
  margin-top: 12px;
}

.hang-history-list--filled {
  display: flex;
  flex-direction: column;
  gap: 0;
  background:
    linear-gradient(165deg, rgba(16, 16, 18, 0.98) 0%, rgba(8, 8, 10, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.hang-row.hang-card {
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  box-shadow: none;
  transition: background 0.15s ease;
}

.hang-row.hang-card:last-child {
  border-bottom: none;
}

.hang-row.hang-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: transparent;
  box-shadow: none;
}

.hang-row.is-open {
  background: rgba(212, 175, 55, 0.04);
}

.hang-row.hang-row-highlight {
  background: rgba(212, 175, 55, 0.08);
  box-shadow: inset 3px 0 0 var(--gold, #D4AF37);
}

.hang-row-main {
  display: grid;
  grid-template-columns: minmax(72px, 100px) minmax(0, 1fr) auto auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px 18px;
  min-height: 64px;
}

.hang-row-time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold, #D4AF37);
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hang-row-time-weight {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #c8b56a;
}

.hang-row-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hang-row-type {
  font-size: 0.88rem;
  color: #e0e0e0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hang-row-date {
  font-size: 0.78rem;
  color: #777;
  font-variant-numeric: tabular-nums;
}

.hang-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.hang-row-expand {
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  color: #f0d78c;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hang-row-expand:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
}

.hang-row-novideo {
  font-size: 0.72rem;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hang-row-detail {
  padding: 0 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.hang-card-video {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.hang-card-player {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hang-card-player iframe,
.hang-card-player video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.hang-card-player--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.92rem;
  aspect-ratio: auto;
  min-height: 72px;
  padding: 16px;
}

.hang-card-video--empty {
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.hang-card-no-video {
  margin: 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.hang-card-video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.hang-card-video-host {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  font-weight: 600;
}

.hang-card-notes {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #888;
  line-height: 1.45;
}

/* Overview earned badges strip */
.overview-achievements-card {
  margin-bottom: 18px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    linear-gradient(165deg, rgba(16, 16, 18, 0.98) 0%, rgba(8, 8, 10, 0.99) 100%);
}

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

.overview-achievements-header .card-title {
  margin: 0 0 4px;
}

.overview-achievements-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #888;
}

.overview-achievements-empty {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #777;
}

.overview-ach-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.overview-ach-strip::-webkit-scrollbar {
  height: 4px;
}

.overview-ach-strip::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}

.overview-ach-item {
  flex: 0 0 auto;
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 12px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  overflow: visible;
  transition: transform 0.15s ease;
}

.overview-ach-item:hover {
  border: none;
  transform: translateY(-1px);
}

.overview-ach-item-badge {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
}

.overview-ach-item-badge .ach-art-badge,
.overview-ach-item-badge .ach-badge,
.overview-ach-item-badge .art-badge {
  width: 64px !important;
  max-width: 64px !important;
  margin: 0 !important;
}

.overview-ach-item-badge .ach-art-frame,
.overview-ach-item-badge .ach-art-img,
.overview-ach-item-badge .ach-badge-face,
.overview-ach-item-badge .ach-badge-shield,
.overview-ach-item-badge img {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
}

.overview-ach-item-badge .ach-art-ring {
  display: none !important;
}

.overview-ach-item-name {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: #e8e8e8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.overview-ach-item-tier {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.overview-ach-more {
  flex: 0 0 auto;
  min-width: 72px;
  align-self: stretch;
  border-radius: 14px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: transparent;
  color: #d4af37;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 700px) {
  .hang-row-main {
    grid-template-columns: minmax(64px, 84px) minmax(0, 1fr) auto;
    grid-template-areas:
      "time meta expand"
      "time badges expand";
    gap: 6px 12px;
    padding: 12px 14px;
  }
  .hang-row-time { grid-area: time; font-size: 1.2rem; }
  .hang-row-meta { grid-area: meta; }
  .hang-row-badges { grid-area: badges; justify-content: flex-start; }
  .hang-row-expand,
  .hang-row-novideo { grid-area: expand; }
  .hang-row-detail { padding: 0 14px 14px; }
  .overview-ach-item { width: 92px; }
  .overview-ach-item-badge,
  .overview-ach-item-badge .art-badge,
  .overview-ach-item-badge .ach-badge,
  .overview-ach-item-badge img {
    width: 56px !important;
    height: 56px !important;
  }
}

/* Post-approval share nudge · elevated gold field */
.overview-share-nudge {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: none !important;
  border-radius: 20px;
}
.overview-share-nudge__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}
.overview-share-nudge__eyebrow {
  margin: 0 0 2px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
  font-weight: 700;
}
.overview-share-nudge__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-family: Oswald, "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.overview-share-nudge__copy {
  margin: 0;
  color: #b8b8b8;
  font-size: 0.86rem;
  line-height: 1.4;
  max-width: 32rem;
}
.overview-share-nudge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Featured hang shell · open (no outer border / box) */
#section-overview .featured-hang-video-card.card,
.featured-hang-video-card {
  margin-bottom: 14px;
  padding: 4px 0 6px;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
#section-overview .featured-hang-video-title {
  font-family: Oswald, var(--font-heading), sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
#section-overview .featured-hang-video-sub {
  color: #9a9a9a;
}
/* Video frame · soft gold glow only */
#section-overview .featured-hang-video-frame,
#section-overview .hang-video-slide-frame {
  border: none !important;
  border-radius: 16px !important;
  box-shadow:
    0 0 36px rgba(212, 175, 55, 0.14),
    0 20px 44px rgba(0, 0, 0, 0.48) !important;
}

/* Video | hang stats | wide journal · video leads (bigger than metrics card) */
.featured-hang-layout {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: stretch;
  gap: 14px 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.featured-hang-media-col {
  flex: 0 1 auto;
  width: min(400px, 38vw);
  max-width: 440px;
  min-width: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.featured-hang-layout.is-landscape-media .featured-hang-media-col {
  width: min(54%, 560px);
  max-width: min(560px, 56%);
}
/* Metrics shell · elevated gradient panel; stable during page turn */
.featured-hang-aside {
  flex: 0 1 280px;
  width: 100%;
  min-width: 0;
  max-width: 340px;
  padding: 0;
  border-radius: 20px;
  border: none !important;
  align-self: flex-start;
  min-height: var(--hang-video-height, 280px);
  height: auto;
  max-height: none;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  transform: none !important;
  /* Smooth min-height changes after page flips (no hard jump) */
  transition: min-height 0.28s ease;
}
.featured-hang-aside.is-turning {
  /* Hard lock shell while the leaf turns · no sibling reflow */
  height: var(--hang-aside-lock-h, auto) !important;
  min-height: var(--hang-aside-lock-h, var(--hang-video-height, 280px)) !important;
  max-height: var(--hang-aside-lock-h, none);
  overflow: hidden;
  transition: none;
}
.featured-hang-aside__page {
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: flex-start;
  padding: 16px 18px 16px;
  box-sizing: border-box;
  min-height: 100%;
  width: 100%;
  transform-origin: left center;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform, opacity;
}
/* Book leaf turn · contained; no opacity collapse that reflows siblings */
.featured-hang-aside__page.is-book-next {
  animation: hang-book-next 0.46s cubic-bezier(0.4, 0.05, 0.2, 1) both;
}
.featured-hang-aside__page.is-book-prev {
  animation: hang-book-prev 0.46s cubic-bezier(0.4, 0.05, 0.2, 1) both;
}
@keyframes hang-book-next {
  0%   { transform: perspective(900px) rotateY(0deg); opacity: 1; }
  45%  { transform: perspective(900px) rotateY(-86deg); opacity: 0.55; }
  55%  { transform: perspective(900px) rotateY(86deg); opacity: 0.55; }
  100% { transform: perspective(900px) rotateY(0deg); opacity: 1; }
}
@keyframes hang-book-prev {
  0%   { transform: perspective(900px) rotateY(0deg); opacity: 1; }
  45%  { transform: perspective(900px) rotateY(86deg); opacity: 0.55; }
  55%  { transform: perspective(900px) rotateY(-86deg); opacity: 0.55; }
  100% { transform: perspective(900px) rotateY(0deg); opacity: 1; }
}
/* Video track: fixed viewport · slides don't resize the row */
#featuredHangLayout .hang-video-carousel-viewport {
  overflow: hidden;
  width: 100%;
  min-height: var(--hang-video-height, 240px);
}
#featuredHangLayout .hang-video-carousel-track {
  transition: transform 0.38s cubic-bezier(0.4, 0.05, 0.2, 1);
  will-change: transform;
}
#featuredHangLayout .hang-video-slide-frame {
  transition: none;
}
/* Reserve space so compare/insight hide/show doesn't yank the path rail */
.featured-hang-aside-compare {
  min-height: 2.6em;
}
.featured-hang-aside-insight {
  min-height: 3.2em;
}
.featured-hang-aside-badges {
  min-height: 1.6em;
}
.featured-hang-aside-facts {
  min-height: 4.5em;
}
/* Keep action row height stable under the player */
.featured-hang-media-col .featured-hang-video-actions {
  min-height: 36px;
}

/* Standalone tier path (under AI coach on overview) */
#section-overview > #featuredHangPathPanel.overview-tier-path-card,
#section-overview > .overview-tier-path-card {
  margin: 0 0 14px;
  padding: 16px 16px 14px;
  width: 100%;
  box-sizing: border-box;
}
#section-overview > #featuredHangPathPanel .wdhc-ai-path-coach {
  margin-top: 10px;
}
#section-overview > #featuredHangPathPanel .wdhc-ai-panel__out {
  margin-top: 8px;
}

/* Desktop rail · hang journal beside video (path lives under AI coach) */
.featured-hang-desktop-rail {
  display: none;
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
  gap: 0;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  .featured-hang-desktop-rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
}
/* Journal · nested under tier path (not a separate side card) */
.featured-hang-journal {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 12px 4px 0;
  margin-top: 4px;
  border-radius: 0;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  background: transparent !important;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  box-sizing: border-box;
  overflow: hidden;
}
.featured-hang-journal__text {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.featured-hang-journal__actions {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
/* Path to next tier · full rail card with journal under bar */
.featured-hang-path-panel {
  --hp-from: #9a9ea6;
  --hp-to: #6ee0a0;
  --hp-from-glow: rgba(154, 158, 166, 0.35);
  --hp-to-glow: rgba(110, 224, 160, 0.4);
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 16px 18px 14px;
  border-radius: 20px;
  border: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow: hidden;
}
.featured-hang-path-panel .hang-path {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  padding: 16px 14px 12px;
  margin: 0;
}
/* Keep Freak→Pro stack badge top-right; give Path copy room without crowding it */
.featured-hang-path-panel .hang-path__kicker,
.featured-hang-path-panel .hang-path__tiers {
  padding-right: 13.5rem;
  box-sizing: border-box;
}
/* Progress bar sits lower under Now/Next labels (stack badge stays top-right) */
.featured-hang-path-panel .hang-path__tiers {
  margin-bottom: 18px;
}
.featured-hang-path-panel .hang-path__bar-row {
  width: 100%;
  margin-top: 0;
  margin-bottom: 12px;
}
.featured-hang-path-panel .hang-path__track {
  width: 100%;
  height: 14px;
  margin-top: 0;
  margin-bottom: 0;
}
.featured-hang-path-panel .hang-path__need {
  margin-top: 2px;
}
.featured-hang-path-panel .hang-path__fill {
  height: 100%;
}
.featured-hang-path-panel .hang-path__pct {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  min-width: 3.25rem;
}
.featured-hang-path-panel .hang-path__tier-name {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}
.featured-hang-path-panel .hang-path__need {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}
.featured-hang-path-panel .hang-path__meta {
  font-size: 0.92rem;
}
.featured-hang-path-panel .hang-path__kicker {
  font-size: 0.8rem;
}
/* Now / Next labels removed from path UI */
.featured-hang-path-panel .hang-path__tier-label,
.hang-path__tier-label {
  display: none !important;
}
/* Roomier featured hang only on wide desktops (not 15" laptops) */
@media (min-width: 1601px) {
  .featured-hang-media-col {
    width: min(440px, 36vw);
    max-width: 480px;
  }
  .featured-hang-aside {
    flex: 0 1 300px;
    max-width: 340px;
    padding: 0;
  }
  .featured-hang-aside__page {
    padding: 18px 20px 18px;
  }
  .featured-hang-path-panel {
    padding: 16px 18px 14px;
  }
  .featured-hang-path-panel .hang-path {
    padding: 16px 16px 14px;
  }
  .featured-hang-journal {
    padding: 14px 4px 0;
  }
  .featured-hang-journal__title {
    font-size: 1.15rem;
  }
  .featured-hang-journal__copy {
    max-width: 42ch;
    font-size: 0.88rem;
  }
}

/*
 * 15" laptop overview: fit video + metrics + journal/path without horizontal scroll.
 * Available main width ≈ 1100–1360px after sidebar densify.
 */
@media (min-width: 900px) and (max-width: 1600px) {
  #section-overview {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .featured-hang-layout {
    gap: 10px 12px;
  }

  .featured-hang-media-col,
  .featured-hang-layout.is-landscape-media .featured-hang-media-col {
    flex: 0 1 32%;
    width: min(300px, 30vw);
    max-width: min(320px, 34%);
    min-width: 0;
  }

  .featured-hang-aside {
    flex: 0 1 220px;
    max-width: 240px;
    min-width: 0;
  }

  .featured-hang-aside__page {
    padding: 12px 12px 12px;
    gap: 5px;
  }

  .featured-hang-desktop-rail {
    flex: 1 1 0;
    min-width: 0;
    gap: 0;
  }

  .featured-hang-path-panel {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 12px 10px;
  }

  .featured-hang-path-panel .hang-path {
    padding: 10px 10px 8px;
  }

  .featured-hang-path-panel .hang-path__tier-name {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  }
  .featured-hang-path-panel .hang-path__need {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  }
  .featured-hang-path-panel .hang-path__meta {
    font-size: 0.8rem;
  }

  .featured-hang-journal {
    flex: 0 0 auto;
    max-width: none;
    min-width: 0;
    width: 100%;
    padding: 10px 2px 0;
    gap: 8px 12px;
  }

  .featured-hang-journal__title {
    font-size: 0.98rem;
  }
  .featured-hang-journal__copy {
    max-width: none;
    font-size: 0.78rem;
  }

  .featured-hang-aside-time,
  .featured-hang-aside-time.mono {
    font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  }
}

/* Very tight laptops (1366 and similar) */
@media (min-width: 900px) and (max-width: 1400px) {
  .featured-hang-media-col,
  .featured-hang-layout.is-landscape-media .featured-hang-media-col {
    width: min(260px, 28vw);
    max-width: min(280px, 32%);
  }
  .featured-hang-aside {
    flex: 0 1 200px;
    max-width: 220px;
  }
  .featured-hang-journal {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    padding: 8px 2px 0;
  }
  .featured-hang-layout {
    gap: 8px 10px;
  }
}
/* Stack badge sits on path card only · colors from --hp-from / --hp-to (combo pills) */
.hang-stack-badge {
  position: absolute;
  right: 14px;
  top: 12px;
  white-space: nowrap;
  max-width: none;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 80% 100% at 15% 0%, color-mix(in srgb, var(--hp-from) 32%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 80% 100% at 90% 100%, color-mix(in srgb, var(--hp-to) 28%, transparent) 0%, transparent 70%),
    rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--hp-to) 45%, transparent),
    0 0 22px color-mix(in srgb, var(--hp-to) 28%, transparent),
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: Oswald, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
.hang-stack-badge__from {
  font-size: 0.78rem;
  color: var(--hp-from);
  text-shadow: 0 0 12px var(--hp-from-glow);
}
.hang-stack-badge__chev {
  font-size: 0.72rem;
  color: var(--hp-to);
  opacity: 0.9;
}
.hang-stack-badge__to {
  font-size: 0.85rem;
  color: var(--hp-to);
  text-shadow: 0 0 12px var(--hp-to-glow);
}
/* Open-board Freak → Pro stack pill (only when JS adds --to-pro) */
.hang-stack-badge--to-pro {
  padding: 9px 14px;
}
.hang-stack-badge--to-pro .hang-stack-badge__from {
  font-size: 0.86rem;
}
.hang-stack-badge--to-pro .hang-stack-badge__chev {
  font-size: 0.82rem;
  opacity: 1;
}
.hang-stack-badge--to-pro .hang-stack-badge__to {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}
.hang-stack-badge--pro {
  background:
    radial-gradient(ellipse 90% 100% at 50% 0%, rgba(212, 175, 55, 0.38) 0%, transparent 65%),
    rgba(22, 16, 6, 0.9);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.5),
    0 0 26px rgba(212, 175, 55, 0.32),
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hang-stack-badge--pro .hang-stack-badge__from,
.hang-stack-badge--pro .hang-stack-badge__to {
  color: #F0D78C;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.55);
}
.hang-stack-badge--pro .hang-stack-badge__chev {
  color: #D4AF37;
}

/* Path block · colors driven by --hp-from / --hp-to (JS sets per tier) */
.hang-path {
  --hp-from: #9a9ea6;
  --hp-to: #6ee0a0;
  --hp-from-glow: rgba(154, 158, 166, 0.35);
  --hp-to-glow: rgba(110, 224, 160, 0.4);
  margin: 0 0 10px;
  padding: 12px 12px 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: none !important;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, color-mix(in srgb, var(--hp-from) 14%, transparent) 0%, transparent 55%),
    linear-gradient(165deg, rgba(18, 16, 12, 0.35) 0%, rgba(8, 8, 10, 0.15) 100%);
  box-shadow: none !important;
}
.hang-path__kicker {
  margin: 0 0 10px;
  font-family: Rajdhani, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-to);
}
.hang-path__tiers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.hang-path__tier {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hang-path__tier--to {
  text-align: right;
  align-items: flex-end;
}
.hang-path__tier-label {
  font-family: Rajdhani, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
}
.hang-path__tier-name {
  font-family: Oswald, sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hp-from);
  line-height: 1.1;
  text-shadow: 0 0 12px var(--hp-from-glow);
}
.hang-path__tier--to .hang-path__tier-name {
  color: var(--hp-to);
  text-shadow: 0 0 16px var(--hp-to-glow);
}
.hang-path__arrow {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  opacity: 0.85;
}
.hang-path__arrow-line {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hp-from) 30%, transparent), var(--hp-to));
}
.hang-path__arrow-head {
  font-size: 0.55rem;
  color: var(--hp-to);
  margin-left: -1px;
  line-height: 1;
}
/* Track + % row: clear outline so remaining distance is obvious */
.hang-path__bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}
.hang-path__track {
  flex: 1 1 auto;
  min-width: 0;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  margin-bottom: 0;
  border: 1.5px solid color-mix(in srgb, var(--hp-to) 55%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 1px 6px rgba(0, 0, 0, 0.35),
    0 0 0 1px color-mix(in srgb, var(--hp-to) 14%, transparent);
}
.hang-path__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hp-from), var(--hp-to));
  box-shadow: 0 0 16px var(--hp-to-glow);
  transition: width 0.45s ease, background 0.3s ease;
  min-width: 0;
}
.hang-path__pct {
  flex: 0 0 auto;
  font-family: Oswald, sans-serif;
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hp-to);
  text-shadow: 0 0 12px var(--hp-to-glow);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 5.5rem;
  max-width: 42%;
  text-align: right;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hang-path__need {
  margin: 0 0 6px;
  font-family: Oswald, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.hang-path__meta {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #a0a0a0;
}
/* Max Freak (specialty Pro off): both ends combo-pill purple */
.hang-path--freak {
  --hp-from: #c060f0;
  --hp-to: #c060f0;
  --hp-from-glow: rgba(192, 96, 240, 0.4);
  --hp-to-glow: rgba(192, 96, 240, 0.4);
}
/* Open-board Freak → Pro only */
.hang-path--to-pro {
  --hp-from: #c060f0;
  --hp-to: #D4AF37;
  --hp-from-glow: rgba(192, 96, 240, 0.4);
  --hp-to-glow: rgba(212, 175, 55, 0.4);
}
.hang-path--pro {
  --hp-from: #D4AF37;
  --hp-to: #F0D78C;
  --hp-from-glow: rgba(212, 175, 55, 0.4);
  --hp-to-glow: rgba(240, 215, 140, 0.45);
}
/* Mobile: bar full row width; percent under bar; no top-right stack pill */
@media (max-width: 900px) {
  .featured-hang-path-panel .hang-stack-badge,
  #hangStackBadge.hang-stack-badge,
  .hang-stack-badge {
    display: none !important;
  }
  .featured-hang-path-panel .hang-path__kicker,
  .featured-hang-path-panel .hang-path__tiers {
    padding-right: 0 !important;
  }
  .featured-hang-path-panel .hang-path__bar-row,
  .hang-path__bar-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 10px;
  }
  .featured-hang-path-panel .hang-path__track,
  .hang-path__track {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 16px;
  }
  .featured-hang-path-panel .hang-path__pct,
  .hang-path__pct {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    font-size: 1rem !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.3;
  }
}
.hang-path--to-pro .hang-path__tier--to .hang-path__tier-name {
  letter-spacing: 0.1em;
}
/* Open-board Freak → Pro bar: purple into gold. Max Freak stays purple via vars/JS. */
.hang-path--to-pro .hang-path__fill {
  background: linear-gradient(90deg, #c060f0 0%, #D4AF37 100%);
  box-shadow: 0 0 16px rgba(192, 96, 240, 0.4);
}
.hang-path--freak:not(.hang-path--to-pro) .hang-path__fill {
  background: linear-gradient(90deg, #c060f0, #c060f0);
  box-shadow: 0 0 16px rgba(192, 96, 240, 0.4);
}
.hang-path--pro {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(212, 175, 55, 0.16) 0%, transparent 55%),
    linear-gradient(165deg, rgba(22, 18, 8, 0.95) 0%, rgba(8, 6, 12, 0.98) 100%);
}
.hang-path--pro .hang-path__fill {
  width: 100% !important;
  background: linear-gradient(90deg, #D4AF37, #F0D78C, #E87820);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}
.hang-path--pro .hang-path__tiers,
.hang-path--pro .hang-path__kicker,
.hang-path--pro + .hang-stack-badge,
.featured-hang-path-panel:has(.hang-path--pro) .hang-stack-badge {
  display: none !important;
}
.hang-path__pro-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  min-width: 0;
}
.hang-path__pro-status[hidden] {
  display: none !important;
}
.hang-path__pro-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: #1a1406;
  background: linear-gradient(180deg, #F0D78C 0%, #D4AF37 55%, #B8860B 100%);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.45),
    0 0 16px rgba(212, 175, 55, 0.38);
}
.hang-path__pro-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.hang-path__pro-title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #F0D78C;
  line-height: 1.1;
}
.hang-path__pro-sub {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: #c8c0a8;
  line-height: 1.35;
}
.hang-path--pro .hang-path__need {
  display: none !important;
}
.hang-path--pro .hang-path__pct {
  min-width: 4.6rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hang-path--pro .hang-path__kicker,
.featured-hang-path-panel:has(.hang-path--pro) .hang-path__kicker,
.featured-hang-path-panel:has(.hang-path--pro) .hang-path__tiers {
  padding-right: 0;
}
.hang-path--freak .hang-path__tier--from .hang-path__tier-name,
.hang-path--to-pro.hang-path--freak .hang-path__tier--from .hang-path__tier-name {
  color: #d8b4fe;
  text-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}
/* Overview tier bar under metrics · Freak→Pro purple→gold */
.overview-tier-progress.is-freak-to-pro {
  --tier-progress-color: #a855f7;
}
.overview-tier-progress.is-freak-to-pro .tier-progress-fill {
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 40%, #d4af37 78%, #f0d78c 100%) !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}
.overview-tier-progress.is-freak-to-pro .tier-progress-pct {
  color: #c084fc;
}

.featured-hang-journal__kicker {
  margin: 0;
  font-family: Rajdhani, Oswald, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
}
.featured-hang-journal__title {
  margin: 0;
  font-family: Oswald, var(--font-heading), sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f2f2f2;
  line-height: 1.15;
  max-width: 100%;
}
.featured-hang-journal__copy {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #b0b0b0;
  max-width: 48ch;
}
.featured-hang-journal__cta {
  margin-top: 0;
  min-width: 140px;
  width: auto;
  max-width: 100%;
  font-size: 0.85rem;
  padding: 8px 14px;
}
.featured-hang-journal__hint {
  margin: 0;
  position: relative;
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 0.02em;
}
/* Tips list removed from path panel (kept CSS inert if reintroduced) */
.featured-hang-journal__tips {
  display: none !important;
}
.featured-hang-journal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 0;
  justify-content: flex-end;
}
.featured-hang-journal__link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: Rajdhani, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4af37;
  text-decoration: none;
  cursor: pointer;
}
.featured-hang-journal__link:hover {
  color: #f0d78c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.featured-hang-aside-kicker {
  margin: 0;
  font-family: Rajdhani, Oswald, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4af37;
}
/* Signature board hang time · same as top-10 leaderboard .time */
.featured-hang-aside-time,
.featured-hang-aside-time.mono {
  margin: 0;
  font-family: 'Oswald', 'Arial Narrow', var(--font-heading), sans-serif !important;
  font-size: clamp(2.2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: var(--gold, #d4af37);
  line-height: 1;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.featured-hang-aside-date {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: #a8a8a8;
  font-weight: 600;
}
.featured-hang-aside-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  margin-bottom: 4px;
}
.featured-hang-aside-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none !important;
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.04);
}
.featured-hang-aside-badge.is-verified {
  color: #6ecf8a;
  background: rgba(110, 207, 138, 0.12);
  box-shadow: 0 0 14px rgba(110, 207, 138, 0.2);
}
/* PR: lightning bolt + PR only (no gold oval pill) */
.featured-hang-aside-badge.is-pr {
  color: #f0d78c;
  background: transparent;
  border: none;
  padding: 0 2px;
  border-radius: 0;
  gap: 4px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  box-shadow: none;
}
.featured-hang-aside-badge.is-pr svg,
.featured-hang-aside-badge.is-pr .pr-bolt {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  display: block;
  color: #d4af37;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.45));
}
.featured-hang-aside-badge.is-pending {
  color: #e0b060;
  border-color: rgba(224, 176, 96, 0.4);
  background: rgba(224, 176, 96, 0.1);
}
.featured-hang-aside-badge.is-approved {
  color: #d4af37;
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.1);
}
/* Stacked facts · densest layout (label over value) */
.featured-hang-aside-facts {
  margin: 4px 0 0;
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 100%;
}
.featured-hang-aside-fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.featured-hang-aside-fact:last-child {
  border-bottom: 0;
}
.featured-hang-aside-fact dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7a7a;
  font-family: Rajdhani, sans-serif;
  min-width: 0;
}
.featured-hang-aside-fact dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ececec;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
  font-family: 'Oswald', 'Arial Narrow', var(--font-heading), sans-serif;
  letter-spacing: 0.4px;
  line-height: 1.2;
}
/* vs last hang · 2nd+ entry */
.featured-hang-aside-compare {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: #e8e0c8;
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(212, 175, 55, 0.14) 0%, transparent 60%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.featured-hang-aside-compare[hidden] {
  display: none !important;
}
.featured-hang-aside-compare.is-improved {
  color: #d8f5c8;
  background:
    radial-gradient(ellipse 80% 100% at 0% 50%, rgba(74, 222, 128, 0.14) 0%, transparent 60%),
    rgba(255, 255, 255, 0.03);
}
.featured-hang-aside-compare.is-solid {
  color: #e8e0c8;
}

/* Population threshold insight for this hang */
.featured-hang-aside-insight {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  border-left: 3px solid transparent;
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.55), rgba(212, 175, 55, 0.08) 3px, transparent 3px),
    rgba(212, 175, 55, 0.06);
  font-size: 0.92rem;
  line-height: 1.45;
  color: #c4c4c4;
  max-width: none;
}
.featured-hang-aside-insight[hidden] {
  display: none !important;
}
.featured-hang-aside-insight-label {
  display: block;
  font-family: Rajdhani, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 4px;
}
/* Actions live under the video (media col), not in metrics card */
.featured-hang-media-col .featured-hang-video-actions {
  margin-top: 12px;
  padding-top: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.featured-hang-media-col .featured-hang-upload-status {
  margin-top: 6px;
  width: 100%;
  text-align: center;
}

/* Multi-hang carousel · tight to media column */
.hang-video-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.hang-video-carousel-viewport {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  isolation: isolate;
  background: transparent;
}
.hang-video-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Avoid permanent will-change layer that can corrupt layout after bfcache */
  will-change: auto;
}
.hang-video-carousel-track.is-sliding {
  will-change: transform;
}
.hang-video-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hang-video-slide-frame {
  margin-bottom: 0;
  margin-left: 0;
  margin-right: auto;
}
.hang-video-slide-placeholder {
  margin: 0;
  padding: 48px 16px;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}
.hang-video-slide-meta {
  /* Details live in the right-hand panel; keep compact strip only on narrow stacks */
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 4px 2px 0;
  min-height: 0;
}
@media (max-width: 720px) {
  .hang-video-slide-meta {
    display: flex;
  }
}
.hang-video-slide-date {
  font-size: 0.88rem;
  color: #bbb;
  font-weight: 600;
}
.hang-video-slide-time {
  font-family: 'Oswald', 'Arial Narrow', var(--font-heading), sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold, #d4af37);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
.hang-video-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ccc;
  line-height: 1.2;
}
.hang-video-slide-badge--verified {
  color: #6ecf8a;
  border-color: rgba(110, 207, 138, 0.45);
  background: rgba(110, 207, 138, 0.12);
}
.hang-video-slide-badge--verified .wdhc-icon {
  width: 0.85em;
  height: 0.85em;
}
.hang-video-slide-badge--pr {
  color: #f0d78c;
  background: transparent;
  border: none;
  padding: 0 2px;
  box-shadow: none;
  gap: 4px;
  font-size: 0.78rem;
}
.hang-video-slide-badge--pr svg,
.hang-video-slide-badge--pr .pr-bolt {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  color: #d4af37;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}
.hang-video-slide-badge--pending {
  color: #e0b060;
  border-color: rgba(224, 176, 96, 0.4);
  background: rgba(224, 176, 96, 0.1);
}
/* Modern ghost chevrons · no outline ring */
.hang-video-carousel-btn {
  flex: 0 0 auto;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none !important;
  outline: none !important;
  background: rgba(8, 8, 10, 0.45);
  color: #f0d78c;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  z-index: 2;
  position: relative;
  transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
  margin-bottom: 0;
  flex-shrink: 0;
  opacity: 0.92;
  box-shadow:
    0 0 22px rgba(212, 175, 55, 0.14),
    0 8px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hang-video-carousel-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #f0d78c;
  border-bottom: 2.5px solid #f0d78c;
  box-sizing: border-box;
}
.hang-video-carousel-btn.prev::before {
  transform: translateX(2px) rotate(135deg);
}
.hang-video-carousel-btn.next::before {
  transform: translateX(-2px) rotate(-45deg);
}
.hang-video-carousel-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.16);
  box-shadow:
    0 0 32px rgba(212, 175, 55, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.35);
  transform: scale(1.04);
}
.hang-video-carousel-btn:disabled {
  opacity: 0.28;
  cursor: default;
  box-shadow: none;
  transform: none;
}
.hang-video-carousel-btn.prev { margin-right: 8px; }
.hang-video-carousel-btn.next { margin-left: 8px; }
.hang-video-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.hang-video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0 !important;
  outline: none !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.hang-video-dot.is-active {
  background: #d4af37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.55);
  width: 8px;
  height: 8px;
  transform: scale(1.15);
}
.featured-hang-video-count {
  font-size: 0.85rem;
  color: #999;
  font-weight: 600;
}

/* Below 900px: journal hidden. Aside expands so no empty right pocket. */
@media (max-width: 899px) {
  .featured-hang-layout {
    flex-wrap: wrap;
  }
  .featured-hang-media-col,
  .featured-hang-layout.is-landscape-media .featured-hang-media-col {
    width: min(320px, 100%);
    max-width: 100%;
  }
  .featured-hang-aside {
    flex: 1 1 280px;
    min-width: 240px;
    max-width: none;
    width: auto;
  }
}

/* Mobile heroes: welcome, hang videos + tier path (same block as desktop), then the rest */
@media (max-width: 900px) {
  #section-overview.active:not([hidden]) {
    display: flex;
    flex-direction: column;
  }
  #section-overview > * {
    order: 10;
  }
  #section-overview > #welcomeBanner,
  #section-overview > .overview-hero {
    order: 0;
  }
  #section-overview > .overview-main-split {
    order: 1;
  }
  #section-overview > .overview-month-row {
    order: 2;
  }
  #section-overview > #overviewStatsGrid,
  #section-overview > .stats-grid--product.stats-bento {
    order: 4;
  }
  #section-overview > #challengesPanel,
  #section-overview > .challenges-strip {
    order: 5;
  }

  #section-overview .featured-hang-layout {
    flex-direction: column;
    align-items: stretch;
  }
  #section-overview .featured-hang-media-col {
    width: 100% !important;
    max-width: min(100%, 420px);
    margin: 0 auto;
  }
  #section-overview .featured-hang-aside {
    max-width: 100%;
    width: 100%;
  }
  #section-overview .featured-hang-desktop-rail {
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }
  #section-overview .featured-hang-journal {
    max-width: 100%;
    flex: 1 1 auto;
  }
  #section-overview .featured-hang-path-panel {
    width: 100%;
  }
  /* Compact path on phone */
  #section-overview .featured-hang-path-panel .featured-hang-journal__tips {
    display: none;
  }
  #section-overview .hang-path__meta {
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .featured-hang-layout {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .featured-hang-media-col,
  .featured-hang-layout.is-landscape-media .featured-hang-media-col {
    width: 100%;
    max-width: 280px;
  }
  .featured-hang-video-frame,
  .featured-hang-video-frame.is-portrait {
    max-width: min(100%, 280px);
    max-height: min(52vh, 420px);
  }
  .featured-hang-aside {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
  }
  .featured-hang-aside-insight {
    max-width: none;
  }
  .hang-video-carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }
  .hang-video-slide-meta {
    gap: 6px 10px;
  }
}

/* ── Mobile comfort pass: calmer glow, clearer tier path, bigger video ── */
@media (max-width: 900px) {
  /* Soften ambient wash (was eye-straining on OLED phones) */
  #section-overview::before {
    height: min(36vh, 280px);
    opacity: 0.55;
    filter: blur(8px);
    background:
      radial-gradient(ellipse 70% 70% at 12% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 50% 50% at 90% 8%, rgba(168, 85, 247, 0.04) 0%, transparent 55%);
  }
  #section-overview .card,
  #section-overview .overview-pro-card,
  #section-overview .activity-feed,
  #section-overview .overview-achievements-card,
  #section-overview .tier-progress-section,
  #section-overview .overview-share-nudge,
  #section-overview .featured-hang-path-panel,
  #section-overview .featured-hang-aside,
  #section-overview .stat-card,
  #section-overview .overview-empty-state,
  #section-overview .challenges-panel {
    box-shadow:
      0 0 20px rgba(212, 175, 55, 0.05),
      0 10px 28px rgba(0, 0, 0, 0.28) !important;
    background:
      linear-gradient(165deg, rgba(18, 18, 20, 0.94) 0%, rgba(10, 10, 12, 0.96) 100%) !important;
  }
  #section-overview .featured-hang-path-panel {
    background:
      linear-gradient(165deg, rgba(16, 16, 18, 0.96) 0%, rgba(9, 9, 11, 0.98) 100%) !important;
    box-shadow:
      0 0 18px rgba(212, 175, 55, 0.06),
      0 12px 28px rgba(0, 0, 0, 0.3) !important;
    padding: 14px 14px 12px;
    border-radius: 16px;
  }
  /* Tier path: simpler, higher-contrast bar */
  #section-overview .hang-path {
    padding: 10px 4px 6px;
    background: transparent !important;
    box-shadow: none !important;
  }
  #section-overview .hang-path__kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: #c8b070;
    margin-bottom: 8px;
  }
  #section-overview .hang-path__tiers {
    margin-bottom: 10px;
  }
  #section-overview .hang-path__tier-name {
    font-size: 1.15rem;
    text-shadow: none;
  }
  #section-overview .hang-path__bar-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 10px;
    width: 100% !important;
  }
  #section-overview .hang-path__track {
    width: 100% !important;
    flex: 0 0 auto !important;
    height: 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
  }
  #section-overview .hang-path__fill {
    box-shadow: none;
  }
  #section-overview .hang-path__pct {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    font-size: 0.98rem;
    text-shadow: none;
    color: var(--hp-to);
    white-space: normal !important;
  }
  #section-overview .hang-path__need {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
  }
  #section-overview .hang-path__meta {
    font-size: 0.82rem;
    color: #9a9a9a;
    line-height: 1.4;
  }
  /* Stack badge off on mobile so bar can use full width */
  #section-overview .hang-stack-badge {
    display: none !important;
  }
  #section-overview .featured-hang-path-panel .hang-path__kicker,
  #section-overview .featured-hang-path-panel .hang-path__tiers {
    padding-right: 0 !important;
  }
  /* Video player: use more of the phone width */
  #section-overview .featured-hang-media-col {
    max-width: min(100%, 360px) !important;
    width: 100% !important;
    margin: 0 auto;
  }
  #section-overview .featured-hang-video-frame,
  #section-overview .featured-hang-video-frame.is-portrait,
  #section-overview .hang-video-slide-frame {
    max-width: 100% !important;
    max-height: min(58vh, 480px) !important;
    border-radius: 14px;
    background: #000;
  }
  #section-overview .featured-hang-video-card {
    padding: 14px 12px 16px;
  }
  #section-overview .featured-hang-video-title {
    font-size: 1.05rem;
  }
  #section-overview .featured-hang-video-sub {
    font-size: 0.85rem;
    color: #a8a8a8;
    line-height: 1.4;
  }
  #section-overview .featured-hang-aside {
    padding: 12px 12px 10px !important;
  }
  #section-overview .featured-hang-aside-time {
    font-size: 1.65rem;
  }
  /* Stats: less lift/glow on touch */
  #section-overview .stat-card:hover,
  #section-overview .stat-card:active {
    transform: none;
  }
  #section-overview .stat-card--hero {
    min-height: 0;
    padding: 16px 14px 14px;
  }
}

@media (max-width: 560px) {
  #section-overview .hang-path__bar-row {
    flex-wrap: nowrap;
    align-items: center;
  }
  #section-overview .hang-path__track {
    flex: 1 1 auto;
    height: 14px;
  }
  #section-overview .hang-path__pct {
    flex: 0 0 auto;
    text-align: right;
    font-size: 1rem;
  }
  #section-overview .hang-path__need {
    font-size: 1.15rem;
  }
}

.featured-hang-video-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.featured-hang-video-title {
  margin: 0 0 2px;
  font-size: 1rem;
}

.featured-hang-video-sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted, #888);
  line-height: 1.35;
}

.featured-hang-video-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.featured-hang-video-time {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.featured-hang-video-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #bbb;
}

.featured-hang-video-status.is-verified {
  color: #6ecf8a;
  border-color: rgba(110, 207, 138, 0.35);
  background: rgba(110, 207, 138, 0.08);
}

.featured-hang-video-status.is-approved {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
}

.featured-hang-video-status.is-pending {
  color: #e0b060;
  border-color: rgba(224, 176, 96, 0.35);
  background: rgba(224, 176, 96, 0.08);
}

.featured-hang-video-frame {
  position: relative;
  width: 100%;
  /* Natural AR from JS; larger default shell (bigger than metrics card) */
  aspect-ratio: 9 / 16;
  max-height: min(68vh, 640px);
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  border: none !important;
  margin: 0;
  display: block;
  min-height: 0;
  box-sizing: border-box;
  box-shadow:
    0 0 36px rgba(212, 175, 55, 0.14),
    0 20px 44px rgba(0, 0, 0, 0.48);
}
.hang-video-needs-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 100%;
  padding: 20px 16px;
  text-align: center;
  box-sizing: border-box;
}
.hang-video-needs-file-date {
  margin: 0 0 8px;
  color: #999;
  font-size: 0.85rem;
}
/* Class display rules override HTML [hidden] and create blank holes / ghost CTAs */
.featured-hang-video-frame[hidden],
#featuredHangVideoFrame[hidden],
.featured-hang-video-card[hidden],
.featured-hang-empty[hidden],
.hang-video-carousel-dots[hidden],
.featured-hang-video-actions[hidden],
.featured-hang-upload-label[hidden],
#featuredHangVideoUploadLabel[hidden],
#featuredHangVideoUploadStatus[hidden],
.featured-hang-video-count[hidden],
.featured-hang-video-time[hidden],
.featured-hang-video-status[hidden] {
  display: none !important;
}

.featured-hang-video-frame.is-portrait {
  aspect-ratio: 9 / 16;
  max-height: min(68vh, 640px);
}

.featured-hang-video-frame.is-landscape,
.featured-hang-video-frame.is-landscape.is-fit {
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 460px);
}

.featured-hang-video-frame video,
.featured-hang-video-frame iframe,
.featured-hang-video-frame img {
  display: block;
  width: 100%;
  height: 100%;
  /* Full frame visible · no aggressive crop */
  object-fit: contain;
  object-position: center center;
  border: 0;
  background: #0a0a0a;
}

.featured-hang-video-frame.is-fit video,
.featured-hang-video-frame.is-fit img {
  object-fit: contain;
  object-position: center center;
}

.featured-hang-video-frame.is-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: min(36vh, 300px);
}

.featured-hang-video-frame.is-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.featured-hang-video-frame.is-empty {
  aspect-ratio: auto;
  min-height: 120px;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-hang-video-thumb-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.featured-hang-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.featured-hang-video-play::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 18px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #0a0a0a;
}

.featured-hang-video-fallback {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.5;
}

.featured-hang-video-fallback a {
  color: var(--gold);
  font-weight: 600;
}

.featured-hang-video-fallback--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 22px;
}

.featured-hang-video-fallback-title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f0f0;
}

.featured-hang-open-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}



.featured-hang-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
}

/* Hang history video column */
.hang-video-cell {
  white-space: nowrap;
}

.hang-video-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hang-video-link:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
  text-decoration: none;
  color: #f0d060;
}

.hang-video-none {
  color: #555;
  font-size: 0.9rem;
}

.hang-card-player--openlink {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 18px;
  text-align: center;
  min-height: 160px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hang-card-fallback-title {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f0f0;
}
.hang-card-player--openlink p {
  margin: 0;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 28rem;
}
.hang-video-open-cta {
  margin-top: 4px;
  text-decoration: none;
}

@media (max-width: 700px) {
  .featured-hang-video-header {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Landscape: keep compact. Portrait uses its own taller cap. */
  .featured-hang-video-frame {
    max-height: min(56vh, 360px);
  }
  .featured-hang-video-frame.is-portrait {
    max-height: min(72vh, 560px);
    max-width: min(100%, 360px);
  }
  .hang-video-carousel-btn {
    margin-bottom: 48px;
  }
}

/* Sticky quick actions */
.overview-quick-actions--sticky {
  position: sticky;
  top: 12px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1025px) {
  .overview-quick-actions--sticky {
    top: 16px;
  }
}

/* Activity feed: compact desktop rows */
#section-overview .activity-feed {
  padding: 16px 18px;
  margin-bottom: 20px;
}

#section-overview .activity-feed-list {
  gap: 4px;
}

#section-overview .activity-feed-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
}

#section-overview .activity-feed-icon {
  width: 32px;
  height: 32px;
}

#section-overview .activity-feed-main {
  min-width: 0;
}

#section-overview .activity-feed-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#section-overview .activity-feed-meta {
  text-align: right;
  min-width: 72px;
}

#section-overview .activity-feed-time {
  display: block;
  font-size: 0.82rem;
}

#section-overview .activity-feed-date {
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  #section-overview .activity-feed-item {
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
  }

  #section-overview .activity-feed-type {
    grid-column: 2;
  }

  #section-overview .activity-feed-meta {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* Activity feed clickable rows */
.activity-feed-item--clickable {
  cursor: pointer;
  transition: background 0.15s ease;
}

.activity-feed-item--clickable:hover {
  background: rgba(212, 175, 55, 0.06);
}

.hang-row-highlight td {
  background: rgba(212, 175, 55, 0.12) !important;
}

.hang-row-highlight td:first-child {
  box-shadow: inset 3px 0 0 var(--gold);
}

/* Sidebar rank link */
.sidebar-profile-rank--link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
  line-height: 1.25;
}

.sidebar-profile-rank--link:hover {
  color: var(--gold-light);
}

/* Sidebar collapse (desktop) */
.sidebar-collapse-toggle {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sidebar-collapse-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.sidebar-collapse-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

@media (min-width: 1025px) {
  .sidebar-brand-link {
    width: 100%;
  }

  .sidebar-brand {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-right: 16px;
  }

  .sidebar-collapse-toggle {
    display: inline-flex;
  }

  :root {
    --sidebar-width-collapsed: 72px;
  }

  body.sidebar-collapsed {
    --sidebar-width: var(--sidebar-width-collapsed);
  }

  /* Allow icon tooltips to paint outside the rail */
  body.sidebar-collapsed .dashboard-sidebar {
    overflow: visible;
  }
  body.sidebar-collapsed .sidebar-inner {
    overflow: visible;
  }
  body.sidebar-collapsed .sidebar-nav {
    overflow-x: visible;
    overflow-y: auto;
  }

  /* Icon-only rail: hide labels, keep icons centered */
  body.sidebar-collapsed .sidebar-brand-text,
  body.sidebar-collapsed .sidebar-profile-info,
  body.sidebar-collapsed .sidebar-link > span,
  body.sidebar-collapsed .sidebar-qs-label,
  body.sidebar-collapsed .sidebar-qs-meta,
  body.sidebar-collapsed .sidebar-unit-label,
  body.sidebar-collapsed .sidebar-unit-row,
  body.sidebar-collapsed .btn-sidebar-split span,
  body.sidebar-collapsed .btn-sidebar-primary span,
  body.sidebar-collapsed .btn-sidebar-logout span,
  body.sidebar-collapsed .sidebar-nav-label {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar-inner {
    padding: 8px 6px 10px !important;
    align-items: stretch;
  }

  body.sidebar-collapsed .sidebar-brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px !important;
    margin-bottom: 4px !important;
  }

  body.sidebar-collapsed .sidebar-brand-link {
    justify-content: center;
    width: auto;
  }

  body.sidebar-collapsed .sidebar-brand-logo {
    height: 36px !important;
    max-width: 40px !important;
    width: auto;
  }

  body.sidebar-collapsed .sidebar-collapse-toggle {
    margin-left: 0;
    width: 28px;
    height: 28px;
  }

  body.sidebar-collapsed .sidebar-profile {
    justify-content: center;
    padding: 8px 4px !important;
    margin-bottom: 4px !important;
  }

  body.sidebar-collapsed .sidebar-profile-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
  }

  body.sidebar-collapsed .sidebar-nav {
    align-items: center;
    padding: 4px 0 !important;
    gap: 2px !important;
  }

  body.sidebar-collapsed .sidebar-nav-group {
    margin-top: 4px !important;
    padding-top: 4px !important;
    align-items: center;
    width: 100%;
  }

  body.sidebar-collapsed .sidebar-link {
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    min-height: 42px;
    padding: 10px 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    border-radius: 10px !important;
    overflow: visible;
  }

  body.sidebar-collapsed .sidebar-link .sidebar-icon,
  body.sidebar-collapsed .sidebar-icon {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
    display: block;
  }

  body.sidebar-collapsed .sidebar-quick-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.sidebar-collapsed .sidebar-qs-item {
    padding: 6px 2px !important;
  }

  body.sidebar-collapsed .sidebar-qs-value {
    font-size: 0.72rem !important;
    line-height: 1.15;
    word-break: break-word;
    text-align: center;
  }

  body.sidebar-collapsed .btn-sidebar-primary,
  body.sidebar-collapsed .btn-sidebar-split,
  body.sidebar-collapsed .btn-sidebar-secondary,
  body.sidebar-collapsed .btn-sidebar-ghost,
  body.sidebar-collapsed .btn-sidebar-logout {
    justify-content: center !important;
    padding: 10px 6px !important;
    min-height: 40px;
    width: 100%;
  }

  body.sidebar-collapsed .btn-sidebar-split svg,
  body.sidebar-collapsed .btn-sidebar-primary svg,
  body.sidebar-collapsed .btn-sidebar-secondary svg,
  body.sidebar-collapsed .btn-sidebar-ghost svg,
  body.sidebar-collapsed .btn-sidebar-logout svg {
    margin: 0 auto;
    width: 18px;
    height: 18px;
  }

  body.sidebar-collapsed .sidebar-actions-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.sidebar-collapsed .sidebar-footer {
    padding: 8px 6px !important;
    align-items: stretch;
  }

  body.sidebar-collapsed .sidebar-collapse-toggle svg {
    transform: rotate(180deg);
  }

  /* Hover tooltips for icon-only nav */
  body.sidebar-collapsed .sidebar-link[title] {
    position: relative;
  }

  body.sidebar-collapsed .sidebar-link[title]:hover::after,
  body.sidebar-collapsed .sidebar-link[title]:focus-visible::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1200;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f5f5f5;
    background: rgba(12, 12, 14, 0.96);
    box-shadow:
      0 0 0 1px rgba(212, 175, 55, 0.28),
      0 10px 24px rgba(0, 0, 0, 0.45);
    pointer-events: none;
  }
}

/* ============================================================
   MOBILE DASHBOARD OPTIMIZATION (2026-07-12 full audit)
   Fixes: horizontal overflow (carousel track), tap targets,
   header chrome, chips, CTAs, sidebar, safe-areas, forms
   ============================================================ */
@media (max-width: 768px) {
  /* P0: kill page-level horizontal scroll.
     Use overflow-x: hidden (not clip) so position:fixed sticky CTAs are not cut off on iOS. */
  html {
    overflow-x: hidden;
    max-width: 100%;
  }
  body.dashboard-page {
    overflow-x: hidden;
    max-width: 100%;
    /* Keep fixed sticky bar paintable above the home indicator */
    overflow-y: auto;
  }

  .dashboard-layout {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .dashboard-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    /* Top: mobile header + notch. Bottom: sticky Submit/Share bar + home indicator */
    padding:
      calc(var(--mobile-header-height, 56px) + env(safe-area-inset-top, 0px) + 12px)
      12px
      calc(96px + env(safe-area-inset-bottom, 0px))
      !important;
    overflow-x: hidden;
  }

  .content-section,
  .card,
  .overview-hero,
  .featured-hang-video-card,
  .stats-bento,
  .overview-primary-cta,
  .activity-feed,
  .tier-progress-section,
  .overview-pro-card,
  .overview-achievements-card,
  .challenges-panel,
  .portal-ai-coach-card,
  .challenges-strip {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  /* P0: multi-slide carousel must not expand main width */
  .hang-video-carousel,
  .hang-video-carousel-viewport,
  .hang-video-carousel-track,
  .hang-video-slide,
  .featured-hang-video-frame {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .hang-video-carousel-viewport {
    overflow: hidden;
    width: 100%;
  }
  .hang-video-carousel-track {
    width: 100%;
  }
  .hang-video-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  /* Header: larger hit targets, less crowding */
  .mobile-header {
    height: var(--mobile-header-height, 56px);
    padding: 0 10px 0 8px;
    gap: 8px;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .mobile-menu-toggle,
  .mobile-logout {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }
  .mobile-logo-text {
    font-size: 0.92rem;
  }
  .mobile-logo-text em {
    display: none; /* free space for unit toggle */
  }
  .mobile-header .wdhc-unit-toggle {
    flex-shrink: 0;
    transform: scale(0.95);
  }
  .mobile-header .wdhc-unit-btn {
    min-height: 32px !important;
    min-width: 40px !important;
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }

  /* Sidebar: drawer width + safe area */
  .dashboard-sidebar {
    width: min(var(--sidebar-width, 300px), 86vw) !important;
    max-width: 320px;
  }
  .sidebar-overlay {
    top: calc(var(--mobile-header-height, 56px) + env(safe-area-inset-top, 0px));
  }
  .sidebar-link {
    min-height: 48px;
    padding: 12px 18px !important;
    font-size: 1rem !important;
  }
  .btn-sidebar-primary,
  .btn-sidebar-secondary,
  .btn-sidebar-ghost,
  .btn-sidebar-split,
  .btn-sidebar-logout {
    min-height: 48px;
  }
  .mobile-logout {
    display: none !important;
  }

  /* Welcome: chips wrap cleanly, title scales */
  .welcome-banner,
  #section-overview .overview-hero.welcome-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 0 16px !important;
    width: 100%;
  }
  .welcome-content {
    width: 100%;
    min-width: 0;
  }
  .welcome-title {
    font-size: clamp(1.45rem, 7vw, 1.85rem) !important;
    line-height: 1.15;
    word-break: break-word;
  }
  .welcome-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .welcome-chip {
    flex: 0 1 auto;
    max-width: 100%;
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  .welcome-tier {
    align-self: flex-start;
  }

  /* Primary CTA: full-width stack */
  .overview-primary-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }
  .overview-primary-btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
  }
  .overview-secondary-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .overview-secondary-actions .btn-sm,
  .overview-secondary-actions a,
  .overview-secondary-actions button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Buttons sitewide on dashboard mobile */
  .dashboard-page .btn-sm {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  .dashboard-page .btn-primary,
  .dashboard-page .btn-outline {
    min-height: 48px;
  }

  /* Hang actions wrap */
  .featured-hang-video-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .featured-hang-video-actions .btn-sm,
  .featured-hang-video-actions a,
  .featured-hang-video-actions label {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
  .hang-video-carousel-btn {
    width: 40px;
    height: 40px;
    margin-bottom: 36px;
  }

  /* Sticky quick actions under fixed header */
  .overview-quick-actions--sticky {
    top: calc(var(--mobile-header-height, 56px) + 6px);
    margin-left: -2px;
    margin-right: -2px;
  }

  /* History sort row */
  .section-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .history-toolbar,
  .hang-history-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .hang-row-main {
    gap: 8px 10px;
  }
  .hang-row-expand {
    min-height: 40px;
    min-width: 72px;
  }

  /* Achievements filters: horizontal scroll strip */
  .ach-filter-bar,
  .achievements-filters,
  .ach-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ach-filter-bar button,
  .achievements-filters button,
  .ach-filters button {
    min-height: 40px;
  }

  /* Progress range pills */
  #section-progress .range-pills,
  .chart-controls {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 6px;
    max-width: 100%;
  }
  #section-progress .range-pills button,
  .chart-controls button {
    flex: 0 0 auto;
    min-height: 40px;
  }

  /* Modals nearly full-bleed */
  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 920px);
    overflow-y: auto;
    border-radius: 16px 16px 12px 12px;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .modal-close {
    min-width: 44px;
    min-height: 44px;
  }

  /* Forms: prevent iOS zoom */
  .dashboard-page input,
  .dashboard-page select,
  .dashboard-page textarea {
    font-size: 16px !important;
    max-width: 100%;
  }

  /* Tables never blow out page */
  .dashboard-page table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Stats density */
  #section-overview .stat-card {
    padding: 14px 12px;
  }
  #section-overview .stat-card--hero {
    min-height: 110px;
  }

  /* Mobile body still larger than legacy 16px shell */
  .dashboard-page {
    font-size: 1.05rem;
  }
}

@media (max-width: 390px) {
  .mobile-logo-img {
    max-width: 88px;
    height: 24px;
  }
  .overview-secondary-actions {
    grid-template-columns: 1fr;
  }
  #section-overview .stats-grid--product.stats-bento {
    gap: 8px;
  }
}

/* Section empty states */
.section-empty-state {
  padding: 28px 24px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.04);
  text-align: center;
}

.section-empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section-empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.55;
}

/* Share modal: preview-first layout */
.modal-share .share-card-v3 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 16px;
}

.share-preview-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.5;
}
/* Certificates strip */
.ach-certificates {
  margin: 12px 0 18px;
  padding: 16px 16px 14px;
}
.ach-certificates-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.ach-certificates-head strong {
  font-family: var(--font-heading, Oswald, sans-serif);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ach-certificates-head span { color: #888; font-size: 0.88rem; }
.ach-certificates-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.challenge-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Overview near-miss (retired on overview) */
.overview-near-miss { display: none !important; }

/* Monthly challenges snippet under hang video */
#section-overview .overview-month-challenges,
.overview-month-challenges {
  margin: 12px 0 0;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 55%),
    linear-gradient(165deg, rgba(20, 18, 12, 0.98) 0%, rgba(10, 9, 6, 0.99) 100%);
}
.overview-month-challenges__kicker {
  margin: 0 0 2px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4AF37;
  font-weight: 700;
}
.overview-month-challenges__month {
  margin: 0 0 10px;
  color: #f2f2f2;
  font-size: 1.02rem;
  font-weight: 700;
}
.overview-month-challenges__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overview-month-challenges__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  color: #ddd;
  font-size: 0.92rem;
  line-height: 1.35;
}
.overview-month-challenges__status,
.overview-month-challenges .status-pill.live,
.portal-challenge-card .status-pill.live {
  display: inline-block;
  font-family: Rajdhani, "Source Sans 3", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ff6b6b;
  -webkit-text-fill-color: #ff6b6b;
  background: rgba(204, 0, 0, 0.12);
  border: 1px solid #ef4444;
  border-radius: 999px;
  padding: 2px 8px;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}
.overview-month-challenges__detail {
  color: #b8b8b8;
  font-size: 0.86rem;
}
.overview-month-challenges__link {
  display: inline-block;
  color: #f0d78c;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.overview-month-challenges__link:hover {
  color: #fff4c4;
}
@media (max-width: 390px) {
  #section-overview .overview-month-challenges {
    margin-left: 0;
    margin-right: 0;
    padding: 12px 12px 14px;
  }
}
.overview-near-miss-kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4AF37;
  font-weight: 700;
}
.overview-near-miss-body {
  margin: 0 0 10px;
  color: #c8c8c8;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ===== Night pass · portal sections polish ===== */
#section-progress .chart-container,
#section-progress .card,
#section-settings .card,
#section-calculator .card,
#section-leaderboard .card,
#section-achievements .ach-sticky-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(165deg, rgba(16,16,18,0.98) 0%, rgba(8,8,10,0.99) 100%);
  box-shadow: 0 10px 32px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.04);
}

#section-achievements .achievement-filters-wrap {
  gap: 10px;
}

#section-achievements .achievement-filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #aaa;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#section-achievements .achievement-filter-btn.active {
  color: #f0d78c;
  border-color: rgba(212,175,55,0.4);
  background: rgba(212,175,55,0.1);
}

#section-achievements .achievements-grid {
  gap: 12px;
}

#section-settings .settings-row,
#section-settings .form-group {
  margin-bottom: 14px;
}

#section-calculator .calc-result-card {
  border-radius: 18px;
  border: 1px solid rgba(212,175,55,0.22);
  background: linear-gradient(165deg, rgba(28,24,12,0.95) 0%, rgba(10,9,6,0.99) 100%);
}

.dashboard-content {
  padding-bottom: 48px;
}

.content-section .section-header-row {
  margin-bottom: 16px;
  gap: 12px;
}

/* Progress range pills */
#section-progress .range-pills button,
#section-progress .chart-range-btn {
  border-radius: 999px;
}

/* In-portal celebration sheet */
.celebration-sheet {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}
.celebration-sheet[hidden] { display: none !important; }
.celebration-sheet__card {
  width: min(440px, 100%);
  padding: 28px 24px 22px;
  border-radius: 16px;
  border: 1px solid rgba(212,175,55,0.35);
  background: linear-gradient(165deg, #141210, #0a0a0a);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 40px rgba(212,175,55,0.12);
  text-align: center;
}
.celebration-sheet__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D4AF37;
  font-weight: 700;
}
.celebration-sheet__title {
  margin: 0 0 10px;
  font-family: Oswald, sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}
.celebration-sheet__copy {
  margin: 0 0 14px;
  color: #c8c8c8;
  line-height: 1.5;
  font-size: 0.98rem;
}
.celebration-sheet__stat {
  margin: 0 0 18px;
  font-size: 1.5rem;
  color: #D4AF37;
}
.celebration-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Near-your-time rivals */
.overview-rivals { margin: 14px 0; padding: 16px 18px; }
.overview-rivals__eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cd7f32;
  font-weight: 700;
}
.overview-rivals__title { margin: 0 0 12px; font-size: 1.22rem; color: #f2f2f2; }
.overview-rivals__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.overview-rivals__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  font-size: 1.15rem;
}
.overview-rivals__who {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}
.overview-rivals__item a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}
.overview-rivals__time {
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: 600;
}
.overview-rivals__loc {
  color: #9a9a9a;
  font-size: 0.95rem;
  font-weight: 400;
}
.overview-rivals__gap { color: #aaa; font-size: 0.88rem; }
.overview-rivals__foot { margin: 12px 0 0; color: #999; font-size: 0.9rem; }
/* ============================================================
   MOBILE DASHBOARD V2 (2026-08-06) · denser overview, less air,
   clearer hierarchy, sticky-safe bottom space
   ============================================================ */
@media (max-width: 768px) {
  /* Content: tighter gutters, more usable vertical space */
  .dashboard-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .content-section {
    gap: 0;
  }

  /* Section titles: smaller, less margin */
  .content-section > .section-header,
  .content-section .section-title,
  #section-history .section-title,
  #section-progress .section-title,
  #section-achievements .section-title,
  #section-training-log .section-title,
  #section-settings .section-title,
  #section-profile .section-title {
    font-size: 1.15rem !important;
    margin: 0 0 10px !important;
    letter-spacing: 0.04em;
  }
  .content-section .section-subtitle {
    font-size: 0.88rem !important;
    margin: 0 0 12px !important;
    line-height: 1.4;
    color: #a8a8a8 !important;
  }

  /* Cards: less padding, tighter stack */
  #section-overview > .card,
  #section-overview > .challenges-strip,
  #section-overview > .stats-bento,
  #section-overview > .overview-tier-path-card,
  #section-overview > .portal-ai-coach-card,
  #section-history .card,
  #section-progress .card,
  #section-achievements .card,
  #section-training-log .card {
    margin-bottom: 10px !important;
  }

  #section-overview .card,
  #section-overview .featured-hang-video-card,
  #section-overview .overview-achievements-card,
  #section-overview .overview-pro-card,
  #section-overview .activity-feed,
  #section-overview .challenges-strip {
    padding: 12px 12px 10px !important;
    border-radius: 14px !important;
  }

  /* Welcome: compact identity strip */
  #section-overview .overview-hero.welcome-banner {
    padding: 0 0 8px !important;
    margin-bottom: 4px !important;
    gap: 6px !important;
  }
  #section-overview .welcome-eyebrow {
    font-size: 0.62rem !important;
    letter-spacing: 0.14em !important;
    margin: 0 0 2px !important;
    opacity: 0.85;
  }
  #section-overview .welcome-title {
    font-size: clamp(1.35rem, 6.5vw, 1.65rem) !important;
    margin: 0 0 4px !important;
    line-height: 1.12 !important;
  }
  #section-overview .welcome-insight {
    font-size: 0.86rem !important;
    margin: 0 0 6px !important;
    padding: 6px 10px !important;
    line-height: 1.35 !important;
  }
  #section-overview .welcome-chips {
    gap: 6px !important;
  }
  #section-overview .welcome-chip {
    font-size: 0.72rem !important;
    padding: 5px 9px !important;
    min-height: 0 !important;
  }

  /* Sticky submit exists: hide redundant mid-page primary CTA band */
  #section-overview .overview-primary-cta {
    display: none !important;
  }

  /* Challenges strip: denser */
  #section-overview .challenges-strip {
    padding: 10px 12px !important;
  }
  #section-overview .challenges-strip__title {
    font-size: 0.82rem !important;
  }
  #section-overview .challenges-strip__head {
    margin-bottom: 6px !important;
  }
  #section-overview .challenges-strip__rows {
    gap: 6px !important;
  }

  /* Stats bento: tighter */
  #section-overview .stats-grid--product.stats-bento {
    gap: 8px !important;
    margin: 0 0 10px !important;
  }
  #section-overview .stat-card {
    padding: 10px 10px 9px !important;
  }
  #section-overview .stat-card--hero {
    padding: 11px 10px 10px !important;
    min-height: 0 !important;
  }
  #section-overview .stat-card--hero .stat-card-value {
    font-size: clamp(1.35rem, 7vw, 1.7rem) !important;
  }
  #section-overview .stat-card--rail {
    min-height: 0 !important;
    padding: 10px 10px 8px !important;
  }
  #section-overview .stat-card--rail .stat-card-value {
    font-size: 1.15rem !important;
  }
  #section-overview .stat-card-label {
    font-size: 0.6rem !important;
    margin-bottom: 2px !important;
  }

  /* Tier path card */
  #section-overview > #featuredHangPathPanel,
  #section-overview > .overview-tier-path-card {
    padding: 12px 12px 10px !important;
    margin: 0 0 10px !important;
  }
  #section-overview > #featuredHangPathPanel .hang-path__kicker {
    font-size: 0.65rem !important;
    margin-bottom: 6px !important;
  }
  #section-overview > #featuredHangPathPanel .hang-path__tier-name {
    font-size: 1rem !important;
  }
  #section-overview > #featuredHangPathPanel .hang-path__need {
    font-size: 1rem !important;
    margin: 4px 0 2px !important;
  }
  #section-overview > #featuredHangPathPanel .hang-path__meta {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
  }
  #section-overview > #featuredHangPathPanel .hang-path__track {
    height: 10px !important;
  }
  #section-overview > #featuredHangPathPanel #aiPrPathCoach {
    margin-top: 6px !important;
  }
  #section-overview > #featuredHangPathPanel #aiPrPathBtn {
    min-height: 36px !important;
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
  }

  /* Hang video card: less chrome */
  #section-overview .featured-hang-video-card {
    padding: 12px 10px 12px !important;
  }
  #section-overview .featured-hang-video-title {
    font-size: 0.95rem !important;
    margin: 0 0 2px !important;
  }
  #section-overview .featured-hang-video-sub {
    font-size: 0.78rem !important;
    margin: 0 0 8px !important;
    line-height: 1.35 !important;
  }
  #section-overview .featured-hang-video-header {
    margin-bottom: 8px !important;
    gap: 6px !important;
  }
  #section-overview .featured-hang-media-col {
    max-width: min(100%, 340px) !important;
  }
  #section-overview .featured-hang-aside {
    padding: 10px 10px 8px !important;
  }
  #section-overview .featured-hang-aside-kicker {
    font-size: 0.65rem !important;
    margin: 0 0 2px !important;
  }
  #section-overview .featured-hang-aside-time {
    font-size: 1.45rem !important;
    margin: 0 0 2px !important;
  }
  #section-overview .featured-hang-aside-date {
    font-size: 0.78rem !important;
  }
  #section-overview .featured-hang-journal {
    padding: 10px 4px 0 !important;
    margin-top: 2px !important;
  }
  #section-overview .featured-hang-journal__title {
    font-size: 0.95rem !important;
  }
  #section-overview .featured-hang-journal__copy {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
  }
  #section-overview .featured-hang-journal__cta {
    min-height: 44px !important;
    width: 100%;
  }

  /* Achievements strip */
  #section-overview .overview-achievements-card {
    padding: 12px !important;
  }
  #section-overview .overview-achievements-header {
    margin-bottom: 8px !important;
  }
  #section-overview .overview-ach-strip {
    gap: 8px !important;
  }

  /* Activity / pro / near-miss */
  #section-overview .activity-feed,
  #section-overview .overview-pro-card,
  #section-overview .overview-near-miss,
  #section-overview .overview-rivals {
    padding: 12px !important;
    margin-bottom: 10px !important;
  }

  /* History rows denser */
  #section-history .hang-row,
  #section-history .history-row {
    padding: 10px 12px !important;
  }

  /* Training log */
  #section-training-log .tl-stats-grid {
    gap: 8px !important;
  }

  /* Share nudge / empty states */
  #section-overview .overview-share-nudge,
  #section-overview .overview-empty-state {
    padding: 14px 12px !important;
  }

  /* Quick actions bar if present */
  .overview-quick-actions {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  .overview-quick-actions .btn-sm {
    min-height: 40px !important;
    font-size: 0.78rem !important;
    padding: 8px 10px !important;
  }
}

@media (max-width: 480px) {
  .dashboard-content {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #section-overview .welcome-title {
    font-size: clamp(1.28rem, 7vw, 1.5rem) !important;
  }

  /* Rail stats: 2x2 already; ensure no overflow text */
  #section-overview .stat-card-unit {
    font-size: 0.65rem !important;
  }

  /* Hide low-value secondary hang actions behind primary path when cramped */
  #section-overview .featured-hang-video-actions .btn-ghost {
    font-size: 0.8rem;
  }
}

/* ============================================================
   MOBILE BOTTOM CLEANUP (2026-08-06)
   Kill pale gutters / column seams / redundant bottom chrome
   ============================================================ */
@media (max-width: 768px) {
  /* Stats grid: dark plate so gaps never read as white columns */
  #section-overview .stats-grid--product.stats-bento,
  #section-overview #overviewStatsGrid {
    gap: 6px !important;
    padding: 0 !important;
    background: transparent !important;
  }
  #section-overview .stat-card {
    background:
      linear-gradient(165deg, #141412 0%, #0c0c0c 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.12) !important;
    box-shadow: none !important;
  }

  /* Friend invite: already simplified in friend-share.css; ensure no light plate */
  #section-overview .wdhc-friend-share--portal {
    background:
      linear-gradient(160deg, #161410 0%, #0a0a0a 100%) !important;
    border-color: rgba(212, 175, 55, 0.22) !important;
    box-shadow: none !important;
  }
  #section-overview .wdhc-friend-share--portal::after {
    opacity: 0.5;
  }

  /* Recent activity: hide on phone overview (history is one tap away) */
  #section-overview #activityFeedCard {
    display: none !important;
  }

  /* Share nudge / rivals: denser dark cards, no pale separators */
  #section-overview .overview-share-nudge,
  #section-overview .overview-rivals,
  #section-overview .overview-near-miss,
  #section-overview .overview-pro-card {
    background: linear-gradient(165deg, #121210 0%, #0a0a0a 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.14) !important;
    box-shadow: none !important;
  }
  #section-overview .overview-pro-card-stats {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  #section-overview .overview-pro-stat {
    background: #0e0e0e !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
  }

  /* Achievements on overview: single row scroll, no 2-col white seams */
  #section-overview .overview-ach-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    background: transparent !important;
  }
  #section-overview .overview-ach-strip > * {
    flex: 0 0 auto;
  }

  /* Achievements page 2-col grid: dark gutters not light */
  #section-achievements .achievements-grid {
    gap: 8px !important;
    background: transparent !important;
  }

  /* Secondary action grids (log training / share) if shown: stack */
  .overview-secondary-actions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .overview-secondary-actions .btn-sm,
  .overview-secondary-actions button {
    background: #121212 !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    color: #d4c48a !important;
  }
}

/* ============================================================
   MOBILE CHALLENGES STRIP + BELOW (2026-08-06)
   Minimal leaders · no pale dividers · less data dump
   ============================================================ */
@media (max-width: 768px) {
  #section-overview .challenges-strip {
    margin: 0 0 10px !important;
    padding: 10px 10px 8px !important;
    border: 1px solid rgba(212, 175, 55, 0.16) !important;
    background: #0a0a0a !important;
    box-shadow: none !important;
  }
  #section-overview .challenges-strip__head {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
    border: 0 !important;
  }
  #section-overview .challenges-wins-row {
    display: none !important;
  }
  #section-overview .challenges-strip__rows {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    grid-template-columns: none !important;
  }
  #section-overview .challenges-strip__item,
  #section-overview .challenges-strip__item--compact {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: #101010 !important;
    box-shadow: none !important;
  }
  #section-overview .challenges-strip__top5 {
    display: none !important;
  }
  #section-overview .challenges-strip__chev,
  #section-overview .challenges-strip__rank {
    display: none !important;
  }
  #section-overview .challenges-strip__leader-btn {
    padding: 9px 10px !important;
  }
  #section-overview .challenges-strip__challenge {
    font-size: 0.68rem !important;
    color: #9a9a9a !important;
  }
  #section-overview .challenges-strip__name {
    font-size: 0.82rem !important;
  }
  #section-overview .challenges-strip__metric {
    font-size: 0.82rem !important;
  }
  #section-overview .challenges-strip__countdown {
    border-color: rgba(212, 175, 55, 0.22) !important;
    background: rgba(212, 175, 55, 0.08) !important;
  }

  /* Kill pale horizontal rules under challenges / between cards */
  #section-overview > * {
    border-top-color: transparent !important;
  }
  #section-overview .card,
  #section-overview .featured-hang-video-card,
  #section-overview .overview-achievements-card,
  #section-overview .wdhc-friend-share,
  #section-overview .activity-feed {
    border-color: rgba(212, 175, 55, 0.12) !important;
    box-shadow: none !important;
  }
  #section-overview .card::before,
  #section-overview .card::after,
  #section-overview hr {
    display: none !important;
  }

  /* Everything below challenges: less chrome */
  #section-overview .featured-hang-video-card {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: #0c0c0c !important;
  }
  #section-overview .overview-achievements-card {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: #0c0c0c !important;
  }
  #section-overview .wdhc-friend-share--portal {
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
  }
}

/* ============================================================
   MOBILE: hide clutter BELOW monthly challenges
   Keep challenges strip. Strip growth/marketing/extra data cards.
   ============================================================ */
@media (max-width: 768px) {
  /* Below challenges (flex order 10): hide the dump */
  #section-overview > #overviewAchievementsCard,
  #section-overview > .overview-achievements-card,
  #section-overview > #overviewPrimaryCta,
  #section-overview > .overview-primary-cta,
  #section-overview > .wdhc-friend-share,
  #section-overview > #overviewRivalsCard,
  #section-overview > .overview-rivals,
  #section-overview > #overviewShareNudge,
  #section-overview > .overview-share-nudge,
  #section-overview > #activityFeedCard,
  #section-overview > .activity-feed,
  #section-overview > #overviewProCard,
  #section-overview > .overview-pro-card,
  #section-overview > #overviewNearMiss,
  #section-overview > .overview-near-miss,
  #section-overview > #gymBenchmarkCard,
  #section-overview > .gym-benchmark-card,
  #section-overview > #yearsSavedCard,
  #section-overview > .years-saved-card,
  #section-overview > #tierProgressSection,
  #section-overview > .overview-tier-progress {
    display: none !important;
  }

  /* Hang video card under challenges path: keep video, kill text dump */
  #section-overview .featured-hang-video-sub,
  #section-overview .featured-hang-aside-facts,
  #section-overview .featured-hang-aside-compare,
  #section-overview .featured-hang-aside-insight,
  #section-overview .featured-hang-aside-badges,
  #section-overview .featured-hang-journal__copy,
  #section-overview .featured-hang-journal__kicker,
  #section-overview .featured-hang-journal__links,
  #section-overview .hang-video-carousel-dots {
    display: none !important;
  }
  #section-overview .featured-hang-aside-kicker {
    font-size: 0.62rem !important;
  }
  #section-overview .featured-hang-journal {
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  #section-overview .featured-hang-journal__title {
    font-size: 0.9rem !important;
    margin: 0 0 8px !important;
  }

  /* No pale section seams on remaining cards */
  #section-overview > #featuredHangVideoCard,
  #section-overview > #featuredHangEmpty,
  #section-overview > #overviewStatsGrid,
  #section-overview > #featuredHangPathPanel,
  #section-overview > #challengesPanel {
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
  }
}

/* ============================================================
   MOBILE OVERVIEW · BELOW VIDEO REVAMP (2026-08-10)
   High-end fitness app language (Whoop / Apple Fitness / Nike):
   - No nested card chrome or pale dividers under the video
   - Hang time as a tight metric strip, not a tall panel
   - Full-width bar + percent under it
   - Dense 8px rhythm, one clear primary CTA
   Does NOT restyle welcome / coach / path / stats above the video.
   ============================================================ */
@media (max-width: 900px) {
  /* ---- Video card shell: edge-to-edge dark, no double frame ---- */
  #section-overview > #featuredHangVideoCard.featured-hang-video-card,
  #section-overview > #featuredHangEmpty {
    margin: 4px 0 12px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  #section-overview .featured-hang-video-header {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 0 2px 8px !important;
    margin: 0 !important;
    border: 0 !important;
  }
  #section-overview .featured-hang-video-title {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #9a9488 !important;
    margin: 0 !important;
  }
  #section-overview .featured-hang-video-sub {
    display: none !important;
  }
  #section-overview .featured-hang-video-meta {
    gap: 6px !important;
  }
  #section-overview .featured-hang-video-count,
  #section-overview .featured-hang-video-time {
    font-size: 0.78rem !important;
    color: #c8b070 !important;
  }
  #section-overview .featured-hang-video-status {
    font-size: 0.72rem !important;
  }

  /* ---- Layout under video: single column, zero dead min-height ---- */
  #section-overview .featured-hang-layout {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
  }
  #section-overview .featured-hang-media-col {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  #section-overview .featured-hang-video-frame,
  #section-overview .featured-hang-video-frame.is-portrait,
  #section-overview .hang-video-slide-frame {
    max-width: min(100%, 340px) !important;
    max-height: min(52vh, 420px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 16px !important;
    background: #000 !important;
    border: none !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
  }
  #section-overview .hang-video-carousel-viewport {
    min-height: 0 !important;
  }
  #section-overview .featured-hang-video-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 8px 0 0 !important;
    padding: 0 4px !important;
  }
  #section-overview .featured-hang-video-actions .btn-sm,
  #section-overview .featured-hang-video-actions a.btn-sm {
    min-height: 34px !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: transparent !important;
  }
  #section-overview .featured-hang-upload-status {
    text-align: center !important;
    margin: 4px 0 0 !important;
  }
  #section-overview .hang-video-carousel-dots {
    display: none !important;
  }

  /* Hang facts live in History. Do not repeat them under the video on phone. */
  #section-overview .featured-hang-aside {
    display: none !important;
  }
  #section-overview .featured-hang-aside.is-turning {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  #section-overview .featured-hang-aside__page {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "kicker badges"
      "time time"
      "date date"
      "compare compare"
      "insight insight" !important;
    gap: 2px 10px !important;
    padding: 12px 14px !important;
    min-height: 0 !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  #section-overview .featured-hang-aside-kicker {
    grid-area: kicker !important;
    margin: 0 !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #8a8478 !important;
    font-weight: 700 !important;
  }
  #section-overview .featured-hang-aside-time {
    grid-area: time !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: 0.02em !important;
  }
  #section-overview .featured-hang-aside-date {
    grid-area: date !important;
    margin: 0 !important;
    font-size: 0.82rem !important;
    color: #9a9488 !important;
    line-height: 1.3 !important;
  }
  #section-overview .featured-hang-aside-badges {
    grid-area: badges !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin: 0 !important;
  }
  #section-overview .featured-hang-aside-badges .tier-badge {
    transform: scale(0.88);
    transform-origin: top right;
  }
  /* Collapse verbose dump · keep compare if short */
  #section-overview .featured-hang-aside-facts {
    display: none !important;
  }
  #section-overview .featured-hang-aside-compare {
    grid-area: compare !important;
    margin: 4px 0 0 !important;
    font-size: 0.8rem !important;
    color: #c8b070 !important;
    line-height: 1.35 !important;
  }
  #section-overview .featured-hang-aside-insight {
    grid-area: insight !important;
    margin: 2px 0 0 !important;
    font-size: 0.78rem !important;
    color: #888 !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* ---- Journal rail: single CTA, no white divider ---- */
  #section-overview .featured-hang-desktop-rail {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    gap: 0 !important;
  }
  #section-overview .featured-hang-journal {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  #section-overview .featured-hang-journal__text {
    display: none !important;
  }
  #section-overview .featured-hang-journal__actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }
  #section-overview .featured-hang-journal__cta,
  #section-overview #featuredHangJournalCta {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.06em !important;
  }
  #section-overview .featured-hang-journal__links {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: 0 !important;
  }
  #section-overview .featured-hang-journal__link {
    font-size: 0.8rem !important;
    color: #a89870 !important;
  }

  /* Hang videos + tier path sit under welcome, like desktop (not below stats) */
  #section-overview > .overview-main-split {
    order: 1 !important;
    margin: 0 0 10px !important;
  }
  #section-overview > .overview-month-row {
    order: 2 !important;
    margin: 0 0 10px !important;
  }
  #section-overview > #overviewStatsGrid,
  #section-overview > .stats-grid--product.stats-bento {
    order: 4 !important;
  }

  /* ---- Content AFTER video card: seamless stack ---- */
  #section-overview > #challengesPanel,
  #section-overview > .challenges-strip {
    order: 5 !important;
    margin: 4px 0 10px !important;
    padding: 12px 12px 10px !important;
    border: none !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: none !important;
  }
  #section-overview .challenges-strip__head {
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
  }
  #section-overview .challenges-strip__title {
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #9a9488 !important;
  }
  #section-overview .challenges-strip__item,
  #section-overview .challenges-strip__item--compact {
    border: none !important;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, 0.28) !important;
    box-shadow: none !important;
  }
  #section-overview .challenges-wins-row,
  #section-overview .challenges-strip__top5 {
    display: none !important;
  }

  /* Re-show key actions + badges in a clean mobile form (were hard-hidden) */
  #section-overview > #overviewAchievementsCard,
  #section-overview > .overview-achievements-card {
    display: block !important;
    order: 6 !important;
    margin: 4px 0 10px !important;
    padding: 12px 0 4px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  #section-overview .overview-achievements-header {
    padding: 0 2px 8px !important;
    margin: 0 !important;
    border: 0 !important;
  }
  #section-overview .overview-achievements-header .card-title {
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #9a9488 !important;
  }
  #section-overview .overview-achievements-sub {
    display: none !important;
  }
  #section-overview .overview-ach-strip {
    display: flex !important;
    gap: 10px !important;
    padding: 0 2px 4px !important;
    border: 0 !important;
    background: transparent !important;
  }
  #section-overview .overview-ach-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  #section-overview > #overviewPrimaryCta,
  #section-overview > .overview-primary-cta {
    display: flex !important;
    flex-direction: column !important;
    order: 7 !important;
    margin: 8px 0 20px !important;
    padding: 0 !important;
    gap: 8px !important;
    border: none !important;
    background: transparent !important;
  }
  #section-overview .overview-primary-btn,
  #section-overview #overviewSubmitHangBtn {
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    border-radius: 14px !important;
  }
  #section-overview #overviewFilmModeBtn {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    border-radius: 12px !important;
  }
  #section-overview .overview-secondary-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 4px 0 0 !important;
  }
  #section-overview .overview-secondary-actions .btn-sm {
    flex: 1 1 0 !important;
    min-height: 40px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #c8c0b0 !important;
  }

  /* Keep marketing/extra cards hidden on phone overview */
  #section-overview > #overviewProCard,
  #section-overview > .overview-pro-card,
  #section-overview > #overviewNearMiss,
  #section-overview > .overview-near-miss,
  #section-overview > #overviewRivalsCard,
  #section-overview > .overview-rivals,
  #section-overview > #overviewShareNudge,
  #section-overview > .overview-share-nudge,
  #section-overview > #activityFeedCard,
  #section-overview > .activity-feed,
  #section-overview > .wdhc-friend-share,
  #section-overview > #gymBenchmarkCard,
  #section-overview > #yearsSavedCard,
  #section-overview > #tierProgressSection {
    display: none !important;
  }

  /* Kill any residual pale seams between overview blocks under the fold */
  #section-overview > #featuredHangVideoCard + *,
  #section-overview > #featuredHangEmpty + *,
  #section-overview > #challengesPanel,
  #section-overview > #overviewAchievementsCard,
  #section-overview > #overviewPrimaryCta {
    border-top: 0 !important;
  }
  #section-overview hr {
    display: none !important;
  }
}

/* Narrow phones: slightly tighter video */
@media (max-width: 390px) {
  #section-overview .featured-hang-video-frame,
  #section-overview .featured-hang-video-frame.is-portrait,
  #section-overview .hang-video-slide-frame {
    max-height: min(48vh, 380px) !important;
  }
  #section-overview .featured-hang-aside-time {
    font-size: 1.7rem !important;
  }
}

@media (max-width: 640px) {
  .overview-pro-ship-form {
    gap: 10px !important;
  }
  .overview-pro-ship-form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .overview-pro-ship-form .form-input,
  .overview-pro-ship-form input {
    min-height: 48px;
    font-size: 16px !important;
  }
}

/* 2026-08-17 portal: keep hang details on the page, drop silver rules */
#section-overview .featured-hang-layout {
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
#section-overview .featured-hang-media-col,
#section-overview .featured-hang-aside,
#section-overview .featured-hang-desktop-rail,
#section-overview .featured-hang-aside__page,
#section-overview .featured-hang-aside-facts,
#section-overview .hang-video-slide-meta {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#section-overview .featured-hang-aside-time,
#section-overview .featured-hang-aside-date,
#section-overview .featured-hang-aside-compare,
#section-overview .featured-hang-aside-insight,
#section-overview .featured-hang-aside-fact dd,
#section-overview .hang-video-slide-meta {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
#section-overview .featured-hang-aside-fact {
  border-bottom: 0 !important;
  padding-top: 6px;
  padding-bottom: 6px;
}
#section-overview .featured-hang-journal,
#section-overview .featured-hang-journal {
  border-top: 0 !important;
}
@media (max-width: 1199px) {
  #section-overview .featured-hang-layout {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  #section-overview .featured-hang-media-col,
  #section-overview .featured-hang-aside,
  #section-overview .featured-hang-desktop-rail {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto;
  }
}

#section-training-log.active:not([hidden]) {
  display: block !important;
  visibility: visible !important;
}
#section-training-log .tl-week-strip,
#section-training-log .tl-sessions-panel,
#section-training-log #hangTimerCard,
#section-training-log #tlActivePlan {
  visibility: visible;
}

/* Overview snapshot layout: videos left, path + AI coach right */
#section-overview .overview-main-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.88fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 16px;
}
#section-overview .overview-main-left,
#section-overview .overview-main-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#section-overview .overview-main-rail .portal-ai-coach-card,
#section-overview .overview-main-rail .featured-hang-path-panel {
  margin: 0;
}
#section-overview .featured-hang-desktop-rail {
  display: none !important;
}
@media (max-width: 899px) {
  #section-overview .overview-main-split {
    grid-template-columns: 1fr;
  }
}

/* Overview snapshot layout: videos left, path + AI coach right */
#section-overview .overview-main-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.88fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 16px;
}
#section-overview .overview-main-left,
#section-overview .overview-main-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#section-overview .overview-main-rail .portal-ai-coach-card,
#section-overview .overview-main-rail .featured-hang-path-panel {
  margin: 0;
}
#section-overview .featured-hang-desktop-rail {
  display: none !important;
}
@media (max-width: 899px) {
  #section-overview .overview-main-split {
    grid-template-columns: 1fr;
  }
}


/* 20260822ov2-layout: close hang-info / path gap, bigger video on smaller desktops */
#section-overview .overview-main-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.2fr);
  gap: 14px;
  align-items: stretch;
}
#section-overview .featured-hang-layout {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}
#section-overview .featured-hang-media-col,
#section-overview .featured-hang-layout.is-landscape-media .featured-hang-media-col {
  flex: 1 1 58%;
  width: auto;
  min-width: 280px;
  max-width: none;
}
#section-overview .featured-hang-aside {
  flex: 0 1 240px;
  max-width: 260px;
}
#section-overview .overview-main-rail .featured-hang-path-panel,
#section-overview .overview-main-rail .portal-ai-coach-card {
  width: 100%;
}
@media (min-width: 900px) and (max-width: 1320px) {
  #section-overview .overview-main-split {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1.05fr);
  }
  #section-overview .featured-hang-media-col,
  #section-overview .featured-hang-layout.is-landscape-media .featured-hang-media-col {
    flex: 1 1 66%;
    min-width: 300px;
  }
  #section-overview .featured-hang-aside {
    flex: 0 1 220px;
    max-width: 240px;
  }
}
@media (max-width: 899px) {
  #section-overview .overview-main-split {
    grid-template-columns: 1fr;
  }
  #section-overview .featured-hang-media-col,
  #section-overview .featured-hang-layout.is-landscape-media .featured-hang-media-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #section-overview .featured-hang-aside {
    max-width: 100%;
  }
}
#overviewProCard[hidden],
#overviewShareProCardBtn[hidden] {
  display: none !important;
}
#overviewAiCoachCard.is-ai-focus {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.7), 0 12px 36px rgba(212, 175, 55, 0.18);
  border-radius: 16px;
}

/* Train tab 20260822train1: fat timer hero, one-tap save, clean session cards */
#section-training-log .tl-timer-hero {
  margin: 0;
  padding: 22px 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(212, 175, 55, 0.14) 0%, transparent 58%),
    linear-gradient(165deg, rgba(18, 18, 20, 0.98) 0%, rgba(8, 8, 10, 0.99) 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}
#section-training-log .hang-timer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 8px;
}
#section-training-log .hang-timer-head .card-title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0d78c;
}
#section-training-log .hang-timer-head .section-subtitle {
  margin: 0;
  max-width: none;
}
#section-training-log .hang-timer-clock {
  margin: 8px 0 16px;
  padding: 18px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background:
    radial-gradient(ellipse 70% 80% at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 62%),
    #000;
  overflow: hidden;
  min-width: 0;
}
#section-training-log .hang-timer-clock.is-running {
  border-color: rgba(247, 231, 166, 0.7);
}
#section-training-log .hang-timer-clock.is-paused {
  border-color: rgba(200, 200, 200, 0.35);
}
#section-training-log .hang-timer-display {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #f7e7a6;
  text-align: center;
  word-break: keep-all;
}
#section-training-log .hang-timer-phase {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8c8c8;
}
#section-training-log .hang-timer-restart {
  appearance: none;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #d4af37;
  background: #d4af37;
  color: #111;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
#section-training-log .hang-timer-restart:hover,
#section-training-log .hang-timer-restart:focus-visible {
  background: #f0d78c;
  color: #111;
  outline: none;
}
#section-training-log .tl-quick-log {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
}
#section-training-log .tl-quick-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8c8c8;
  font-weight: 700;
}
#section-training-log .tl-quick-input,
#section-training-log .hang-timer-controls input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.32);
  color: #f2f2f2;
  font-size: 16px;
  line-height: 1.2;
}
#section-training-log .tl-quick-save {
  min-height: 46px;
  padding: 10px 18px;
  white-space: nowrap;
}
#section-training-log .hang-timer-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
#section-training-log .hang-timer-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8c8c8;
  font-weight: 700;
}
#section-training-log .hang-timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#section-training-log .hang-timer-actions .btn-primary,
#section-training-log .hang-timer-actions .btn-ghost,
#section-training-log .hang-timer-actions .btn-outline,
#section-training-log .hang-timer-actions .hang-timer-restart {
  min-height: 44px;
  padding: 10px 16px;
}
#section-training-log #tlLogAgainBtn:not([hidden]) {
  order: -1;
}
#section-training-log .tl-active-plan {
  padding: 0;
  margin: 0 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.06);
}
#section-training-log .tl-active-line {
  appearance: none;
  width: 100%;
  display: block;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: #e8d48a;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
#section-training-log .tl-export-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-left: auto;
  color: #c8c8c8;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#section-training-log .tl-export-link:hover {
  color: #f0d78c;
}
#section-training-log .tl-session-list--filled {
  gap: 12px;
}
@media (min-width: 701px) {
  #section-training-log .tl-week-group {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  #section-training-log .tl-week-group-title {
    padding: 0 2px 8px;
    background: transparent;
    border-bottom: none;
  }
  #section-training-log .tl-session-row {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin: 0 0 10px;
    background: linear-gradient(165deg, rgba(16, 16, 18, 0.98) 0%, rgba(8, 8, 10, 0.99) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  #section-training-log .tl-session-row:last-child {
    margin-bottom: 0;
  }
}
@media (max-width: 800px) {
  #section-training-log .tl-quick-log {
    grid-template-columns: 1fr 1fr;
  }
  #section-training-log .tl-quick-field--note,
  #section-training-log .tl-quick-save {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  #section-training-log,
  #section-training-log .tl-timer-hero,
  #section-training-log .tl-quick-log,
  #section-training-log .hang-timer-controls,
  #section-training-log .tl-sessions-panel {
    max-width: 100%;
  }
  #section-training-log .tl-timer-hero {
    padding: 18px 14px 16px;
  }
  #section-training-log .tl-quick-log,
  #section-training-log .hang-timer-controls {
    grid-template-columns: 1fr;
  }
  #section-training-log .tl-quick-field--note,
  #section-training-log .tl-quick-save {
    grid-column: auto;
  }
  #section-training-log .hang-timer-clock {
    padding: 14px 10px 12px;
  }
  #section-training-log .hang-timer-display {
    font-size: clamp(2.4rem, 14vw, 3.2rem);
  }
  #section-training-log .hang-timer-actions {
    flex-direction: column;
  }
  #section-training-log .hang-timer-actions button {
    width: 100%;
    max-width: 100%;
  }
  #section-training-log .tl-filter-bar--inline {
    width: 100%;
  }
  #section-training-log .tl-filter-select,
  #section-training-log .tl-quick-input,
  #section-training-log .hang-timer-controls input {
    font-size: 16px;
  }
  #section-training-log .tl-export-link {
    margin-left: 0;
  }
}


/* 20260828lock3 pillarbox cover */
.featured-hang-video-frame.is-cover video,
.hang-video-slide-frame.is-cover video,
.featured-hang-video-frame.is-cover img,
.hang-video-slide-frame.is-cover img {
  object-fit: cover;
  object-position: center center;
}


/* 20260829dash3: coach under tier; Film Mode + Log workout = solid gold / black */
#section-overview .overview-main-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#section-overview .overview-main-rail .portal-ai-coach-card {
  margin: 0;
  min-width: 0;
}
@media (min-width: 900px) {
  #section-overview .overview-main-split {
    align-items: stretch;
  }
  #section-overview .overview-main-rail .portal-ai-coach-card {
    flex: 1 1 auto;
  }
}
.dashboard-page #overviewFilmModeBtn,
.dashboard-page #overviewCoachLogBtn,
.dashboard-page a#overviewFilmModeBtn,
.dashboard-page button#overviewCoachLogBtn {
  background: var(--wdhc-cta-gradient, #d4af37) !important;
  background-color: #d4af37 !important;
  border: none !important;
  color: #000 !important;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.22);
}
.dashboard-page #overviewFilmModeBtn:hover,
.dashboard-page #overviewCoachLogBtn:hover {
  filter: brightness(1.06);
  color: #000 !important;
}
.dashboard-page .btn-primary,
.dashboard-page a.btn-primary {
  color: #000 !important;
}

/* 20260829dash5: monthly snippet under the video in the left column.
   locker-home sets #featuredHangVideoCard { order: 2 }, so month (default 0)
   would paint ABOVE the video unless we sort it after. */
#section-overview .overview-main-left {
  display: flex;
  flex-direction: column;
}
#section-overview .overview-main-left #featuredHangVideoCard,
#section-overview .overview-main-left #featuredHangEmpty {
  order: 1;
}
#section-overview .overview-main-left #overviewMonthChallenges,
.locker-home #section-overview .overview-main-left #overviewMonthChallenges {
  order: 3;
  width: 100%;
  margin-top: 0;
}
#section-overview .overview-main-split > .overview-month-challenges {
  grid-column: 1;
}

/* Subtle gold dividers on overview (hang info | path+coach, then under that row) */
#section-overview .overview-gold-col-divider {
  border-left: 1px solid rgba(212, 175, 55, 0.4);
  padding-left: 16px;
  box-sizing: border-box;
}
#section-overview .overview-gold-row-divider {
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
@media (max-width: 899px) {
  #section-overview .overview-gold-col-divider {
    border-left: none;
    padding-left: 0;
    margin-top: 8px;
  }
  #section-overview .overview-gold-row-divider {
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
}
#section-overview > #overviewMonthChallenges,
#section-overview > .overview-month-row {
  margin-top: 0;
}


/* Desktop Hang History: readable columns, no dense mobile packing */
@media (min-width: 900px) {
  #section-history .hang-history-list--filled {
    max-width: 1100px;
  }
  #section-history .hang-row-main {
    grid-template-columns: 150px minmax(220px, 1.4fr) minmax(180px, auto) auto;
    gap: 18px 28px;
    padding: 22px 28px;
    min-height: 84px;
  }
  #section-history .hang-row-time {
    font-size: 1.7rem;
    letter-spacing: 0.01em;
  }
  #section-history .hang-row-time-weight {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e8d48a;
  }
  #section-history .hang-row-type {
    font-size: 1.12rem;
    color: #f3f3f3;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  #section-history .hang-row-date {
    font-size: 0.98rem;
    color: #c8c8c8;
  }
  #section-history .hang-row-delta {
    font-size: 0.9rem;
    color: #b0b0b0;
  }
  #section-history .hang-row-expand {
    font-size: 0.8rem;
    padding: 10px 16px;
  }
  #section-history .hang-card-player {
    max-width: 920px;
  }
  #section-history .hang-row-story {
    display: none !important;
  }
}


/* 20260901top3: monthly snippet stays left; live top 3 fills the empty right column */
#section-overview .overview-month-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.2fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 16px;
}
#section-overview .overview-month-row > .overview-month-challenges,
#section-overview .overview-month-row > .overview-month-top3 {
  margin: 0;
  min-width: 0;
  height: 100%;
}
#section-overview .overview-month-top3 {
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 55%),
    linear-gradient(165deg, rgba(20, 18, 12, 0.98) 0%, rgba(10, 9, 6, 0.99) 100%);
}
.overview-month-top3__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.overview-month-top3__kicker {
  margin: 0 0 10px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4AF37;
  font-weight: 700;
}
.overview-month-top3__boards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 14px;
  margin: 0 0 12px;
  flex: 1 1 auto;
}
.overview-month-top3__board {
  min-width: 0;
}
.overview-month-top3__title {
  margin: 0 0 6px;
  color: #f2f2f2;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}
.overview-month-top3__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.overview-month-top3__row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
  color: #ddd;
  font-size: 0.86rem;
  line-height: 1.3;
}
.overview-month-top3__rank {
  color: #D4AF37;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.overview-month-top3__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f3f3f3;
  font-weight: 600;
}
.overview-month-top3__stat {
  color: #e8d48a;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.overview-month-top3__row--empty {
  grid-template-columns: 1fr;
  color: #9a9a9a;
  font-weight: 500;
}
.overview-month-top3__empty {
  margin: 0 0 12px;
  color: #b8b8b8;
  font-size: 0.88rem;
}
.overview-month-top3__link {
  display: inline-block;
  margin-top: auto;
  color: #f0d78c;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.overview-month-top3__link:hover {
  color: #fff4c4;
}
@media (min-width: 900px) and (max-width: 1320px) {
  #section-overview .overview-month-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1.05fr);
  }
}
@media (max-width: 899px) {
  #section-overview .overview-month-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 10px;
  }
  #section-overview .overview-month-top3 {
    padding: 12px 12px 14px;
  }
}
@media (max-width: 390px) {
  #section-overview .overview-month-top3 {
    margin-left: 0;
    margin-right: 0;
    padding: 12px 12px 14px;
  }
}
