/* Dr. Dana's Health Class: the app inside the phone (developer A).
   Everything is scoped to .da-root (added by app.js on the mount element); every class starts with "da-".
   Layout reads only the size of the mount box (--da-w / --da-h, default 393 x 852, set by the host).
   Only transform and opacity animate (plus stroke-dashoffset inside the drawings).
   Fonts are declared by the host page: "Fraunces" (variable, roman + italic) and "Instrument Sans". */

.da-root {
  --da-bg: #FFFBF6; --da-card: #FFFFFF; --da-ink: #2A2421; --da-ink-2: #4A3F39; --da-muted: #7A6E66; --da-faint: #A3978F;
  --da-line: rgba(42, 36, 33, .09); --da-line-2: rgba(42, 36, 33, .15); --da-well: #F6F0E8;
  --da-rose: #D9566F; --da-rose-ink: #B93D57; --da-rose-soft: #FCEBEE; --da-rose-mist: rgba(217, 86, 111, .1);
  --da-sky: #CFE0EE; --da-lav: #D9D1EF; --da-blush: #F2C9C2; --da-butter: #F5E6A8; --da-rosy: #EDB3B9;
  --da-paper-off: #FBF6EE;   /* the story page's paper: the screen before it lights up */
  --da-shadow: 0 1px 2px rgba(70, 40, 30, .05), 0 12px 30px -16px rgba(70, 40, 30, .24);
  --da-shadow-sm: 0 1px 2px rgba(70, 40, 30, .06), 0 6px 16px -10px rgba(70, 40, 30, .22);
  --da-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --da-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --da-ios: cubic-bezier(.32, .72, 0, 1); --da-out: cubic-bezier(.16, 1, .3, 1);
  --da-status: 54px; --da-tb: 83px;

  position: relative;
  width: var(--da-w, 393px);
  height: var(--da-h, 852px);
  container-type: size;
  isolation: isolate;
  overflow: hidden;
  font-family: var(--da-sans);
  font-size: 15px;
  line-height: 1.35;
  font-kerning: normal;
  font-optical-sizing: auto;
  letter-spacing: normal;
  text-align: left;
  color: var(--da-ink);
  background: var(--da-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.da-root *, .da-root *::before, .da-root *::after { box-sizing: border-box; }
.da-root :where(p, h1, h2, h3, ol, ul, li, figure) { margin: 0; padding: 0; }
.da-root :where(ol, ul) { list-style: none; }
.da-root :where(img, video, svg) { display: block; max-width: none; }
.da-root :where(img) { -webkit-user-drag: none; }
.da-root :where(h1, h2, h3) { font-size: inherit; font-weight: inherit; }
.da-root :where(i, b, em) { font-style: normal; }
.da-root :where(button) {
  -webkit-appearance: none; appearance: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  font: inherit; color: inherit; text-align: inherit; letter-spacing: inherit;
  cursor: pointer; touch-action: manipulation;
}
.da-root [hidden] { display: none !important; }
.da-root :focus { outline: none; }
.da-root :focus-visible { outline: 2px solid var(--da-rose); outline-offset: 2px; }
.da-root .da-sheet:focus-visible { outline: none; }
.da-story .da-screen { pointer-events: none; }

/* tones (per program pastel) */
.da-tone--sky    { --tone: #CFE0EE; --tone-soft: #EAF2F9; --tone-ink: #3F6688; }
.da-tone--lav    { --tone: #D9D1EF; --tone-soft: #EFEBF9; --tone-ink: #5E5399; }
.da-tone--blush  { --tone: #F2C9C2; --tone-soft: #FBEBE7; --tone-ink: #A5574C; }
.da-tone--butter { --tone: #F5E6A8; --tone-soft: #FBF4DA; --tone-ink: #866A17; }
.da-tone--rosy   { --tone: #EDB3B9; --tone-soft: #F9E4E6; --tone-ink: #A8455B; }
.da-tone--paper  { --tone: #E9DDCA; --tone-soft: #F6EFE4; --tone-ink: #7A6346; }

/* ------------------------------------------------------------------ screen, layers */
.da-screen { position: absolute; inset: 0; overflow: hidden; background: var(--da-bg); }
.da-layer {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  background: var(--da-bg); visibility: hidden;
}
.da-layer.is-on { visibility: visible; }
.da-layer.is-moving { box-shadow: -18px 0 40px -18px rgba(42, 36, 33, .22); }
/* No overscroll containment: in live mode a swipe (or a wheel) on a screen whose content fits, or that has reached
   its end, must chain to the page, so the story can be scrolled on past the phone. */
.da-scroll {
  position: absolute; inset: 0; overflow: hidden;
  overscroll-behavior: auto; scrollbar-width: none;
}
.da-scroll::-webkit-scrollbar { display: none; }
.da-live .da-scroll { overflow-y: auto; overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch; }
.da-in { position: relative; padding: calc(var(--da-status) + 6px) 16px calc(var(--da-tb) + 20px); }

/* ------------------------------------------------------------------ shared atoms */
.da-k {
  font: 600 11px/1.25 var(--da-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--da-muted);
}
.da-k--rose { color: var(--da-rose-ink); }
.da-h1 {
  font: 400 30px/1.08 var(--da-serif); letter-spacing: -.018em; color: var(--da-ink);
  font-variation-settings: "opsz" 72;
}
.da-h3 { font: 450 20px/1.2 var(--da-serif); letter-spacing: -.01em; color: var(--da-ink); }
.da-sub { font: 400 15px/1.4 var(--da-sans); color: var(--da-muted); }
.da-card { background: var(--da-card); border-radius: 20px; box-shadow: var(--da-shadow); }
.da-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 11px;
  font: 600 11px/1 var(--da-sans); letter-spacing: .02em; white-space: nowrap;
}
.da-pill svg { width: 11px; height: 11px; }
.da-pill--rose { background: var(--da-rose-ink); color: #fff; }
.da-pill--ok { background: #EEF4EC; color: #4F7A4B; }
.da-pill--soon { background: rgba(255, 255, 255, .92); color: var(--da-ink-2); box-shadow: 0 2px 8px -4px rgba(42, 36, 33, .3); }
.da-draft {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 9px; border-radius: 12px;
  background: #FBF3D6; color: #7C621C; border: 1px dashed rgba(124, 98, 28, .38);
  font: 600 11px/1 var(--da-sans); letter-spacing: .01em; white-space: nowrap;
}
.da-draft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C9A43A; }
.da-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; border-radius: 27px;
  background: var(--da-rose-ink); color: #fff; font: 600 16.5px/1 var(--da-sans); letter-spacing: .005em;
  box-shadow: 0 1px 1px rgba(150, 40, 60, .15), 0 12px 26px -14px rgba(185, 61, 87, .75);
  transition: transform 160ms var(--da-out), opacity 200ms linear;
}
.da-btn.is-off { opacity: .38; box-shadow: none; }
.da-btn.is-pressed { transform: scale(.965); background: #A0324A; box-shadow: 0 1px 1px rgba(150, 40, 60, .15), 0 6px 14px -10px rgba(217, 86, 111, .8); }
.da-live .da-btn:active { transform: scale(.97); }
.da-btn--soft { background: var(--da-card); color: var(--da-ink); box-shadow: var(--da-shadow-sm), inset 0 0 0 1px var(--da-line); }
.da-link {
  display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0 -10px;
  font: 600 13.5px/1 var(--da-sans); color: var(--tone-ink, var(--da-ink-2));
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.da-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(42, 36, 33, .08); overflow: hidden; }
.da-bar i {
  position: absolute; inset: 0; border-radius: 3px; background: var(--da-rose);
  transform-origin: 0 50%; transform: scaleX(var(--k, 0));
}

/* avatar with the "Dr." badge */
.da-av { position: relative; display: inline-block; flex: none; width: var(--s); height: var(--s); }
.da-av img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1.5px #fff, 0 2px 6px -2px rgba(70, 40, 30, .35);
}
.da-av b {
  position: absolute; right: calc(var(--s) * -.14); bottom: calc(var(--s) * -.06);
  min-width: calc(var(--s) * .52); height: calc(var(--s) * .38); padding: 0 calc(var(--s) * .07);
  display: flex; align-items: center; justify-content: center;
  border-radius: calc(var(--s) * .2); background: var(--da-rose-ink); color: #fff; box-shadow: 0 0 0 1.5px #fff;
  font: 700 calc(var(--s) * .22)/1 var(--da-sans); letter-spacing: .01em;
}
.da-lcard__m .da-av b, .da-namechip .da-av b { display: none; }

/* week dots */
.da-week { display: flex; justify-content: space-between; }
.da-day { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 34px; }
.da-day b { font: 600 11px/1 var(--da-sans); color: var(--da-muted); letter-spacing: .04em; }
.da-day i {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--da-line-2); color: #fff;
}
.da-day i::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--da-rose);
  transform: scale(0); opacity: 0; transition: transform 420ms cubic-bezier(.34, 1.56, .64, 1), opacity 200ms linear;
}
.da-day i svg { position: relative; width: 14px; height: 14px; opacity: 0; transform: scale(.5); transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1) 80ms, opacity 160ms linear 80ms; }
.da-day.is-done i::before { transform: scale(1); opacity: 1; }
.da-day.is-done i svg { opacity: 1; transform: scale(1); }
.da-day.is-today b { color: var(--da-rose-ink); }
.da-day.is-today i { background: #fff; box-shadow: inset 0 0 0 2px var(--da-rose); }
.da-day.is-today i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--da-rose);
}
.da-day.is-today.is-done i::after, .da-day.is-filling.is-done i::after { display: none; }
.da-day.is-filling b { color: var(--da-rose-ink); }
.da-day.is-filling i { background: #fff; box-shadow: inset 0 0 0 2px var(--da-rose); }
.da-rm .da-day i::before, .da-rm .da-day i svg { transition-duration: 150ms; transition-delay: 0ms; }

/* ------------------------------------------------------------------ status bar, home indicator, tab bar */
.da-status {
  position: absolute; left: 0; right: 0; top: 0; z-index: 60; height: var(--da-status);
  color: var(--da-ink); pointer-events: none;
}
.da-status__time {
  position: absolute; left: 0; top: 18px; width: 138px; padding-left: 8px; text-align: center;
  font: 600 16.5px/20px var(--da-sans); letter-spacing: -.005em; font-variant-numeric: tabular-nums;
}
.da-status__ic {
  position: absolute; right: 0; top: 22px; width: 138px; padding-right: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.da-homeind {
  position: absolute; left: 50%; bottom: 8px; z-index: 61; width: 136px; height: 5px; margin-left: -68px;
  border-radius: 3px; background: rgba(42, 36, 33, .88); pointer-events: none;
}
.da-full .da-status, .da-full .da-homeind { display: none; }

.da-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--da-tb);
  display: flex; align-items: flex-start; justify-content: space-around; padding: 7px 18px 0;
  background: rgba(255, 251, 246, .94);
  box-shadow: inset 0 .5px 0 rgba(42, 36, 33, .14);
  visibility: hidden;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .da-tabbar { background: rgba(255, 251, 246, .82); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
}
.da-tabbar.is-on { visibility: visible; }
.da-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; height: 49px; padding-top: 2px;
  color: var(--da-muted); font: 600 10.5px/1.1 var(--da-sans); letter-spacing: .01em;
}
.da-tab svg { width: 26px; height: 26px; }
.da-tab .da-fillable { fill: none; transition: fill-opacity 200ms linear; }
.da-tab[aria-current] { color: var(--da-rose-ink); }
.da-tab[aria-current] .da-fillable { fill: currentColor; fill-opacity: .14; }

/* nav bar (pushed screens) */
.da-nav {
  position: absolute; left: 0; right: 0; top: var(--da-status); z-index: 5; height: 44px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 6px;
}
.da-back {
  display: inline-flex; align-items: center; gap: 0; height: 44px; padding: 0 10px 0 2px;
  color: var(--da-rose-ink); font: 500 16.5px/1 var(--da-sans);
}
.da-back svg { width: 26px; height: 26px; margin-right: -1px; }
.da-steps { display: flex; gap: 6px; padding-right: 6px; margin-left: auto; }
.da-steps i { width: 22px; height: 4px; border-radius: 2px; background: rgba(42, 36, 33, .12); transition: background-color 300ms linear; }
.da-steps i.is-on { background: var(--da-rose); }

/* toast */
.da-toast {
  position: absolute; left: 0; right: 0; bottom: calc(var(--da-tb) + 16px); z-index: 30;
  width: max-content; max-width: calc(100% - 48px); margin: 0 auto; padding: 11px 16px; border-radius: 14px;
  background: rgba(42, 36, 33, .92); color: #FFF8F2; font: 500 14px/1.25 var(--da-sans); text-align: center; text-wrap: balance;
  transform: translate3d(0, 12px, 0); opacity: 0; pointer-events: none;
  transition: transform 300ms var(--da-out), opacity 220ms linear;
}
.da-toast.is-on { transform: translate3d(0, 0, 0); opacity: 1; }

/* ------------------------------------------------------------------ splash */
.da-splash {
  background:
    radial-gradient(120% 70% at 50% 34%, rgba(245, 230, 168, .42), rgba(245, 230, 168, 0) 62%),
    radial-gradient(90% 60% at 50% 78%, rgba(242, 201, 194, .38), rgba(242, 201, 194, 0) 70%),
    var(--da-bg);
}
.da-splash__in {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%);
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.da-splash .da-av { transform: scale(.86); opacity: 0; transition: transform 700ms var(--da-out), opacity 400ms linear; }
.da-splash .da-av img { box-shadow: 0 0 0 4px #fff, 0 18px 36px -16px rgba(70, 40, 30, .45); }
.da-splash .da-av b { box-shadow: 0 0 0 3px #fff; }
.da-splash__t {
  font: 400 36px/1.02 var(--da-serif); letter-spacing: -.02em; color: var(--da-ink);
  font-variation-settings: "opsz" 96;
  transform: translate3d(0, 10px, 0); opacity: 0; transition: transform 700ms var(--da-out) 120ms, opacity 500ms linear 120ms;
}
.da-splash__t span { font-style: italic; font-weight: 340; color: var(--da-rose-ink); }
.da-splash.is-in .da-av { transform: none; opacity: 1; }
.da-splash.is-in .da-splash__t { transform: none; opacity: 1; }
.da-rm .da-splash .da-av, .da-rm .da-splash__t { transform: none; transition-duration: 150ms; transition-delay: 0ms; }

/* ------------------------------------------------------------------ onboarding */
.da-onboard .da-in { padding: calc(var(--da-status) + 52px) 20px 130px; }
.da-onboard .da-h1 { font-size: 31px; }
.da-onboard .da-sub { margin-top: 8px; }
.da-needs { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.da-need {
  position: relative; display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 16px 0 9px;
  border-radius: 18px; background: var(--da-card); box-shadow: var(--da-shadow-sm), inset 0 0 0 1px var(--da-line);
  transition: box-shadow 220ms linear, background-color 220ms linear, transform 160ms var(--da-out);
}
/* the program's pastel, alone (no glyph): the same colour the program wears on Today and in Programs */
.da-need__sw {
  flex: none; width: 30px; height: 30px; margin-left: 6px; border-radius: 50%;
  background: var(--tone); box-shadow: inset 0 0 0 1px rgba(42, 36, 33, .06), 0 0 0 5px var(--tone-soft);
}
.da-need__l { flex: 1; font: 600 16px/1.2 var(--da-sans); color: var(--da-ink); }
.da-radio {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(42, 36, 33, .22); color: #fff;
  transition: background-color 200ms linear, box-shadow 200ms linear;
}
.da-radio svg { width: 13px; height: 13px; opacity: 0; transform: scale(.5); transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1), opacity 150ms linear; }
.da-need.is-sel { background: #FFF7F8; box-shadow: 0 10px 24px -16px rgba(217, 86, 111, .6), inset 0 0 0 1.5px var(--da-rose); }
.da-need.is-sel .da-radio { background: var(--da-rose); box-shadow: none; }
.da-need.is-sel .da-radio svg { opacity: 1; transform: none; }
.da-live .da-need:active { transform: scale(.985); }
.da-onboard .da-h3 { margin-top: 26px; font-size: 19px; }
.da-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.da-chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px;
  background: var(--da-card); box-shadow: inset 0 0 0 1px var(--da-line-2);
  font: 500 14.5px/1 var(--da-sans); color: var(--da-ink);
  transition: background-color 200ms linear, color 200ms linear, box-shadow 200ms linear;
}
.da-chip.is-sel { background: var(--da-rose-mist); color: var(--da-rose-ink); box-shadow: inset 0 0 0 1.5px var(--da-rose); font-weight: 600; }
/* the 780 canvas (short phone viewports): the five needs, the five life stages and "Continue" all fit, no scroll */
@container (max-height: 824px) {
  .da-onboard .da-in { padding-top: calc(var(--da-status) + 40px); }
  .da-onboard .da-h1 { font-size: 29px; }
  .da-onboard .da-sub { margin-top: 6px; }
  .da-needs { gap: 7px; margin-top: 16px; }
  .da-need { height: 50px; border-radius: 16px; }
  .da-onboard .da-h3 { margin-top: 20px; }
  .da-chips { gap: 7px; margin-top: 10px; }
  .da-chip { height: 38px; padding: 0 13px; font-size: 14px; }
}
.da-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 18px 20px 40px;
  background: linear-gradient(rgba(255, 251, 246, 0), var(--da-bg) 32%);
}
.da-tap {
  position: absolute; left: 0; top: 0; z-index: 8; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 36, 33, .26) 0 38%, rgba(42, 36, 33, .12) 39% 100%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9);
  opacity: 0; pointer-events: none; will-change: transform, opacity;
}

/* ------------------------------------------------------------------ home / today */
.da-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; margin-top: 2px; }
.da-mark { display: flex; align-items: center; gap: 10px; min-width: 0; }
.da-mark__t { font: 450 16.5px/1.1 var(--da-serif); letter-spacing: -.01em; white-space: nowrap; color: var(--da-ink); }
.da-streak {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px 0 6px; border-radius: 15px;
  background: var(--da-card); box-shadow: var(--da-shadow-sm), inset 0 0 0 1px var(--da-line);
  font: 500 12.5px/1 var(--da-sans); color: var(--da-ink-2); white-space: nowrap;
}
.da-streak__i { display: flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: var(--da-rose); color: #fff; }
.da-streak__i svg { width: 11px; height: 11px; }
.da-streak b { font-weight: 700; color: var(--da-ink); font-variant-numeric: tabular-nums; margin-right: 1px; }
.da-greet { display: flex; flex-direction: column-reverse; gap: 6px; margin-top: 16px; }
.da-greet__d { font: 600 11.5px/1.2 var(--da-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--da-muted); }
.da-greet__h { font-size: 32px; }
.da-prog {
  position: relative; overflow: hidden; margin-top: 18px; padding: 16px 16px 6px; border-radius: 24px;
  background: var(--tone-soft); box-shadow: inset 0 0 0 1px rgba(42, 36, 33, .04);
}
.da-prog::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--tone), rgba(255, 255, 255, 0)); opacity: .9; pointer-events: none;
}
.da-prog > * { position: relative; }
.da-prog .da-k { color: var(--tone-ink); }
.da-prog__t { margin-top: 6px; font: 430 22px/1.15 var(--da-serif); letter-spacing: -.012em; color: var(--da-ink); }
.da-prog .da-bar { margin-top: 14px; background: rgba(42, 36, 33, .08); }
.da-prog .da-week { margin-top: 14px; }
.da-prog .da-link { margin-top: 4px; }
.da-prog__soon { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
.da-prog__soon-t { font: 500 14.5px/1.3 var(--da-sans); color: var(--da-ink-2); }
/* a program that hasn't opened yet shows no progress: no bar, no week of done days */
.da-prog.is-soon .da-bar, .da-prog.is-soon .da-week { display: none; }
.da-sec { margin-top: 22px; font: 450 20px/1.2 var(--da-serif); letter-spacing: -.01em; }
.da-lcard, .da-ecard { display: flex; align-items: center; width: 100%; text-align: left; transition: transform 160ms var(--da-out); }
.da-live .da-lcard:active, .da-live .da-ecard:active, .da-live .da-pcard:active, .da-live .da-dcard:active, .da-live .da-scard:active { transform: scale(.98); }
.da-lcard { gap: 14px; margin-top: 12px; padding: 10px 14px 10px 10px; }
.da-lcard__img { position: relative; flex: none; width: 92px; height: 115px; border-radius: 15px; overflow: hidden; background: var(--da-well); }
.da-lcard__img img { width: 100%; height: 100%; object-fit: cover; }
.da-lcard__play {
  position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--da-ink);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .3);
}
.da-lcard__play svg { width: 13px; height: 13px; margin-left: 2px; }
.da-lcard__tx { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.da-lcard__t { font: 450 17px/1.2 var(--da-serif); letter-spacing: -.008em; color: var(--da-ink); }
.da-lcard__m { display: flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--da-sans); color: var(--da-muted); }
.da-ecard { gap: 14px; margin-top: 10px; padding: 12px 12px 12px 12px; }
.da-ecard__ic {
  display: flex; align-items: center; justify-content: center; flex: none; width: 60px; height: 60px; border-radius: 17px;
  background: var(--tone-soft);
}
.da-hic { width: 48px; height: 48px; overflow: visible; }
/* the mini drawing: the pubic bone and the tailbone in the big drawing's style, the rose hammock between them */
.da-hic__pb { fill: #F6EEE2; stroke: rgba(42, 36, 33, .66); stroke-width: 1.4; stroke-linejoin: round; }
.da-hic__tb { fill: rgba(244, 236, 223, .7); stroke: rgba(42, 36, 33, .5); stroke-width: 1.3; stroke-linejoin: round; }
.da-hic__band { fill: var(--da-rose); fill-opacity: .16; stroke: none; }
.da-hic__h { fill: none; stroke: var(--da-rose); stroke-width: 2.5; stroke-linecap: round; }
.da-hic__g { transform-origin: 22px 20px; animation: da-hic 4.2s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes da-hic { 0%, 100% { transform: none; } 40%, 55% { transform: translateY(-3px) scaleY(.82); } }
.da-rm .da-hic__g { animation: none; }
/* the OS reduced-motion setting stops the ambient loops (the scroll choreography and the transitions still play) */
@media (prefers-reduced-motion: reduce) {
  .da-root .da-hic__g, .da-root .da-pv__arr { animation: none !important; }
}
.da-ecard__tx { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.da-ecard__t { font: 450 17px/1.2 var(--da-serif); letter-spacing: -.008em; color: var(--da-ink); }
.da-ecard__m { font: 500 12.5px/1 var(--da-sans); color: var(--da-muted); }
.da-ecard__go { flex: none; }
.da-ecard__start {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 19px;
  background: var(--da-rose-ink); color: #fff; font: 600 14.5px/1 var(--da-sans);
  box-shadow: 0 10px 20px -12px rgba(185, 61, 87, .8);
}
.da-ecard__done {
  display: none; align-items: center; gap: 5px; height: 34px; padding: 0 13px 0 10px; border-radius: 17px;
  background: var(--da-rose-soft); color: var(--da-rose-ink); font: 600 13.5px/1 var(--da-sans);
}
.da-ecard__done svg { width: 13px; height: 13px; }
.da-ecard.is-done .da-ecard__start { display: none; }
.da-ecard.is-done .da-ecard__done { display: inline-flex; }
.da-qlink {
  display: flex; align-items: center; gap: 6px; height: 44px; margin: 10px auto 0; padding: 0 6px;
  font: 600 14px/1 var(--da-sans); color: var(--da-ink-2);
}
.da-qlink svg { width: 15px; height: 15px; color: var(--da-rose); }
/* the 780 canvas: the whole of Today fits above the tab bar, "When to see a doctor" included */
@container (max-height: 824px) {
  .da-home .da-in { padding-top: calc(var(--da-status) + 4px); }
  .da-greet { margin-top: 12px; gap: 5px; }
  .da-greet__h { font-size: 30px; }
  .da-prog { margin-top: 14px; padding: 14px 16px 4px; }
  .da-prog .da-bar { margin-top: 12px; }
  .da-prog .da-week { margin-top: 10px; }
  .da-day { gap: 5px; }
  .da-day i { width: 28px; height: 28px; }
  .da-prog .da-link { margin-top: 0; }
  .da-sec { margin-top: 18px; }
  .da-lcard { margin-top: 10px; padding: 9px 14px 9px 9px; }
  .da-lcard__img { width: 88px; height: 110px; border-radius: 14px; }
  .da-ecard { margin-top: 8px; padding: 10px 12px 10px 10px; }
  .da-ecard__ic { width: 56px; height: 56px; border-radius: 16px; }
  .da-qlink { margin-top: 4px; }
}

/* ------------------------------------------------------------------ course outline (geometry mirrors olGeom() in app.js) */
.da-outline { --rh: 83.857px; }
@supports (height: 1cqh) {
  .da-outline { --rh: clamp(66px, calc((100cqh - 265px) / 7), 84px); }
}
.da-ol__off { position: absolute; inset: 0; z-index: 1; background: var(--da-paper-off); pointer-events: none; }
.da-outline .da-scroll { z-index: 2; }
.da-outline .da-in { padding: var(--da-status) 0 calc(var(--da-tb) + 10px); }
.da-ol__head { position: relative; height: 118px; padding: 8px 20px 0; }
.da-ol__t { margin-top: 6px; font: 420 27px/1.1 var(--da-serif); letter-spacing: -.016em; white-space: nowrap; }
.da-ol__sub { font: 500 15px/1 var(--da-sans); letter-spacing: 0; color: var(--da-muted); }
.da-ol__meta { display: flex; justify-content: space-between; margin-top: 12px; font: 500 12.5px/1.2 var(--da-sans); color: var(--da-muted); }
.da-ol__meta span:first-child { color: var(--da-rose-ink); font-weight: 600; }
.da-ol__bar { position: relative; display: block; height: 5px; margin-top: 9px; border-radius: 3px; background: rgba(42, 36, 33, .08); overflow: hidden; }
.da-ol__bar i { position: absolute; inset: 0; border-radius: 3px; background: var(--da-rose); transform-origin: 0 50%; transform: scaleX(0); }
.da-ol__list { padding: 0 16px; }
.da-row { position: relative; display: block; width: 100%; height: var(--rh); text-align: left; }
/* the card is two layers: its shadow (.da-row__sh, faded in) and its paper (.da-row__bg), which unrolls from the
   thumbnail to the right when the screen lights up (clip-path, story only: the tile becomes a row of the course) */
.da-row__sh, .da-row__bg {
  position: absolute; left: 0; right: 0; top: 0; height: calc(var(--rh) - 8px); border-radius: 18px;
}
.da-row__sh { box-shadow: var(--da-shadow-sm); }
.da-row__bg { background: var(--da-card); }
.da-row.is-today .da-row__sh { box-shadow: 0 12px 26px -16px rgba(217, 86, 111, .55); }
.da-row.is-today .da-row__bg { box-shadow: inset 0 0 0 1.5px var(--da-rose); background: #FFF9F9; }
.da-row__th {
  position: absolute; left: 9px; top: 9px; width: calc(var(--rh) - 26px); height: calc(var(--rh) - 26px);
  border-radius: 12px; overflow: hidden; background: var(--da-well); will-change: opacity;
}
.da-row__th img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.da-row__tx {
  position: absolute; left: calc(var(--rh) - 26px + 9px + 13px); right: 46px; top: 0; height: calc(var(--rh) - 8px);
  display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0;
}
.da-row.is-today .da-row__tx { right: 72px; }   /* clear of the "Today" pill */
.da-row__l { font: 600 10px/1.15 var(--da-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--da-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.da-row.is-today .da-row__l { color: var(--da-rose-ink); }
/* every lesson title reads in full: two balanced lines when it needs them, never an ellipsis */
.da-row__t {
  font: 450 15px/1.1 var(--da-serif); letter-spacing: -.008em; color: var(--da-ink); text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding-bottom: 2px; margin-bottom: -2px;   /* room for the descenders of a second line */
}
.da-row__t i.is-off { opacity: 0; }
.da-row__t i.is-caret { position: relative; }
.da-row__t i.is-caret::after {
  content: ""; position: absolute; right: -2px; top: .12em; bottom: .02em; width: 1.5px; border-radius: 1px; background: var(--da-rose);
}
.da-row__m { font: 500 11.5px/1.15 var(--da-sans); color: var(--da-muted); }
/* the 780 canvas: a shorter row, so a two-line title gets tighter text metrics (the thumbnail geometry is unchanged) */
@container (max-height: 824px) {
  .da-row__l { font-size: 9.5px; line-height: 1.1; }
  .da-row__t { font-size: 14px; line-height: 1.08; }
  .da-row__m { font-size: 11px; line-height: 1.1; }
}
.da-row__st { position: absolute; right: 12px; top: 0; height: calc(var(--rh) - 8px); display: flex; align-items: center; }
.da-done-ic { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--da-rose); color: #fff; }
.da-done-ic svg { width: 13px; height: 13px; }
.da-lock { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--da-well); color: var(--da-faint); }
.da-lock svg { width: 14px; height: 14px; }
.da-row:not(.is-done):not(.is-today) .da-row__t { color: var(--da-ink-2); }

/* ------------------------------------------------------------------ programs library */
.da-library .da-in { padding-top: calc(var(--da-status) + 12px); }
.da-library .da-h1 { margin: 0 4px 8px; font-size: 32px; }
.da-pcard {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 10px; padding: 10px 14px 10px 10px;
  border-radius: 22px; background: var(--da-card); box-shadow: var(--da-shadow); text-align: left; overflow: hidden;
  transition: transform 160ms var(--da-out);
}
.da-pcard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--tone-soft) 0%, rgba(255, 255, 255, 0) 78%); pointer-events: none; }
.da-pcard > * { position: relative; }
.da-pcard__img { flex: none; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: var(--da-well); }
.da-pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.da-pcard__tx { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; flex: 1; min-width: 0; }
.da-pcard__t { font: 450 19px/1.15 var(--da-serif); letter-spacing: -.01em; color: var(--da-ink); }
.da-pcard__s { font: 500 13px/1.25 var(--da-sans); color: var(--da-muted); }
.da-pcard .da-pill { margin-top: 2px; }
.da-pcard__wk { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 3px; font: 600 12px/1 var(--da-sans); color: var(--da-rose-ink); white-space: nowrap; }
.da-pcard__wk .da-bar { flex: 1; height: 5px; }
.da-pcard__wk .da-bar i { --k: .28; }
.da-pcard__chev { flex: none; color: var(--da-faint); }
.da-lib__soon { margin: 18px 4px 0; }
.da-soon { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.da-scard {
  display: flex; flex-direction: column; padding: 6px 6px 0; border-radius: 20px; background: var(--da-card);
  box-shadow: var(--da-shadow-sm); text-align: left; transition: transform 160ms var(--da-out);
}
/* a 7:5 picture: her whole face, never a strip of eyes */
.da-scard__img { position: relative; display: block; aspect-ratio: 7 / 5; border-radius: 15px; overflow: hidden; background: var(--tone-soft); }
.da-scard__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(.5) contrast(.9) brightness(1.08); }
.da-scard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .22), var(--tone)); mix-blend-mode: multiply; opacity: .34; }
.da-scard__img .da-pill { position: absolute; left: 7px; top: 7px; z-index: 1; height: 20px; padding: 0 8px; font-size: 10.5px; }
.da-scard__t { display: flex; align-items: center; min-height: 37px; padding: 0 6px; font: 450 15px/1.15 var(--da-serif); color: var(--da-ink-2); }
.da-library .da-dcard { margin-top: 10px; padding-top: 12px; padding-bottom: 12px; }
/* a shorter screen (the 780 canvas of short phone viewports): the whole library fits, no glide under the status bar */
@container (max-height: 824px) {
  .da-library .da-in { padding-top: calc(var(--da-status) + 6px); }
  .da-library .da-h1 { margin-bottom: 4px; font-size: 29px; }
  .da-pcard { margin-top: 7px; padding: 7px 12px 7px 7px; gap: 12px; }
  .da-pcard__img { width: 54px; height: 54px; border-radius: 13px; }
  .da-pcard__tx { gap: 3px; }
  .da-pcard__t { font-size: 18px; }
  .da-lib__soon { margin-top: 13px; }
  .da-soon { margin-top: 7px; gap: 7px; }
  .da-scard__img { aspect-ratio: auto; height: 106px; }
  .da-scard__img img { object-position: 50% 30%; }
  .da-scard__t { min-height: 34px; font-size: 14.5px; line-height: 1.1; }
  .da-library .da-dcard { margin-top: 8px; padding-top: 9px; padding-bottom: 9px; }
  .da-library .da-dcard__ic { width: 40px; height: 40px; border-radius: 13px; }
}
/* content that scrolls (live) passes under a paper status bar, as on iOS */
.da-home::after, .da-library::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: calc(var(--da-status) + 8px); pointer-events: none;
  background: linear-gradient(180deg, var(--da-bg) 0, var(--da-bg) 70%, rgba(255, 251, 246, 0) 100%);
}
.da-dcard { display: flex; align-items: center; gap: 13px; width: 100%; margin-top: 12px; padding: 14px 14px 14px 12px; text-align: left; transition: transform 160ms var(--da-out); }
.da-dcard__ic { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--da-rose-soft); color: var(--da-rose); }
.da-dcard__tx { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.da-dcard__t { font: 450 17px/1.15 var(--da-serif); color: var(--da-ink); }
.da-dcard__s { font: 500 12.5px/1 var(--da-sans); color: var(--da-muted); }

/* ------------------------------------------------------------------ lesson */
.da-lesson .da-nav, .da-recap .da-nav {
  top: 0; height: calc(var(--da-status) + 44px); padding-top: var(--da-status);
  background: rgba(255, 251, 246, .96); box-shadow: 0 .5px 0 rgba(42, 36, 33, .1);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .da-lesson .da-nav, .da-recap .da-nav { background: rgba(255, 251, 246, .8); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
}
.da-nav__t {
  position: absolute; left: 50%; top: calc(var(--da-status) + 22px); transform: translate(-50%, -50%);
  font: 600 15.5px/1 var(--da-sans); color: var(--da-ink); white-space: nowrap;
}
.da-lesson .da-in, .da-recap .da-in { padding: calc(var(--da-status) + 44px) 16px 152px; }
.da-video {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: #E9DCCD;
  box-shadow: 0 18px 36px -22px rgba(70, 40, 30, .5);
}
.da-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.da-video::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none;
  background: linear-gradient(rgba(30, 20, 15, 0), rgba(30, 20, 15, .38));
}
.da-namechip {
  position: absolute; left: 12px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px 0 5px; border-radius: 16px;
  background: rgba(255, 255, 255, .9); color: var(--da-ink); font: 600 13px/1 var(--da-sans);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .da-namechip { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }
}
.da-vbtn {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--da-ink);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35);
}
.da-vbtn svg { width: 19px; height: 19px; }
.da-vbtn .da-i-play svg { margin-left: 2px; }
.da-i-pause { display: none; }
.da-video.is-playing .da-i-play { display: none; }
.da-video.is-playing .da-i-pause { display: block; }
.da-vprog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(255, 255, 255, .3); }
.da-vprog i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.da-lesson .da-k { margin-top: 18px; padding: 0 2px; }
.da-ls__t { margin-top: 7px; padding: 0 2px; font: 400 26px/1.12 var(--da-serif); letter-spacing: -.016em; color: var(--da-ink); text-wrap: balance; font-variation-settings: "opsz" 60; }
.da-ls__tag { margin-top: 12px; padding: 0 2px; }
.da-fig { position: relative; margin-top: 16px; padding: 12px 10px 8px; overflow: hidden; }
.da-segc {
  position: relative; display: flex; margin: 0 2px 6px; padding: 3px; border-radius: 12px; background: var(--da-well);
}
.da-segc button {
  flex: 1; height: 30px; border-radius: 9px; font: 600 12.5px/1 var(--da-sans); color: var(--da-muted); text-align: center;
  transition: background-color 200ms linear, color 200ms linear, box-shadow 200ms linear;
}
.da-segc button[aria-pressed="true"] { background: #fff; color: var(--da-ink); box-shadow: 0 1px 3px rgba(42, 36, 33, .12), 0 0 0 .5px rgba(42, 36, 33, .06); }
.da-lesson .da-h3 { margin: 26px 2px 0; }
.da-tk { margin-top: 12px; border-radius: 20px; background: var(--da-card); box-shadow: var(--da-shadow); padding: 4px 16px; }
.da-tk li { display: flex; gap: 14px; padding: 15px 0; }
.da-tk li + li { box-shadow: inset 0 1px 0 var(--da-line); }
.da-tk b {
  flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--da-rose-soft); color: var(--da-rose-ink); font: 500 16px/1 var(--da-serif);
}
.da-tk p { font: 400 15px/1.45 var(--da-sans); color: var(--da-ink); padding-top: 4px; }
.da-cta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 22px 16px 40px;
  background: var(--da-bg);
}
/* a soft paper fade above the button: content passing under it never shows half-cut letters */
.da-cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; pointer-events: none;
  background: linear-gradient(rgba(255, 251, 246, 0), var(--da-bg));
}
.da-cta .da-btn { position: relative; z-index: 1; }

/* recap (completed lessons 1–2) */
.da-recap__img { position: relative; height: 230px; border-radius: 24px; overflow: hidden; background: var(--da-well); box-shadow: 0 18px 36px -22px rgba(70, 40, 30, .5); }
.da-recap__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.da-recap__chip { position: absolute; left: 12px; top: 12px; height: 26px; padding: 0 11px; font-size: 12px; background: rgba(255, 255, 255, .94); }
.da-recap .da-k { margin-top: 18px; padding: 0 2px; }
.da-recap__t { margin-top: 7px; padding: 0 2px; font: 400 27px/1.12 var(--da-serif); letter-spacing: -.016em; }
.da-recap__m { margin-top: 8px; padding: 0 2px; font: 500 13px/1.2 var(--da-sans); color: var(--da-muted); }
.da-recap .da-fig { padding: 14px 10px 8px; }

/* ------------------------------------------------------------------ the drawing */
.da-pv { width: 100%; height: auto; overflow: visible; --pv-t: 700ms; }
.da-pv [data-dr] { stroke-dasharray: 1 1; }
.da-pv.is-drawn [data-dr] { stroke-dasharray: none; }
.da-pv__disc { fill: #FBF4EC; }
.da-pv__bone { fill: #F6EEE2; stroke: rgba(42, 36, 33, .72); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.da-pv__tail { fill: rgba(244, 236, 223, .5); stroke: rgba(42, 36, 33, .45); stroke-width: 1.8; }
.da-pv__seg { fill: none; stroke: rgba(42, 36, 33, .2); stroke-width: 1.2; stroke-linecap: round; }
.da-pv__band { fill: var(--da-rose); fill-opacity: .13; stroke: none; }
.da-pv__bl { fill: #E8F0F7; stroke: rgba(42, 36, 33, .72); stroke-width: 2; stroke-linejoin: round; }
.da-pv__shine { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: .9; }
.da-pv__ur { fill: none; stroke-linecap: round; }
.da-pv__ur--o { stroke: rgba(42, 36, 33, .72); stroke-width: 6.5; }
.da-pv__ur--i { stroke: #EAF1F7; stroke-width: 3; }
.da-pv__ham { fill: none; stroke: var(--da-rose); stroke-width: 2.5; stroke-linecap: round; }
.da-pv__ring { fill: none; stroke: var(--da-rose); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(1.7); transition: transform var(--pv-t) var(--da-out), opacity calc(var(--pv-t) * .6) linear; }
.da-pv[data-state="squeeze"] .da-pv__ring { opacity: 1; transform: scale(1); }
.da-pv__lift { transform: translateY(0); transition: transform var(--pv-t) cubic-bezier(.45, 0, .25, 1); }
.da-pv[data-state="squeeze"] .da-pv__lift { transform: translateY(-10px); }   /* = LIFT in app.js */
.da-pv[data-state="pressure"] .da-pv__lift { transform: translateY(6px); }
.da-pv__squash { transform-box: fill-box; transform-origin: 50% 100%; transition: transform var(--pv-t) cubic-bezier(.45, 0, .25, 1); }
.da-pv[data-state="pressure"] .da-pv__squash { transform: scale(1.03, .95); }
.da-pv__lead { fill: none; stroke: rgba(42, 36, 33, .4); stroke-width: 1; stroke-linecap: round; }
.da-pv__dot { fill: rgba(42, 36, 33, .55); }
.da-pv__lab { font: 600 10.5px/1 var(--da-sans); letter-spacing: .02em; fill: var(--da-ink-2); }
.da-pv__lab--rose { fill: var(--da-rose-ink); }
.da-pv__pr { opacity: 0; transition: opacity calc(var(--pv-t) * .6) linear; }
.da-pv[data-state="pressure"] .da-pv__pr { opacity: 1; }
.da-pv__arr { fill: none; stroke: var(--da-rose); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.da-pv.is-drawn[data-state="pressure"] .da-pv__arr { animation: da-push 2.4s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes da-push { 0%, 100% { transform: translateY(-2px); opacity: .55; } 50% { transform: translateY(3px); opacity: .95; } }
.da-rm .da-pv__arr { animation: none !important; }
.da-pv__bub path { fill: #fff; stroke: rgba(42, 36, 33, .3); stroke-width: 1; }
.da-pv__bub text { font: 600 italic 11px/1 var(--da-serif); fill: var(--da-rose-ink); }
.da-pv--exercise .da-pv__ham { stroke-width: 3.2; }
.da-pv--exercise .da-pv__bone, .da-pv--exercise .da-pv__bl { stroke-width: 2.2; }
.da-pv--exercise .da-pv__tail { stroke-width: 1.9; }

/* ------------------------------------------------------------------ exercise player */
.da-exercise {
  background:
    radial-gradient(80% 46% at 50% 38%, rgba(242, 201, 194, .34), rgba(242, 201, 194, 0) 72%),
    radial-gradient(70% 40% at 50% 100%, rgba(245, 230, 168, .3), rgba(245, 230, 168, 0) 70%),
    var(--da-bg);
}
.da-ex { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: var(--da-status) 16px 40px; }
.da-ex__top { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; }
.da-x {
  display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(42, 36, 33, .06); color: var(--da-ink-2);
  position: relative;
}
.da-x::after { content: ""; position: absolute; inset: -4px; }
.da-ex__title { font: 600 14px/1.2 var(--da-sans); color: var(--da-ink); text-align: center; }
.da-ex__round { color: var(--da-muted); font-weight: 500; }
.da-ex__left {
  flex: none; min-width: 52px; height: 30px; padding: 0 10px; border-radius: 15px; background: rgba(255, 255, 255, .8);
  display: flex; align-items: center; justify-content: center;
  font: 600 13px/1 var(--da-sans); font-variant-numeric: tabular-nums; color: var(--da-ink-2); box-shadow: inset 0 0 0 1px var(--da-line);
}
.da-ex__sets { display: flex; gap: 5px; width: 100%; margin-top: 6px; padding: 0 2px; }
.da-ex__sets span { position: relative; height: 4px; border-radius: 2px; background: rgba(42, 36, 33, .1); overflow: hidden; }
.da-ex__sets span:nth-child(odd) { flex: 3; }
.da-ex__sets span:nth-child(even) { flex: 1; }
.da-ex__sets i { position: absolute; inset: 0; background: var(--da-rose); transform-origin: 0 50%; transform: scaleX(0); }
.da-ex__stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; min-height: 0; }
.da-ring { position: relative; width: 282px; height: 282px; }
@supports (height: 1cqh) { .da-ring { width: min(282px, 38cqh); height: min(282px, 38cqh); } }
.da-ring__halo {
  position: absolute; inset: -34px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238, 170, 162, .62), rgba(242, 201, 194, .34) 64%, rgba(242, 201, 194, 0));
  transform: scale(1.06); opacity: .9;
}
.da-ring__core {
  position: absolute; inset: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(70, 40, 30, .06), 0 24px 50px -26px rgba(150, 70, 70, .45), inset 0 0 0 1px rgba(42, 36, 33, .05);
  transform: scale(1);
}
.da-ring.is-squeeze .da-ring__core { transform: scale(.9); }
.da-ring.is-squeeze .da-ring__halo { transform: scale(.84); opacity: .55; }
.da-arc { position: absolute; inset: 8px; border-radius: 50%; }
.da-arc__track { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(217, 86, 111, .12); }
.da-arc__h { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; }
.da-arc__h--r { left: 50%; }
.da-arc__h--l { left: 0; }
.da-arc__a { position: absolute; top: 0; width: 200%; height: 100%; border-radius: 50%; border: 3px solid transparent; transform: rotate(45deg); }
.da-arc__h--r .da-arc__a { left: -100%; border-bottom-color: var(--da-rose); border-left-color: var(--da-rose); }
.da-arc__h--l .da-arc__a { left: 0; border-top-color: var(--da-rose); border-right-color: var(--da-rose); }
.da-ring__fig { position: absolute; left: 14%; right: 14%; top: 50%; transform: translateY(-50%); }   /* 72% of the ring */
.da-ex__big { display: flex; align-items: baseline; justify-content: center; gap: 12px; height: 58px; margin-top: 2px; }
.da-ex__w { font: 400 40px/1 var(--da-serif); letter-spacing: -.02em; color: var(--da-ink); font-variation-settings: "opsz" 96; }
.da-ex__n:empty { display: none; }
.da-ex__n { min-width: .62em; font: 340 52px/1 var(--da-serif); letter-spacing: -.02em; color: var(--da-rose); font-variant-numeric: tabular-nums lining-nums; text-align: left; }
.da-exercise.is-flick .da-ex__w { color: var(--da-ink); }
.da-exercise[data-phase="relax"] .da-ex__w, .da-exercise[data-phase="fout"] .da-ex__w { font-style: italic; font-weight: 340; color: var(--da-ink-2); }
.da-ex__rep { margin-top: 4px; font: 600 13px/1 var(--da-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--da-muted); }
.da-coach {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 18px; padding: 10px 14px 10px 10px;
  border-radius: 22px; background: rgba(255, 255, 255, .88); box-shadow: var(--da-shadow-sm), inset 0 0 0 1px var(--da-line);
}
.da-coach__img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--da-blush); }
.da-coach__b { min-width: 0; }
.da-coach__hd { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.da-coach__n { font: 600 11px/1.2 var(--da-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--da-rose-ink); }
.da-draft--sm { height: 19px; padding: 0 8px 0 7px; gap: 5px; border-radius: 10px; font-size: 10px; }
.da-draft--sm::before { width: 5px; height: 5px; }
.da-coach__c { margin-top: 3px; font: 400 italic 16px/1.3 var(--da-serif); color: var(--da-ink); min-height: 2.6em; display: flex; align-items: center; }
.da-ex__ctl { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 16px; padding: 0 6px; }
.da-ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 88px; height: 44px; padding: 0 14px; border-radius: 22px;
  font: 600 14.5px/1 var(--da-sans); color: var(--da-ink-2); background: rgba(42, 36, 33, .05);
}
.da-ctl svg { width: 15px; height: 15px; }
.da-pp {
  display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%;
  background: var(--da-rose); color: #fff; box-shadow: 0 1px 1px rgba(150, 40, 60, .15), 0 14px 28px -14px rgba(217, 86, 111, .8);
  transition: transform 160ms var(--da-out);
}
.da-pp svg { width: 24px; height: 24px; }
.da-pp .da-i-play svg { margin-left: 3px; }
.da-pp .da-i-play { display: none; }
.da-pp .da-i-pause { display: block; }
.da-pp.is-paused .da-i-play { display: block; }
.da-pp.is-paused .da-i-pause { display: none; }
.da-live .da-pp:active { transform: scale(.94); }
.da-exercise.is-paused .da-ring__core, .da-exercise.is-paused .da-ex__big { opacity: .72; transition: opacity 200ms linear; }

/* ------------------------------------------------------------------ done for today */
.da-done {
  background:
    radial-gradient(90% 50% at 50% 26%, rgba(245, 230, 168, .42), rgba(245, 230, 168, 0) 70%),
    var(--da-bg);
}
.da-done__in { position: absolute; left: 0; right: 0; top: var(--da-status); bottom: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 20px; text-align: center; }
.da-done__ck {
  display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--da-rose); box-shadow: 0 0 0 10px rgba(217, 86, 111, .12), 0 24px 40px -18px rgba(217, 86, 111, .75);
  transform: scale(.6); opacity: 0; transition: transform 600ms cubic-bezier(.34, 1.56, .64, 1), opacity 200ms linear;
}
.da-done__ck svg { width: 64px; height: 64px; }
.da-done__ck path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 420ms var(--da-out) 260ms; }
.da-done__ck.is-in { transform: none; opacity: 1; }
.da-done__ck.is-in path { stroke-dashoffset: 0; }
.da-done .da-h1 { margin-top: 28px; font-size: 34px; }
.da-done .da-sub { margin-top: 8px; }
.da-done__wk { width: 100%; margin-top: 28px; padding: 16px 16px 18px; }
.da-done__wk .da-k { text-align: left; }
.da-done__wk .da-week { margin-top: 14px; }
.da-done__streak { display: flex; align-items: baseline; justify-content: center; gap: 0; margin-top: 18px; padding-top: 14px; box-shadow: inset 0 1px 0 var(--da-line); font: 500 15px/1 var(--da-sans); color: var(--da-ink-2); }
.da-odo { display: inline-flex; flex-direction: column; height: 1em; overflow: hidden; font: 400 30px/1 var(--da-serif); color: var(--da-rose); font-variant-numeric: tabular-nums lining-nums; vertical-align: bottom; position: relative; top: 4px; }
.da-odo span { display: block; height: 1em; text-align: right; transition: transform 700ms cubic-bezier(.2, .9, .25, 1.15); }
.da-odo.is-rolled span { transform: translateY(-100%); }
.da-rm .da-done__ck, .da-rm .da-done__ck path, .da-rm .da-odo span { transition-duration: 150ms; transition-delay: 0ms; }
.da-done .da-foot { padding-bottom: 40px; }

/* ------------------------------------------------------------------ doctor sheet */
.da-scrim { position: absolute; inset: 0; z-index: 40; background: rgba(42, 36, 33, .34); }
.da-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: calc(100% - var(--da-status) - 10px);
  overflow: hidden; padding: 8px 22px 44px; border-radius: 30px 30px 0 0; background: var(--da-bg);
  box-shadow: 0 -10px 40px -10px rgba(42, 36, 33, .25);
}
.da-sheet__grab { display: block; width: 38px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: rgba(42, 36, 33, .18); }
.da-sheet__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.da-sheet__t { font: 400 25px/1.1 var(--da-serif); letter-spacing: -.016em; }
.da-sheet__s { margin-top: 8px; font: 500 14.5px/1.3 var(--da-sans); color: var(--da-muted); }
.da-signs { margin-top: 10px; border-radius: 20px; background: var(--da-card); box-shadow: var(--da-shadow-sm); padding: 2px 14px; }
.da-signs li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 0; font: 500 14.5px/1.3 var(--da-sans); color: var(--da-ink); }
.da-signs li + li { box-shadow: inset 0 1px 0 var(--da-line); }
.da-sign__i { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--da-rose-soft); }
.da-sign__i::after { content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--da-rose); }
.da-sheet__ft { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; padding: 0 2px; }
.da-sheet__ft p { flex: 1 1 calc(100% - 50px); min-width: 0; font: 500 13.5px/1.3 var(--da-sans); color: var(--da-ink-2); }
.da-sheet__ft .da-draft { margin-left: 40px; }

/* desktop: pointer affordances only */
.da-desk.da-live [data-act] { cursor: pointer; }
