*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }

:root {
  --bg: #111111;
  --surface: #1c1c1e;
  --surface2: #2c2c2e;
  --accent: #ff6b35;
  --accent-dim: rgba(255, 107, 53, 0.15);
  --green: #30d158;
  --green-dim: rgba(48, 209, 88, 0.15);
  --text: #f2f2f7;
  --muted: #8e8e93;
  --border: rgba(255,255,255,0.08);
  --nav-h: 60px;
  --hdr-h: 52px;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

#app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
#header {
  height: var(--hdr-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
}
.hdr-left      { display: flex; flex-direction: column; gap: 1px; }
#header-title  { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
#header-sub    { font-size: 11px; color: var(--muted); }

/* header right cluster */
#header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

#logout-btn {
  background: none; border: none; color: var(--muted);
  font-size: 17px; cursor: pointer; padding: 4px 6px; border-radius: 7px;
  transition: color 0.15s;
}
#logout-btn:hover { color: var(--text); }

/* unit toggle pill */
#unit-toggle {
  display: flex;
  background: var(--surface2);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}
.unit-btn {
  background: none; border: none; color: var(--muted);
  font-size: 13px; font-weight: 700; padding: 5px 13px;
  border-radius: 7px; cursor: pointer; letter-spacing: 0.2px;
  transition: background 0.15s, color 0.15s;
}
.unit-btn.active { background: var(--accent); color: #fff; }
.unit-btn:not(.active):active { opacity: 0.6; }

/* secondary weight display */
.wt-alt  { font-size: 0.65em; font-weight: 400; color: #4a4a4e; margin-left: 3px; }
.wt-unit { font-size: 0.65em; font-weight: 400; color: var(--muted); }

/* ── Content ── */
#content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(var(--nav-h) + 14px);
}

/* ── Nav ── */
#nav {
  height: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0);
  flex-shrink: 0;
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; color: var(--muted);
  font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
  cursor: pointer; padding: 8px 0; text-transform: uppercase;
  transition: color 0.15s;
}
.nav-btn svg  { width: 20px; height: 20px; fill: currentColor; }
.nav-btn.active { color: var(--accent); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.card-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted); margin-bottom: 12px;
}

/* ── Stats ── */
.stats-row { display: flex; gap: 8px; margin-bottom: 12px; }
.stat-card {
  flex: 1; background: var(--surface); border-radius: 14px;
  padding: 14px 8px; text-align: center; border: 1px solid var(--border);
}
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.stat-label { font-size: 10px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.3px; }

/* ── Workout preview card ── */
.workout-card {
  background: var(--surface); border-radius: 16px; padding: 20px;
  margin-bottom: 12px; border: 1px solid var(--border);
}
.day-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--accent);
  background: var(--accent-dim); padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
}
.workout-name   { font-size: 22px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.5px; }
.workout-tag    { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.ex-preview     { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ex-preview-row { display: flex; justify-content: space-between; font-size: 14px; }
.ex-preview-wt  { color: var(--muted); font-size: 13px; }

/* ── Buttons ── */
.btn {
  display: block; width: 100%; padding: 15px; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); opacity: 0.8; }
.btn-primary  { background: var(--accent); color: #fff; }
.btn-success  { background: var(--green); color: #000; }
.btn-secondary{ background: var(--surface2); color: var(--text); }
.btn-sm {
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: opacity 0.15s;
}
.btn-sm:active { opacity: 0.7; }

/* ── Rest/Squash day cards ── */
.rest-card {
  background: var(--surface); border-radius: 16px; padding: 28px 20px;
  text-align: center; margin-bottom: 12px; border: 1px solid var(--border);
}
.rest-icon    { font-size: 44px; margin-bottom: 10px; }
.rest-title   { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.rest-msg     { font-size: 14px; color: var(--muted); line-height: 1.5; }

.squash-card {
  border-radius: 16px; padding: 24px; text-align: center; margin-bottom: 12px;
  background: linear-gradient(135deg, #0e2010 0%, #162516 100%);
  border: 1px solid rgba(48,209,88,0.25);
}
.squash-title { font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.squash-sub   { font-size: 14px; color: var(--muted); }

/* ── Workout picker ── */
.picker-btn {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; transition: border-color 0.15s; margin-bottom: 8px;
  color: var(--text);
}
.picker-btn:active    { opacity: 0.7; }
.picker-btn-name      { font-size: 16px; font-weight: 600; text-align: left; }
.picker-btn-day       { font-size: 12px; color: var(--muted); text-align: left; margin-top: 2px; }
.picker-chevron       { color: var(--muted); font-size: 20px; margin-left: 8px; }

/* ── Active workout ── */
.workout-top-bar {
  display: flex; gap: 8px; margin-bottom: 14px;
}

.exercise-card {
  background: var(--surface); border-radius: 14px; padding: 16px;
  margin-bottom: 12px; border: 1px solid var(--border);
}
.exercise-card.all-done { border-color: rgba(48,209,88,0.3); }

.ex-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px;
}
.ex-name      { font-size: 17px; font-weight: 700; flex: 1; line-height: 1.2; }
.ex-progress  { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 8px; flex-shrink: 0; }
.ex-equipment { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.ex-note      {
  font-size: 12px; color: var(--accent); background: var(--accent-dim);
  padding: 7px 10px; border-radius: 8px; margin-bottom: 8px; line-height: 1.4;
}
.ex-tip {
  font-size: 12px; color: var(--muted); background: var(--surface2);
  padding: 7px 10px; border-radius: 8px; margin-bottom: 12px; line-height: 1.4;
}

/* Set rows */
.sets-header {
  display: grid; grid-template-columns: 28px 1fr 72px 44px;
  gap: 8px; margin-bottom: 6px;
}
.set-col-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); text-align: center;
}

.set-row {
  display: grid; grid-template-columns: 28px 1fr 72px 44px;
  gap: 8px; align-items: center; margin-bottom: 8px;
}
.set-num {
  font-size: 13px; color: var(--muted); font-weight: 700;
  text-align: center; line-height: 40px;
}

.set-input {
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 9px; color: var(--text); font-size: 17px; font-weight: 600;
  text-align: center; padding: 9px 4px; width: 100%;
  -webkit-appearance: none; -moz-appearance: textfield;
  transition: border-color 0.15s, background 0.15s;
}
.set-input:focus    { border-color: var(--accent); outline: none; }
.set-input.done     { border-color: var(--green); color: var(--green); background: var(--green-dim); }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }

.set-check {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--surface2);
  color: var(--muted); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; padding: 0; flex-shrink: 0;
}
.set-check.done { background: var(--green); border-color: var(--green); color: #000; font-weight: 700; }
.set-check:active { transform: scale(0.9); }

/* ── Timer overlay ── */
#timer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100; padding: 0;
}
#timer-overlay.hidden { display: none; }

#timer-box {
  background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 28px 24px calc(env(safe-area-inset-bottom, 0px) + 32px);
  width: 100%; max-width: 480px; text-align: center;
  border-top: 1px solid var(--border);
}
#timer-label   { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
#timer-display { font-size: 80px; font-weight: 700; letter-spacing: -4px; font-variant-numeric: tabular-nums; margin-bottom: 16px; line-height: 1; }
#timer-progress{ height: 4px; background: var(--surface2); border-radius: 2px; margin-bottom: 20px; overflow: hidden; }
#timer-bar     { height: 100%; background: var(--accent); border-radius: 2px; transition: width 1s linear; }
#timer-skip    {
  background: var(--surface2); color: var(--muted); border: none; border-radius: 12px;
  padding: 13px 36px; font-size: 15px; font-weight: 600; cursor: pointer;
}
#timer-skip:active { opacity: 0.7; }

/* ── Summary ── */
.summary-card {
  background: var(--surface); border-radius: 16px; padding: 28px 20px;
  text-align: center; margin-bottom: 12px; border: 1px solid var(--border);
}
.summary-icon  { font-size: 52px; margin-bottom: 12px; }
.summary-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.summary-sub   { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.summary-stats { display: flex; justify-content: center; gap: 28px; }
.ss-value      { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.ss-label      { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }

/* ── History ── */
.history-item {
  background: var(--surface); border-radius: 14px; padding: 14px 16px;
  margin-bottom: 10px; border: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.history-item:active { opacity: 0.7; }
.history-date { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.history-name { font-size: 17px; font-weight: 700; }
.history-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.history-badge {
  width: 38px; height: 38px; background: var(--accent-dim); color: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}

.session-set-row {
  display: flex; justify-content: space-between; font-size: 14px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.session-set-row:last-child { border-bottom: none; }
.session-set-row.missed     { opacity: 0.4; }

/* ── Progress ── */
.exercise-select {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text); padding: 12px 14px; border-radius: 10px;
  font-size: 16px; margin-bottom: 14px; -webkit-appearance: none;
}
.progress-card {
  background: var(--surface); border-radius: 14px; padding: 16px;
  border: 1px solid var(--border);
}
.chart-svg { width: 100%; overflow: visible; display: block; }

/* ── Personal Records ── */
.pr-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.pr-item {
  background: var(--surface2); border-radius: 10px; padding: 12px 10px; text-align: center;
}
.pr-weight { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: var(--accent); }
.pr-unit   { font-size: 13px; font-weight: 400; color: var(--muted); }
.pr-name   { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.pr-orm    { font-size: 11px; color: #5e8fff; margin-top: 2px; font-weight: 600; }
.pr-date   { font-size: 10px; color: #4a4a4e; margin-top: 2px; }

/* ── Chart sections ── */
.chart-section { margin-top: 4px; }
.chart-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px;
}
.chart-value    { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.chart-unit     { font-size: 14px; color: var(--muted); font-weight: 400; }
.chart-label    { font-size: 12px; color: var(--muted); margin-top: 1px; }
.chart-gain     { font-size: 18px; font-weight: 700; color: var(--green); }
.chart-gain.neg { color: #ff453a; }
.chart-footnote { font-size: 11px; color: #4a4a4e; margin-top: 8px; }

/* ── Activity calendar ── */
.cal-legend {
  display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap;
}
.cal-leg-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted);
}
.cal-dot {
  width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0;
}

/* ── Misc ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.back-btn    { background: var(--surface2); color: var(--text); border: none; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 14px; }
.back-btn:active { opacity: 0.7; }

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.set-check.pop { animation: pop 0.2s ease; }

/* ── Session notes ── */
.notes-input {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 14px; padding: 10px 12px;
  resize: none; min-height: 80px; font-family: inherit; line-height: 1.5;
  transition: border-color 0.15s;
}
.notes-input:focus { border-color: var(--accent); outline: none; }
.notes-save-indicator {
  font-size: 11px; color: var(--muted); text-align: right; margin-top: 4px;
  min-height: 16px; transition: opacity 0.3s;
}

/* ── Skip / link buttons ── */
.link-btn {
  background: none; border: none; color: var(--muted); font-size: 13px;
  cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 2px;
  transition: color 0.15s;
}
.link-btn:hover { color: var(--text); }

/* ── Bodyweight ── */
.bw-log-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 14px;
}
.bw-log-row .set-input { flex: 1; max-width: 120px; font-size: 20px; }
.bw-entry {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--border);
}
.bw-entry:last-child { border-bottom: none; }
.bw-entry-date { color: var(--muted); }
.bw-delete-btn {
  background: none; border: none; color: #3a3a3e; font-size: 16px;
  cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: color 0.15s;
}
.bw-delete-btn:hover { color: #ff453a; }
.bw-recent { max-height: 180px; overflow-y: auto; }

/* ── Manage view ── */
.manage-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted); margin: 16px 0 8px;
}
.manage-section-title:first-child { margin-top: 0; }

.item-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface2); border-radius: 10px; padding: 11px 14px;
  margin-bottom: 6px;
}
.item-row-name  { font-size: 15px; font-weight: 600; }
.item-row-meta  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.item-row-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.tag-system {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); background: var(--surface); border-radius: 5px; padding: 3px 7px;
  border: 1px solid var(--border);
}
.tag-custom {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--accent); background: var(--accent-dim); border-radius: 5px; padding: 3px 7px;
}
.icon-btn {
  background: none; border: none; color: #3a3a3e; font-size: 16px;
  cursor: pointer; padding: 4px 7px; border-radius: 7px; transition: color 0.15s;
  line-height: 1;
}
.icon-btn:hover { color: #ff453a; }

/* ── Add-form panel ── */
.add-form {
  background: var(--surface2); border-radius: 12px; padding: 14px;
  margin-top: 8px; display: flex; flex-direction: column; gap: 8px;
}
.add-form .form-row {
  display: flex; gap: 8px;
}
.form-input {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 9px; color: var(--text); font-size: 14px;
  padding: 9px 12px; width: 100%; transition: border-color 0.15s; font-family: inherit;
}
.form-input:focus  { border-color: var(--accent); outline: none; }
.form-label {
  font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 2px;
}
.btn-add {
  background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent);
  border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s; white-space: nowrap; flex-shrink: 0;
}
.btn-add:active { opacity: 0.7; }
.btn-add:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Template exercise list builder ── */
.tmpl-ex-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 6px;
}
.tmpl-ex-row select { flex: 2; }
.tmpl-ex-row .form-input { flex: 1; }
.tmpl-ex-row .icon-btn   { flex-shrink: 0; }
select.form-input { -webkit-appearance: none; }

/* ── Toast notification ── */
#toast {
  position: fixed; bottom: calc(var(--nav-h) + 12px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 500;
  z-index: 300; pointer-events: none; opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Login Modal ── */
#login-modal {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
#login-modal.hidden { display: none; }

#login-box {
  width: min(340px, 90vw);
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#login-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  letter-spacing: -0.5px;
}

#login-sub {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: -6px;
  margin-bottom: 6px;
}

#login-username, #login-password, #login-email {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  padding: 13px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
#login-username:focus, #login-password:focus, #login-email:focus {
  border-color: var(--accent);
}

#login-toggle {
  text-align: center;
  margin-top: -4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#login-error {
  color: #ff453a;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  margin-top: -4px;
}

#login-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
#login-btn:active, #login-btn:disabled { opacity: 0.7; }

/* ── Discover tab ── */
.discover-toggle-row {
  display: flex; gap: 4px; margin-bottom: 12px;
  background: var(--surface); border-radius: 12px; padding: 4px;
  border: 1px solid var(--border);
}
.dtoggle-btn {
  flex: 1; background: none; border: none; color: var(--muted);
  font-size: 14px; font-weight: 600; padding: 9px 12px; border-radius: 8px;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.dtoggle-btn.active { background: var(--accent); color: #fff; }
.dtoggle-btn:not(.active):active { opacity: 0.6; }

/* Program cards */
.program-card {
  background: var(--surface); border-radius: 14px; padding: 16px;
  margin-bottom: 12px; border: 1px solid var(--border);
}
.program-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 4px;
}
.program-card-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.program-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.program-card-desc { font-size: 13px; line-height: 1.5; color: var(--text); opacity: 0.8; }

.program-expand-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; color: var(--muted);
  font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 7px 0 3px; transition: color 0.15s;
}
.program-expand-btn:hover { color: var(--accent); }
.program-expand-btn .chevron-icon { transition: transform 0.2s; flex-shrink: 0; }
.program-expand-btn.open .chevron-icon { transform: rotate(180deg); }
.program-expand-btn:disabled { opacity: 0.5; cursor: default; }

.program-workouts { display: none; margin-bottom: 8px; }
.program-workouts.open { display: block; }

.prog-workout-block {
  padding: 10px 0 6px;
  border-top: 1px solid var(--border);
}
.prog-workout-block:first-child { border-top: none; padding-top: 4px; }
.prog-workout-name {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--muted); margin-bottom: 6px;
}
.prog-ex-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 2px 0; font-size: 13px;
}
.prog-ex-sets { color: var(--muted); font-size: 12px; flex-shrink: 0; margin-left: 8px; }

/* Level / difficulty badges */
.level-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.badge-beginner     { background: rgba(48, 209, 88, 0.15); color: var(--green); }
.badge-intermediate { background: rgba(255, 149, 0, 0.15); color: #ff9500; }
.badge-advanced     { background: rgba(255, 69, 58, 0.15);  color: #ff453a; }

/* Exercise library filter row */
.filter-row { display: flex; gap: 8px; margin-bottom: 12px; }

/* Suggestions sub-label */
.suggest-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--muted); margin-bottom: 8px;
}

/* Muted placeholder text */
.muted-placeholder {
  text-align: center; padding: 24px 0; color: var(--muted); font-size: 14px;
}
