/* ============================================================
   SUMMER SOCCER TRAINING — STYLES
   Mobile-first. Designed to feel like a native iPhone app
   when added to the home screen.
   ============================================================ */

:root {
  --green: #21356b;
  --green-dark: #16244a;
  --green-light: #e7ebf5;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --card: #ffffff;
  --accent: #e0a92e;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --tabbar-h: 64px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.app-header {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: calc(env(safe-area-inset-top) + 18px) 20px 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 3px solid #8fc3eb; /* SCH columbia blue */
}
.app-logo {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  background: #fff; padding: 3px; object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.app-header-text { min-width: 0; }
.app-header h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.app-header .subtitle { margin: 2px 0 0; font-size: 13px; opacity: 0.9; }
.app-header .season {
  display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,0.18); padding: 3px 10px; border-radius: 99px;
}

/* ---------- Main / sections ---------- */
main {
  padding: 16px 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);
  max-width: 720px;
  margin: 0 auto;
}
.section { display: none; }
.section.active { display: block; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 4px 4px 10px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.card-pad { padding: 14px 16px; }

/* ---------- Schedule ---------- */
.week-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--green); margin: 18px 4px 8px;
}
.week-label:first-child { margin-top: 0; }

.day-card { display: block; text-decoration: none; color: inherit; }
.day-head { display: flex; justify-content: space-between; align-items: center; }
.day-date { font-weight: 700; font-size: 16px; }
.day-focus { font-size: 13px; color: var(--green); font-weight: 600; }
.day-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.day-items { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  background: var(--green-light); color: var(--green-dark);
}
.chip.more { background: #f1f3f5; color: var(--muted); }

/* ---------- Day detail (linked from schedule) ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: none;
  color: var(--green); font-size: 15px; font-weight: 600; padding: 6px 4px; margin-bottom: 6px; cursor: pointer;
}

/* ---------- Exercise ---------- */
.ex-card .ex-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  cursor: pointer; padding: 14px 16px;
}
.ex-name { font-weight: 700; font-size: 16px; margin: 0; }
.ex-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ex-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--green); background: var(--green-light); padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.ex-summary { font-size: 14px; color: var(--muted); padding: 0 16px 4px; }
.ex-body { padding: 0 16px 16px; display: none; }
.ex-card.open .ex-body { display: block; }
.ex-body ol { margin: 6px 0; padding-left: 20px; }
.ex-body ol li { margin-bottom: 5px; }
.ex-tips { margin-top: 10px; background: var(--green-light); border-radius: 10px; padding: 10px 12px; }
.ex-tips .tip-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--green-dark); letter-spacing: 0.5px; }
.ex-tips ul { margin: 4px 0 0; padding-left: 18px; }
.ex-tips li { font-size: 13px; margin-bottom: 3px; }
.chevron { transition: transform 0.2s; color: var(--muted); font-size: 13px; margin-left: 8px; }
.ex-card.open .chevron { transform: rotate(180deg); }

/* exercise highlighted when jumped to from a link */
.ex-card.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%,100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 3px var(--accent); } }

/* ---------- Exercise video/app links ---------- */
.ex-links { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--green); color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 14px; border-radius: 10px;
}
.link-btn:active { background: var(--green-dark); }
.link-icon { font-size: 11px; }

/* ---------- Schedule controls (toggle + Today) ---------- */
.sched-controls { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.sched-controls .view-toggle { flex: 1; margin-bottom: 0; }
.today-btn {
  flex: 0 0 auto; border: 1px solid var(--green); background: #fff; color: var(--green);
  font-size: 14px; font-weight: 700; padding: 0 16px; border-radius: 12px; cursor: pointer;
}
.today-btn:active { background: var(--green-light); }
.today-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ---------- View toggle (Daily / Month) ---------- */
.view-toggle { display: flex; gap: 6px; background: #eceef3; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.view-btn {
  flex: 1; border: none; background: none; font-size: 15px; font-weight: 700; color: var(--muted);
  padding: 8px 0; border-radius: 9px; cursor: pointer;
}
.view-btn.active { background: #fff; color: var(--green); box-shadow: var(--shadow); }

/* ---------- Show earlier days ---------- */
.show-earlier {
  display: block; width: 100%; background: none; border: 1px dashed var(--line);
  color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px; border-radius: 10px;
  margin-bottom: 12px; cursor: pointer;
}
.show-earlier:active { background: #eef0f4; }

/* ---------- Legend ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 4px 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Type badge on day cards ---------- */
.type-badge { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 2px 8px; border-radius: 6px; margin-right: 8px; }
.focus-text { font-weight: 600; }
.day-card.today { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.rest-text { font-size: 14px; color: var(--muted); }

/* ---------- Game-day note ---------- */
.day-game {
  font-size: 13px; font-weight: 700; color: #7a5408;
  background: #fdf3da; border-left: 3px solid var(--accent); border-radius: 6px;
  padding: 7px 10px; margin-top: 8px;
}

/* ---------- Test-day banner ---------- */
.day-test {
  font-size: 13px; font-weight: 700; color: #fff;
  background: #c0392b; border-radius: 6px; padding: 7px 10px; margin-top: 8px;
}
.test-log-card { border-left: 5px solid #c0392b; }
.next-test {
  display: flex; align-items: center; gap: 10px; background: #fdeaea; border: 1px solid #f3c2bd;
  color: #8a2820; font-size: 13px; font-weight: 600; padding: 11px 13px; border-radius: var(--radius); margin-bottom: 12px;
}
.next-test-icon { font-size: 18px; }

/* ---------- Preseason practice banner ---------- */
.day-practice {
  font-size: 13px; font-weight: 600; color: #5b2bb0;
  background: #f1ebfb; border-left: 3px solid #7c3aed; border-radius: 6px;
  padding: 7px 10px; margin-top: 8px;
}

/* ---------- Month calendar ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-size: 17px; font-weight: 800; }
.cal-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; color: var(--green); cursor: pointer; line-height: 1; }
.cal-arrow.disabled { opacity: 0.3; pointer-events: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { margin-bottom: 4px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 2px 0; }
.cal-cell {
  aspect-ratio: 1 / 1; background: var(--card); border-radius: 9px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 5px; text-decoration: none; color: var(--ink); position: relative; min-width: 0;
}
.cal-cell.empty { background: none; box-shadow: none; }
.cal-cell.muted { background: #f2f3f6; box-shadow: none; color: var(--muted); }
.cal-cell.rest { background: #f6f7f9; }
.cal-cell.today { box-shadow: 0 0 0 2px var(--accent); }
.cal-num { font-size: 13px; font-weight: 700; }
.cal-dots { display: flex; gap: 3px; margin-top: 3px; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; }
.cal-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- Info schedules ---------- */
.sched-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.sched-row:last-child { border-bottom: none; }
.sched-when { font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
.sched-detail { color: var(--muted); text-align: right; }

/* ---------- Info tab ---------- */
.welcome-p { margin: 0 0 10px; font-size: 14px; color: #374151; }
.welcome-p:last-child { margin-bottom: 0; }
.rules-list { margin: 0; padding-left: 20px; }
.rules-list li { font-size: 14px; margin-bottom: 8px; color: #374151; }
.rules-list li:last-child { margin-bottom: 0; }
.contact-name { font-weight: 700; font-size: 15px; }
.contact-detail { font-size: 14px; color: var(--green-dark); margin-top: 2px; }
.contact-note { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Category filter ---------- */
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 12px; -webkit-overflow-scrolling: touch; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: 0 0 auto; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 99px;
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.filter-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Tests ---------- */
.test-name { font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.test-desc { font-size: 13px; color: var(--muted); margin: 5px 0 12px; line-height: 1.4; }
.standards { display: flex; gap: 8px; flex-wrap: wrap; }
.std { flex: 1; min-width: 90px; background: var(--bg); border-radius: 12px; padding: 11px 10px 10px; text-align: center; border-top: 3px solid #8fc3eb; }
.std .std-label { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--muted); letter-spacing: 0.6px; }
.std .std-target { font-size: 19px; font-weight: 800; color: var(--green-dark); margin-top: 3px; letter-spacing: -0.5px; }

/* ---------- FAQ ---------- */
.faq-group-label {
  font-size: 13px; font-weight: 800; color: var(--green-dark);
  margin: 18px 4px 8px; padding-left: 10px; border-left: 3px solid #8fc3eb;
}
.faq-q { font-weight: 700; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.faq-a { padding: 0 16px 16px; font-size: 14px; color: #374151; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .chevron { transform: rotate(180deg); }

/* ---------- Progress pill (schedule + coach) ---------- */
.day-focus-line { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 2px; }
.progress-pill {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap;
  background: #f1f3f5; color: var(--muted);
}
.progress-pill.partial { background: #fff4e0; color: #b45309; }
.progress-pill.done { background: var(--green); color: #fff; }

/* ---------- Day-detail checkable rows ---------- */
.ex-row { display: flex; align-items: center; padding: 12px 14px; gap: 12px; }
.check {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; color: #fff;
  font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all 0.15s;
}
.check.on { background: var(--green); border-color: var(--green); }
.ex-row-body { flex: 1; text-decoration: none; color: inherit; min-width: 0; }
.ex-row-name { font-weight: 600; font-size: 15px; }
.ex-row-meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
.chevron-r { color: var(--line); font-size: 22px; font-weight: 700; }

/* ---------- Day detail: expandable exercise + per-step checks ---------- */
.day-ex { overflow: hidden; }
.day-ex-head { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; }
.day-ex-info { flex: 1; min-width: 0; }
.step-count { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--muted); background: #f1f3f5; padding: 4px 9px; border-radius: 99px; }
.day-ex .chevron { transition: transform 0.2s; color: var(--muted); }
.day-ex.open .chevron { transform: rotate(180deg); }
.day-ex-body { display: none; padding: 0 14px 14px; }
.day-ex.open .day-ex-body { display: block; }
.step-list { border-top: 1px solid var(--line); }
.step-row { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.step-row:last-child { border-bottom: none; }
.step-check {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line);
  background: #fff; color: #fff; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.step-check.on { background: var(--green); border-color: var(--green); }
.step-text { font-size: 14px; line-height: 1.4; }
.step-check.on + .step-text { color: var(--muted); text-decoration: line-through; }
.day-ex-body .ex-tips { margin-top: 12px; }
.day-ex-body .ex-links { margin-top: 12px; }

/* ---------- Standards divider within Exercises tab ---------- */
.standards-divider { margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--line); }

/* ---------- Timers — crisp tool cards ---------- */
.tool {
  margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow);
}
.tool-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tool-actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.btn { flex: 1; max-width: 130px; border: none; border-radius: 11px; padding: 13px 0; font-size: 15px; font-weight: 700; cursor: pointer; transition: filter 0.12s, transform 0.05s; }
.btn:active { transform: scale(0.97); filter: brightness(0.96); }
.btn-primary { background: var(--green); color: #fff; }
.btn-ghost { background: #eef0f4; color: var(--green-dark); }
.btn-gold { background: var(--accent); color: #3a2a00; }

/* stopwatch readout */
.sw-readout {
  font-size: 56px; font-weight: 800; color: var(--green-dark); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -1.5px;
  font-feature-settings: "tnum"; transition: color 0.2s;
}
.sw-tool.running .sw-readout { color: var(--green); }

/* pacer countdown ring */
.ring-wrap { position: relative; width: 188px; height: 188px; margin: 4px auto 0; }
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #eef0f4; stroke-width: 6.5; }
.ring-prog { fill: none; stroke: #9aa3b2; stroke-width: 6.5; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset 1s linear, stroke 0.3s; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-phase { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.ring-phase.down { color: #2f80c2; }
.ring-phase.back { color: #bd7d12; }
.ring-phase.rest { color: #7a828f; }
.ring-phase.done { color: #16a34a; }
.ring-num { font-size: 58px; font-weight: 800; color: var(--green-dark); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -2px; }
.ring-run { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; letter-spacing: 0.3px; }

/* ---------- Tests: logging + history ---------- */
.test-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.best-badge { font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.log-row { display: flex; gap: 8px; margin-top: 12px; }
.test-input, .name-input {
  flex: 1; min-width: 0; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.test-input:focus, .name-input:focus { outline: none; border-color: var(--green); }
.log-btn {
  flex: 0 0 auto; background: var(--green); color: #fff; border: none; font-weight: 700; font-size: 15px;
  padding: 0 18px; border-radius: 10px; cursor: pointer;
}
.log-btn:active { background: var(--green-dark); }
.history { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.history-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 4px; }
.history-row { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.history-date { color: var(--muted); }

/* ---------- Progress dashboard ---------- */
.field-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.countdown {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
}
.cd-num { font-size: 44px; font-weight: 800; line-height: 1; color: var(--accent); }
.cd-text { font-size: 16px; font-weight: 700; line-height: 1.25; }
.cd-sub { font-size: 12px; font-weight: 500; opacity: 0.85; }
.chart-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.chart-foot { font-size: 11px; color: var(--muted); margin-top: 10px; text-align: center; }

.wk-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.wk-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.wk-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; background: #f1f3f5; border-radius: 5px; overflow: hidden; }
.wk-bar-fill { width: 100%; background: var(--green); border-radius: 5px 5px 0 0; min-height: 3px; transition: height 0.3s; }
.wk-bar-fill.full { background: #16a34a; }
.wk-bar-fill.current { background: var(--accent); }
.wk-num { font-size: 10px; color: var(--muted); margin-top: 4px; }

.spark { position: relative; margin-top: 12px; height: 48px; padding-right: 44px; }
.spark-canvas { position: relative; height: 48px; }
.spark-svg { width: 100%; height: 48px; display: block; }
.spark-target {
  position: absolute; right: 0; transform: translateY(-50%);
  font-size: 11px; font-weight: 800; color: #475569; font-variant-numeric: tabular-nums;
  background: #eef2f7; padding: 1px 7px; border-radius: 99px; line-height: 1.4; white-space: nowrap;
}
.spark-empty { font-size: 13px; color: var(--muted); margin-top: 10px; }
.no-data { font-size: 12px; color: var(--muted); font-weight: 600; }
.trend-line { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.trend-tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.trend-tag.up { background: #e6f4ea; color: #15803d; }
.trend-tag.down { background: #fdeaea; color: #b91c1c; }
.trend-meta { font-size: 12px; color: var(--muted); }
.tier-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tier-chip { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.tier-chip.met { background: var(--green-light); color: var(--green-dark); border-color: var(--green-light); }

/* ---------- Coach dashboard ---------- */
.banner { background: #fff8e6; border: 1px solid #fde68a; color: #92660b; font-size: 13px; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 12px; }
.player-card { display: block; text-decoration: none; color: inherit; }
.player-top { display: flex; justify-content: space-between; align-items: baseline; }
.player-name { font-weight: 700; font-size: 16px; }
.player-pct { font-weight: 800; font-size: 16px; color: var(--green); }
.bar { height: 8px; background: #eef0f2; border-radius: 99px; margin: 8px 0; overflow: hidden; }
.bar-fill { height: 100%; background: var(--green); border-radius: 99px; transition: width 0.3s; }
.player-meta { font-size: 12px; color: var(--muted); }
.mini-row { display: flex; justify-content: space-between; align-items: center; }
.mini-date { font-weight: 600; font-size: 15px; }
.mini-focus { font-size: 12px; color: var(--muted); }

/* ---------- Info: your progress ---------- */
.field-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 6px; }
.name-input { width: 100%; }
.me-stats { display: flex; gap: 8px; margin-top: 14px; }
.stat { flex: 1; background: var(--bg); border-radius: 10px; padding: 10px 6px; text-align: center; }
.stat-num { font-size: 20px; font-weight: 800; color: var(--green-dark); }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pb-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pb-chip { font-size: 12px; font-weight: 600; background: var(--green-light); color: var(--green-dark); padding: 4px 10px; border-radius: 99px; }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,0.94); backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  display: flex; z-index: 20;
}
.tab {
  position: relative; flex: 1; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-size: 11px; font-weight: 600; padding: 7px 0;
}
.tab .tab-icon {
  font-size: 19px; line-height: 1; padding: 4px 16px; border-radius: 99px;
  transition: background 0.18s ease;
}
.tab.active { color: var(--green); font-weight: 800; }
.tab.active .tab-icon { background: var(--green-light); }
.tab.active::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 99px 99px; background: var(--green);
}

.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 20px; }
