/* Stride fitness app */
:root {
  --font: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Barlow", sans-serif;
  --bg: #edeff2;
  --panel: #ffffff;
  --ink: #0e1116;
  --ink-2: #646b76;
  --line: #e1e4e9;
  --move: #ff5a36;
  --train: #c4f230;
  --steps: #3fb8ff;
  --accent: #0e1116;
  --sheet: #ffffff;
}
body { background: #dfe2e6; }
.muted { color: var(--ink-2); font-size: 14px; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.link { font-size: 15px; font-weight: 600; color: var(--ink-2); min-height: 44px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  height: 56px; border-radius: var(--r-btn); font-weight: 700; font-size: 17px;
}
.btn.dark { background: var(--ink); color: #fff; }
.btn.lime { background: var(--train); color: var(--ink); }
.btn.light { background: #f0f2f5; color: var(--ink); margin-top: 10px; }
.btn.ghost { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn.danger { background: var(--move); color: #fff; }
.chips { display: flex; gap: 8px; padding: 4px 16px 0; overflow-x: auto; scrollbar-width: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.row-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 6px; }
.panel { margin: 12px 16px 0; padding: 18px; background: var(--panel); border-radius: 24px; }
.panel.list { padding: 4px 18px; }

/* Header */
.top { display: flex; align-items: center; gap: 12px; padding: 8px 20px 6px; }
.hello { flex: 1; display: grid; line-height: 1.2; }
.hello span { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.hello b { font-family: var(--cond); font-size: 32px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--train); color: var(--ink); font-weight: 700; font-size: 15px; }
.avatar.xl { width: 88px; height: 88px; font-size: 30px; font-family: var(--cond); font-weight: 800; }

/* Rings */
.rings-card {
  position: relative; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px;
  margin: 10px 16px 0; padding: 20px 18px; border-radius: 28px; background: var(--ink); color: #fff;
}
.rings { width: 150px; height: 150px; display: block; }
.rings.sm { width: 96px; height: 96px; }
.rings circle { fill: none; stroke: var(--c); stroke-width: 18; }
.rings .track { opacity: 0.18; }
.rings .arc { stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.rings .arc.full { stroke-dashoffset: 0; }
.ring-stats { list-style: none; display: grid; gap: 12px; }
.ring-stats li { display: grid; line-height: 1.1; }
.ring-stats small { font-size: 13px; font-weight: 600; color: var(--c); }
.ring-stats b { font-family: var(--cond); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring-stats em { font-style: normal; font-family: var(--font); font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.55); margin-left: 2px; }
.edit { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, 0.6); }

/* Workout card */
.wcard {
  position: relative; display: grid; grid-template-columns: 108px 1fr; align-items: center; gap: 14px; cursor: pointer;
  margin: 4px 16px 0; padding: 12px; border-radius: 26px; background: #fff;
}
.w-art { width: 108px; height: 108px; border-radius: 20px; background: var(--train); display: grid; place-items: center; overflow: hidden; }
.w-body { display: grid; gap: 3px; padding-right: 56px; }
.w-body small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.w-body b { font-family: var(--cond); font-size: 25px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.w-body span { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.w-body span .ic + .ic, .w-body span .ic:not(:first-child) { margin-left: 8px; }
.start { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--train); }
.start .ic { margin-left: 3px; }

/* Stick figure */
.fig { display: block; overflow: visible; }
.fig line, .fig path { stroke: var(--fig, var(--ink)); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.fig circle { fill: var(--fig, var(--ink)); }
.fig .ground { stroke-width: 3; opacity: 0.25; }
.fig.mini { width: 120px; height: 100px; }

/* Streak */
.streak { display: grid; gap: 16px; }
.st-head { display: flex; align-items: center; gap: 12px; }
.st-head div { display: grid; line-height: 1.25; }
.st-head b { font-size: 17px; }
.st-head small { font-size: 14px; color: var(--ink-2); }
.st-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #ffe6df; color: var(--move); }
.week { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.week li { display: grid; justify-items: center; gap: 6px; }
.week i { width: 30px; height: 30px; border-radius: 50%; background: #eef0f3; }
.week .done i { background: var(--move); box-shadow: inset 0 0 0 9px var(--move); }
.week .today i { box-shadow: inset 0 0 0 3px var(--move); }
.week .today.done i { background: var(--move); }
.week .today { color: var(--ink); }

/* Minis */
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 16px 0; }
.mini { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px; border-radius: 22px; background: #fff; }
.mini.water { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
.m-head { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); grid-column: 1 / -1; }
.mini b { font-family: var(--cond); font-size: 30px; font-weight: 700; line-height: 1; }
.mini em { font-style: normal; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--ink-2); margin-left: 3px; }
.spark { width: 100%; height: 36px; }
.spark path { fill: none; stroke: var(--move); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.sleep { display: flex; gap: 3px; height: 12px; margin-top: 10px; }
.sleep i { width: calc(var(--w) * 100%); border-radius: 4px; background: #b18cff; }
.sleep i:nth-child(2) { background: #6f4fd6; }
.sleep i:nth-child(4) { background: #d6c6ff; }
.glasses { display: flex; gap: 6px; grid-column: 1; align-self: end; }
.glasses i { width: 18px; height: 26px; border-radius: 3px 3px 6px 6px; background: #e8eef5; position: relative; overflow: hidden; }
.glasses i.full::after { content: ""; position: absolute; inset: 30% 0 0; background: var(--steps); border-radius: 0 0 6px 6px; }
.add { grid-row: 2 / span 2; grid-column: 2; align-self: center; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--steps); color: #fff; }

/* Plans */
.plan-list { display: grid; gap: 12px; padding: 14px 16px 0; }
.pcard { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 24px; background: #fff; text-align: left; width: 100%; }
.pcard .p-art { width: 96px; height: 96px; border-radius: 18px; display: grid; place-items: center; background: var(--c); overflow: hidden; }
.pcard .p-art .fig { width: 92px; height: 76px; }
.pcard .p-txt { display: grid; gap: 3px; min-width: 0; }
.pcard small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pcard b { font-family: var(--cond); font-size: 22px; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.pcard .bar-p { height: 6px; border-radius: 3px; background: #eef0f3; overflow: hidden; margin-top: 8px; }
.pcard .bar-p i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--ink); border-radius: 3px; }
.pcard .p-meta { font-size: 13px; color: var(--ink-2); }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-2); font-size: 15px; }

/* Plan detail */
.scr.plan { padding-top: 0; padding-bottom: 0; }
.p-hero { position: relative; height: 330px; padding-top: var(--top); background: var(--c, var(--train)); display: grid; grid-template-rows: auto 1fr; }
.p-hero .bar .iconbtn { background: rgba(255, 255, 255, 0.55); }
.p-hero .iconbtn[aria-pressed="true"] { color: var(--move); }
.p-hero .iconbtn[aria-pressed="true"] svg { fill: currentColor; }
.p-hero .fig { width: 260px; height: 216px; justify-self: center; align-self: end; margin-bottom: -6px; }
.p-body { position: relative; margin-top: -24px; padding: 24px 20px 0; border-radius: 28px 28px 0 0; background: var(--bg); }
.p-body > small { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.p-body h1 { font-family: var(--cond); font-size: 40px; font-weight: 800; line-height: 1; text-transform: uppercase; margin: 4px 0 10px; }
.p-sub { font-size: 16px; line-height: 1.5; color: #3b414b; }
.p-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 22px; }
.p-stats li { display: grid; padding: 14px; border-radius: 18px; background: #fff; }
.p-stats b { font-family: var(--cond); font-size: 30px; font-weight: 700; line-height: 1; }
.p-stats small { font-size: 13px; color: var(--ink-2); }
.moves { list-style: none; display: grid; gap: 8px; margin-top: 10px; counter-reset: mv; }
.moves li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: #fff; counter-increment: mv; }
.moves li::before { content: counter(mv); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #eef0f3; font-family: var(--cond); font-weight: 700; font-size: 18px; flex: none; }
.moves span { flex: 1; display: grid; line-height: 1.3; }
.moves b { font-size: 16px; }
.moves small { font-size: 13px; color: var(--ink-2); }
.dock { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(var(--bottom) + 8px); background: linear-gradient(transparent, var(--bg) 30%); z-index: 4; }
.scr.plan .dock { position: sticky; margin-top: 18px; }

/* Player */
.scr.player { background: var(--ink); color: #fff; display: flex; flex-direction: column; padding-bottom: calc(var(--bottom) + 10px); }
.player .iconbtn { color: #fff; }
.player .iconbtn[aria-pressed="false"] { opacity: 0.45; }
.segs { display: flex; gap: 4px; padding: 2px 20px 0; }
.segs i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; position: relative; }
.segs i::after { content: ""; position: absolute; inset: 0; background: var(--train); transform: scaleX(var(--p, 0)); transform-origin: left; }
.pl-stage { position: relative; flex: 1; min-height: 210px; display: grid; place-items: center; }
.pl-stage::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 242, 48, 0.18), transparent 68%); }
.fig.big { position: relative; width: 280px; height: 233px; --fig: var(--train); }
.fig.big .ground { stroke: #fff; }
.phase { position: absolute; top: 12px; left: 20px; height: 28px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--train); color: var(--ink); }
.phase.rest { background: var(--steps); }
.pl-info { padding: 0 20px; text-align: center; }
.pl-info small { font-size: 14px; color: rgba(255, 255, 255, 0.55); font-weight: 600; }
.pl-info h1 { font-family: var(--cond); font-size: 42px; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.pl-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 20px 0; }
.timer, .reps { position: relative; height: 128px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; }
.timer svg { position: absolute; width: 112px; height: 112px; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 7; }
.t-track { stroke: rgba(255, 255, 255, 0.1); }
.t-arc { stroke: var(--train); stroke-linecap: round; stroke-dasharray: 100; }
.timer.rest .t-arc { stroke: var(--steps); }
.timer b, .reps b { font-family: var(--cond); font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; display: block; text-align: center; }
.timer small, .reps small { font-size: 12px; color: rgba(255, 255, 255, 0.55); display: block; text-align: center; }
.timer > b { margin-top: 18px; }
.timer > small { margin-top: -22px; }
.reps { grid-template-columns: auto 1fr auto; padding: 0 8px; }
.rbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
.pl-ctl { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 18px 0 6px; }
.cbtn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); }
.cbtn.play { width: 76px; height: 76px; background: var(--train); color: var(--ink); }
.up-next { text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.55); padding-bottom: 6px; }

/* Done */
.scr.done { background: var(--ink); color: #fff; display: flex; flex-direction: column; padding-bottom: calc(var(--bottom) + 16px); }
.done-in { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 0 24px; text-align: center; }
.medal { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: var(--train); color: var(--ink); box-shadow: 0 0 0 12px rgba(196, 242, 48, 0.14), 0 0 0 26px rgba(196, 242, 48, 0.06); margin-bottom: 14px; }
.done h1 { font-family: var(--cond); font-size: 46px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.done p { color: rgba(255, 255, 255, 0.6); font-size: 16px; }
.d-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 16px; }
.d-stats li { display: grid; padding: 14px 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.07); }
.d-stats b { font-family: var(--cond); font-size: 32px; font-weight: 700; }
.d-stats small { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.feel { display: grid; gap: 10px; margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.feel div { display: flex; gap: 8px; }
.feel .chip { background: rgba(255, 255, 255, 0.08); border-color: transparent; color: #fff; }
.feel .chip[aria-pressed="true"] { background: #fff; color: var(--ink); }
.done-cta { display: grid; gap: 10px; padding: 0 20px; }

/* Progress */
.seg { display: flex; gap: 4px; margin: 4px 16px 0; padding: 4px; background: #e1e4e9; border-radius: 14px; }
.seg button { flex: 1; height: 38px; border-radius: 11px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
[data-os="android"] .seg, [data-os="android"] .seg button { border-radius: 999px; }
.p-head { display: grid; line-height: 1.2; }
.p-head small { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.p-head b { font-family: var(--cond); font-size: 40px; font-weight: 700; }
.p-head em { font-style: normal; font-size: 13px; font-weight: 600; }
.p-head .up { color: #16a34a; }
.chart { display: grid; grid-template-columns: repeat(var(--n, 7), 1fr); gap: 8px; height: 150px; margin-top: 16px; align-items: end; }
.chart span { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chart i { align-self: end; height: calc(var(--h) * 100%); min-height: 4px; border-radius: 8px; background: #e1e4e9; transform-origin: bottom; }
.chart .hi i { background: var(--train); }
.chart .now i { background: var(--ink); }
.line { width: 100%; height: 110px; margin-top: 12px; overflow: visible; }
.line .stroke { fill: none; stroke: var(--steps); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.line .area { fill: url(#fillG); }
.line .dot { fill: #fff; stroke: var(--steps); stroke-width: 3; }
.prs { list-style: none; margin: 0 16px; padding: 4px 16px; background: #fff; border-radius: 22px; }
.prs li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.prs li + li { border-top: 1px solid var(--line); }
.prs li > span:not(.pr-ic) { flex: 1; display: grid; line-height: 1.3; }
.prs b { font-size: 15px; }
.prs small { font-size: 13px; color: var(--ink-2); }
.prs strong { font-family: var(--cond); font-size: 24px; font-weight: 700; }
.pr-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, #fff); color: var(--ink); }

/* Profile */
.me { display: grid; justify-items: center; gap: 6px; padding: 8px 20px 4px; text-align: center; }
.me b { font-size: 22px; margin-top: 6px; }
.awards { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 16px 0; }
.awards li { display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; color: var(--ink-2); }
.awards span { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--ink); }
.switch-row, .nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; width: 100%; font-size: 16px; font-weight: 600; text-align: left; }
.switch-row + .switch-row, .switch-row + .nav-row, .nav-row + .nav-row, .nav-row + .switch-row { border-top: 1px solid var(--line); }
.switch-row > span, .nav-row > span { display: flex; align-items: center; gap: 12px; }
.nav-row em { font-style: normal; color: var(--ink-2); font-size: 15px; }
.nav-row em.on { color: #16a34a; }
.switch-row input {
  appearance: none; width: 51px; height: 31px; border-radius: 999px; background: #d9dde3; position: relative; cursor: pointer; flex: none; transition: background 0.25s;
}
.switch-row input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.3s var(--ease); }
.switch-row input:checked { background: var(--ink); }
.switch-row input:checked::after { transform: translateX(20px); }
[data-os="android"] .switch-row input { width: 52px; height: 32px; background: #e4e7eb; box-shadow: inset 0 0 0 2px #7a818c; }
[data-os="android"] .switch-row input::after { top: 8px; left: 8px; width: 16px; height: 16px; background: #7a818c; box-shadow: none; transition: transform 0.3s var(--ease), width 0.2s, height 0.2s, top 0.2s, left 0.2s; }
[data-os="android"] .switch-row input:checked { background: var(--ink); box-shadow: none; }
[data-os="android"] .switch-row input:checked::after { top: 4px; left: 4px; width: 24px; height: 24px; background: var(--train); transform: translateX(20px); }

/* Tab bar */
.tabs {
  position: absolute; z-index: 60; left: 16px; right: 16px; bottom: calc(var(--bottom) - 6px);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; height: 68px; padding: 0 6px;
  border-radius: 26px; background: rgba(14, 17, 22, 0.95); color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
}
.tab { display: grid; justify-items: center; gap: 3px; height: 100%; align-content: center; font-size: 11px; font-weight: 600; }
.tab em { font-style: normal; }
.tab[aria-current="true"] { color: var(--train); }
.tab .pill { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 14px; }
[data-os="android"] .tabs {
  left: 0; right: 0; bottom: 0; height: calc(80px + var(--bottom)); padding: 0 6px var(--bottom); border-radius: 0;
  background: #f7f8fa; color: var(--ink-2); box-shadow: 0 -1px 0 var(--line); backdrop-filter: none;
}
[data-os="android"] .tab[aria-current="true"] { color: var(--ink); }
[data-os="android"] .tab .pill { width: 60px; height: 32px; border-radius: 16px; }
[data-os="android"] .tab[aria-current="true"] .pill { background: var(--train); color: var(--ink); }
[data-os="android"] .scr.has-tabs { padding-bottom: calc(var(--bottom) + 104px); }

/* Sheets */
.goal-val { text-align: center; font-size: 18px; font-weight: 600; color: var(--ink-2); margin-top: 4px; }
.goal-val strong { font-family: var(--cond); font-size: 64px; color: var(--ink); font-variant-numeric: tabular-nums; }
.range { width: 100%; margin-top: 10px; accent-color: var(--move); height: 30px; }
.goal-hint { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.share-card { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: start; gap: 4px 12px; padding: 18px; border-radius: 22px; background: var(--ink); color: #fff; margin: 6px 0 18px; }
.share-card b { font-family: var(--cond); font-size: 28px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.share-card span { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.share-card .rings { grid-row: 1 / span 2; grid-column: 2; }
.share-to { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.share-to button { display: grid; justify-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.share-to button > span { width: 100%; height: 70px; border-radius: 20px; display: grid; place-items: center; background: #eef0f3; }
