@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* LeedWallet-inspired system: black + Volt, single accent, high contrast */
  --base: #000000;
  --surface: #1c1c1c;
  --surface-raised: #262626;
  --line: #333333;
  --blue: #d5fd45;        /* Volt — primary accent, used sparingly */
  --blue-dim: #2b330e;    /* dark olive tint of Volt, for active/selected fills */
  --amber: #d5fd45;       /* unified into the single Volt accent */
  --amber-dim: #2b330e;
  --text: #f5f5f5;
  --text-muted: #808080;  /* Slate, per brand guide */
  --text-faint: #5a5a5a;
  --green: #d5fd45;       /* unified into the single Volt accent */
  --red: #d9573d;         /* utility only — destructive actions, not in brand palette */

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1080px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
.mono { font-family: var(--font-mono); }
button { font-family: inherit; }

.shell { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .shell { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 8px; cursor: pointer; background: none; border: none; padding: 0; }
.brand .mark { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; color: var(--text); }
.brand .mark span { color: var(--blue); }
.brand .tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); border-left: 1px solid var(--line); padding-left: 8px; }

nav.primary { display: flex; gap: 4px; align-items: center; }
.nav-link {
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text-muted);
  padding: 9px 16px; border-radius: 999px; transition: color 0.15s ease, background 0.15s ease;
  background: none; border: none; cursor: pointer;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--blue); background: var(--blue-dim); }
.nav-link.private { display: none; }
.nav-link.public-only { display: inline-block; }
body.logged-in .nav-link.private { display: inline-block; }
body.logged-in .nav-link.public-only { display: none; }

/* ---------- Member bar (second tier, logged-in only) ---------- */
.member-bar { display: none; background: var(--surface); border-bottom: 1px solid var(--line); }
body.logged-in .member-bar { display: block; }
.member-bar .shell { display: flex; gap: 4px; padding: 10px 24px; }
.member-link {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text-muted);
  padding: 7px 16px; border-radius: 999px; background: none; border: none; cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.member-link:hover { color: var(--text); background: var(--surface-raised); }
.member-link.active { color: var(--blue); background: var(--blue-dim); }
.nav-link.logout-link { color: var(--red); }
.nav-link.logout-link:hover { background: var(--amber-dim); color: var(--red); }

/* ---------- Gym sub-nav ---------- */
.gym-subnav {
  display: flex; gap: 4px; margin-bottom: 32px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.subnav-link {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text-muted);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; transition: all 0.15s ease;
}
.subnav-link:hover { color: var(--text); border-color: var(--text-muted); }
.subnav-link.active { color: #000; background: var(--blue); border-color: var(--blue); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }

main { padding: 40px 0 80px; }
.view { display: none; }
.view.active { display: block; }

footer { border-top: 1px solid var(--line); padding: 24px 0; text-align: center; color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; }
.footer-login-link {
  color: var(--text-muted); margin-left: 14px; text-decoration: none;
  font-size: 12px; font-family: var(--font-mono);
}
.footer-login-link:hover { color: var(--text); }

/* ---------- shared page bits ---------- */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.page-head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1; }
.page-head p { color: var(--text-muted); max-width: 46ch; margin-top: 8px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--blue);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--blue); display: inline-block; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 32px; }
.stat { background: var(--surface); padding: 18px 20px; }
.stat .label { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; margin-bottom: 6px; }
.stat .value { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--text); }
.stat .value.accent { color: var(--blue); }
.stat .value small { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); font-weight: 400; }

.btn {
  font-family: var(--font-body); font-size: 15px; font-weight: 600; border: 1.5px solid var(--text-faint);
  background: transparent; color: var(--text); padding: 13px 26px; border-radius: 999px;
  cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; display: inline-block;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #000; }
.btn.primary:hover { background: #e4ff6e; border-color: #e4ff6e; color: #000; }
.btn.small { padding: 8px 18px; font-size: 13px; }
.btn.small.active { background: var(--blue); border-color: var(--blue); color: #000; }
.btn.danger:hover { border-color: var(--red); color: var(--red); }

.panel { border: 1px solid var(--line); background: var(--surface); padding: 24px; }
.panel h3 { font-size: 20px; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 20px; }

/* ---------- HOME (public) ---------- */
.hero {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start;
  padding: 20px 0 48px; border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.photo-frame {
  position: relative; width: 260px; border-left: 3px solid var(--blue); background: var(--base);
  overflow: hidden; line-height: 0;
}
.photo-frame img { width: 100%; height: auto; display: block; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 18px; }
.hero .bio-p { color: var(--text-muted); max-width: 62ch; font-size: 16px; margin: 0 0 14px; }
.hero .bio-p:last-child { margin-bottom: 0; }

.contact-card { border: 1px solid var(--line); background: var(--surface); padding: 24px; height: fit-content; }
.contact-card.standalone { max-width: 320px; margin-bottom: 48px; }
.contact-card h3 { font-size: 18px; margin-bottom: 18px; }
.contact-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row .clabel { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); text-transform: uppercase; }
.contact-row .cval { font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.contact-row a.cval:hover { color: var(--blue); }

.edit-note {
  font-family: var(--font-mono); font-size: 11px; color: var(--blue); background: var(--blue-dim);
  border: 1px dashed var(--blue); padding: 10px 14px; margin-bottom: 32px; display: flex; gap: 8px; align-items: baseline;
}

.career-section { margin-bottom: 48px; }
.career-group { margin-bottom: 24px; }
.career-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 12px; font-weight: 400;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.co-chip {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--surface);
  padding: 10px 16px 10px 10px; border-radius: 999px;
}
.co-chip.featured { border-color: var(--blue); }
.co-mark {
  font-family: var(--font-display); font-size: 12px; color: #000; background: var(--blue);
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: -0.02em;
}
.co-name { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; }
.co-name small { font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--text-faint); text-transform: uppercase; margin-top: 1px; }
.career-note {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 8px;
}

/* ---------- LOGIN ---------- */
.login-wrap { max-width: 380px; margin: 60px auto; }
.login-card { border: 1px solid var(--line); background: var(--surface); padding: 32px; }
.login-card .lock { width: 32px; height: 32px; margin-bottom: 16px; color: var(--blue); }
.login-card h2 { font-size: 26px; margin-bottom: 6px; }
.login-card p.sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.field input {
  width: 100%; background: var(--base); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-mono); font-size: 15px; padding: 10px 12px; border-radius: var(--radius);
}
.field input:focus { outline: none; border-color: var(--blue); }
.login-error { color: var(--red); font-family: var(--font-mono); font-size: 12px; min-height: 16px; margin-bottom: 8px; }
.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #ffffff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 4px;
  padding: 11px 16px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: box-shadow 0.15s ease, background 0.15s ease;
}
.google-btn:hover { background: #f8f8f8; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.proto-note {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); line-height: 1.6;
}

/* ---------- DASHBOARD / mini cal ---------- */
/* ---------- Under construction ---------- */
.uc-wrap {
  max-width: 480px; margin: 60px auto; text-align: center; padding: 48px 32px;
  border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden;
}
.uc-stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--blue), var(--blue) 10px, #000 10px, #000 20px);
}
.uc-icon { color: var(--blue); width: 48px; height: 48px; margin: 12px auto 20px; }
.uc-icon svg { width: 100%; height: 100%; }
.uc-wrap h1 { font-size: 32px; margin-bottom: 12px; }
.uc-wrap p { color: var(--text-muted); font-size: 15px; margin: 0; }

.workout-hero {
  border: 1px solid var(--line); background: linear-gradient(135deg, var(--surface) 0%, var(--surface-raised) 100%);
  padding: 32px; margin-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.workout-hero h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.workout-hero p { color: var(--text-muted); max-width: 50ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-cal .cell { aspect-ratio: 1; background: var(--base); border-radius: 2px; }
.mini-cal .cell.filled { background: var(--blue); }
.mini-cal .cell.today-cell { outline: 1px solid var(--text-muted); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; background: var(--base); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.toggle-row span { font-weight: 600; font-size: 14px; }
.switch { position: relative; width: 42px; height: 24px; background: var(--line); border-radius: 12px; cursor: pointer; transition: background 0.15s ease; flex-shrink: 0; }
.switch.on { background: var(--blue); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform 0.15s ease; }
.switch.on::after { transform: translateX(18px); }

/* ---------- WORKOUT ---------- */
.superset { border: 1px solid var(--line); background: var(--surface); margin-bottom: 20px; position: relative; }
.superset-head { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--rail, var(--line)); }
.superset-head .letter { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--blue); width: 32px; }
.superset-head .meta h3 { font-size: 20px; margin-bottom: 2px; }
.superset-head .meta .focus { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.superset-head .duration { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); text-align: right; white-space: nowrap; }
.exercise-row { display: grid; grid-template-columns: 28px 1.6fr 1fr 1fr 1.8fr; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: start; }
.exercise-row:last-child { border-bottom: none; }
.exercise-row .step-id { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); padding-top: 2px; }
.exercise-row .ex-name { font-weight: 600; }
.exercise-row .ex-name .grip { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--blue); font-weight: 400; margin-top: 2px; }
.exercise-row .sets, .exercise-row .rest { font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.exercise-row .sets .lbl, .exercise-row .rest .lbl { display: block; font-size: 10px; color: var(--text-faint); text-transform: uppercase; margin-bottom: 2px; }
.exercise-row .cue { font-size: 13px; color: var(--text-muted); }
.exercise-row .cue.highlight { color: var(--amber); }

/* ============================================================
   WORKOUT PAGE — infographic-style rebuild matching source PDF.
   Scoped under .wk- so it doesn't affect the rest of the site's
   design system. Uses its own blue/purple/green/red/orange/teal
   palette to match the source legend, rather than the site's Volt.
   ============================================================ */
.wk-page { --wkblue: #d5fd45; --wknavy: #1e5a8a; --wkpurple: #9b6bf0; --wkgreen: #3fbf5f;
  --wkred: #e6524a; --wkorange: #f0a63a; --wkteal: #22b8a3; --wkolive: #b3ac2e; --wkamber: #f0c33a; }

.wk-header { text-align: left; padding: 20px 24px; background: var(--wkblue); margin-bottom: 24px; }
.wk-header h1 {
  font-size: clamp(32px, 5vw, 52px); color: #000; letter-spacing: 0.01em; line-height: 1; margin-bottom: 6px;
}
.wk-header h1 .wk-accent { color: #000; }
.wk-subtitle { font-family: var(--font-body); font-weight: 600; color: #1a1a1a; letter-spacing: 0.04em; font-size: 15px; margin-bottom: 24px; }

.wk-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 20px -24px -20px; background: var(--surface); border-top: 2px solid #000; }
.wk-stat { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-left: 1px solid var(--line); }
.wk-stat:first-child { border-left: none; }
.wk-stat-icon { width: 30px; height: 30px; color: var(--wkblue); flex-shrink: 0; }
.wk-stat-icon svg { width: 100%; height: 100%; }
.wk-stat-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); text-transform: uppercase; margin-bottom: 2px; }
.wk-stat-value { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.25; }

.wk-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--wkamber);
  padding: 16px 22px; margin-bottom: 4px;
}
.wk-banner-left { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; color: var(--text); }
.wk-banner-left .wk-tag { color: var(--wkamber); }
.wk-banner-left .wk-paren { color: var(--text-muted); font-family: var(--font-mono); font-size: 14px; }
.wk-banner-right { font-size: 13px; color: var(--text-muted); max-width: 46ch; }
.wk-banner-right strong { color: var(--wkamber); font-family: var(--font-mono); }

.wk-table-wrap { overflow-x: auto; margin-bottom: 40px; border: 2px solid var(--wkblue); }
table.wk-table { width: 100%; border-collapse: collapse; min-width: 1080px; }
table.wk-table thead th {
  background: var(--wkblue); color: #000; font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; text-align: left; padding: 12px 14px;
  border-bottom: 2px solid #000; border-right: 3px solid #fff;
}
table.wk-table thead th:last-child { border-right: none; }
table.wk-table td {
  padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 13px; color: var(--text);
}
table.wk-table tbody tr:last-child td { border-bottom: none; }

.wk-superset-cell { width: 140px; background: var(--surface); }
.wk-letter { font-family: var(--font-display); font-size: 34px; color: var(--wkblue); line-height: 1; }
.wk-mins { font-family: var(--font-mono); font-size: 10px; color: var(--wkblue); margin: 4px 0 10px; }
.wk-focus-label { font-family: var(--font-mono); font-size: 9px; color: var(--wkamber); text-transform: uppercase; }
.wk-focus-text { font-weight: 700; font-size: 12px; line-height: 1.35; }

.wk-ex-cell { width: 230px; }
.wk-ex-inner { display: flex; align-items: flex-start; gap: 10px; }
.wk-ex-icon { width: 34px; height: 38px; flex-shrink: 0; color: var(--wkblue); }
.wk-ex-icon svg { width: 100%; height: 100%; }
.wk-ex-photo { width: 84px; height: auto; max-height: 130px; object-fit: contain; flex-shrink: 0; border-radius: 4px; }
.wk-ex-id { font-family: var(--font-mono); font-size: 10px; color: var(--wkblue); margin-right: 4px; }
.wk-ex-cell strong { font-size: 14px; }
.wk-grip { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--wkblue); margin-top: 2px; }

.wk-sets { font-family: var(--font-mono); font-weight: 700; font-size: 15px; white-space: nowrap; }
.wk-rest { width: 80px; text-align: center; background: var(--surface); font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text-muted); }

.wk-muscles { width: 220px; }
.wk-muscles img { width: 100%; height: auto; border-radius: 4px; display: block; }
.wk-muscle-label {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--wkblue); text-align: center;
  margin-top: 6px; line-height: 1.35;
}
.wk-muscles-text {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); line-height: 1.6;
  display: flex; align-items: center; justify-content: center; text-align: center; height: 100%;
  border: 1px dashed var(--line); padding: 12px 8px; border-radius: 4px;
}

.wk-sub-cell { width: 230px; }
.wk-sub-cell .wk-ex-inner { align-items: flex-start; }
.wk-sub-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.wk-dots { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.wk-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.wk-focus-list { min-width: 220px; }
.wk-focus-list ul { margin: 0; padding-left: 16px; color: var(--text-muted); font-size: 12.5px; line-height: 1.7; }
.wk-focus-list.wk-highlight ul { color: var(--wkamber); }

tr.wk-row-c3 td { background: rgba(240, 195, 58, 0.06); }
tr.wk-row-d2 td { background: rgba(179, 172, 46, 0.05); }

.wk-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.wk-footer-col { border: 1px solid var(--line); background: var(--surface); padding: 20px; }
.wk-footer-col h3 {
  font-size: 15px; color: var(--wkblue); text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.wk-footer-col h3 span { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); font-weight: 400; text-transform: none; }
.wk-footer-col h3 .wk-mini-icon { width: 18px; height: 18px; color: var(--wkblue); }

.wk-legend { list-style: none; margin: 0 0 16px; padding: 0; font-size: 12px; color: var(--text-muted); }
.wk-legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wk-legend .wk-dot { width: 11px; height: 11px; }

.wk-figures { display: flex; gap: 12px; justify-content: center; margin: 16px 0; }
.wk-figures svg { width: 70px; height: 110px; }

.wk-formula {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--wkblue); text-align: center;
  border: 1px dashed var(--wkblue); padding: 10px; line-height: 1.6; background: rgba(47,143,209,0.06);
}

.wk-musclemap-col { padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #05070c; }
.wk-musclemap-img { width: 100%; height: auto; display: block; }

.wk-flow { list-style: none; margin: 0; padding: 0; }
.wk-flow li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.wk-flow li:last-child { border-bottom: none; }
.wk-flow-icon { width: 22px; height: 22px; color: var(--wkblue); flex-shrink: 0; margin-top: 2px; }
.wk-flow-time { font-family: var(--font-mono); font-size: 11px; color: var(--wkblue); font-weight: 700; }
.wk-flow-text { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }

.wk-prog-text { font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.wk-checklist { list-style: none; margin: 0; padding: 0; }
.wk-checklist li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; color: var(--text); }
.wk-checklist .wk-check { width: 15px; height: 15px; color: var(--wkgreen); flex-shrink: 0; }

.wk-tips-ribbon {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: center;
  padding: 16px 20px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase;
}
.wk-tips-ribbon .wk-tip-item { display: flex; align-items: center; gap: 8px; }
.wk-tips-ribbon svg { width: 16px; height: 16px; color: var(--wkblue); }
.wk-tips-box {
  text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--wkamber);
  border: 1px solid var(--wkamber); background: rgba(240,195,58,0.06); padding: 12px; letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .wk-footer-grid { grid-template-columns: 1fr; }
  .wk-stats-row { grid-template-columns: repeat(2, 1fr); }
  .wk-stat:nth-child(3) { border-left: none; }
}


/* ---------- CALENDAR ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cal-nav h2 { font-size: 26px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cal-grid.cal-grid-8 { grid-template-columns: repeat(7, 1fr) 64px; }
.cal-week-header { font-size: 14px; }
.cal-week-summary {
  background: var(--surface-raised); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 4px 0;
}
.cal-week-fire { font-size: 12px; letter-spacing: -2px; }
.cal-week-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.cal-dow { background: var(--surface-raised); padding: 8px 0; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; }
.cal-day { background: var(--surface); min-height: 84px; padding: 8px; position: relative; cursor: pointer; transition: background 0.15s ease; }
.cal-day:hover { background: var(--surface-raised); }
.cal-day.empty { cursor: default; background: var(--base); }
.cal-day.empty:hover { background: var(--base); }
.cal-day .num { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.cal-day.today .num { color: var(--base); background: var(--text); border-radius: 50%; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.cal-day.logged { background: var(--blue-dim); }
.cal-day.logged:hover { background: #2a4f68; }
.cal-day.other-month { opacity: 0.4; }
.cal-day.other-month:hover { opacity: 0.7; }
.cal-day .dot { position: absolute; bottom: 8px; left: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.cal-day .cal-day-caption { position: absolute; bottom: 7px; right: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--blue); }
.legend { display: flex; gap: 20px; margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); align-items: center; flex-wrap: wrap; }

/* ---------- Session log form ---------- */
.session-panel { margin-bottom: 32px; }
.session-panel .field label { display: block; margin-bottom: 16px; }
#session-exercise-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; }
.session-divider {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase;
  letter-spacing: 0.04em; border-top: 1px dashed var(--line); padding-top: 16px; margin-bottom: 12px;
}
.session-divider span { text-transform: none; letter-spacing: normal; }
#session-custom-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.session-row-custom .session-check { flex: 1; min-width: 0; }
.session-custom-name {
  background: transparent; border: none; border-bottom: 1px solid var(--line); color: var(--text);
  font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 2px 4px; width: 100%;
}
.session-custom-name:focus { outline: none; border-bottom-color: var(--blue); }
.session-custom-name::placeholder { color: var(--text-faint); font-weight: 400; }
.session-row {
  display: grid; grid-template-columns: 1.6fr 100px 1.6fr; gap: 12px; align-items: center;
  padding: 10px 14px; background: var(--base); border: 1px solid var(--line);
}
.admin-email-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--base); border: 1px solid var(--line); margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 13px;
}
.session-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.session-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.session-ex-name { font-weight: 600; font-size: 14px; }
.session-weight { text-align: center; }
.session-notes { width: 100%; }
.session-actions { display: flex; align-items: center; gap: 14px; }
#session-save-msg { color: var(--green); font-size: 12px; }

@media (max-width: 700px) {
  .session-row { grid-template-columns: 1fr; }
}
.legend .swatch { width: 10px; height: 10px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.legend .swatch.logged-swatch { background: var(--blue-dim); border: 1px solid var(--blue); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 7, 10, 0.75); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface-raised); border: 1px solid var(--line); max-width: 380px; width: 100%; padding: 24px; }
.modal h3 { font-size: 22px; margin-bottom: 4px; }
.modal .date-sub { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 20px; }
.field textarea {
  width: 100%; background: var(--base); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-body); font-size: 14px; padding: 10px 12px; border-radius: var(--radius); resize: vertical; min-height: 60px;
}
.field textarea:focus { outline: none; border-color: var(--blue); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ---------- PROGRESS ---------- */
.chart-card { border: 1px solid var(--line); background: var(--surface); padding: 24px; margin-bottom: 32px; }
.chart-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.chart-card h3 { font-size: 20px; }
#weight-chart { width: 100%; height: auto; display: block; }
.log-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 14px; }
.log-table th { text-align: left; font-size: 11px; color: var(--text-faint); text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 400; }
.log-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.log-table tr:hover td { background: var(--surface-raised); }
.log-table .del { color: var(--text-faint); cursor: pointer; font-family: var(--font-body); }
.log-table .del:hover { color: var(--red); }
.empty-state { padding: 40px 20px; text-align: center; color: var(--text-faint); font-family: var(--font-mono); font-size: 13px; border: 1px dashed var(--line); }
.inline-input { background: var(--base); border: 1px solid var(--line); color: var(--text); font-family: var(--font-mono); padding: 8px 10px; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  nav.primary { display: none; }
  .nav-toggle { display: flex; }
  nav.primary.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--base); border-bottom: 1px solid var(--line); padding: 8px; z-index: 30;
  }
  .exercise-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .exercise-row .step-id { display: none; }
  .exercise-row .ex-name { grid-column: 1 / -1; }
  .exercise-row .cue { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr; }
  .cal-day { min-height: 60px; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .photo-frame { margin: 0 auto; }
  .hero .bio-p { text-align: left; }
  .contact-card.standalone { max-width: none; }
}

a:focus-visible, button:focus-visible, .cal-day:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Recent sessions history (Log page) */
.session-history-row { border: 1px solid var(--line); background: var(--surface); padding: 16px; margin-bottom: 12px; }
.session-history-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
.session-history-date { font-weight: 600; font-size: 15px; }
.session-history-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.session-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.session-pill { font-family: var(--font-mono); font-size: 11px; padding: 4px 12px; border-radius: 999px; color: #000; font-weight: 600; }
.recent-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.recent-pagination .btn:disabled { opacity: 0.35; cursor: not-allowed; }
.recent-page-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
