/* Tokens live in tokens.css (load it first). Calendar components: calendar.css. */

* { box-sizing: border-box; }
html { font-size: 112.5%;   /* 18px, but follows his phone's text-size setting (audit) */
  -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + var(--space-xl));
}
main {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + var(--space-xl)) var(--space-lg) 0;
  outline: none;
}
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.55; margin: 0; }
h1 { font-size: var(--t-xl); }
h2 { font-size: var(--t-lg); margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--t-md); }
p { margin: 0 0 var(--space-md); }
a { color: var(--marigold-ink); }
.num { font-family: var(--f-num); font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }
.stack > * + * { margin-top: var(--space-md); }

/* ───────── Motion (docs/motion-plan.md) ─────────
   Page change only on navigation (ui/core.js render()): tabs cross-fade, drill-in slides 12px from the right.
   Same-screen updates don't animate the page; the changed element gets ".fresh" and plays one of the
   one-shot keyframes below. All travel reads --enter-y/--enter-x, so reduced motion turns it into fades. */
.view.enter-fade { animation: view-fade var(--dur-fast) var(--ease-out) backwards; }
.view.enter-in   { animation: view-in var(--dur) var(--ease-out) backwards; }   /* backwards, not both: no transform/opacity left filling on the whole page after it lands */
@keyframes view-fade { from { opacity: 0; } }
@keyframes view-in   { from { opacity: 0; transform: translateX(calc(var(--enter-y) * 1.5)); } }
@keyframes ack-in    { from { opacity: 0; transform: translateY(var(--enter-y)) scale(.98); } }
@keyframes tick-draw { from { stroke-dashoffset: 24; } }
@keyframes dot-pop   { from { transform: scale(.75); } }   /* delight pass: .5 was a strong pop for a tens/day tap */
@keyframes stamp     { from { opacity: 0; transform: scale(1.35) rotate(-18deg); } }
@media (prefers-reduced-motion: reduce) {
  @keyframes dot-pop { from { opacity: .4; } }
  @keyframes stamp   { from { opacity: 0; } }
}

/* ───────── Buttons & inputs ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  min-height: 52px; padding: var(--space-sm) var(--space-xl);   /* polish: a label that wraps to 2 lines keeps air inside the pill */
  border: 0; border-radius: var(--r-pill); text-align: center;
  background: var(--marigold); color: var(--on-color);
  font: 700 var(--t-md)/1.4 var(--f-body);
  text-decoration: none; cursor: pointer;
}
.btn.leaf { background: var(--leaf); }
.btn.ghost { background: transparent; color: var(--marigold-ink); box-shadow: inset 0 0 0 2px var(--marigold-soft); }
.btn.block { width: 100%; }
.btn.small { min-height: var(--hit); padding: var(--space-xs) var(--space-lg); font-size: var(--t-sm); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--marigold-ink); font: inherit; font-weight: 600; cursor: pointer; min-height: var(--hit); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

/* Press feedback: one shared rule (P1-1). Instant on touch-down; colour still changes under reduced motion.
   Not on .note (has its own rotate) or .tabbar a (navigation: colour is enough). No hover motion: touch only. */
:is(.btn, .chip, .act, .stepper button, .step-fine button, .task .box, button.dots, .cal-nav button,
    .seg button, .fd-seg button, .ex-run .tick, .gear, .linkbtn, .tp-area, .tp-like, .tp-suggest) {
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease, color var(--dur-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
:is(.btn, .chip, .act, .stepper button, .step-fine button, .task .box, button.dots, .cal-nav button,
    .seg button, .fd-seg button, .ex-run .tick, .gear, .tp-area, .tp-like, .tp-suggest):active { transform: scale(var(--press-scale)); }
:is(.cal-now, .routines a, .list a, .fd-ideas a, .fd-favs a, .fd-recipes a, .cal-prog, .tight-entry, .tp-card > a) {
  transition: transform var(--dur-press) var(--ease-out); -webkit-tap-highlight-color: transparent;
}
:is(.cal-now, .routines a, .list a, .fd-ideas a, .fd-favs a, .fd-recipes a, .cal-prog, .tight-entry, .tp-card > a):active { transform: scale(var(--press-scale-lg)); }

.field { display: grid; gap: var(--space-xs); }
.field label { font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: var(--space-sm) var(--space-lg);
  border: 2px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font: 600 var(--t-lg)/1.4 var(--f-num);
}
.field textarea { font: 400 var(--t-md)/1.6 var(--f-body); min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus, .custom input:focus { outline: none; border-color: var(--marigold); box-shadow: var(--focus-ring); }
.field .unit { position: relative; }
.field .unit span { position: absolute; right: var(--space-lg); top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: var(--t-sm); pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.row2 > * { min-width: 0; }
.field input[type="date"] { font-size: var(--t-md); padding-right: var(--space-sm); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.chip {
  min-height: var(--hit); padding: 0 var(--space-lg); border-radius: var(--r-pill);
  border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 var(--t-sm)/1.3 var(--f-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--marigold-soft); border-color: var(--marigold); color: var(--marigold-ink); }
.chip.suggest { border-style: dashed; border-color: var(--leaf); }

/* ───────── Home ───────── */
.hello { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); }
.hello .date { color: var(--ink-2); font-size: var(--t-sm); }
.gear { width: var(--hit); height: var(--hit); border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); flex: none; }
.gear svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.journey { margin-top: var(--space-xl); }
.journey .big { display: flex; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; }
.journey .big .num { font-size: var(--t-num); color: var(--leaf-ink); }
.bar { height: 14px; border-radius: var(--r-pill); background: var(--sunk); overflow: hidden; margin: var(--space-md) 0 var(--space-xs); }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--leaf); }
/* Progress grows only when it moved since he last saw it (P2-1); never shrinks at him. */
.cal-prog .track i, .bar i { transform-origin: left center; }
.cal-prog .track i.grow, .bar i.grow { animation: prog-grow var(--dur-slow) var(--ease-out) 200ms both; }
@keyframes prog-grow { from { transform: scaleX(var(--from, 0)); } }
@media (prefers-reduced-motion: reduce) { .grow { animation: none; } }
.bar-legend { display: flex; justify-content: space-between; font-size: var(--t-sm); color: var(--ink-2); }
.bar-legend b { font-family: var(--f-num); color: var(--ink); }

.now {
  margin-top: var(--space-2xl);
  background: var(--marigold-soft);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  position: relative; overflow: hidden;
}
.now::after { /* a marigold bloom, drawn not decorated */
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.8 0.12 70 / .55), transparent 70%);
}
.now .kicker { font-weight: 700; color: var(--marigold-ink); font-size: var(--t-sm); }
.now h2 { margin: var(--space-xs) 0 var(--space-sm); font-size: var(--t-xl); line-height: 1.5; }
.now p { color: var(--ink); }
.now .actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-lg); position: relative; z-index: 1; }
.now.alert { background: var(--alert-soft); }
.now.alert .kicker { color: var(--alert); }
.also { margin-top: var(--space-md); padding: 0 var(--space-sm); color: var(--ink-2); font-size: var(--t-sm); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week a {
  display: grid; gap: 2px; justify-items: center; padding: var(--space-sm) 0; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink-2); font-size: 0.8rem; line-height: 1.3; background: var(--surface); border: 1.5px solid var(--line);
}
.week a b { font-family: var(--f-num); font-size: var(--t-md); color: var(--ink); }
.week a.today { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.week a.today b { color: var(--paper); }
.week .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.strength { background: var(--marigold); } .dot.walk { background: var(--leaf); } .dot.rest { background: var(--line); }

.note {
  margin-top: var(--space-2xl); padding: var(--space-xl); border-radius: var(--r-md);
  background: var(--surface); border: 1.5px dashed var(--marigold);
  font-family: var(--f-head); font-weight: 600; line-height: 1.8; transform: translateY(0) rotate(-0.6deg);
}
.note .sig { display: block; text-align: right; margin-top: var(--space-sm); color: var(--marigold-ink); }

/* ───────── Track ───────── */
.stats { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-lg); align-items: end; margin-top: var(--space-xl); }
.stats .now-w .num { font-size: var(--t-num); }
.stats dl { margin: 0; display: grid; gap: var(--space-sm); }
.stats dt { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.3; }
.stats dd { margin: 0; font-family: var(--f-num); font-weight: 800; font-size: var(--t-lg); line-height: 1.1; }
.stats dd.good { color: var(--leaf-ink); }

.panel { background: var(--surface); border-radius: var(--r-lg); padding: var(--space-xl); border: 1.5px solid var(--line); }
.panel + .panel { margin-top: var(--space-lg); }

.seg { display: inline-flex; background: var(--sunk); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.seg button { min-height: var(--hit); padding: 0 var(--space-lg); border: 0; border-radius: var(--r-pill); background: transparent; font: 600 var(--t-sm)/1.3 var(--f-body); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.chart { width: 100%; height: auto; display: block; margin-top: var(--space-md); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-2); font: 600 11px var(--f-num); }
.chart .goal { stroke: var(--leaf); stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart .goal-l { fill: var(--leaf-ink); font: 700 11px var(--f-body); }
.chart .line { fill: none; stroke: var(--marigold); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--marigold-soft); opacity: .7; }
.chart .pt { fill: var(--surface); stroke: var(--marigold); stroke-width: 2.5; }
.chart .pt.last { fill: var(--marigold); }
.chart .last-l { fill: var(--ink); font: 800 13px var(--f-num); }
.empty { padding: var(--space-xl) 0; color: var(--ink-2); }

.log { list-style: none; padding: 0; margin: 0; }
.log li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-md); align-items: center; padding: var(--space-md) 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log .when { font-size: var(--t-sm); color: var(--ink-2); }
.log .v { font-family: var(--f-num); font-weight: 800; }
.log .del { width: var(--hit); height: var(--hit); border: 0; background: none; color: var(--ink-2); cursor: pointer; font-size: 1.2rem; }
.delta { font-family: var(--f-num); font-weight: 700; font-size: var(--t-sm); }
.delta.down { color: var(--leaf-ink); } .delta.up { color: var(--marigold-ink); }

.due { display: flex; align-items: center; gap: var(--space-lg); }
.due-cal { flex: none; width: 74px; border-radius: var(--r-md); overflow: hidden; text-align: center; background: var(--surface); border: 2px solid var(--marigold); }
.due-cal span { display: block; background: var(--marigold); color: var(--on-color); font-size: 0.8rem; font-weight: 700; padding: 2px 0; }
.due-cal b { display: block; font-family: var(--f-num); font-size: 1.9rem; padding: 4px 0 6px; }

.body-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.body-map .chip { width: 100%; }

/* ───────── Lists (move / food / read) ───────── */
.list { list-style: none; padding: 0; margin: 0; }
.list > li > a, .list > li > .item {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-lg); align-items: center;
  padding: var(--space-lg) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.list > li:last-child > a { border-bottom: 0; }
.list .meta { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.list .t { font-weight: 700; line-height: 1.5; }
.chev { color: var(--ink-2); font-size: 1.3rem; }
.badge { display: inline-block; font-family: var(--f-num); font-weight: 800; font-size: var(--t-sm); padding: 2px 10px; border-radius: var(--r-pill); background: var(--leaf-soft); color: var(--leaf-ink); }
.thumb { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--marigold-soft); display: grid; place-items: center; flex: none; }
.thumb svg { width: 46px; height: 46px; }

.plan { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-sm); }
.plan li { display: grid; grid-template-columns: 92px 1fr; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.plan li.today { border-color: var(--marigold); background: var(--marigold-soft); }
.plan .d { font-weight: 700; display: flex; gap: var(--space-sm); align-items: center; }
.plan .t { font-weight: 600; line-height: 1.5; }
.plan .meta { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; }

.routines { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.routines a { padding: var(--space-lg); border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: inherit; }
.routines a:first-child { grid-column: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.routines a:first-child .meta { color: var(--on-dark-2); }
.routines .t { font-family: var(--f-head); font-weight: 700; font-size: var(--t-lg); display: block; }
.routines .meta { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }

.rules { padding-left: 1.2em; margin: 0; }
.rules li { margin-bottom: var(--space-sm); }

/* exercise / recipe / article details */
.back { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: var(--hit); text-decoration: none; font-weight: 600; margin-bottom: var(--space-sm); }
.fig { background: var(--marigold-soft); border-radius: var(--r-lg); padding: var(--space-lg); margin: var(--space-lg) 0; }
.fig svg { width: 100%; max-height: 220px; display: block; }
.fig .p { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.fig .h { fill: var(--ink); }
.fig .prop { stroke: var(--marigold-ink); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.fig .propf { fill: var(--marigold); }
.thumb .p { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.thumb .h { fill: var(--ink); }
.thumb .prop { stroke: var(--marigold-ink); stroke-width: 4; fill: none; stroke-linecap: round; }
.thumb .propf { fill: var(--marigold); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: var(--space-lg); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: var(--space-md); }
.steps li::before {
  content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font: 800 var(--t-md)/1 var(--f-num);
}
.vary { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); }
.vary div { padding: var(--space-md) var(--space-lg); border-radius: var(--r-md); background: var(--sunk); }
.vary div.stop { background: var(--alert-soft); }
.vary b { display: block; font-size: var(--t-sm); }
.vary .stop b { color: var(--alert); }

.ex-run { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-sm); }
.ex-run li { display: grid; grid-template-columns: 56px 1fr var(--hit); gap: var(--space-md); align-items: center; padding: var(--space-md); border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.ex-run li.done { background: var(--leaf-soft); border-color: transparent; }
.ex-run a { color: inherit; text-decoration: none; }
.ex-run .tick { width: var(--hit); height: var(--hit); border-radius: 50%; border: 2.5px solid var(--line); background: var(--surface); padding: 0; cursor: pointer; display: grid; place-items: center; }
.ex-run .tick svg { width: 22px; height: 22px; stroke: var(--on-color); stroke-width: 3; fill: none; opacity: 0; }
.ex-run li.done .tick { background: var(--leaf); border-color: var(--leaf); }
.ex-run li.done .tick svg { opacity: 1; }

details.warm { margin: var(--space-lg) 0; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
details.warm summary { padding: var(--space-md) var(--space-lg); font-weight: 700; cursor: pointer; min-height: 52px; display: flex; align-items: center; }
details.warm ol { margin: 0; padding: 0 var(--space-xl) var(--space-lg) 2.4em; }





.article h2 { font-size: var(--t-lg); }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: var(--space-sm); }
/* Warnings (polish): boxed, ⚠ + words, alert tint — not the brand red, so they never read as decoration. */
.warnbox { display: flex; gap: var(--space-sm); align-items: baseline; padding: var(--space-lg); border-radius: var(--r-md); background: var(--alert-soft); font-weight: 600; margin: var(--space-lg) 0; }
.warnbox .warn-i { color: var(--alert); flex: none; }
.alertbox { padding: var(--space-lg); border-radius: var(--r-md); background: var(--alert-soft); margin: var(--space-lg) 0; }
.alertbox b { color: var(--alert); }
table.t { width: 100%; border-collapse: collapse; margin: var(--space-md) 0 var(--space-lg); font-size: var(--t-sm); }
table.t td, table.t th { text-align: left; padding: var(--space-sm) var(--space-xs); border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--ink-2); font-weight: 600; }

/* ───────── Toast & celebrate ───────── */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + var(--space-lg));
  transform: translate(-50%, 12px) scale(.98); opacity: 0; pointer-events: none;
  width: min(92vw, 520px); padding: var(--space-lg) var(--space-xl); border-radius: var(--r-md);
  background: var(--ink); color: var(--paper); font-weight: 600; line-height: 1.6;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out); z-index: 30;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { #toast { transform: translate(-50%, 0); } }
.celebrate { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.celebrate i {
  position: absolute; top: -20px; width: 12px; height: 16px; border-radius: 50% 50% 50% 0;
  animation: fall 2.4s var(--ease-out) forwards;
}
/* individual transform properties so the spin isn't lost to matrix interpolation (P2-5) */
@keyframes fall { to { translate: 0 105vh; rotate: calc(var(--r, 0deg) + 540deg); opacity: .2; } }
.milestone { margin-top: var(--space-lg); padding: var(--space-xl); border-radius: var(--r-lg); background: var(--leaf); color: var(--on-color); }
.milestone h3 { font-size: var(--t-lg); }

/* ───────── Tab bar ───────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, auto); justify-content: space-evenly;   /* labels differ a lot in width (ယနေ့ … အစားအသောက်) */
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--ink-2); font-size: 0.8rem; font-weight: 600; line-height: 1.35; padding: 0 4px; white-space: nowrap; min-width: var(--hit); }
@media (max-width: 359px) { .tabbar a { font-size: 0.72rem; padding: 0 2px; } }   /* 320px phones: 13px, still one line */
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--marigold-ink); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.4; }

/* Reduced motion = gentler, not zero (F3): travel is zeroed by the tokens in tokens.css; feedback
   (colour, fades, the tick) stays. Only pure movement is removed here. */
@media (prefers-reduced-motion: reduce) {
  .celebrate { display: none; }                  /* confetti is pure movement */
  html { scroll-behavior: auto; }
}

/* ───────── Stats ───────── */
.back { display: inline-flex; align-items: center; min-height: var(--hit); font-weight: 600; text-decoration: none; }
.hero-lost { margin-top: var(--space-xl); }
.hero-lost .big { display: flex; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; }
.hero-lost .big .num { font-size: var(--t-num); color: var(--leaf-ink); }
.pill { font-size: var(--t-sm); font-weight: 600; background: var(--leaf-soft); color: var(--leaf-ink); border-radius: var(--r-pill); padding: 2px 12px; }
.chart .raw { fill: var(--marigold); opacity: .28; }
.trend .line { stroke-width: 3.5; }
.legend { display: flex; gap: var(--space-lg); flex-wrap: wrap; margin-top: var(--space-sm); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .k-line { width: 18px; height: 4px; border-radius: 2px; background: var(--marigold); }
.legend .k-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); opacity: .35; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.tile { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: var(--space-lg); min-width: 0; }
.tile .lbl { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.tile .num { font-size: var(--t-xl); margin: 6px 0 4px; }
.tile .sub { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.tile.good { background: var(--leaf-soft); border-color: transparent; }
.tile.good .num { color: var(--leaf-ink); }
.note-plateau { margin-top: var(--space-xl); background: var(--marigold-soft); border-radius: var(--r-lg); padding: var(--space-xl); }
.mbar { height: 8px; border-radius: var(--r-pill); background: var(--sunk); margin-top: 6px; max-width: 220px; overflow: hidden; }
.mbar i { display: block; height: 100%; background: var(--leaf); border-radius: inherit; }
.log.months li { grid-template-columns: 1fr auto; }

/* ───────── Feed: one-tap check-ins ───────── */
.feed { display: grid; gap: var(--space-md); }
.ask { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: var(--space-xl); }
/* On navigation to Home only, the question cards follow the page in, 60ms apart (P3-1). */
.view.enter-fade .ask { animation: ack-in var(--dur) var(--ease-out) both; }
.view.enter-fade .ask:nth-child(2) { animation-delay: 60ms; }
.ask h3 { font-size: var(--t-lg); line-height: 1.6; }
.ask p { margin: var(--space-xs) 0 0; }
.ask.alert { background: var(--alert-soft); border-color: transparent; }
.ask.remind { background: var(--water-soft); border-color: transparent; }
.ask .chips { margin-top: var(--space-lg); }
.ask .chip { min-height: 52px; font-size: var(--t-md); }
.yn { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-sm); margin-top: var(--space-lg); }
.yn .btn { min-height: 60px; font-size: var(--t-md); width: 100%; }
.stepper { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: var(--space-sm); margin-top: var(--space-lg); }
.stepper button { height: 72px; border-radius: var(--r-md); border: 0; background: var(--marigold-soft); color: var(--marigold-ink); font: 800 2rem/1 var(--f-num); cursor: pointer; }
.stepper output { text-align: center; font-size: clamp(2.2rem, 10vw, var(--t-num)); min-width: 0; }
.step-fine { display: flex; justify-content: center; align-items: center; gap: var(--space-lg); margin-top: var(--space-sm); }
.step-fine button { min-height: var(--hit); min-width: 72px; border-radius: var(--r-pill); border: 2px solid var(--line); background: var(--surface); font: 700 var(--t-sm) var(--f-num); color: var(--ink); cursor: pointer; }

/* ───────── One-tap shot ───────── */
.shot-big { min-height: 84px; font-size: var(--t-lg); flex-direction: column; gap: 2px; margin-top: var(--space-lg); }
.shot-big small { font-size: var(--t-sm); font-weight: 600; opacity: .9; }
.shot-done { margin-top: var(--space-lg); padding: var(--space-lg) var(--space-xl); border-radius: var(--r-lg); background: var(--leaf-soft); color: var(--leaf-ink); font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); }
/* Acknowledgement right where he saved it (P1-6): weight/waist ack card, shot done */
#milestone { scroll-margin-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 132px); }   /* clear the tab bar and toast */
.ack { margin-top: var(--space-lg); padding: var(--space-lg) var(--space-xl); border-radius: var(--r-lg); background: var(--leaf-soft); color: var(--leaf-ink); font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; line-height: 1.5; }
.ack .num { font-size: var(--t-lg); }
.tick-i { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--leaf); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tick-i path { stroke-dasharray: 24; }
:is(.ack, .shot-done, .milestone).fresh { animation: ack-in var(--dur) var(--ease-out) both; }
:is(.ack, .shot-done).fresh .tick-i path { animation: tick-draw 280ms var(--ease-out) 120ms both; }
.milestone .stamp-i { display: inline-block; }
.milestone.fresh .stamp-i { animation: stamp var(--dur-stamp) var(--ease-stamp) 120ms both; }
/* disclosures: content fades up on open, no height animation (P3-2) */
details[open] > :not(summary) { animation: ack-in var(--dur) var(--ease-out); }
details.more { margin-top: var(--space-md); }
details.more summary { min-height: var(--hit); display: flex; align-items: center; color: var(--marigold-ink); font-weight: 600; cursor: pointer; }
details.more[open] summary { margin-bottom: var(--space-sm); }

/* ───────── "What did you do?" activity buttons ───────── */
.did { margin-top: var(--space-2xl); }
.did-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; }
.did-head h2 { margin: 0 0 4px; }
.streak { font-weight: 700; color: var(--marigold-ink); font-size: var(--t-sm); }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.act {
  position: relative; min-height: 96px; border-radius: var(--r-md); border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; padding: var(--space-sm) 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 600 var(--t-sm)/1.45 var(--f-body);
}
.act .i { font-size: 1.9rem; line-height: 1.2; }
.act .l { text-align: center; }
.act.on { background: var(--leaf-soft); border-color: transparent; color: var(--leaf-ink); }
.act .n { position: absolute; top: 6px; right: 8px; font: 800 var(--t-sm) var(--f-num); color: var(--leaf-ink); }
/* the tile he just tapped: count badge pops, leaf background fades in on the first tap (P2-3) */
.act.fresh .n { animation: dot-pop var(--dur-fast) var(--ease-out); }
.act.on.fresh { animation: box-fill-act var(--dur-fast) ease; }
@keyframes box-fill-act { from { background: var(--surface); border-color: var(--line); } }
.act.add { border-style: dashed; color: var(--marigold-ink); }
/* Home (decisions 14 Nov 2026): 4 tiles + "နောက်ထပ်", which spans the rest of the row and opens the others in place */
.act.more { grid-column: span 2; border-style: dashed; color: var(--marigold-ink); flex-direction: row; gap: var(--space-sm); }
.act.more .n { color: var(--leaf); }
.act.more-in.fresh, .act.add.fresh { animation: ack-in var(--dur) var(--ease-out) both; }
.feed + .did { margin-top: var(--space-xl); }
.add-panel { margin-top: var(--space-md); background: var(--sunk); border-radius: var(--r-md); padding: var(--space-lg); }
.add-panel.fresh { animation: ack-in var(--dur) var(--ease-out) both; }
.add-panel .chip { min-height: var(--hit); }
.custom { display: grid; grid-template-columns: 1fr auto; gap: var(--space-sm); margin-top: var(--space-md); }
.custom input { min-height: var(--hit); border-radius: var(--r-sm); border: 1.5px solid var(--line); padding: 0 var(--space-md); font-size: var(--t-md); background: var(--surface); min-width: 0; }
.undo-line { margin: var(--space-sm) 0 0; }
.undo-line .linkbtn { min-height: var(--hit); margin-left: 4px; }

/* ───────── Exercise runner: animated figure + rep counter (ui/move.js) ───────── */
.fig .p.far, .thumb .p.far { stroke: var(--ink-2); opacity: .55; }
.fig-live { padding: var(--space-md); margin: var(--space-md) 0 var(--space-lg); }
.fig-live svg { max-height: 200px; }
.runner { display: grid; justify-items: center; gap: var(--space-sm); padding: var(--space-lg) var(--space-lg) var(--space-xl); border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); }
.run-top { width: 100%; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink-2); }
.run-top b { font-size: var(--t-lg); color: var(--ink); }
.set-dots { display: flex; gap: 6px; }
.set-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--leaf); }
.set-dots i.on { background: var(--leaf); }
.set-dots i.cur { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.run-side { padding: 4px 16px; border-radius: var(--r-pill); background: var(--water-soft); color: var(--ink); font-weight: 700; }
.rep-btn {
  position: relative; width: min(232px, 68vw); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--red-soft); color: var(--ink); display: grid; place-content: center; justify-items: center;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur) ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.rep-btn:active { transform: scale(calc(1 - (1 - var(--press-scale)) * 4 / 3)); }   /* .96; 1 under reduced motion */
.rep-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rep-btn .ring-bg { fill: none; stroke: var(--surface); stroke-width: 12; }
.rep-btn .ring { fill: none; stroke: var(--red); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset var(--dur) var(--ease-out); }
.rep-btn .rep-n { position: relative; font-size: 4.4rem; line-height: 1; }
.rep-btn .rep-sub { position: relative; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.phase-rest .rep-btn { background: var(--water-soft); }
.phase-rest .rep-btn .ring { stroke: var(--water); }
/* rest / hold: ui/move.js sets one linear transition over the whole countdown (a clock, so it stays under reduced motion) */
.phase-done .rep-btn { background: var(--leaf-soft); cursor: default; }
.phase-done .rep-btn .ring { stroke: var(--leaf); }
.phase-done .rep-btn .rep-n { color: var(--leaf-ink); }
.phase-done.fresh .rep-n { animation: stamp var(--dur-stamp) var(--ease-stamp) both; }
.run-hint { text-align: center; margin: var(--space-xs) 0 0; font-weight: 600; max-width: 32ch; }
.run-actions { display: flex; gap: var(--space-md); min-height: 8px; }
@media (prefers-reduced-motion: reduce) { .rep-btn .ring { transition: none; } }

/* ═══════════ Food tab + recipe page (Myanmar kitchen, Phase 4) ═══════════
   Calendar print look: red strip header, ink on paper, leaf = protein.
   No side stripes, no gradient text; every tap target ≥ 48px. */
.fd-goal { margin: 0; color: var(--ink-2); }
.fd-mgoal { margin: var(--space-md) 0 0; font-size: var(--t-sm); color: var(--ink-2); }

/* segmented meal picker: four equal cells, like a row of calendar boxes */
.fd-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.fd-seg button {
  min-height: var(--hit); padding: 0 var(--space-xs); border: 0; border-left: 1px solid var(--line);
  background: none; color: var(--ink); font: 600 var(--t-sm)/1.3 var(--f-body); cursor: pointer;
}
.fd-seg button:first-child { border-left: 0; }
.fd-seg button[aria-pressed="true"] { background: var(--red); color: var(--on-color); font-weight: 700; }
.fd-seg + .fd-recipes { margin-top: var(--space-md); }

/* meal ideas and favourites: full-width rows, protein badge on the right */
.fd-ideas { list-style: none; padding: 0; margin: var(--space-sm) 0 0; display: grid; gap: var(--space-sm); }
.fd-ideas a, .fd-ideas .plain, .fd-favs a {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-md); align-items: center;
  min-height: 56px; padding: var(--space-sm) var(--space-lg); border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--line); color: inherit; text-decoration: none; line-height: 1.55;
}
.fd-ideas .plain { grid-template-columns: 1fr; color: var(--ink-2); background: transparent; border-style: dashed; }
.fd-favs { display: grid; gap: var(--space-sm); }
.fd-favs a { grid-template-columns: 1fr auto; font-weight: 700; background: var(--red-soft); border-color: transparent; }

/* plate: veg = leaf, protein = lacquer red, carbs = rice-paper tan */
.plate { --pl-veg: var(--leaf); --pl-pro: var(--red); --pl-carb: oklch(0.86 0.06 75);
  display: grid; grid-template-columns: 108px 1fr; gap: var(--space-lg); align-items: center; }
.plate svg { width: 108px; height: 108px; }
.plate ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-sm); font-size: var(--t-sm); line-height: 1.6; }
.plate li b { display: block; font-size: var(--t-md); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* avoid → instead: two printed lines per row, ✕ and ✓ marks (never a side stripe) */
.fd-swaps { list-style: none; padding: 0; margin: 0; display: grid; }
.fd-swaps li { display: grid; gap: 2px; padding: var(--space-md) 0; border-bottom: 1px dashed var(--line); }
.fd-swaps li:last-child { border-bottom: 0; }
.fd-swaps span { display: grid; grid-template-columns: 26px 1fr; align-items: baseline; }
.fd-swaps i { font-style: normal; font-weight: 800; }
.fd-swaps .no { color: var(--ink-2); }
.fd-swaps .no i { color: var(--red); }
.fd-swaps .yes { font-weight: 600; }
.fd-swaps .yes i { color: var(--leaf); }

/* tips: numbered like the calendar's three tasks */
.fd-tips { list-style: none; padding: 0; margin: 0; counter-reset: t; display: grid; gap: var(--space-md); }
.fd-tips li { counter-increment: t; display: grid; grid-template-columns: 30px 1fr; gap: var(--space-md); align-items: start; }
.fd-tips li::before {
  content: counter(t); width: 30px; height: 30px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; border: 2px solid var(--red); color: var(--red);
  font: 800 var(--t-sm)/1 var(--f-num);
}

/* recipe list: a protein "date box" on the left of each row */
.fd-recipes { list-style: none; padding: 0; margin: 0; }
.fd-recipes a {
  display: grid; grid-template-columns: 56px 1fr auto; gap: var(--space-md); align-items: center;
  min-height: 72px; padding: var(--space-sm) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.fd-recipes li:last-child a { border-bottom: 0; }
.fd-recipes .pro {
  width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--leaf-soft); color: var(--leaf-ink);
  display: grid; place-content: center; justify-items: center; line-height: 1;
}
.fd-recipes .pro b { font-size: var(--t-lg); }
.fd-recipes .pro small { font: 700 0.75rem/1.2 var(--f-num); }
.fd-recipes .t { display: block; font-weight: 700; line-height: 1.5; }
.fd-recipes .meta { display: block; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.fd-note { margin-top: var(--space-sm); }

/* ── recipe page ── */
.back.rx-back { min-height: var(--hit); }
.rx-strip { flex-wrap: wrap; row-gap: 0; }
.rx-strip h1 { flex: 1 1 100%; line-height: 1.5; }
.rx-strip .sub { margin-left: 0; }
.rx-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.rx-facts > div {
  display: grid; justify-items: center; text-align: center; padding: 0 0 var(--space-sm);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden;
}
.rx-facts small { justify-self: stretch; background: var(--ink); color: var(--surface); font: 700 var(--t-sm)/1.9 var(--f-body); }
.rx-facts b { font-size: var(--t-2xl); line-height: 1.1; margin-top: var(--space-sm); }
.rx-facts span { font-size: var(--t-sm); color: var(--ink-2); }
.rx-facts .pro small { background: var(--leaf); }
.rx-facts .pro b { color: var(--leaf-ink); }
.rx-ing { list-style: none; padding: 0; margin: 0; }
.rx-ing li { padding: var(--space-sm) 0; border-bottom: 1px dashed var(--line); line-height: 1.7; }
.rx-ing li:last-child { border-bottom: 0; }
.rx-ing .wt { font-family: var(--f-num); font-weight: 700; color: var(--red-ink); white-space: nowrap; }
.rx-steps li::before { background: var(--red); color: var(--surface); }
.rx-tip { margin-top: var(--space-xl); }
.rx-ate { margin-top: var(--space-xl); min-height: var(--hit-yn); }
.rx-ate.done {
  display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg);
  border-radius: var(--r-md); background: var(--leaf-soft); color: var(--leaf-ink); font-weight: 700;
}
.rx-ate .tick { width: 36px; height: 36px; border-radius: 50%; background: var(--leaf); display: grid; place-items: center; flex: none; }
.rx-ate .tick svg { width: 22px; height: 22px; fill: none; stroke: var(--surface); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rx-ate .dots { display: inline-flex; gap: 6px; vertical-align: middle; margin-left: 4px; }
.rx-ate .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--leaf); }
.rx-ate .dots i.on { background: var(--leaf); }

/* ───────── Delight pass (docs/motion-plan.md §9) ─────────
   Rare moments only. Reuses fresh() + the stamp / ack-in keyframes; reduced motion turns them into fades
   through the tokens (stamp is opacity-only there). */
/* A coach note that arrives while he's on Home settles in like a slip of paper (same function list as .note). */
@keyframes note-in { from { opacity: 0; transform: translateY(var(--enter-y)) rotate(-0.6deg); } }
.note.fresh { animation: note-in var(--dur) var(--ease-out) backwards; }
/* Streak badge: stamps only when it reaches a mark (7, 14, 21, 30 …). */
.streak { display: inline-block; }
.streak.fresh { animation: stamp var(--dur-stamp) var(--ease-stamp) both; }
/* The goal is the one milestone in turmeric gold (celebration); lb milestones stay leaf (progress). */
.milestone.goal { background: var(--gold); color: var(--ink); }
.ack .togo { flex-basis: 100%; font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); padding-left: 32px; }
#finish.fresh { animation: ack-in var(--dur) var(--ease-out) both; }

/* ───────── Tight areas: "ဘယ်နေရာ တင်းနေလဲ" (ui/tight.js) ─────────
   Reuses the list/thumb look, the chip pressed state and the feed-card entrance (ack-in, 60ms stagger). */
.tight-entry {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-lg); align-items: center;
  margin-top: var(--space-md); padding: var(--space-lg); min-height: 72px; border-radius: var(--r-md);
  background: var(--leaf-soft); border: 1.5px solid transparent; color: inherit; text-decoration: none;
}
.tight-entry .i { font-size: 1.8rem; line-height: 1; }
.tight-entry .t { display: block; font-family: var(--f-head); font-weight: 700; font-size: var(--t-lg); line-height: 1.5; }
.tight-entry .meta { display: block; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.tp-prompt { font-size: var(--t-md); font-weight: 600; margin: 0 0 var(--space-lg); }
.tp-areas { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.tp-area {
  min-height: 64px; padding: var(--space-sm) var(--space-md); border-radius: var(--r-md);
  border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 var(--t-md)/1.45 var(--f-body); cursor: pointer; text-align: center;
}
.tp-area small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--leaf-ink); }
.tp-area[aria-pressed="true"] { background: var(--marigold-soft); border-color: var(--marigold); color: var(--marigold-ink); }
.tp-area:disabled { opacity: .45; cursor: default; }
.tp-go { margin-top: var(--space-lg); min-height: 60px; }
.tp-go:disabled { opacity: .5; }
.tp-pain { display: flex; align-items: center; min-height: var(--hit); margin-top: var(--space-md); font-weight: 600; color: var(--alert); }
.tp-suggest {
  display: block; width: 100%; min-height: 56px; margin-bottom: var(--space-lg); padding: var(--space-sm) var(--space-lg);
  border-radius: var(--r-md); border: 2px dashed var(--leaf); background: var(--leaf-soft); color: var(--leaf-ink);
  font: 600 var(--t-md)/1.5 var(--f-body); text-align: left; cursor: pointer;
}
.tp-gate { margin-top: var(--space-lg); padding: var(--space-lg); border-radius: var(--r-md); background: var(--sunk); }
.tp-gate p { margin: 0 0 var(--space-sm); }
.tp-gate .chip { min-height: var(--hit); }
.tp-gate-on { margin: var(--space-md) 0 0; font-weight: 600; color: var(--water-ink); }
.tp-gate-on.fresh { animation: ack-in var(--dur) var(--ease-out) both; }
.tp-cap { padding: var(--space-xl) var(--space-lg); border-radius: var(--r-lg); background: var(--gold-soft); font-family: var(--f-head); font-weight: 700; font-size: var(--t-lg); line-height: 1.6; text-align: center; }
.tp-nudge { margin: 0 0 var(--space-md); padding: var(--space-md) var(--space-lg); border-radius: var(--r-md); background: var(--gold-soft); font-weight: 600; }
.tp-nudge.tp-gate-on { background: var(--water-soft); color: var(--ink); }
.tp-physio { margin: 0 0 var(--space-md); padding: var(--space-md) var(--space-lg); border-radius: var(--r-md); background: var(--alert-soft); }
.tp-physio b { color: var(--alert); }
.tp-rule { margin: 0 0 var(--space-md); }
.tp-h { margin-top: var(--space-xl); }
.tp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-sm); }
.tp-card { position: relative; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); }
.tp-card.did { border-color: var(--leaf); }
.tp-card > a { display: grid; grid-template-columns: auto 1fr; gap: var(--space-md); align-items: start; padding: var(--space-md) 56px var(--space-md) var(--space-md); color: inherit; text-decoration: none; min-height: 72px; }
.tp-card .thumb { width: 64px; height: 64px; }
.tp-card .thumb svg { width: 56px; height: 56px; }
.tp-txt { display: grid; gap: 2px; min-width: 0; }
.tp-txt .t { font-weight: 700; line-height: 1.5; }
.tp-en { font-size: var(--t-sm); line-height: 1.6; }
.tp-txt .meta { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.tp-did { color: var(--leaf-ink); }
.tp-getup { font-size: var(--t-sm); line-height: 1.55; padding: var(--space-xs) var(--space-sm); border-radius: var(--r-sm); background: var(--water-soft); }
.tp-like { position: absolute; top: var(--space-xs); right: var(--space-xs); width: var(--hit); height: var(--hit); border: 0; border-radius: 50%; background: none; font-size: 1.3rem; cursor: pointer; }
.tp-also { font-size: var(--t-sm); color: var(--ink-2); padding: var(--space-sm) var(--space-xs) 0; }
.tp-more { margin-top: var(--space-lg); min-height: 56px; }
/* Revealed "more" cards come in like the feed cards: ack-in, 60ms apart (--i). */
.tp-card.fresh { animation: ack-in var(--dur) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.tp-learn .tp-n { font-family: var(--f-num); font-weight: 800; color: var(--marigold); font-size: 1.3rem; width: 24px; }
.tp-exhead { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-md); }
.tp-pos { font-weight: 600; color: var(--ink-2); }
.tp-exhead .tp-like { position: static; }
.tp-chair { margin: var(--space-sm) 0 0; padding: var(--space-sm) var(--space-md); border-radius: var(--r-sm); background: var(--gold-soft); font-weight: 600; }
.tp-breath { margin: var(--space-lg) 0 0; }
.tp-breath b { display: block; font-size: var(--t-sm); }
.vary div.getup { background: var(--water-soft); }
.tp-feet { margin: 0 0 var(--space-md); padding: var(--space-md) var(--space-lg); border-radius: var(--r-md); background: var(--water-soft); font-size: var(--t-sm); line-height: 1.65; }

/* ───────── Polish pass (14 Nov 2026): spacing helpers that replaced inline px styles ───────── */
.gap-top { margin-top: var(--space-lg); }
.did-hint { margin: 0 0 var(--space-md); }
.add-hint { margin: 0 0 var(--space-sm); }
