/* ============================================================
   KALDERNO · the practice-app engine (/<kit>/practice), layered on
   companion.css (same tokens, same day/night switch). A pen name's
   colours come from the data file (data.theme) as a small inline
   token block; nothing here names a book.
   Source: src/companion/practice/practice.css (copied by build-practice.mjs).
   ============================================================ */

/* ---------- home ---------- */
.home .hero .cover{ transform:rotate(-2deg); }
.home .hero > div{ min-width:0; }
.home .hero .kicker, .home .hero h1{ overflow-wrap:anywhere; }
/* the typographic book tile; its width comes from .hero .cover (companion.css) */
.b2.cover{ aspect-ratio:1/1; border:1px solid var(--rule); border-radius:3px; background:var(--card);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:2px; box-shadow:0 10px 26px rgba(0,0,0,.25); }
/* without a cover file: the book's title on the tile */
.b2.cover span{ font-family:var(--ff-display); font-style:italic; font-size:0.9375rem; font-weight:600; color:var(--accent-ink); line-height:1.2; padding:0 8px; overflow-wrap:anywhere; }
.hookl{ margin:18px 0 0; }
.hookl .bl{ font-size:1.1875rem; }
.privacy{ margin:6px 0 0; color:var(--ink-lbl); font-size:0.875rem; }
.resume{ margin:22px 0 0; }
.resume .where{ margin:8px 0 0; font-size:0.9375rem; color:var(--ink-2); }
.nightcard .nt{ margin:0 0 6px; font-family:var(--ff-display); font-size:1.375rem; font-weight:600; color:var(--ink); }
.night .btn{ margin-top:6px; }
.parts .deck .returncard{ margin:10px 0; }
.quizsec .invite h2{ margin-top:0; }
.quizsec .invite .small{ margin:-6px 0 14px; color:var(--ink-lbl); font-size:0.875rem; }

/* the pocket card: three words, each opens its line */
.pocket{ margin:24px 0 0; padding:16px 16px 6px; border:1px solid var(--rule); border-left:3px solid var(--accent); border-radius:3px; background:var(--card); }
.pocket .lbl{ margin:0; }
.pwords{ display:flex; flex-wrap:wrap; gap:6px 10px; margin:8px 0 0; }
.pword{ min-height:44px; padding:0 14px; border:1px solid var(--line); border-radius:999px; font-family:var(--ff-display); font-size:1.375rem; font-weight:600; color:var(--ink); }
.pword[aria-expanded="true"]{ background:var(--accent); border-color:var(--accent); color:var(--btn-ink); }
.pcap{ margin:6px 0 4px; color:var(--ink-lbl); font-size:0.875rem; }
.pline, .pafter{ margin:10px 0 0; }
.pnote{ margin:6px 0 0; }

/* ---------- labels ---------- */
.lbl{ display:block; font-size:0.875rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-lbl); margin:0 0 6px; }
.ptitle{ font-size:0.875rem; font-weight:700; color:var(--accent-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; flex:1 1 auto; }
.plabel{ margin:0 0 8px; text-transform:none; letter-spacing:.01em; font-size:0.9375rem; }
.bar-quiet{ opacity:0; }
.stepq{ font-family:var(--ff-display); font-weight:500; font-size:clamp(1.4375rem, 6.2vw, 1.875rem); line-height:1.22; letter-spacing:-.012em; margin:0 0 14px; font-variation-settings:"SOFT" 40,"opsz" 60; }
.stepq.sr-h{ font-family:var(--ff-sans); font-size:0.9375rem; font-weight:700; letter-spacing:.01em; color:var(--accent-ink); margin:0 0 10px; line-height:1.35; }
.stepq.hv{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.pfrom{ margin:-6px 0 18px; }

/* ---------- book lines ---------- */
.blines{ margin:0 0 6px; }
.bgroup{ margin:0 0 14px; }
.bl{ margin:0 0 10px; font-family:var(--ff-display); font-size:1.125rem; line-height:1.5; color:var(--ink); font-variation-settings:"SOFT" 40,"opsz" 40; }
.bl.spoken{ font-style:italic; padding-left:14px; border-left:2px solid var(--accent); }
.bl.spoken::before{ content:"\201C"; }
.bl.spoken::after{ content:"\201D"; }
.bl.big{ font-size:clamp(1.5rem, 6.4vw, 2rem); line-height:1.3; font-weight:600; letter-spacing:-.01em; }
.bgroup .from{ margin:2px 0 0; }
.small-lines .bl{ font-size:1rem; color:var(--ink-2); }
.oneway{ margin:6px 0 16px; padding:14px 16px 4px; background:var(--bg-2); border:1px solid var(--rule-soft); border-radius:3px; }
.more{ margin:0 0 12px; }
.more summary{ display:inline-flex; align-items:center; min-height:44px; cursor:pointer; color:var(--accent-ink); font-size:0.9375rem; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }

/* ---------- say ---------- */
.saybtns{ margin:18px 0 0; display:flex; flex-direction:column; gap:10px; }
.saysub{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
.saysub .btn{ padding:0 10px; }
@media (max-width:300px){ .saysub{ grid-template-columns:minmax(0,1fr); } }
.typebox{ margin:6px 0 0; }
.tyw{ margin:8px 0 0; }
.tyw textarea, .field input, .tabname{
  width:100%; font:inherit; font-size:1rem; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:3px; padding:12px 14px; min-height:48px;
}
.tyw textarea{ resize:vertical; line-height:1.45; }
.tyw .small, .builder .small, .fields .small{ margin:6px 0 0; color:var(--ink-lbl); font-size:0.875rem; }
.fb.neutral{ border-top-color:var(--accent); }
.fb.neutral .bl{ font-size:1.0625rem; }
.nb2{ margin-top:8px; }

/* ---------- hear ---------- */
.hear{ margin:6px 0 10px; }
.hear .voice{ font-size:0.875rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-lbl); margin:0 0 8px; }
.bubble{ margin:0 0 8px; padding:18px 20px; background:var(--card); border:1px solid var(--rule); border-radius:18px 18px 18px 4px; }
.bubble p{ margin:0; font-family:var(--ff-display); font-size:clamp(1.25rem, 5.4vw, 1.5rem); line-height:1.35; color:var(--ink); }

/* ---------- choose, branch, keep options ---------- */
.paths{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.opt.path{ grid-template-columns:1fr auto; align-items:center; font-weight:600; }
.runlines[hidden]{ display:none; }
.uinotice{ margin:14px 0 0; color:var(--ink-lbl); font-size:0.875rem; }
.opt.is-mine{ border-color:var(--accent); background:var(--card-hi); }
.opt.is-mine .key{ background:var(--accent); border-color:var(--accent); color:var(--btn-ink); }
.opts.open + .fb{ border-top-color:var(--accent); }
.keeps{ list-style:none; margin:0 0 6px; padding:0; display:flex; flex-direction:column; gap:8px; }
.keepopt[aria-pressed="true"]{ border-color:var(--accent); background:var(--card-hi); }
.keepopt[aria-pressed="true"] .key{ background:var(--accent); border-color:var(--accent); color:var(--btn-ink); }
.keepopt .key svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
.ownl{ font-weight:700; color:var(--accent-ink); }
.keeplead{ margin:0 0 12px; font-size:1rem; }
.kept blockquote{ word-break:break-word; }

/* ---------- chips, yes/no ---------- */
.chips{ list-style:none; margin:6px 0 14px; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.chip{ display:inline-flex; align-items:center; min-height:44px; padding:0 16px; border:1px solid var(--line); border-radius:999px; background:var(--card); font-size:1rem; font-weight:600; color:var(--ink); }
.chip[aria-pressed="true"]{ background:var(--accent); border-color:var(--accent); color:var(--btn-ink); }
.chip.small{ min-height:44px; font-size:0.9375rem; margin-top:8px; }
.ynlist{ list-style:none; margin:4px 0 16px; padding:0; display:flex; flex-direction:column; gap:12px; }
.yn{ padding:12px 14px; border:1px solid var(--rule); border-radius:3px; background:var(--card); }
.ynq{ margin:0 0 8px; font-family:var(--ff-display); font-size:1.125rem; line-height:1.4; }
.ynb{ display:flex; gap:8px; flex-wrap:wrap; }

/* ---------- build, fields ---------- */
.builder{ margin:6px 0 14px; padding:16px; border:1px solid var(--rule); border-radius:3px; background:var(--card); }
.fields{ display:flex; flex-direction:column; gap:12px; margin:0 0 14px; }
.field{ display:block; }
.field .lbl{ text-transform:none; letter-spacing:.01em; font-size:0.875rem; color:var(--ink-2); margin-bottom:4px; }
.preview{ margin:0; font-family:var(--ff-display); font-style:italic; font-size:1.25rem; line-height:1.4; color:var(--ink); word-break:break-word; }
.builder .btn{ margin-top:12px; min-height:48px; }

/* ---------- the breath ---------- */
.breath{ position:relative; display:flex; flex-direction:column; align-items:center; gap:14px; margin:14px 0 16px; padding:22px 0 18px; border:1px solid var(--rule-soft); border-radius:3px; background:var(--bg-2); outline:none; }
.orb{ width:150px; height:150px; display:flex; align-items:center; justify-content:center; }
.orb span{ display:block; width:150px; height:150px; border-radius:50%; background:radial-gradient(circle at 50% 45%, var(--accent) 0, transparent 70%); opacity:.35; transform:scale(.55); transition:transform var(--sec,4s) linear, opacity var(--sec,4s) linear; }
.breath[data-phase="in"] .orb span{ transform:scale(1); opacity:.6; }
.breath[data-phase="out"] .orb span{ transform:scale(.55); opacity:.3; }
.bword{ margin:0; min-height:2.2em; font-family:var(--ff-display); font-size:clamp(1.5rem, 7vw, 2rem); font-weight:600; color:var(--ink); text-align:center; }
.toggles{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }

/* ---------- the tab ---------- */
.tabwin{ margin:10px 0 16px; border:1px solid var(--rule); border-radius:8px 8px 3px 3px; background:var(--bg-2); overflow:hidden; transform-origin:50% 0; }
.tabstrip{ display:flex; padding:8px 8px 0; background:var(--card-hi); border-bottom:1px solid var(--rule); }
.tabshape{ display:flex; align-items:center; gap:6px; max-width:100%; min-width:0; flex:1 1 auto; padding:4px 4px 4px 12px; background:var(--bg-2); border:1px solid var(--rule); border-bottom:0; border-radius:10px 10px 0 0; }
.tabshape .tabname{ flex:1 1 auto; min-width:0; min-height:44px; border:0; background:transparent; padding:6px 4px; font-size:1rem; }
.tabshape span.tabname{ display:flex; align-items:center; color:var(--ink-2); text-decoration:line-through; }
.tabx{ flex:none; width:44px; height:44px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:var(--ink); border:1px solid var(--line); }
.tabx svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; }
.tabbody{ height:72px; }
/* r2: only the body fades; the closed name stays at full contrast (4.5:1 or more) */
.tabwin.is-closed .tabbody{ height:20px; opacity:.55; }
.big-verdict{ font-size:1.5rem!important; }
.sidelink{ margin:4px 0 0; }

/* ---------- end, checklist, quiz ---------- */
.endh, .bgh, .helph, .quizh, .rtitle{ font-size:clamp(2rem, 9vw, 3rem); margin:8px 0 12px; }
.rep{ margin:26px 0 0; padding:18px 18px 8px; border:1px solid var(--rule); border-radius:3px; background:var(--bg-2); }
.rep h3.lbl{ margin-top:6px; }
.endhelp{ margin:22px 0 0; }
.mineline{ margin:-4px 0 16px; padding:10px 14px; border-left:3px solid var(--accent); background:var(--card); font-size:1rem; color:var(--ink); }
.mineline .lbl{ display:inline; margin:0 6px 0 0; }
.bglines .bgroup{ margin-bottom:6px; }
.helplink{ margin:20px 0 0; }
.phelp p{ margin:0 0 10px; }
.phelp .from{ margin:0; }
.srcchip{ display:inline-block; margin:14px 0 0; padding:6px 12px; border:1px solid var(--rule); border-radius:999px; font-size:0.875rem; color:var(--ink-2); outline:none; }
.results{ display:grid; gap:16px; }
.results.sbs{ grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); }
.result{ padding:0; }
.result.tied{ padding:18px; border:1px solid var(--rule); border-radius:3px; background:var(--card); }
.rname{ font-size:1.75rem; margin:0 0 10px; }
.result h3.lbl{ margin:16px 0 6px; }
.firstmove .bl{ font-weight:600; }
.rbtns{ margin-top:18px; }
.result .keepbtn{ margin-top:12px; min-height:44px; padding:0 16px; }
.result .keepbtn[aria-busy="true"], .kept .keepbtn[aria-busy="true"]{ opacity:.6; }
.rfoot{ margin:24px 0 0; }

@media (prefers-reduced-motion:no-preference){
  .tabwin.is-folding{ animation:tabfold .4s cubic-bezier(.4,0,.2,1) both; }
}
@keyframes tabfold{ 0%{ transform:none; opacity:1; } 60%{ transform:scaleY(.2) translateY(-8px); opacity:.6; } 100%{ transform:scaleY(.12); opacity:0; } }
/* reduced motion: the breath is words only, the circle stays still */
@media (prefers-reduced-motion:reduce){
  .orb{ display:none; }
}
@media (max-width:374px){
  .qhead .qcnt{ font-size:0.8125rem; }
  .bl{ font-size:1.0625rem; }
}

/* ---------- r2 (2026-10-21, blind-test fixes) ---------- */
/* F5: pressed and picked states in the Day theme use the deep accent, so the cream text is 4.5:1 or more */
:root[data-theme="day"] .chip[aria-pressed="true"],
:root[data-theme="day"] .pword[aria-expanded="true"],
:root[data-theme="day"] .opt.is-mine .key,
:root[data-theme="day"] .keepopt[aria-pressed="true"] .key{ background:var(--accent-ink); border-color:var(--accent-ink); color:var(--btn-ink); }
/* F4: a focused control is never under the docked bar (the engine also sets this from the bar's real height) */
html{ scroll-padding-bottom:96px; }
.nextbar[hidden]{ display:none!important; }
/* F6: the breath bar is one row: the main button plus a text link */
.nextbar.nb-row{ display:flex; align-items:center; gap:4px 14px; flex-wrap:nowrap; }
.nextbar.nb-row .btn{ flex:1 1 auto; min-width:0; width:auto; }
.nextbar.nb-row .nblink{ flex:none; font-size:0.9375rem; padding:0 2px; white-space:nowrap; }
.toggles{ margin:4px 0 4px; }
.breath .bword{ min-height:1.3em; }
/* F3: builder slots are two-row boxes that grow with the answer */
.field textarea{ width:100%; font:inherit; font-size:1rem; line-height:1.45; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:3px; padding:12px 14px; min-height:48px; resize:none; overflow:hidden; overflow-wrap:anywhere; }
.builder .btn[aria-disabled="true"]{ cursor:default; }
/* F8: the fast path and the path lengths */
.fastlink{ margin:14px 0 0; }
.pcount{ display:block; margin-top:2px; font-size:0.875rem; font-weight:500; color:var(--ink-2); }
.nsteps{ margin:-2px 0 8px; color:var(--ink-lbl); font-size:0.875rem; }
/* F10: kept lines as a plain list (part name plus line), no numbers, no empty places */
.keptlist{ list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.keptline{ display:block; width:100%; text-align:left; min-height:44px; padding:10px 14px; border:1px solid var(--rule); border-left:3px solid var(--accent); border-radius:3px; background:var(--card); color:var(--ink); }
.keptline[aria-expanded="true"]{ border-color:var(--accent); background:var(--card-hi); }
.kpn{ display:block; font-size:0.8125rem; font-weight:700; letter-spacing:.02em; color:var(--ink-lbl); }
.kpt{ display:block; margin-top:2px; font-family:var(--ff-display); font-size:1.0625rem; line-height:1.4; overflow-wrap:anywhere; }
.yourlines{ margin:6px 0 22px; }
.yourlines .keptlist li{ padding:10px 14px; border-left:3px solid var(--accent); background:var(--card); border-radius:3px; }
/* F7: the return card names the closed evening; the night end has a quiet way home */
.rtab{ margin:6px 0 10px; }
.rtab .tabname{ display:inline-block; max-width:100%; padding:6px 12px; border:1px solid var(--rule); border-bottom:0; border-radius:10px 10px 0 0; background:var(--bg-2); color:var(--ink-2); text-decoration:line-through; overflow-wrap:anywhere; }
.quiethome{ margin:26px 0 0; }
/* F11: a voiced line on a say step */
.sayhear{ margin:0 0 14px; outline:none; }
/* F12: the quiz jump in the hero and the intro above the first question */
.quizjump{ margin-top:6px; font-size:0.9375rem; }
.qintro{ margin:0 0 14px; }
.quizscreen h2.stepq{ margin-top:4px; }
/* F13: the crisis link is a 44 px target both ways */
.phelp a.call{ min-width:44px; padding:10px 8px; margin:-10px -4px; text-align:center; }
@media (prefers-reduced-motion:no-preference){
  .keptline.glow{ animation:slot-glow 1.6s ease-out 1 both; }
}
/* the arrow after a text link keeps its space (inline-flex drops the plain space) */
.textlink .arw{ margin-left:.35em; }
/* F6: when the button and the link cannot share a line, the link sits just above the bar */
.nb-alt{ display:none; margin:10px 0 0; }
.nb-tight .nb-alt{ display:block; }
.nb-alt[hidden]{ display:none!important; }
.nb-tight .nextbar .nblink{ display:none; }

/* ---------- r3 (2026-10-21, blind-test round 3) ---------- */
/* F1: a button inside a home list card never takes the list's grid (defence in depth; the return card now sits outside the list) */
.parts .deck .returncard .btn{display:inline-flex;align-items:center;justify-content:center;grid-template:none;width:auto;min-height:48px;padding:0 18px;text-align:center}
.returncard .btn{ min-height:48px; }
/* F11: a returner (or the night) gets a one-line title, then what they came back for */
.hmin-h{ font-size:clamp(1.5rem, 6.4vw, 2rem); margin:4px 0 6px; line-height:1.2; }
.hmin-h em{ font-style:italic; color:var(--accent-ink); font-weight:500; }
.home-lead .resume{ margin-top:14px; }
.bgtop{ margin-top:18px; }
.hero-low{ margin-top:28px; }
.hero .quizjump{ margin-top:14px; min-height:48px; }
.lastm{ margin:-4px 0 12px; }
/* F11b: the short help note on run screens */
.phelp-short .helplink{ margin:4px 0 0; }
/* F8: the shortcut sits under the step heading, full width */
.fastlink{ margin:4px 0 16px; }
.fastbtn{ min-height:48px; }
.fullrun{ margin:16px 0 0; }
/* F9: "Back a step" beside the way home */
.qhead .stepback{ padding-right:8px; }
@media (max-width:374px){ .qhead .ptitle{ flex-basis:100%; order:3; } }
/* F4, F5: book lines before a question, a labelled box, the book's condition above an option */
.plead{ margin:0 0 10px; outline:none; }
.pbox{ margin-top:0; }
.opt .cond{ display:block; margin:0 0 4px; font-size:0.875rem; font-weight:600; color:var(--ink-2); line-height:1.4; }
.sayfact{ margin:12px 0 0; color:var(--ink-lbl); font-size:0.875rem; }
.saypair{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
.saypair .btn{ padding:0 10px; }
@media (max-width:300px){ .saypair{ grid-template-columns:minmax(0,1fr); } }
/* F3, F6: the listener's own line from earlier in the run */
.mycard{ margin:0 0 14px; padding:12px 16px; border:1px solid var(--rule); border-left:3px solid var(--accent); border-radius:3px; background:var(--card); }
.mycard .lbl{ margin:0 0 4px; }
.myl{ margin:0; font-family:var(--ff-display); font-size:1.125rem; line-height:1.45; color:var(--ink); overflow-wrap:anywhere; }
.plbl{ margin:4px 0 8px; }
/* F6b: the fact list under the line to keep */
.facts{ margin:18px 0 0; padding:14px 16px 6px; border:1px solid var(--rule-soft); border-radius:3px; background:var(--bg-2); }
.factlist{ list-style:none; margin:0 0 8px; padding:0; display:flex; flex-direction:column; gap:6px; }
.factlist .fk{ display:block; font-size:0.8125rem; font-weight:700; color:var(--ink-lbl); }
.factlist .fv{ display:block; font-size:1rem; color:var(--ink); overflow-wrap:anywhere; }
.factopt{ display:flex; align-items:center; gap:10px; min-height:44px; font-size:0.9375rem; color:var(--ink); cursor:pointer; }
.factopt input{ width:22px; height:22px; accent-color:var(--accent-ink); flex:none; }
.factclear{ margin:0; }
/* F5: the night end repeats the okay thing */
.mineend{ margin:6px 0 18px; padding:12px 16px 4px; border-left:3px solid var(--accent); background:var(--card); border-radius:3px; }
.mineend .lbl{ margin:0 0 4px; }
.mineend .myl{ margin:0 0 10px; }
/* F5d: a long tab name wraps, never cut off */
.tabshape span.tabname{ white-space:normal; overflow-wrap:anywhere; word-break:break-word; min-width:0; line-height:1.35; padding-top:10px; padding-bottom:10px; }
/* F12: the mirror's picks */
.rpicks{ margin:-4px 0 18px; color:var(--ink-2); font-size:0.9375rem; }
.qtile{ margin:0 0 4px; color:var(--ink-lbl); }
/* F5e: the tab folds, then slides out (motion allowed only) */
@media (prefers-reduced-motion:no-preference){
  .tabwin.is-folding{ animation:tabfoldout .6s cubic-bezier(.4,0,.2,1) both; }
  .tabwin.is-closed{ animation:tabsettle .35s ease-out both; }
}
@keyframes tabfoldout{ 0%{ transform:none; opacity:1; } 45%{ transform:scaleY(.3); opacity:.85; } 100%{ transform:translateX(115%) scaleY(.3); opacity:0; } }
@keyframes tabsettle{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
.k-tab{ overflow-x:clip; }

/* ---------- r4 (2026-10-22, blind-test round 4) ---------- */
/* F5b, F13: placeholders (the book example's own words) in a themed colour, 4.5:1 or more in both themes */
.field textarea::placeholder, .tyw textarea::placeholder, .tabname::placeholder{ color:var(--ink-lbl); opacity:1; }
/* F5d: the bridge's way out */
.wayout .myl{ margin:0 0 4px; }
.wayout .small{ margin:0 0 10px; color:var(--ink-lbl); }
/* F12a: the shortcut sits under the step's own primary action, ghost, with a plain subtitle */
.nextbar .fastlink, .fastlink{ margin:8px 0 0; }
.fastlink .fastbtn{ min-height:44px; font-size:0.9375rem; }
.fastsub{ margin:4px 0 0; text-align:center; color:var(--ink-lbl); font-size:0.8125rem; }
/* F12c: a say step with a voiced line docks its actions in the sticky bar */
.saydock .saybtns{ margin:0; gap:8px; }
.saydock .saybtns .btn{ min-height:46px; }
.dockty{ margin:0 0 4px; text-align:center; }
.dockty .textlink{ min-height:44px; font-size:0.9375rem; }
/* F12d: "Back a step" is an outlined small button on its own row */
.stepbackrow{ margin:0 0 12px; }
.stepback{ display:inline-flex; align-items:center; width:auto; min-height:40px; padding:0 14px; font-size:0.875rem; font-weight:600; letter-spacing:.01em; border:1px solid var(--line); border-radius:999px; }
/* 2026-10-31 (H2): data.accessibility.largeBackTarget */
[data-large-back] .stepback{ min-height:44px; min-width:44px; }
/* 2026-10-31 (H2): the explicit keep on a typed line, the bundled card, the home line, the deck label */
.tykeep{ margin:8px 0; display:flex; align-items:center; gap:10px; }
.tykeep [hidden]{ display:none!important; }
.tykeep .btn{ width:auto; min-height:44px; padding:0 18px; }
.keptbundle blockquote p{ margin:0 0 8px; }
.homewelcome{ margin-top:12px; }
.rdeck{ margin:0 0 8px; color:var(--ink-lbl); }
/* F13: the breath can be stopped */
.bstop{ min-height:44px; padding:0 18px; width:auto; }
.bstop[hidden]{ display:none!important; }
/* F11c, F13: the tab: a visible label, long names wrap, and once closed only a small struck line stays */
.tablbl{ margin:4px 0 6px; text-transform:none; letter-spacing:.01em; color:var(--ink-2); }
.tabshape textarea.tabname{ resize:none; overflow:hidden; line-height:1.35; padding-top:11px; padding-bottom:11px; overflow-wrap:anywhere; white-space:pre-wrap; }
.tabwin.is-closed{ margin:6px 0 14px; border:0; border-radius:0; background:transparent; overflow:visible; }
.tabgone{ margin:0; font-size:0.9375rem; line-height:1.45; color:var(--ink-2); overflow-wrap:anywhere; }
.tabgone s{ text-decoration-thickness:1px; }
.tabgone .tabname{ display:inline; width:auto; min-height:0; padding:0; margin:0; border:0; border-radius:0; background:transparent; font:inherit; color:var(--ink-2); }
@media (prefers-reduced-motion:no-preference){
  .tabwin.is-folding{ animation:tabfoldfade .44s cubic-bezier(.4,0,.2,1) both; }
  .tabwin.is-closed{ animation:tabgonein .25s ease-out both; }
}
@keyframes tabfoldfade{ 0%{ transform:none; opacity:1; } 100%{ transform:scaleY(.15); opacity:0; } }
@keyframes tabgonein{ from{ opacity:0; } to{ opacity:1; } }
/* F8: the whole help note, folded, on run, quiz, checklist and end screens */
.phelp-fold details > summary{ display:inline-flex; align-items:center; min-height:44px; cursor:pointer; color:var(--accent-ink); font-size:0.9375rem; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.phelp-fold details[open] > summary{ margin-bottom:8px; }
/* F6: the result: a lead-in above the first move, one keep link under it, one source line, one primary share */
.rlead .bl{ font-size:1rem; color:var(--ink-2); }
.movekeep{ margin:-2px 0 6px; }
.movekeep .keepnote{ display:block; margin:2px 0 0; }
.movekeep .keepnote[hidden]{ display:none; }
.rfrom{ margin:6px 0 16px; }
.result .sharebtn{ margin-top:4px; min-height:50px; }
/* F2: the newest kept line leads Before You Go In */
.yourlines .newest .kpt{ font-size:1.25rem; }
.replaces{ margin:8px 0 0; color:var(--ink-2); overflow-wrap:anywhere; }
/* F11b: a quiet way back into a night run whose tab is closed */
.quietpick{ margin:8px 0 0; }
.movekeep .keepbtn{ margin-top:0; padding:0; min-height:44px; }
/* F12c: the dock stays compact on a small screen (the two quiet answers share a row) */
.saydock .saysub, .saydock .saypair{ grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important; gap:8px; }
.saydock .saysub .btn, .saydock .saypair .btn{ min-height:44px; padding:0 6px; font-size:0.875rem; line-height:1.2; }
.saydock{ padding-top:8px; }
/* ---------- p5 (2026-10-22, polish pass) ---------- */
/* 1: every say step docks its actions; the dock stays compact so all of them are in the first view */
@media (max-height:600px){
  .saydock{ padding-top:6px; padding-bottom:6px; }
  .saydock .saybtns{ gap:6px; }
  .saydock .saybtns > .btn, .saydock .saypair .btn{ min-height:44px; }
  .saydock .dockty{ margin:0 0 2px; }
  .saydock .dockty .textlink{ min-height:44px; }
}
/* 2: a tie that the last answer decided says so, quietly, under the tally */
.rtie{ margin:-12px 0 18px; color:var(--ink-2); font-size:0.9375rem; }
/* 3: "Cleared on this device." at the top for a few seconds */
.clearednote{ position:fixed; z-index:60; top:12px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 32px); margin:0; padding:10px 16px; border:1px solid var(--rule); border-left:3px solid var(--accent); border-radius:3px; background:var(--card-hi); color:var(--ink); font-size:0.9375rem; line-height:1.4; box-shadow:0 6px 20px rgba(0,0,0,.18); pointer-events:none; }
@media (prefers-reduced-motion:no-preference){
  .clearednote{ animation:clearedin .2s ease-out both; }
  .clearednote.is-going{ opacity:0; transition:opacity .4s ease-in; }
}
@keyframes clearedin{ from{ opacity:0; } to{ opacity:1; } }
/* 5: the return card names the closed tab as one small struck line */
.returncard .rtab{ margin:4px 0 8px; }
.quietnight{ margin:10px 0 0; }
/* 2026-10-31 (H2): feedback.opaque: no fade on the feedback */
[data-opaque-feedback] .fb{ animation:none; opacity:1; }
/* 2026-10-31 (H2): reviewBeforeKeep: the keep action follows the whole line in the normal flow */
.nextbar.reviewbar{ position:static; }
/* 2026-11-03 (H2): the sent-message look (existing theme tokens only), the card tile, That's for Sunday, the help link by the breath */
.hear.sent{ display:flex; flex-direction:column; align-items:flex-end; }
.hear.sent .voice, .hear.sent .from, .sentlbl{ text-align:right; }
.bubble.sent{ background:var(--btn-bg); border-color:var(--btn-bg); border-radius:18px 18px 4px 18px; max-width:88%; margin-left:auto; }
.bubble.sent p{ color:var(--btn-ink); }
.sentpreview{ width:fit-content; min-width:40%; }
.sentpreview .preview{ font-style:normal; }
.cardtilesec{ margin:18px 0 0; }
.cardtile{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:56px; padding:14px 16px; border:1px solid var(--rule); border-left:3px solid var(--accent); border-radius:3px; background:var(--card); color:var(--ink); font:inherit; font-family:var(--ff-display); font-size:1.25rem; line-height:1.3; text-align:left; cursor:pointer; }
.cardtile:hover{ background:var(--card-hi); }
.cardtile:focus-visible{ outline:2px solid var(--accent-ink); outline-offset:2px; }
.cardh{ margin:8px 0 16px; }
.sunday{ margin:18px 0 0; padding:16px 16px 14px; border:1px solid var(--rule); border-radius:3px; background:var(--bg-2); }
.sunday .field{ margin:10px 0 8px; }
.sunrow{ margin:0 0 4px; }
.sunbtn{ width:auto; min-height:44px; padding:0 18px; }
.sunday .from{ margin:0; }
.sunnote{ margin:6px 0 0; color:var(--ink-2); }
.sunnote[hidden]{ display:none; }
.parked{ margin:14px 0; }
.parkedlist{ list-style:none; margin:0 0 10px; padding:0; }
.parkedlist li{ margin:0 0 6px; }
.parkclear{ width:auto; min-height:44px; padding:0 18px; }
.timerhelp{ margin:8px 0 0; text-align:center; }
.timerhelp .textlink{ min-height:44px; min-width:44px; justify-content:center; }
/* 2026-11-03 (H3 r1): feedback.neutralBookCompare, fields book lines, sort book context, shown fragments */
.opt.is-yours{ border-color:var(--ink-2); box-shadow:inset 0 0 0 1px var(--ink-2); }
.opt .pickl{ display:block; margin:6px 0 0; font-family:var(--ff-sans); font-size:0.8125rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-lbl); }
.fbook{ display:block; margin:2px 0 6px; color:var(--ink-2); font-size:0.9375rem; line-height:1.4; }
.sortctx{ margin:0 0 14px; }
.fieldsfrom .fk{ font-weight:700; margin-right:4px; }
.keepwith{ margin:12px 0 0; }
/* 2026-11-11 (H3 r3): new selectors only */
.cueown{ margin:14px 0 0; }
.cueown .cuefield{ margin-top:10px; }
.keepwith .kwfinish{ margin-top:8px; }
.takeaway .tksrc{ margin:6px 0 0; }
.partctx{ margin-bottom:12px; }
/* 2026-11-11 (H10 r1): accessibility.minDisclosureTarget: a disclosure summary is at least 44x44 px */
[data-min-disclosure] .more summary{ min-width:44px; box-sizing:border-box; }
/* 2026-11-11 (H10 r1): the countBack result rows (24-hour HH:mm) */
.cbres{ margin:4px 0 0; }
.cbrows{ margin:6px 0 0; padding:0; }
.cbrow{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; padding:8px 0; border-bottom:1px solid var(--rule-soft); }
.cbrow dt{ color:var(--ink-2); font-size:0.9375rem; }
.cbrow dd{ margin:0; color:var(--ink); font-variant-numeric:tabular-nums; font-weight:600; }
.cbbook{ margin:12px 0 0; }
.field .cbhint{ display:block; margin:0 0 6px; color:var(--ink-lbl); font-size:0.875rem; }
.fb .cbsum{ margin:6px 0 0; }

/* 2026-11-11 (H10 r2): accessibility.instantThemeColors: no colour, background or border fade on the theme switch (transform and opacity keep their motion) */
:root[data-instant-theme-colors].theme-ready body,
:root[data-instant-theme-colors] body{ transition:none !important; }
:root[data-instant-theme-colors] .btn,
:root[data-instant-theme-colors] .opt,
:root[data-instant-theme-colors] .chip,
:root[data-instant-theme-colors] .keepopt,
:root[data-instant-theme-colors] .path,
:root[data-instant-theme-colors] .textlink,
:root[data-instant-theme-colors] .deck button,
:root[data-instant-theme-colors] .review-card,
:root[data-instant-theme-colors] .cardtile,
:root[data-instant-theme-colors] summary,
:root[data-instant-theme-colors] input,
:root[data-instant-theme-colors] textarea{ transition-property:transform, opacity !important; }
/* 2026-11-11 (H10 r2): step.compactReveal: chips wrap inside rounded boxes, never clipped by a capsule edge */
[data-compact-reveal] .chip{ border-radius:12px; padding:10px 16px; min-height:44px; height:auto; white-space:normal; text-align:left; line-height:1.4; }
.chipreveal .chipq{ margin:0 0 14px; padding:0 0 0 14px; border-left:2px solid var(--line); }
/* 2026-11-11 (H10 r2): this run's in-memory result above the book lines, and a fields result */
.ephrun{ margin:0 0 18px; }
.fcres{ margin:14px 0 0; }
/* 2026-11-14 (H10 r3): step.sections (one disclosure per movement), the example fill button, the kept boundary above the book example */
.psections{ margin:4px 0 12px; }
.psections .psec{ margin:0 0 4px; }
.psections .psec[open]{ margin:0 0 12px; }
.useexrow{ margin:4px 0 10px; }
.useex{ min-height:44px; }
.selbound{ margin:0 0 14px; }
.bookexlbl{ margin:0 0 8px; }
