:root {
  color-scheme: light;
  --ink: #101b2c;
  --muted: #526476;
  --accent: #078e9e;
  --blue: #086bb6;
  --line: #e0e8ef;
  --shadow: 0 4px 12px #203b5210;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f6f9fb;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1000px; margin: auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 800; }
.brand .icon { width: 32px; height: 32px; color: var(--accent); }
.settings { color: var(--muted); display: grid; place-items: center; width: 44px; height: 44px; }
.dashboard { max-width: 1000px; margin: auto; padding: 0 14px calc(100px + env(safe-area-inset-bottom)); display: grid; gap: 20px; }
.profile { display: flex; align-items: center; gap: 15px; padding: 20px 14px; margin: 0 -14px; background: radial-gradient(ellipse at 95% 100%, #cce8f4, transparent 70%), linear-gradient(110deg,#f9fbfd,#eaf6fa); }
.avatar { border-radius: 50%; object-fit: cover; border: 4px solid white; box-shadow: var(--shadow); flex: none; }
h1 { font-size: clamp(20px,5.5vw,28px); line-height: 1.15; margin: 0 0 5px; }
.profile p { margin: 0; color: var(--muted); font-size: 15px; }
.profile-accent { display: block; width: 55px; height: 5px; margin-top: 10px; background: #21bca5; border-radius: 100% 30% 100% 20%; transform: rotate(-6deg); }
.summary, .metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.blue { background: linear-gradient(135deg,#f0f8fc,#dceffa); }
.mint { background: linear-gradient(135deg,#f0faf7,#d8f3e9); }
.summary-card { border-radius: var(--radius); display: flex; align-items: flex-start; gap: 10px; padding: 14px 12px; }
.summary-card .icon { color: var(--accent); width: 25px; height: 25px; }
.summary-card span { font-size: 13px; font-weight: 550; line-height: 1.3; display: block; }
.summary-card strong { display: block; font-size: 27px; line-height: 1.1; margin-top: 5px; }
h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.25; margin: 0 0 11px; }
h2 .icon { color: var(--accent); }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.exercise-row { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 48px; font-size: 15px; }
.exercise-row + .exercise-row { border-top: 1px solid var(--line); }
.exercise-icon { color: #233d50; width: 31px; height: 31px; }
.exercise-text { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.exercise-text span { color: var(--blue); font-size: 14px; }
.check { margin-left: auto; color: #35ad66; width: 20px; height: 20px; }
.chevron { margin-left: auto; color: var(--muted); width: 19px; height: 19px; }
.metric { min-width: 0; padding: 13px 11px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-name { display: flex; align-items: center; gap: 7px; font-size: 13px; min-height: 35px; line-height: 1.2; }
.metric-name .icon { color: var(--accent); width: 22px; height: 22px; }
.metric-middle { display: flex; align-items: center; gap: 5px; margin: 8px 0 4px; }
.metric-middle strong { font-size: clamp(21px,6vw,27px); white-space: nowrap; letter-spacing: -.5px; }
.metric-middle strong small { font-size: 15px; }
.spark { min-width: 0; width: 55px; flex: 1; max-width: 85px; color: #14a987; }
.change { color: #087c72; font-weight: 700; font-size: 15px; }
.comparison { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }
.primary { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(110deg,#078cae,#086bb6); color: white; border-radius: var(--radius); font-size: 17px; font-weight: 750; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fffffffa; border-top: 1px solid var(--line); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); z-index: 10; }
.nav-inner { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); max-width: 650px; margin: auto; gap: 4px; }
.nav-inner a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px; border-radius: 12px; font-size: 11px; color: var(--muted); }
.nav-inner .selected { color: var(--blue); background: #e4f0fc; font-weight: 700; }
@media (min-width: 600px) {
  .dashboard { padding-inline: 24px; gap: 24px; }
  .profile { margin: 0 -24px; padding: 28px 24px; }
  .summary-card, .metric { padding: 20px; }
  .summary-card span, .metric-name { font-size: 16px; }
  .exercise-row { padding: 15px; }
  .nav-inner a { font-size: 13px; }
}
@media (min-width: 850px) {
  .dashboard { grid-template-columns: 1fr 1fr; align-items: start; }
  .profile, .summary, .primary { grid-column: 1 / -1; }
  .profile { margin: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .favorites { grid-column: 1 / -1; }
}
@media (hover: hover) { a.exercise-row:hover, .metric:hover { filter: brightness(.97); } .primary:hover { filter: brightness(1.08); } }
