/* Pulse — fitness & training app (dark, energetic lime) */
:root {
  --bg-0: #06100b;
  --bg-1: #0b1a11;
  --glow: rgba(163, 230, 53, 0.30);
  --glow-2: rgba(52, 211, 153, 0.16);
  --accent: #a3e635;
  --accent-2: #4d7c0f;
  --on-accent: #0a1500;
  --app-bg: #0d130f;
  --app-bg-2: #151d17;
  --ink: #eaf3ea;
  --muted: #7f8d82;
  --line: rgba(255, 255, 255, 0.08);
  --card: #141c16;
}

.p-head { padding: 6px 20px 4px; display: flex; align-items: center; justify-content: space-between; }
.p-head .hi { font-size: 12.5px; color: var(--muted); }
.p-head .day { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--ink); }
.p-ava { width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, var(--accent), #34d399); display: grid; place-items: center; color: #06210a; font-weight: 800; }

.rings-card { margin: 14px 20px 6px; background: radial-gradient(120% 120% at 80% 0%, #16241a, #0c130e); border: 1px solid var(--line); border-radius: 26px; padding: 20px; display: flex; align-items: center; gap: 18px; }
.rings { position: relative; width: 138px; height: 138px; flex: 0 0 auto; }
.rings svg { transform: rotate(-90deg); }
.rings .rt { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.rings .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.rings .center b { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.rings .center b i { font-size: 14px; font-weight: 700; font-style: normal; color: var(--muted); margin-left: 1px; }
.rings .center span { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ring-legend { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ring-legend .lg { }
.ring-legend .lg .top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.ring-legend .lg .top b { color: var(--ink); font-weight: 700; }
.ring-legend .lg .top span { color: var(--muted); }
.ring-legend .lg .bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.ring-legend .lg .bar i { display: block; height: 100%; border-radius: 4px; width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 20px 4px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.stat .ic { font-size: 21px; color: var(--accent); height: 21px; }
.stat .v { font-size: 21px; font-weight: 800; color: var(--ink); margin-top: 8px; }
.stat .v small { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat .l { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.stat .spark { margin-top: 8px; display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.stat .spark i { flex: 1; background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 2px; opacity: 0.85; }

.p-sec { padding: 18px 20px 8px; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); display:flex; justify-content:space-between; align-items:center; }
.p-sec a { font-family: var(--font-sans); font-size: 12px; color: var(--accent); }

.start-btn { margin: 6px 20px 16px; }
.start-btn button { width: 100%; }

/* workout picker sheet */
.wk-opt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; cursor: pointer; }
.wk-opt:active { transform: scale(0.99); }
.wk-opt .em { width: 46px; height: 46px; border-radius: 13px; background: rgba(163,230,53,0.12); display: grid; place-items: center; font-size: 24px; color: var(--accent); }
.wk-opt .t { flex: 1; }
.wk-opt .t h5 { font-size: 15px; color: var(--ink); font-weight: 700; }
.wk-opt .t p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.wk-opt .go { color: var(--muted); font-size: 18px; display: grid; place-items: center; }
.sheet h3.sh-title { font-family: var(--font-display); font-size: 21px; color: var(--ink); padding: 4px 22px 12px; font-weight: 600; }

/* live workout overlay */
.live { position: absolute; inset: 0; z-index: 85; background: radial-gradient(120% 90% at 50% 0%, #12231a, #050d09); color: var(--ink); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.live.open { opacity: 1; pointer-events: auto; }
.live .lv-top { padding: 60px 24px 10px; text-align: center; }
.live .lv-top .kind { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.live .lv-top .time { font-family: var(--font-display); font-size: 60px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.live .map { flex: 1; margin: 14px 20px; border-radius: 22px; overflow: hidden; position: relative; background: linear-gradient(160deg, #0e1b14, #0a130e); border: 1px solid var(--line); }
.live .map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.live .route { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(163,230,53,0.6)); transition: stroke-dashoffset 0.25s linear; }
.live .dot-me { fill: #fff; filter: drop-shadow(0 0 6px var(--accent)); }
.live .lv-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 4px 20px 8px; }
.live .lv-stats .s { text-align: center; }
.live .lv-stats .s b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.live .lv-stats .s span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; letter-spacing: 0.05em; }
.live .lv-foot { padding: 6px 24px 30px; display: flex; gap: 12px; }
.live .lv-foot button { flex: 1; padding: 15px; border-radius: 16px; font-weight: 700; font-size: 15px; cursor: pointer; border: none; }
.live .lv-foot .end { background: var(--accent); color: var(--on-accent); }
.live .lv-foot .pause { background: rgba(255,255,255,0.08); color: var(--ink); border: 1px solid var(--line); }

/* trends bars */
.chart { margin: 8px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.chart .bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 10px; }
.chart .bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bars .col i { width: 100%; max-width: 22px; border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--accent), var(--accent-2)); height: 0; transition: height 0.9s cubic-bezier(.2,.8,.2,1); }
.chart .bars .col.today i { background: linear-gradient(#fff, var(--accent)); }
.chart .bars .col span { font-size: 10px; color: var(--muted); }
.chart .ttl { display: flex; justify-content: space-between; align-items: baseline; }
.chart .ttl b { font-size: 24px; font-weight: 800; color: var(--ink); }
.chart .ttl .d { font-size: 12px; color: var(--muted); }

/* plan / list rows */
.p-row { display: flex; align-items: center; gap: 13px; padding: 13px; margin: 0 20px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.p-row .em { width: 44px; height: 44px; border-radius: 12px; background: rgba(163,230,53,0.1); display: grid; place-items: center; font-size: 22px; color: var(--accent); }
.p-row .t { flex: 1; }
.p-row .t h5 { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.p-row .t p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.p-row .chk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; cursor: pointer; color: transparent; font-size: 15px; font-weight: 800; }
.p-row .chk .gi { width: 15px; height: 15px; }
.p-row.done .chk { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.p-row.done .t h5 { color: var(--muted); text-decoration: line-through; }

/* profile */
.prof { text-align: center; padding: 16px 20px 6px; }
.prof .big { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 12px; background: linear-gradient(135deg, var(--accent), #34d399); display: grid; place-items: center; font-size: 34px; color:#06210a; font-weight: 800; }
.prof h3 { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 600; }
.prof p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 20px; }
.badges .b { aspect-ratio: 1; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 26px; color: var(--accent); }
.badges .b.locked { opacity: 0.3; color: var(--muted); }
