* { box-sizing: border-box; }
:root {
  color-scheme: light dark;
  font: 16px/1.5 system-ui, -apple-system, sans-serif;
    --paper:light-dark(#fffaf0,#151d30); --ink:light-dark(#141b30,#fffaf0);
    --soft:light-dark(#505769,#c7cfdf); --line:light-dark(#ddd6c8,#37435d);
    --panel:light-dark(#eee9de,#28344e); --coral:#ff785f; --yellow:#ffda68; --navy:#141b30;
    --heart-bg:light-dark(#ffe1d8,#522f32); --heart-ink:light-dark(#822819,#ffd2c6);
    --breath-bg:light-dark(#cef1e6,#143e39); --breath-ink:light-dark(#14554a,#aeebdb);
    --hrv-bg:light-dark(#e8e1ff,#3c315c); --hrv-ink:light-dark(#4b2d91,#e3d7ff);
    --focus:light-dark(#243ccd,#b6c3ff); --action:light-dark(#263ecf,#4257de);
    --on-action:#fffaf0;
}
[hidden] { display: none !important; }
body {
  margin: 0;
  padding: clamp(12px, 5vw, 48px) 12px;
  color: var(--ink);
  background: light-dark(#f0eadd, #0f1524);
  background-image: radial-gradient(light-dark(#d4cbbb, #30374b) 1px, transparent 1px);
  background-size: 16px 16px;
}
.still {
  width: min(100%, 430px);
  min-height: 665px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--paper);
  padding: clamp(17px, 5vw, 26px);
  box-shadow: 0 16px 48px #141b301a;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 850;
  font-size: 1.45rem;
  letter-spacing: -.06em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img { flex: none; }
button {
  font: 740 1rem/1.25 system-ui, sans-serif;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
}
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.header-action, .secondary {
  background: transparent;
  color: var(--focus);
}
.header-action:hover, .secondary:hover { background: var(--panel); }
.header-action { padding-inline: 9px; }
.view {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 17px;
  padding-top: 21px;
}
.copy { display: grid; gap: 6px; }
.copy p, .fine, .empty { margin: 0; color: var(--soft); }
.copy .kicker {
  color: var(--focus);
  font-weight: 830;
  font-size: .73rem;
  letter-spacing: .10em;
  text-transform: uppercase;
}
h1, h2 {
  color: var(--ink);
  font: 850 clamp(2.25rem, 8vw, 3.25rem)/1 system-ui, sans-serif;
  letter-spacing: -.057em;
  margin: 0 0 3px;
}
.home-art {
  min-height: clamp(182px, 45vw, 228px);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 15px;
  color: var(--navy);
  background: var(--coral);
}
.orbit {
  inline-size: 110px;
  block-size: 110px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 13px #ffda6866, 0 0 0 30px #141b301f;
}
.orbit::before, .orbit::after {
  position: absolute;
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.orbit::before { top: 21px; left: 8px; }
.orbit::after { right: 5px; bottom: 24px; }
.home-art::before, .home-art::after {
  position: absolute;
  content: "";
  z-index: -1;
  width: 68px;
  height: 64px;
  background: radial-gradient(circle, var(--navy) 1px, transparent 1.5px) 0 0 / 9px 9px;
  opacity: .42;
}
.home-art::before { top: 14px; right: 14px; }
.home-art::after { bottom: 14px; left: 14px; }
[data-vital="heart"] { --vital-bg: var(--heart-bg); --vital-ink: var(--heart-ink); }
[data-vital="breath"] { --vital-bg: var(--breath-bg); --vital-ink: var(--breath-ink); }
[data-vital="hrv"] { --vital-bg: var(--hrv-bg); --vital-ink: var(--hrv-ink); }
.vital-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.vital-key li, .numbers > div { background: var(--vital-bg); color: var(--vital-ink); }
.vital-key li {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: .76rem;
  font-weight: 760;
}
.vital-key abbr { text-decoration: none; }
.actions { display: grid; gap: 7px; margin-top: auto; padding-top: 4px; }
.primary {
  min-height: 53px;
  width: 100%;
  position: relative;
  background: var(--action);
  color: var(--on-action);
}
.primary span { position: absolute; right: 14px; }
.primary:hover { background: color-mix(in srgb, var(--action) 89%, var(--navy)); }
.fine { font-size: .82rem; }
.center { text-align: center; }
.guidance { margin: 0; padding: 0; list-style: none; }
.guidance li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 51px;
  border-top: 1px solid var(--line);
}
.guidance span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 6px;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 800;
  font-size: .78rem;
}
.camera {
  overflow: hidden;
  border-radius: 15px;
  background: var(--navy);
  aspect-ratio: 360/340;
}
canvas { display: block; width: 100%; height: 100%; }
progress { width: 100%; height: 12px; accent-color: var(--action); }
.numbers { display: grid; gap: 8px; margin: 0; }
.numbers > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 9px;
}
.numbers dt { font-weight: 670; }
.numbers dd {
  margin: 0;
  white-space: nowrap;
  font-weight: 820;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.numbers small, .numbers .missing { font-size: .75rem; font-weight: 680; }
details { border-bottom: 1px solid var(--line); padding: 0 0 5px; }
summary { min-height: 44px; padding: 10px 0; font-weight: 730; cursor: pointer; }
.remove { margin-top: 4px; }
@media (max-width: 350px) {
  .numbers > div { grid-template-columns: 1fr; gap: 2px; }
}
