/* ==========================================================================
   The app, screen by screen (2026-10-15). A pinned stage: four chapters of
   copy on the left, one phone on the right whose screen follows the scroll:
   Home (the Today card), a workout in Simple, the same workout in Detailed
   (the strip grows into the full card, the tools fold out), then Progress
   (the chart draws itself). Screens follow the app's engine-v2 line.
   ========================================================================== */

.tour { position: relative; padding-block: 80px; }
.js .tour { height: 460vh; padding-block: 0; }
.tour-stage { display: grid; align-items: center; }
.js .tour-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 470px) auto; justify-content: center; align-items: center; gap: clamp(48px, 9vw, 150px); }
.tour-copy { position: relative; display: grid; align-content: center; gap: 28px; max-width: 470px; }
.tour-copy .eyebrow { margin: 0; color: var(--accent-text); font: 600 15px/1 var(--font); letter-spacing: -.005em; }
.tour-chapters { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.tour-ch { grid-area: 1 / 1; opacity: 0; transform: translateY(26px); transition: opacity .45s ease, transform .9s var(--ease-pres); pointer-events: none; }
.tour-ch.is-on { opacity: 1; transform: none; transition: opacity .6s ease .12s, transform 1s var(--ease-pres) .08s; pointer-events: auto; }
.tour-ch.is-past { transform: translateY(-26px); }
.tour-h { margin: 0; font: 700 clamp(34px, 3.6vw, 52px)/1.04 var(--font); letter-spacing: -.035em; text-wrap: balance; }
.tour-ch p { max-width: 38ch; margin: 18px 0 0; color: var(--ink-2); font: 400 clamp(17px, 1.3vw, 19px)/1.5 var(--font); }
:root[data-theme="dark"] .tour-ch p { color: var(--ivory-2); }

/* Simple / Detailed: the app's own choice, here to try. */
.tour-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start; padding: 4px; border-radius: 99px; background: var(--glass-track); opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .6s var(--ease-pres); pointer-events: none; }
.tour[data-ch="1"] .tour-switch, .tour[data-ch="2"] .tour-switch { opacity: 1; transform: none; pointer-events: auto; }
.tour-switch button { position: relative; z-index: 1; min-width: 112px; height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: none; color: var(--ink-2); font: 600 15px/1 var(--font); cursor: pointer; transition: color .3s ease; }
.tour-switch button[aria-pressed="true"] { color: var(--ink); }
:root[data-theme="dark"] .tour-switch button { color: var(--ivory-2); }
:root[data-theme="dark"] .tour-switch button[aria-pressed="true"] { color: #151514; }
.tour-switch-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: #FFFFFF; box-shadow: 0 1px 2px rgb(21 21 20 / .12), 0 6px 16px -8px rgb(21 21 20 / .3); transition: transform .55s var(--spring); }
:root[data-theme="dark"] .tour-switch-thumb { background: var(--ivory); }
.tour.is-detailed .tour-switch-thumb { transform: translateX(100%); }
.tour-switch button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Where you are: four short bars, the current one fills as you scroll. */
.tour-steps { display: flex; gap: 6px; }
.tour-steps i { position: relative; width: 34px; height: 4px; overflow: hidden; border-radius: 99px; background: var(--glass-track); }
.tour-steps i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--primary); transform-origin: left; transform: scaleX(var(--fill, 0)); }

/* The phone: the hero's, a little smaller, held still: the screens move inside it, as in the app. */
.tour-phone { --w: clamp(260px, min(23vw, calc((100svh - 210px) * .45)), 340px); }
.tour-ui { position: absolute; inset: 0; font-family: var(--font); color: var(--app-ink); font-variant-numeric: tabular-nums; }
.tour-ui .app-status { z-index: 6; }

/* Screens: Home pushes left as the workout comes in from the right, like a
   navigation push; Progress rises in over the workout. */
.ts { position: absolute; inset: 0; transition: transform .85s var(--ease-pres), opacity .5s ease, filter .6s ease; }
.ts-home { transform: translateX(-32%); opacity: 0; filter: brightness(.9); }
.ts-work { transform: translateX(100%); }
.ts-progress { transform: translateY(8%) scale(.96); opacity: 0; }
.tour[data-ch="0"] .ts-home { transform: none; opacity: 1; filter: none; }
.tour[data-ch="1"] .ts-work, .tour[data-ch="2"] .ts-work { transform: none; }
.tour[data-ch="3"] .ts-work { transform: scale(.94); opacity: 0; }
.tour[data-ch="3"] .ts-progress { transform: none; opacity: 1; }

/* ---- Home: the top bar, the Today card, the week --------------------------- */
.tb { display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(58 * var(--u)) calc(18 * var(--u)) 0 calc(22 * var(--u)); }
.tb .wordmark { width: calc(78 * var(--u)); height: calc(20 * var(--u)); color: var(--app-ink); }
:root[data-theme="dark"] .tb .wordmark { color: var(--ivory); }
.tb-title { font: 700 calc(30 * var(--u))/1.1 var(--font); letter-spacing: -.03em; }
.tb-icons { display: flex; gap: calc(8 * var(--u)); margin-left: auto; }
.tb-icons i { display: grid; place-items: center; width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; background: var(--glass-ctl); box-shadow: var(--glass-ctl-edge); color: var(--app-ink); }
:root[data-theme="dark"] .tb-icons i { color: var(--ivory); }
.tb-icons .i { font-size: calc(18 * var(--u)); }

.today { margin: calc(14 * var(--u)) calc(14 * var(--u)) 0; padding: calc(20 * var(--u)) calc(18 * var(--u)) calc(10 * var(--u)); border-radius: var(--r-tray); color: var(--ivory);
  background: radial-gradient(120% 70% at 30% -10%, rgb(36 87 63 / .9), rgb(24 50 38 / .7) 45%, transparent 80%), #161614; box-shadow: 0 calc(24 * var(--u)) calc(44 * var(--u)) calc(-26 * var(--u)) rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .08); }
.today p { margin: 0; }
.today-kicker { color: var(--mint); font: 600 calc(13 * var(--u))/1.2 var(--font); }
.today-title { display: block; margin-top: calc(8 * var(--u)); font: 700 calc(34 * var(--u))/1.05 var(--font); letter-spacing: -.035em; }
.today-meta { margin-top: calc(8 * var(--u)) !important; color: var(--ivory-2); font: 500 calc(15 * var(--u))/1.3 var(--font); }
.today-names { margin-top: calc(4 * var(--u)) !important; color: rgb(243 238 226 / .55); font: 500 calc(13 * var(--u))/1.35 var(--font); }
.today-status { display: grid; gap: calc(3 * var(--u)); margin-top: calc(14 * var(--u)) !important; padding: calc(11 * var(--u)) calc(13 * var(--u)); border-radius: var(--r-row); background: rgb(243 238 226 / .07); box-shadow: inset 0 0 0 1px rgb(243 238 226 / .06); }
.today-status b { display: flex; align-items: center; gap: calc(6 * var(--u)); color: var(--mint); font: 700 calc(13 * var(--u))/1.2 var(--font); }
.today-status .signal { font-size: calc(12 * var(--u)); }
.today-status small { color: var(--ivory-2); font: 500 calc(12.5 * var(--u))/1.3 var(--font); }
.today-start { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); height: calc(52 * var(--u)); margin-top: calc(14 * var(--u)); border-radius: 99px; background: var(--ivory); color: #151514; font: 700 calc(17 * var(--u))/1 var(--font); }
.today-start .i { font-size: calc(15 * var(--u)); fill: currentColor; }
.today-tiles { display: grid; grid-template-columns: repeat(3, 1fr); margin: calc(12 * var(--u)) calc(-8 * var(--u)) 0; padding-top: calc(10 * var(--u)); border-top: 1px solid rgb(243 238 226 / .1); }
.today-tiles span { display: grid; justify-items: center; gap: calc(3 * var(--u)); padding: calc(4 * var(--u)) 0 calc(4 * var(--u)); text-align: center; }
.today-tiles span + span { border-left: 1px solid rgb(243 238 226 / .1); }
.today-tiles .i { font-size: calc(16 * var(--u)); color: var(--mint); }
.today-tiles b { font: 600 calc(13 * var(--u))/1.2 var(--font); }
.today-tiles small { color: rgb(243 238 226 / .55); font: 500 calc(11.5 * var(--u))/1.2 var(--font); }

.week { margin: calc(12 * var(--u)) calc(14 * var(--u)) 0; padding: calc(16 * var(--u)) calc(14 * var(--u)) calc(12 * var(--u)); border-radius: var(--r-card); background: var(--app-tray); box-shadow: var(--glass-edge); }
.week p { margin: 0; }
.week-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 calc(4 * var(--u)); }
.week-head strong { font: 700 calc(19 * var(--u))/1.2 var(--font); letter-spacing: -.018em; }
.week-head small { color: var(--app-ink-2); font: 500 calc(12.5 * var(--u))/1 var(--font); }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(2 * var(--u)); margin-top: calc(12 * var(--u)); }
.week-days span { display: grid; justify-items: center; gap: calc(3 * var(--u)); padding: calc(7 * var(--u)) 0; border-radius: var(--r-row); }
.week-days span.on { background: var(--app-accent-soft); }
.week-days small { color: var(--app-ink-2); font: 500 calc(11 * var(--u))/1 var(--font); }
.week-days b { font: 600 calc(17 * var(--u))/1.1 var(--font); }
.week-days em { color: var(--app-ink-3); font: 500 calc(11 * var(--u))/1 var(--font); font-style: normal; }
.week-days .on :is(small, b, em) { color: var(--app-accent-text); }
.week-days .on em { font-weight: 700; }
.week-foot { display: flex; justify-content: space-between; margin-top: calc(10 * var(--u)) !important; padding: calc(10 * var(--u)) calc(4 * var(--u)) 0; border-top: 1px solid var(--app-line); color: var(--app-accent-text); font: 600 calc(13.5 * var(--u))/1 var(--font); }
.week-foot span { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
.week-foot .i { font-size: calc(14 * var(--u)); }

/* The full tab bar, away from a workout. */
.tabbar { position: absolute; left: calc(18 * var(--u)); right: calc(18 * var(--u)); bottom: calc(26 * var(--u)); z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(6 * var(--u)); border-radius: 99px; background: var(--app-float); box-shadow: var(--glass-edge), 0 calc(16 * var(--u)) calc(34 * var(--u)) calc(-18 * var(--u)) rgb(21 21 20 / .45); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); }
.tabbar span { display: grid; justify-items: center; gap: calc(3 * var(--u)); padding: calc(7 * var(--u)) 0 calc(6 * var(--u)); border-radius: 99px; color: var(--app-ink-2); }
:root[data-theme="dark"] .tabbar span { color: var(--ivory-2); }
.tabbar span.on { background: var(--app-accent-soft); color: var(--app-accent-text); }
.tabbar .i { font-size: calc(19 * var(--u)); }
.tabbar small { font: 600 calc(11 * var(--u))/1 var(--font); }

/* ---- The workout: Simple, then Detailed --------------------------------- */
.ts-work .sx-strip, .tw-target { border-radius: var(--r-nested); background: var(--target); box-shadow: var(--target-edge); }
.ts-work .sx-value strong { color: var(--app-accent-text); font: 700 calc(22 * var(--u))/calc(26 * var(--u)) var(--font); letter-spacing: -.02em; }
.ts-work .sx-head { position: relative; }
.tw-swap { display: grid; margin-left: auto; }
.tw-swap > * { grid-area: 1 / 1; align-self: center; justify-self: end; transition: opacity .35s ease, transform .5s var(--ease-pres); }
.tw-icons { display: flex; gap: calc(14 * var(--u)); color: var(--app-ink-2); opacity: 0; transform: translateY(calc(6 * var(--u))); }
.tw-icons .i { font-size: calc(18 * var(--u)); }
.tw-more-top { transition: opacity .3s ease, transform .5s var(--ease-pres); }

/* Folding parts: the 0fr / 1fr grid lets a block grow from nothing to its own
   height, so the cards around it move with it instead of jumping. */
:is(.tw-simple, .tw-detailed, .tw-extra, .tw-tools) { display: grid; transition: grid-template-rows .7s var(--ease-pres), opacity .4s ease; }
:is(.tw-simple, .tw-detailed, .tw-extra, .tw-tools) > div { min-height: 0; overflow: hidden; }
.tw-simple { grid-template-rows: 1fr; }
.tw-detailed, .tw-extra, .tw-tools { grid-template-rows: 0fr; opacity: 0; }
.tw-extra { grid-column: 1 / -1; }
.tw-extra .hc-now { margin-top: calc(10 * var(--u)); }
.tw-extra .hc-actions { margin-top: calc(10 * var(--u)); }
.tw-extra .hc-switch { flex: 1; }
.tw-extra .hc-switch b { justify-content: center; }
:root[data-theme="dark"] .tw-extra { --hc-now: rgb(14 14 13 / .38); --hc-ink-2: rgb(243 238 226 / .68); --hc-track: rgb(243 238 226 / .16); }
.tw-extra { --hc-now: rgb(255 255 255 / .72); --hc-ink-2: #5C5A55; --hc-track: rgb(21 21 20 / .09); }
.tw-detailed > div { display: grid; gap: calc(8 * var(--u)); padding: 0 calc(14 * var(--u)); }
.tw-detailed p { margin: 0; }
.td-kicker { display: flex; align-items: center; justify-content: space-between; padding-top: calc(14 * var(--u)); }
.td-kicker span { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); color: var(--app-accent-text); font: 700 calc(12.5 * var(--u))/1 var(--font); }
.td-kicker span i { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: currentColor; box-shadow: 0 0 0 calc(3 * var(--u)) color-mix(in srgb, currentColor 16%, transparent); }
.td-kicker b { padding: calc(8 * var(--u)) calc(12 * var(--u)); border-radius: 99px; background: #FFFFFF; color: var(--app-accent-text); box-shadow: 0 1px 2px rgb(21 21 20 / .08); font: 700 calc(13 * var(--u))/1 var(--font); }
:root[data-theme="dark"] .td-kicker b { background: rgb(243 238 226 / .1); }
.td-value { color: var(--app-ink); font: 600 calc(19 * var(--u))/1 var(--font); }
.td-value strong { color: var(--app-accent-text); font: 700 calc(40 * var(--u))/1 var(--font); letter-spacing: -.035em; }
.td-reason { color: var(--app-ink-2); font: 400 calc(14 * var(--u))/1.4 var(--font); }
.td-last { display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(10 * var(--u)) 0 calc(14 * var(--u)); border-top: 1px solid rgb(36 87 63 / .12); }
.td-last small { color: var(--app-ink-2); font: 600 calc(11.5 * var(--u))/1.25 var(--font); }
.td-last span { padding: calc(6 * var(--u)) calc(9 * var(--u)); border-radius: var(--r-field); background: var(--field); color: var(--app-ink); font: 600 calc(12.5 * var(--u))/1 var(--font); }
.td-last b { margin-left: auto; color: var(--app-accent-text); font: 700 calc(13 * var(--u))/1 var(--font); }
.tw-tools > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(6 * var(--u)); }
.tw-tools span { display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); height: calc(42 * var(--u)); margin-top: calc(8 * var(--u)); border-radius: 99px; background: var(--app-card); box-shadow: var(--field-edge); color: var(--app-ink); font: 600 calc(13.5 * var(--u))/1 var(--font); }
.tw-tools .i { font-size: calc(14 * var(--u)); color: var(--app-accent-text); }

.tour.is-detailed .tw-simple { grid-template-rows: 0fr; opacity: 0; }
.tour.is-detailed :is(.tw-detailed, .tw-extra, .tw-tools) { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .7s var(--ease-pres), opacity .5s ease .15s; }
.tour.is-detailed .tw-more-top { opacity: 0; transform: scale(.6); }
.tour.is-detailed .sx-count { opacity: 0; transform: translateY(calc(-6 * var(--u))); }
.tour.is-detailed .tw-icons { opacity: 1; transform: none; }

/* Detailed is taller: the exercise scrolls up under the floating head, the way
   it does in the app, and Up next makes way. */
.ts-work .sh { position: relative; z-index: 2; -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); }
.ts-work .sx, .tw-next { transition: transform .8s var(--ease-pres), opacity .4s ease; }
.tour.is-detailed .ts-work .sx { transform: translateY(calc(-58 * var(--u))); }
.tour.is-detailed .tw-next { opacity: 0; transform: translateY(calc(40 * var(--u))); }

/* ---- Progress ------------------------------------------------------------ */
.pg-tabs { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: calc(2 * var(--u)); margin: calc(14 * var(--u)) calc(14 * var(--u)) 0; padding: calc(4 * var(--u)); border-radius: 99px; background: var(--glass-track); width: fit-content; }
.pg-tabs span { padding: calc(9 * var(--u)) calc(13 * var(--u)); border-radius: 99px; color: var(--app-ink-2); font: 600 calc(13 * var(--u))/1 var(--font); }
:root[data-theme="dark"] .pg-tabs span { color: var(--ivory-2); }
.pg-tabs span.on { background: #FFFFFF; color: var(--app-ink); box-shadow: 0 1px 2px rgb(21 21 20 / .1); }
:root[data-theme="dark"] .pg-tabs span.on { background: var(--ivory); color: #151514; }
.pg-card { margin: calc(12 * var(--u)) calc(14 * var(--u)) 0; padding: calc(16 * var(--u)); border-radius: var(--r-card); background: var(--app-tray); box-shadow: var(--glass-edge); }
.pg-card p { margin: 0; }
.pg-head { display: flex; align-items: baseline; justify-content: space-between; }
.pg-head strong { font: 700 calc(19 * var(--u))/1.2 var(--font); letter-spacing: -.018em; }
.pg-head b { color: var(--app-accent-text); font: 700 calc(13.5 * var(--u))/1 var(--font); }
.pg-chips { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); display: flex; gap: calc(6 * var(--u)); margin: calc(12 * var(--u)) calc(-16 * var(--u)) 0; padding: 0 calc(16 * var(--u)); overflow: hidden; white-space: nowrap; }
.pg-chips span { padding: calc(8 * var(--u)) calc(12 * var(--u)); border-radius: 99px; background: var(--field); color: var(--app-ink); font: 600 calc(13 * var(--u))/1 var(--font); }
.pg-chips span.on { background: var(--app-accent); color: var(--app-accent-ink); }
.pg-label { margin-top: calc(14 * var(--u)) !important; color: var(--app-ink-2); font: 600 calc(12.5 * var(--u))/1 var(--font); }
.pg-value { margin-top: calc(6 * var(--u)) !important; color: var(--app-ink); font: 600 calc(17 * var(--u))/1 var(--font); }
.pg-value strong { font: 700 calc(32 * var(--u))/1 var(--font); letter-spacing: -.03em; }
.pg-value small { margin-left: calc(6 * var(--u)); color: var(--app-accent-text); font: 600 calc(12.5 * var(--u))/1 var(--font); }
.pg-chart { display: block; width: 100%; height: calc(120 * var(--u)); margin-top: calc(12 * var(--u)); overflow: visible; }
.pg-chart .grid line { stroke: var(--app-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pg-chart .area { fill: var(--app-accent); opacity: calc(var(--draw, 0) * .1); }
.pg-chart .line { fill: none; stroke: var(--app-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--draw, 0) * 100); }
.pg-chart .dots circle { fill: var(--app-card); stroke: var(--app-accent); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .3s ease; }
.pg-chart .dots .last { fill: var(--app-accent); }
.pg-axis { display: flex; justify-content: space-between; margin-top: calc(6 * var(--u)) !important; color: var(--app-ink-3); font: 500 calc(11 * var(--u))/1 var(--font); }
.pg-stats { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: calc(6 * var(--u)); margin-top: calc(14 * var(--u)); }
.pg-stats span { display: grid; gap: calc(4 * var(--u)); padding: calc(10 * var(--u)); border-radius: var(--r-row); background: var(--field); }
.pg-stats small { color: var(--app-ink-2); font: 600 calc(11 * var(--u))/1 var(--font); }
.pg-stats b { font: 700 calc(14 * var(--u))/1.1 var(--font); white-space: nowrap; }
.pg-records { display: grid; gap: calc(10 * var(--u)); }
.pg-rec { display: flex; align-items: center; justify-content: space-between; padding-top: calc(10 * var(--u)); border-top: 1px solid var(--app-line); font: 600 calc(14.5 * var(--u))/1.2 var(--font); }
.pg-rec b { display: grid; justify-items: end; gap: calc(2 * var(--u)); font: 700 calc(15 * var(--u))/1 var(--font); }
.pg-rec small { color: var(--app-ink-2); font: 500 calc(11 * var(--u))/1 var(--font); }

/* ---- Phones: the phone on top, the copy below it -------------------------- */
@media (max-width: 900px) {
  .js .tour { height: 420vh; }
  .tour-grid { grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; gap: 16px; }
  /* The phone takes the height the copy leaves (the copy needs about 230 pt), up to 300 pt wide. */
  .tour-phone { --w: min(66vw, calc((100svh - 256px - env(safe-area-inset-top, 0px)) * .46), 300px); order: -1; margin-bottom: 0; }
  /* Clear of the menu bar (12 pt from the top, 56 tall) with 12 pt of air, below the status bar where there is one. */
  .tour-grid { padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
  .tour-copy { justify-items: center; gap: 14px; max-width: 520px; text-align: center; }
  .tour-copy .eyebrow { display: none; }
  .tour-h { font-size: clamp(26px, 7vw, 34px); }
  .tour-ch p { margin-top: 8px; font-size: 16px; line-height: 1.45; }
  .tour-switch { justify-self: center; }
  .tour-switch button { min-width: 96px; height: 36px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-ch, .ts, .tour-switch, .tour-switch-thumb, :is(.tw-simple, .tw-detailed, .tw-extra, .tw-tools), .tw-swap > *, .tw-more-top { transition: none !important; }
  .tour-phone, .tour-phone .phone-frame { transform: none; }
}

.tour.is-drawn .pg-chart .dots circle { opacity: 1; }

/* ---- Dark theme: graphite with white (owner choice 2026-10-16) ----------------------------------------
   Dark-only copies of the shared rules that carry green: the mint and forest light become white and graphite. The light
   theme is unchanged; the light brand green in small light cards stays. */
:root[data-theme="dark"] .today { background: radial-gradient(120% 70% at 30% -10%, rgb(72 70 66 / .9), rgb(46 45 43 / .7) 45%, transparent 80%), #161614; }
:root[data-theme="dark"] .td-last { border-top: 1px solid rgb(72 70 66 / .12); }
/* Short phones (an iPhone SE): only the heading under the phone, so the screens stay big enough to read. */
@media (max-width: 900px) and (max-height: 620px) {
  .tour-ch p { display: none; }
  .tour-phone { --w: min(66vw, calc((100svh - 170px - env(safe-area-inset-top, 0px)) * .46), 300px); }
}
