/* ============================================================
   VALENCIA ’26 — dark athletic UI (Runna / Nike / Whoop energy)
   ============================================================ */

:root {
  --bg: #0b0c0f;
  --bg-raised: #121419;
  --card: #15181e;
  --card-2: #1b1f27;
  --line: #242935;
  --line-soft: #1c212b;
  --text: #f2f3f5;
  --text-dim: #9aa1ad;
  --text-faint: #5d6470;

  --accent: #ff5a1f;          /* Valencia orange */
  --accent-soft: rgba(255, 90, 31, .14);

  --ph-base: #b8f04a;         /* lime — Runna */
  --ph-build: #ffb020;        /* amber */
  --ph-specific: #ff5a1f;     /* orange */
  --ph-taper: #4cc3ff;        /* cyan */

  --k-easy: #b8f04a;
  --k-tempo: #ffb020;
  --k-intervals: #ff4d2e;
  --k-long: #4cc3ff;
  --k-race: #ff5a1f;
  --k-strength: #a78bfa;
  --k-pilates: #f47ab6;

  --radius: 18px;
  --radius-sm: 12px;
  --tabbar-h: 64px;

  --display: 'Archivo', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { background: var(--bg); }

body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  background:
    radial-gradient(120% 60% at 50% -10%, #161a22 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.45;
  font-size: 15px;
  overscroll-behavior-y: none;
}

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 14px) 18px 12px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: 'wdth' 122;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 19px;
}
.wordmark-year { color: var(--accent); margin-left: 5px; font-style: italic; }

.countdown {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wdth' 110;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
}

/* ---------- layout ---------- */
.view {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px);
}

.fade-up { animation: fadeUp .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- week hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--card-2), var(--card) 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  overflow: hidden;
  margin-bottom: 16px;
}
.hero::before {
  content: attr(data-ghost);
  position: absolute; right: -6px; top: -34px;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: 'wdth' 62;
  font-size: 168px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  letter-spacing: -.03em;
  pointer-events: none;
}

.hero-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

.phase-chip {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10.5px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0b0c0f;
}

.week-badge {
  font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: 'wdth' 116;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: .01em;
  margin: 4px 0 2px;
}
.hero-dates { color: var(--text-dim); font-size: 13px; font-weight: 500; }
.hero-focus { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

.hero-stats {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  margin-top: 16px;
}

.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring-track { stroke: var(--line); }
.ring-fill {
  stroke-linecap: round;
  transition: stroke-dashoffset .8s cubic-bezier(.2,.7,.2,1);
}
.ring-label {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
}
.ring-label b {
  font-family: var(--display); font-weight: 900; font-size: 20px;
  font-variation-settings: 'wdth' 110;
}
.ring-label span { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); }

.hero-kms { flex: 1; min-width: 0; }
.hero-kms-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--text-dim); margin-bottom: 7px;
}
.hero-kms-row b {
  font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--text);
  font-variation-settings: 'wdth' 110;
}
.kmbar { height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.kmbar > i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #ffb020), var(--accent));
  transition: width .8s cubic-bezier(.2,.7,.2,1);
}

.week-complete {
  margin-top: 14px;
  font-family: var(--display); font-weight: 900;
  font-variation-settings: 'wdth' 116;
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  color: var(--ph-base);
  display: flex; align-items: center; gap: 8px;
  animation: stampIn .5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes stampIn {
  from { opacity: 0; transform: scale(1.4); }
  to   { opacity: 1; transform: none; }
}

/* ---------- greeting ---------- */
.greeting { margin: 2px 2px 14px; }
.greeting h2 {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: 'wdth' 116;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 23px;
  line-height: 1.05;
  margin: 0;
}
.greeting p { margin: 4px 0 0; color: var(--text-dim); font-size: 12.5px; }
.greeting .wave {
  display: inline-block;
  animation: wave 2.2s ease .6s 1;
  transform-origin: 70% 75%;
}
@keyframes wave {
  0%, 100% { transform: none; }
  10%, 30% { transform: rotate(16deg); }
  20%, 40% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
  60% { transform: none; }
}

/* ---------- week nav ---------- */
.weeknav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.weeknav button {
  background: var(--card); color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px; height: 40px;
  font-size: 17px; line-height: 1;
  cursor: pointer;
  display: grid; place-content: center;
}
.weeknav button:disabled { opacity: .3; cursor: default; }
.weeknav .jump {
  width: auto; padding: 0 16px; height: 40px;
  font-family: var(--display); font-weight: 800; font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
  font-variation-settings: 'wdth' 110;
  color: var(--accent);
}

/* ---------- week note ---------- */
.note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 88%, var(--accent));
  margin-bottom: 16px;
}
.note .ic { flex: none; font-size: 15px; }

/* ---------- day list ---------- */
.day { margin-bottom: 14px; }
.day-head {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 2px 7px;
}
.day-name {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: 'wdth' 114;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: 11.5px; color: var(--text-dim);
}
.day-date { font-size: 11.5px; color: var(--text-faint); font-weight: 500; }
.today-tag {
  font-family: var(--display); font-weight: 900; font-size: 9.5px;
  font-variation-settings: 'wdth' 116;
  text-transform: uppercase; letter-spacing: .14em;
  color: #0b0c0f; background: var(--accent);
  padding: 3px 8px; border-radius: 999px;
  margin-left: auto;
}
.day.is-today .day-name { color: var(--accent); }

.rest {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-faint);
  font-size: 13px; font-weight: 500;
  letter-spacing: .04em;
}

/* ---------- session card ---------- */
.session {
  display: flex; align-items: center; gap: 13px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  margin-bottom: 8px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: transform .12s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}
.session:active { transform: scale(.985); }

.session .dot {
  flex: none; width: 10px; height: 38px; border-radius: 99px;
  background: var(--kc, var(--text-dim));
}

.session .body { flex: 1; min-width: 0; }
.session .name {
  font-family: var(--display); font-weight: 800; font-size: 14.5px;
  font-variation-settings: 'wdth' 108;
  text-transform: uppercase; letter-spacing: .03em;
  display: flex; align-items: baseline; gap: 8px;
}
.session .km {
  color: var(--kc, var(--accent));
  font-weight: 900;
}
.session .sub { color: var(--text-dim); font-size: 12px; margin-top: 2px; }

.session .check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.6px solid var(--line);
  display: grid; place-content: center;
  color: transparent;
  transition: all .18s cubic-bezier(.2,1.2,.4,1);
}
.session .check svg { width: 13px; height: 13px; }

.session.done { opacity: .62; background: var(--bg-raised); }
.session.done .name { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--text-faint); }
.session.done .check {
  background: var(--kc, var(--accent));
  border-color: var(--kc, var(--accent));
  color: #0b0c0f;
  animation: pop .3s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pop { 50% { transform: scale(1.25); } }

.session.race {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--card)), var(--card) 70%);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}
.session.race .name { font-size: 15.5px; font-variation-settings: 'wdth' 118; }

/* ---------- plan tab ---------- */
.section-label {
  font-family: var(--display); font-weight: 900;
  font-variation-settings: 'wdth' 120;
  text-transform: uppercase; letter-spacing: .06em;
  font-size: 22px; margin: 6px 2px 14px;
}

.bigstats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 18px;
}
.bigstat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 12px;
}
.bigstat b {
  display: block;
  font-family: var(--display); font-weight: 900; font-size: 23px;
  font-variation-settings: 'wdth' 110;
  line-height: 1.1;
}
.bigstat span {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .13em;
  color: var(--text-dim); font-weight: 600;
}

.phase-section { margin-bottom: 22px; }
.phase-head {
  display: flex; align-items: center; gap: 10px; margin: 0 2px 10px;
}
.phase-head .bar { width: 22px; height: 5px; border-radius: 99px; }
.phase-head h3 {
  font-family: var(--display); font-weight: 900; margin: 0;
  font-variation-settings: 'wdth' 114;
  text-transform: uppercase; letter-spacing: .04em; font-size: 15px;
}
.phase-head .range { color: var(--text-faint); font-size: 11.5px; margin-left: auto; font-weight: 500; white-space: nowrap; }
.phase-focus { color: var(--text-dim); font-size: 12.5px; margin: -4px 2px 10px; }

.weekrow {
  display: flex; align-items: center; gap: 12px;
  width: 100%; font: inherit; color: var(--text); text-align: left;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 7px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.weekrow.current { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.weekrow .wnum {
  font-family: var(--display); font-weight: 900; font-size: 15px;
  font-variation-settings: 'wdth' 112;
  width: 42px; flex: none;
}
.weekrow .wdates { color: var(--text-faint); font-size: 11px; width: 86px; flex: none; }
.weekrow .wkm {
  font-weight: 700; font-size: 12.5px; color: var(--text-dim);
  margin-left: auto; flex: none;
}
.weekrow .wbadge {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 7px; border-radius: 999px; flex: none;
  color: #0b0c0f; background: var(--text-dim);
}
.weekrow .wbadge.b-race { background: var(--accent); }
.weekrow .wbadge.b-cut { background: var(--ph-taper); }
.weekrow .wbadge.b-fr { background: var(--ph-build); }

.dots { display: flex; gap: 3.5px; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line);
}
.dots i.on { background: var(--ph-base); }

/* ---------- strength tab ---------- */
.str-meta {
  color: var(--text-dim); font-size: 13px; margin: -6px 2px 16px;
}
.strcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
}
.strcard h3 {
  font-family: var(--display); font-weight: 900; margin: 0;
  font-variation-settings: 'wdth' 116;
  text-transform: uppercase; font-size: 17px; letter-spacing: .03em;
  display: flex; align-items: center; gap: 10px;
}
.strcard h3 .key {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-content: center;
  background: var(--k-strength); color: #0b0c0f; font-size: 15px;
}
.strcard .subtitle { color: var(--text-dim); font-size: 12.5px; margin: 5px 0 0 40px; }
.strcard .hl {
  margin: 10px 0 0; font-size: 12px; color: var(--ph-base); font-weight: 600;
}
.extable { width: 100%; border-collapse: collapse; margin-top: 12px; }
.extable td {
  padding: 9px 2px; border-top: 1px solid var(--line-soft);
  font-size: 13.5px; vertical-align: top;
}
.extable td.reps {
  text-align: right; white-space: nowrap; color: var(--text-dim);
  font-weight: 700; font-size: 12.5px;
}
.extable .exnote { display: block; font-size: 11px; color: var(--accent); font-weight: 600; margin-top: 2px; }

/* ---------- guide tab ---------- */
.goal {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 124px 16px 16px; margin-bottom: 10px;
  overflow: hidden;
}
.goal.primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--card)), var(--card) 75%);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.goal .tag {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-dim);
}
.goal.primary .tag { color: var(--accent); }
.goal h3 {
  font-family: var(--display); font-weight: 900; margin: 3px 0 1px;
  font-variation-settings: 'wdth' 114;
  text-transform: uppercase; font-size: 18px;
}
.goal .when { color: var(--text-dim); font-size: 12.5px; }
.goal .target {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  text-align: right;
}
.goal .target b {
  font-family: var(--display); font-weight: 900; font-size: 26px;
  font-variation-settings: 'wdth' 108;
  display: block; line-height: 1;
}
.goal.primary .target b { color: var(--accent); }
.goal .target span { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }

.pacecard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px 16px; margin: 14px 0 18px;
}
.pacerow {
  display: flex; gap: 12px; align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.pacerow:first-child { border-top: 0; }
.pacerow .pt {
  font-family: var(--display); font-weight: 800; font-size: 13px;
  font-variation-settings: 'wdth' 110;
  text-transform: uppercase; letter-spacing: .04em;
  width: 84px; flex: none;
}
.pacerow .pe {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); width: 92px; flex: none;
}
.pacerow .pd { font-size: 12.5px; color: var(--text-dim); }

.keynotes { list-style: none; padding: 0; margin: 0 0 20px; }
.keynotes li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 13.5px; color: var(--text-dim);
  border-top: 1px solid var(--line-soft);
}
.keynotes li::before {
  content: ''; position: absolute; left: 2px; top: 17px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.guide-footer {
  text-align: center; color: var(--text-faint); font-size: 11.5px;
  padding: 8px 0 4px;
}
.guide-footer b { color: var(--text-dim); }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
}
.tab {
  flex: 1;
  background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-faint);
  font: inherit;
  transition: color .2s ease;
}
.tab svg { width: 21px; height: 21px; }
.tab span {
  font-family: var(--display); font-weight: 700; font-size: 9.5px;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase; letter-spacing: .12em;
}
.tab.active { color: var(--accent); }

/* ---------- splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transition: opacity .45s ease, visibility .45s ease;
}
.splash img { animation: splashPulse 1.6s ease infinite; border-radius: 22px; }
@keyframes splashPulse { 50% { transform: scale(1.06); } }
.splash-word {
  font-family: var(--display); font-weight: 900;
  font-variation-settings: 'wdth' 122;
  text-transform: uppercase; letter-spacing: .05em; font-size: 26px;
}
.splash-word span { color: var(--accent); font-style: italic; margin-left: 6px; }
.splash-sub { color: var(--text-dim); font-size: 12.5px; }
.splash.out { opacity: 0; visibility: hidden; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: 'wdth' 110;
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
  border-radius: 999px; padding: 11px 18px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--accent); color: #0b0c0f; }
.btn.ghost { background: none; color: var(--text); border-color: var(--line); }
.btn.small { padding: 8px 14px; font-size: 10.5px; }

/* ---------- install banner ---------- */
.install {
  display: flex; align-items: center; gap: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px 11px 14px;
  margin-bottom: 14px;
  font-size: 12.5px; color: var(--text-dim);
}
.install .install-msg { flex: 1; min-width: 0; }
.install .install-msg b { color: var(--text); }
.install .x {
  flex: none; background: none; border: 0; color: var(--text-faint);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px;
}

.lognote {
  display: block; color: var(--text-faint); font-size: 11.5px;
  font-style: italic; margin-top: 3px;
}

/* ---------- bottom sheet ---------- */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(5, 6, 8, .66);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: ovIn .2s ease both;
}
@keyframes ovIn { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 560px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  animation: sheetUp .32s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.sheet-handle {
  width: 38px; height: 4px; border-radius: 99px;
  background: var(--line); margin: 4px auto 14px;
}
.sheet h3 {
  font-family: var(--display); font-weight: 900; margin: 0 0 14px;
  font-variation-settings: 'wdth' 114;
  text-transform: uppercase; font-size: 17px;
  display: flex; align-items: baseline; gap: 10px;
}
.sheet h3 .shkm { font-size: 11px; color: var(--text-faint); font-weight: 600; letter-spacing: .06em; }

.field2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet label {
  display: block;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-dim);
}
.sheet input, .sheet textarea {
  width: 100%; margin-top: 6px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font: inherit; font-size: 15px;
}
.sheet input:focus, .sheet textarea:focus { outline: none; border-color: var(--accent); }
.garmin-hint { font-size: 11px; color: var(--text-faint); margin: 2px 2px 10px; }
.pace-out {
  min-height: 20px; margin: 8px 2px 2px;
  font-family: var(--display); font-weight: 800; font-size: 13px;
  color: var(--accent); letter-spacing: .04em;
}
.feels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 14px; }
.feel {
  background: var(--card); color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 4px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
}
.feel .fe { font-size: 19px; }
.feel.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.notelabel { margin-bottom: 4px; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.daypick {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
  margin: 8px 0 4px;
}
.dp {
  background: var(--card); color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 0 6px; cursor: pointer; font: inherit;
  font-size: 11px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.dp span { font-size: 7.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
.dp.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.move-warn { min-height: 18px; font-size: 11.5px; color: var(--ph-build); margin: 4px 2px 10px; }

.donerow {
  display: flex !important; align-items: center; gap: 10px;
  margin-top: 12px; cursor: pointer;
  font-size: 12px !important;
}
.donerow input {
  width: 19px !important; height: 19px; margin: 0 !important;
  accent-color: var(--accent);
}

.moved-tag {
  font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ph-taper); border: 1px solid color-mix(in srgb, var(--ph-taper) 40%, transparent);
  border-radius: 999px; padding: 2px 6px; vertical-align: 2px;
}

.steps { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: step; }
.steps li {
  position: relative; padding: 9px 0 9px 38px;
  font-size: 14px; color: var(--text-dim); counter-increment: step;
}
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--accent); color: #0b0c0f;
  font-family: var(--display); font-weight: 900; font-size: 13px;
}
.steps .share-ic { color: var(--ph-taper); font-weight: 700; }
.steps-note { color: var(--text-faint); font-size: 12.5px; margin: 10px 2px 0; }

/* ---------- progress tab ---------- */
.bigstats.grid4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 420px) { .bigstats.grid4 { grid-template-columns: repeat(4, 1fr); } }

.chartcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 14px 12px; margin-bottom: 18px;
}
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.bar {
  flex: 1; position: relative; height: 100%;
  background: none; border: 0; padding: 0; cursor: pointer;
  border-radius: 4px 4px 0 0;
}
.bar i {
  position: absolute; left: 0; right: 0; bottom: 0; display: block;
  border-radius: 3px 3px 0 0;
}
.bar .b-plan { background: var(--line-soft); }
.bar .b-done { opacity: .95; transition: height .6s cubic-bezier(.2,.7,.2,1); }
.bar.now::after {
  content: ''; position: absolute; left: 50%; bottom: -8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
}
.bars-axis {
  display: flex; justify-content: space-between;
  margin-top: 10px; font-size: 9.5px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.bars-legend {
  display: flex; gap: 14px; margin-top: 10px;
  font-size: 10px; color: var(--text-faint);
}
.bars-legend .lg {
  display: inline-block; width: 9px; height: 9px; border-radius: 2px;
  margin-right: 4px; vertical-align: -1px;
}
.lg-done { background: var(--ph-base); }
.lg-plan { background: var(--line-soft); }

.actcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 16px; margin-bottom: 18px;
}
.act {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line-soft);
}
.act:first-child { border-top: 0; }
.act .dot { flex: none; width: 8px; height: 28px; border-radius: 99px; }
.act .act-body { flex: 1; min-width: 0; }
.act .act-body b {
  display: block;
  font-family: var(--display); font-weight: 800; font-size: 13px;
  font-variation-settings: 'wdth' 108;
  text-transform: uppercase; letter-spacing: .03em;
}
.act .act-body span { font-size: 11.5px; color: var(--text-dim); }
.act .act-feel { font-size: 16px; }

/* ---------- gym checklist (sheet) ---------- */
.exlist { margin: 8px 0 12px; }
.exrow {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft);
}
.exrow:last-child { border-bottom: 0; }
.exchk {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 1.6px solid var(--line); background: none;
  display: grid; place-content: center;
  color: transparent; cursor: pointer; padding: 0;
}
.exchk svg { width: 11px; height: 11px; }
.exrow.on .exchk {
  background: var(--k-strength); border-color: var(--k-strength); color: #0b0c0f;
}
.exrow.on .exname { opacity: .55; text-decoration: line-through; }
.exname { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); }
.exname span { display: block; font-size: 11px; color: var(--text-dim); }
.exwt {
  flex: none; width: 74px !important; margin-top: 0 !important;
  padding: 8px 10px !important; font-size: 13px !important;
  text-align: center;
}

/* ---------- data cards (guide) ---------- */
.datacard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
  font-size: 13.5px; color: var(--text-dim);
}
.datacard p { margin: 0 0 12px; }
.datacard b { color: var(--text); }
.databtns { display: flex; gap: 10px; flex-wrap: wrap; }

@media (min-width: 600px) {
  body { font-size: 15.5px; }
  .hero-title { font-size: 40px; }
}
