*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #080d12;
  --surface:      #111820;
  --surface-soft: #0d1520;
  --line:         #1a2330;
  --ink:          #e8eaf0;
  --ink-soft:     #8a95a8;
  --muted:        #4a5568;
  --maroon:       #a84850;
  --teal:         #3ea8b0;
  --blue:         #4a82b8;
  --gold:         #c09830;
  --green:        #3a9050;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  height: 100%;
}

/* ── Layout ── */
.shell { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }

.sidebar {
  background: linear-gradient(180deg, #131b24 0%, #0f1620 100%);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 28px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.sidebar-footer { margin-top: auto; }

.goal-badge {
  background: linear-gradient(135deg, rgba(62,168,176,0.1), rgba(74,130,184,0.06));
  border: 1px solid rgba(62,168,176,0.2);
  border-radius: 9px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 12px;
  text-transform: uppercase;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; }
.brand-icon {
  color: var(--teal);
  font-size: 22px;
  filter: drop-shadow(0 0 10px rgba(62,168,176,0.55));
}
.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.05); color: var(--ink); }
.nav-link.active {
  background: linear-gradient(135deg, rgba(62,168,176,0.18), rgba(62,168,176,0.07));
  color: var(--teal);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(62,168,176,0.22);
}

/* ── Main content ── */
.main { padding: 40px 46px; max-width: 900px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.main { animation: fadeUp 0.24s ease forwards; }

/* ── Typography ── */
.eyebrow {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0.75;
}
h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h3 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.page-head { margin-bottom: 28px; }

/* ── Panel ── */
.panel {
  background: linear-gradient(145deg, #141c26 0%, #101820 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Buttons ── */
.btn { background: var(--teal); border: none; border-radius: 8px; color: #fff; cursor: pointer; font: inherit; font-size: 0.88rem; font-weight: 600; padding: 9px 18px; transition: opacity 0.15s; white-space: nowrap; }
.btn:hover { opacity: 0.82; }
.btn.danger { background: transparent; color: var(--maroon); padding: 4px 8px; font-size: 0.76rem; border: 1px solid rgba(168,72,80,0.3); border-radius: 6px; }
.btn.danger:hover { background: rgba(168,72,80,0.1); }

/* ── Feedback box ── */
.feedback {
  background: linear-gradient(145deg, #141c26, #101820);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 20px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.feedback strong { color: var(--ink); }
.feedback.warn { border-left-color: var(--gold); }
.feedback.good { border-left-color: var(--green); }

/* ── Body Map ── */
.body-map-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.body-map-meta { font-size: 0.74rem; color: var(--muted); }
.body-map-figures { display: flex; justify-content: center; gap: 44px; }
.body-map-fig { text-align: center; }
.body-map-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}
.body-map-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  font-size: 0.70rem;
  color: var(--ink-soft);
}
.bml-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  margin-right: 3px;
  flex-shrink: 0;
}
.bml-swatch:first-child { margin-left: 0; }

/* ── Balance cards ── */
.balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.balance-card {
  background: linear-gradient(145deg, #141c26, #101820);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px;
  padding: 18px 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.2s, transform 0.2s;
}
.balance-card:hover { border-color: rgba(62,168,176,0.18); transform: translateY(-1px); }
.balance-label { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; margin-bottom: 10px; }
.balance-nums {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.balance-denom { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.balance-note { font-size: 0.73rem; color: var(--ink-soft); }

/* ── Volume bars ── */
.vol-legend-label { font-size: 0.67rem; color: var(--muted); line-height: 1.6; }
.vol-section-label { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; margin: 18px 0 13px; }
.vol-grid { display: flex; flex-direction: column; gap: 12px; }
.vol-row { display: grid; grid-template-columns: 118px 30px 1fr 68px; align-items: center; gap: 10px; }
.vol-label { font-size: 0.82rem; color: var(--ink-soft); }
.vol-label.priority {
  color: var(--teal);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(62,168,176,0.35);
}

/* Frequency badge */
.freq-badge { font-size: 0.65rem; font-weight: 800; padding: 2px 5px; border-radius: 4px; text-align: center; white-space: nowrap; }
.freq-none { color: var(--muted); font-weight: 400; }
.freq-low  { background: rgba(74,130,184,0.14); color: var(--blue); }
.freq-ok   { background: rgba(62,168,176,0.18); color: var(--teal); box-shadow: 0 0 8px rgba(62,168,176,0.15); }
.freq-high { background: rgba(192,152,48,0.14); color: var(--gold); }

.vol-bar-bg {
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  height: 10px;
  position: relative;
  overflow: visible;
}

@keyframes barGrow { to { width: var(--w); } }
.vol-bar-fill {
  border-radius: 6px;
  height: 100%;
  width: 0;
  animation: barGrow 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.vol-bar-fill.low  { background: linear-gradient(90deg, #7a3038, #a84850); }
.vol-bar-fill.ok   { background: linear-gradient(90deg, #2e8890, #3ea8b0); box-shadow: 0 0 12px rgba(62,168,176,0.25); }
.vol-bar-fill.over { background: linear-gradient(90deg, #907020, #c09830); }
.vol-bar-min { position: absolute; top: -5px; height: 20px; width: 2px; background: rgba(255,255,255,0.18); border-radius: 2px; }
.vol-sets { font-size: 0.84rem; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.vol-denom { font-size: 0.74rem; color: var(--muted); font-weight: 400; }

/* ── History ── */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item {
  background: linear-gradient(145deg, #141c26, #101820);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px;
  padding: 16px 20px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 14px rgba(0,0,0,0.22);
}
.history-item:hover {
  border-color: rgba(62,168,176,0.25);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(62,168,176,0.08);
  transform: translateY(-2px);
}
.history-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.history-type { font-weight: 800; font-size: 0.97rem; }
.history-date { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.history-sets-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  padding: 3px 9px;
  font-weight: 600;
}
.history-split { font-size: 0.72rem; color: var(--muted); margin-bottom: 9px; }
.history-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 0.71rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.chip-push { background: rgba(168,72,80,0.12); color: #c06870; border: 1px solid rgba(168,72,80,0.18); }
.chip-pull { background: rgba(62,168,176,0.12); color: var(--teal); border: 1px solid rgba(62,168,176,0.18); }
.chip-legs { background: rgba(74,130,184,0.12); color: var(--blue); border: 1px solid rgba(74,130,184,0.18); }
.history-notes { margin-top: 10px; font-size: 0.75rem; color: var(--muted); font-style: italic; }
.history-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Rolling window indicator ── */
.window-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.window-in  { background: rgba(52,199,89,0.12);  color: #4cd964; border: 1px solid rgba(52,199,89,0.22); }
.window-out { background: rgba(255,255,255,0.04); color: var(--muted); border: 1px solid rgba(255,255,255,0.07); }
.rolled-off { opacity: 0.55; }

/* ── Muscle contribution pills ── */
.muscle-contrib {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.contrib-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.contrib-ok  { background: rgba(52,199,89,0.1);  color: #4cd964; border: 1px solid rgba(52,199,89,0.2); }
.contrib-low { background: rgba(255,159,10,0.1); color: #ff9f0a; border: 1px solid rgba(255,159,10,0.2); }
.contrib-total { opacity: 0.65; font-weight: 500; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

/* ── Next session ── */
.next-session {
  border-left: 3px solid var(--teal);
  box-shadow: 0 4px 28px rgba(0,0,0,0.35), 0 0 40px rgba(62,168,176,0.04), inset 0 1px 0 rgba(255,255,255,0.04);
}
.next-eyebrow { font-size: 0.64rem; color: var(--teal); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.next-type { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.next-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.next-need {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 13px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.15s;
}
.next-need:hover { border-color: rgba(62,168,176,0.2); }
.next-muscle { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.next-muscle.priority { color: var(--teal); text-shadow: 0 0 12px rgba(62,168,176,0.3); }
.next-sets { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.next-exercises { font-size: 0.77rem; color: var(--ink-soft); padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); }

/* ── 4-Session Plan Grid ── */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px;
  transition: border-color 0.15s, transform 0.15s;
}
.plan-card:hover { border-color: rgba(62,168,176,0.18); transform: translateY(-1px); }
.plan-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.plan-num { font-size: 0.64rem; color: var(--teal); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; display: block; }
.plan-date { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 2px; display: block; }
.plan-type-badge { font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.plan-type-badge.upper { background: rgba(62,168,176,0.14); color: var(--teal); }
.plan-type-badge.lower { background: rgba(193,154,82,0.14); color: var(--gold); }

/* ── Recovery ── */
.recovery-grid { display: flex; flex-direction: column; gap: 9px; }
.recovery-row { display: flex; justify-content: space-between; align-items: center; }
.recovery-badge { font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.badge-rest  { background: rgba(168,72,80,0.15);  color: var(--maroon); }
.badge-ready { background: rgba(62,168,176,0.15); color: var(--teal); }
.badge-due   { background: rgba(192,152,48,0.15); color: var(--gold); }
.badge-fresh { background: rgba(74,130,184,0.14); color: var(--blue); }
.badge-none  { background: rgba(255,255,255,0.05); color: var(--muted); }

/* ── Consistency dots ── */
.dot-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.dot {
  display: inline-block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  transition: transform 0.15s, filter 0.15s;
}
.dot:hover { transform: scale(1.25); }
.dot-upper { background: var(--teal); box-shadow: 0 0 8px rgba(62,168,176,0.35); }
.dot-lower { background: var(--blue); box-shadow: 0 0 8px rgba(74,130,184,0.35); }
.dot-empty { background: rgba(255,255,255,0.05); }
.dot-legend { font-size: 0.71rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.dot-legend .dot { width: 10px; height: 10px; aspect-ratio: unset; flex-shrink: 0; }

/* ── Stats ── */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: linear-gradient(145deg, #141c26, #101820);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: rgba(62,168,176,0.18); transform: translateY(-2px); }
.stat-value {
  font-size: 2.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e8eaf0 20%, #7a8898 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat-label { font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; margin-top: 5px; }
.stat-sub { font-size: 0.74rem; color: var(--ink-soft); margin-top: 4px; }

/* ── Tips tab ── */
.vtaper-panel {
  border-left: 3px solid var(--teal);
  box-shadow: 0 4px 28px rgba(0,0,0,0.35), 0 0 40px rgba(62,168,176,0.05), inset 0 1px 0 rgba(255,255,255,0.04);
}
.principle-grid { display: flex; flex-direction: column; gap: 20px; }
.tip-card { display: flex; gap: 15px; align-items: flex-start; }
.tip-icon { font-size: 1.05rem; color: var(--teal); flex-shrink: 0; width: 22px; margin-top: 1px; }
.tip-title { font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.tip-body { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.72; }

.muscle-tip-card {
  background: linear-gradient(145deg, #141c26, #101820);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px;
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.muscle-tip-card:hover { border-color: rgba(255,255,255,0.1); }
.muscle-tip-card.undertrained { border-left: 3px solid var(--maroon); }
.muscle-tip-head { margin-bottom: 12px; }
.muscle-tip-name { font-weight: 800; font-size: 0.93rem; color: var(--ink); }
.muscle-tip-name.priority { color: var(--teal); text-shadow: 0 0 14px rgba(62,168,176,0.35); }
.undertrained-badge { background: rgba(168,72,80,0.15); color: var(--maroon); font-size: 0.62rem; font-weight: 800; padding: 2px 7px; border-radius: 5px; margin-left: 8px; text-transform: uppercase; letter-spacing: 0.06em; vertical-align: middle; }
.muscle-tip-sub { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 3px; font-style: italic; }
.tip-list { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 7px; }
.tip-list li { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.68; }
.vtaper-list li::marker { color: var(--teal); }

/* ── Watchlist cards ── */
.watchlist-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(145deg, #141c26, #101820);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px;
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}
.watchlist-warn { border-left: 3px solid var(--maroon); }
.watchlist-tip  { border-left: 3px solid var(--blue); }
.watchlist-good { border-left: 3px solid var(--green); }
.watchlist-icon { font-size: 0.88rem; flex-shrink: 0; width: 18px; margin-top: 2px; }
.watchlist-warn .watchlist-icon { color: var(--maroon); }
.watchlist-tip  .watchlist-icon { color: var(--blue); }
.watchlist-good .watchlist-icon { color: var(--green); }
.watchlist-title { font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.watchlist-body  { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.68; }

/* ── Proposed workout ── */
.proposed-workout-card { padding-bottom: 14px; }
.proposed-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.proposed-total { font-size: 0.74rem; color: var(--muted); background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 6px; margin-top: 4px; }
.proposed-list { display: flex; flex-direction: column; }
.proposed-ex { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.proposed-ex:last-child { border-bottom: none; }
.proposed-ex.ex-covered    { opacity: 0.35; }
.proposed-ex.ex-recovering { opacity: 0.5; }
.proposed-ex-num { font-size: 0.68rem; color: var(--muted); font-weight: 800; width: 18px; flex-shrink: 0; margin-top: 3px; }
.proposed-ex-name { font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.proposed-ex-detail { font-size: 0.74rem; color: var(--ink-soft); margin-bottom: 4px; }
.proposed-ex-group { color: var(--muted); }
.proposed-ex-tip { font-size: 0.72rem; color: var(--muted); font-style: italic; line-height: 1.5; }
.ex-status-badge { font-size: 0.62rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; vertical-align: middle; letter-spacing: 0.04em; }
.badge-priority   { background: rgba(62,168,176,0.15); color: var(--teal); }
.badge-covered    { background: rgba(255,255,255,0.06); color: var(--muted); }
.badge-recovering { background: rgba(168,72,80,0.12); color: var(--maroon); }
.proposed-note { font-size: 0.69rem; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05); }

/* ── Trend strip (Stats) ── */
.trend-strip {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #141c26, #101820);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 13px;
  padding: 18px 22px;
  margin-bottom: 20px;
  gap: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}
.trend-cell { flex: 1; text-align: center; }
.trend-val {
  font-size: 1.75rem; font-weight: 800;
  background: linear-gradient(135deg, #e8eaf0 20%, #7a8898 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1; letter-spacing: -0.03em;
}
.trend-label { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-top: 4px; }
.trend-divider { width: 1px; height: 42px; background: rgba(255,255,255,0.07); flex-shrink: 0; }
.trend-arrow { font-size: 0.74rem; font-weight: 700; margin-left: 18px; flex-shrink: 0; white-space: nowrap; }

/* ── All-time volume bars (Stats) ── */
.at-grid { display: flex; flex-direction: column; gap: 10px; }
.at-row { display: grid; grid-template-columns: 112px 1fr 44px; gap: 10px; align-items: center; }
.at-bar-bg { background: rgba(255,255,255,0.04); border-radius: 6px; height: 7px; overflow: hidden; }
.at-bar-fill { background: linear-gradient(90deg, var(--teal), #2a8890); border-radius: 6px; height: 100%; width: 0; animation: barGrow 0.6s cubic-bezier(0.4,0,0.2,1) forwards; }
.at-sets { font-size: 0.73rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ── Momentum bars (For You) ── */
.momentum-row { display: grid; grid-template-columns: 72px 1fr 26px; gap: 10px; align-items: center; margin-bottom: 8px; }
.momentum-row:last-child { margin-bottom: 0; }
.momentum-label { font-size: 0.72rem; color: var(--muted); }
.momentum-bar-bg { background: rgba(255,255,255,0.04); border-radius: 6px; height: 7px; overflow: hidden; }
.momentum-bar-fill { background: linear-gradient(90deg, var(--teal), #2a8890); border-radius: 6px; height: 100%; width: 0; animation: barGrow 0.55s ease forwards; }
.momentum-count { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); text-align: right; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 100;
    background: rgba(10,16,24,0.96);
    backdrop-filter: blur(14px);
    gap: 0;
  }
  .brand, .sidebar-footer { display: none; }
  .nav { flex-direction: row; gap: 0; width: 100%; }
  .nav-link {
    flex: 1;
    text-align: center;
    padding: 10px 4px 14px;
    font-size: 0.68rem;
    border-radius: 0;
    letter-spacing: 0;
  }
  .nav-link.active {
    background: none;
    box-shadow: none;
    border-radius: 0;
    border-top: 2px solid var(--teal);
    color: var(--teal);
  }
  .main { padding: 20px 16px 90px; max-width: 100%; }
  .balance-grid { grid-template-columns: 1fr; }
  .vol-row { grid-template-columns: 100px 26px 1fr 60px; gap: 8px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .trend-strip { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .trend-arrow { margin-left: 0; width: 100%; text-align: center; }
}
