/* ═══════ YOUR INFO DASHBOARD ═══════ */
#training-your-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.yt-week-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.yt-dashboard {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-content: start;
  min-height: 0;
}
.yt-card {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yt-card-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.yt-hero-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.yt-hero-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.yt-hero-label {
  font-size: 12px;
  color: var(--text-ghost);
  letter-spacing: .5px;
}
.yt-out-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.yt-out-hero-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.yt-out-hero-box .yt-hero-num {
  font-size: 24px;
}
.yt-out-hero-box .yt-hero-label {
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .yt-out-hero-grid {
    grid-template-columns: 1fr;
  }
}
.yt-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.yt-bk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.yt-bk-label {
  color: var(--text-secondary);
}
.yt-bk-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ghost);
  margin-left: 6px;
}
.yt-bk-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}
.yt-balance-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.yt-bal-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.yt-bal-label { color: var(--text-secondary); }
.yt-bal-val { font-family: var(--font-mono); font-weight: 600; }

/* Stat bars in Your Training */
.yt-stat-bars { display: flex; flex-direction: column; gap: 8px; }
.yt-sb-row { display: flex; align-items: center; gap: 10px; }
.yt-sb-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 1px; width: 36px; text-transform: uppercase; }
.yt-sb-bar { flex: 1; height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.yt-sb-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }
.yt-sb-val { font-family: var(--font-mono); font-size: 12px; font-weight: 600; min-width: 60px; text-align: right; }

/* Daily chart bars */
.yt-daily-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; min-height: 84px; margin-top: 6px; }
.yt-day-col { min-width: 0; display: grid; grid-template-rows: 12px 52px 10px; gap: 4px; align-items: end; }
.yt-day-val { display: block; min-height: 12px; font-size: 9px; line-height: 1; color: var(--text-ghost); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-day-bar-wrap { height: 52px; display: flex; align-items: flex-end; }
.yt-day-bar { width: 100%; border-radius: 4px 4px 0 0; transition: height .3s ease; min-height: 2px; }
.yt-day-lbl { font-size: 9px; color: var(--text-ghost); letter-spacing: .5px; text-align: center; }

/* Shortfall info */
.yt-shortfall-info { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* Bottom buttons for Your Training */
#yt-btns {
  padding: 10px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  bottom: var(--footer-safe-boundary);
  z-index: 6;
  background:
    linear-gradient(180deg, rgba(9,13,20,.82), rgba(9,13,20,.96));
  box-shadow: 0 -8px 18px rgba(0,0,0,.18);
}
#yt-btns button {
  padding: 8px 20px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  max-width: 100%;
}

#your-info-refresh-frame, #training-refresh-frame, #bb-refresh-frame, #nerve-refresh-frame {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  min-width: 0;
}
.trf-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-ghost);
}

#training-info, #bb-info, #nerve-info, #bleeding-info {
  padding: 8px 24px;
  font-size: 11px;
  color: var(--text-ghost);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-wrap: anywhere;
}

#training-week-tabs, #bb-week-tabs, #nerve-week-tabs, #bleeding-war-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
  min-width: 0;
}
.week-tab, .bleed-tab {
  appearance: none;
  -webkit-appearance: none;
  padding: 5px 14px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 8px 18px rgba(0,0,0,.14);
  transition: transform .14s ease, border-color .14s ease, color .14s ease, background .14s ease, box-shadow .14s ease;
  position: relative;
  overflow: hidden;
}
.week-tab::before, .bleed-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.08) 45%, transparent 100%);
  opacity: 0;
  transform: translateX(-120%);
  transition: transform .24s ease, opacity .24s ease;
}
.week-tab:hover, .bleed-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.14);
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 24px rgba(0,0,0,.18);
}
.week-tab:hover::before, .bleed-tab:hover::before { opacity: 1; transform: translateX(0); }
.week-tab.active { border-color: var(--flame); color: var(--flame); background: var(--glow-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(99,102,241,.14); }
.bleed-tab.active { border-color: var(--danger); color: var(--danger); background: rgba(244,63,94,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(244,63,94,.12); }

#training-table-wrap, #bb-table-wrap, #nerve-table-wrap, #bleeding-table-wrap {
  flex: 1;
  overflow: auto;
  padding: 0;
  min-height: 0;
  min-width: 0;
}
.table-scroll-x { min-width: 100%; min-height: 100%; }

#training-table, #bb-table, #nerve-table, #bleeding-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
#training-table th, #bb-table th, #nerve-table th, #bleeding-table th {
  background: var(--surface);
  padding: 8px 14px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-ghost);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border);
}
#training-table td, #bb-table td, #nerve-table td, #bleeding-table td {
  padding: 6px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}
.th-member { min-width: 140px; }
.th-day { text-align: right; min-width: 50px; }
.th-total { text-align: center; color: var(--flame); background: var(--glow-accent); }
.th-num { text-align: right; }

#training-btns, #bb-btns, #nerve-btns {
  padding: 10px 24px;
  border-top: 1px solid var(--border);
