/* W01: the shared pieces of the version-B screens (docs/design/web-funnel-b/prototype.html): step header, hero photo,
   value cards, primary / ghost buttons, trust lines, the placeholder every W card replaces. Logical properties only.
   Sizes are rem-based (tokens.css: 1rem = 20px x --text-scale); nothing visible goes below 1rem. */

/* Step header: back button + "שלב n מתוך N" + progress dots (prototype .hdr / .step / .dots) */
.hdr { display: flex; align-items: center; gap: var(--space-3); min-block-size: var(--target-min); }
.hdr .back {
  inline-size: var(--target-min); block-size: var(--target-min); border-radius: 50%; border: 0;
  /* W117: design-v2's 36px round back button, drawn inside the 48px tap area */
  background: radial-gradient(circle, var(--back-bg) 0 17.5px, transparent 18px); color: var(--title-ink); display: grid; place-items: center; flex: none; padding: 0; cursor: pointer;
}
.hdr .back[disabled] { visibility: hidden; }
.hdr .back svg { inline-size: 1.2rem; block-size: 1.2rem; }
[dir="ltr"] .hdr .back svg { transform: scaleX(-1); }
.hdr .step { font-size: var(--fs-soft); font-weight: 600; color: var(--lead-ink); background: var(--step-bg); border-radius: 999px; padding: 5px 11px; box-shadow: var(--step-shadow); line-height: 1.3; } /* W117: the step pill */
.hdr .dots { margin-inline-start: auto; display: flex; gap: 4px; }
.hdr .dots i { inline-size: 7px; block-size: 7px; border-radius: 9px; background: var(--dot); }
.hdr .dots i.on { inline-size: 20px; background: var(--dot-on); }
.hdr .dots i.done { background: var(--dot-past); }

/* App bar (inside the home-screen app: logo + brand) */
.appbar { display: flex; align-items: center; gap: var(--space-3); }
.appbar .logo { inline-size: 40px; block-size: 40px; border-radius: 12px; background: var(--teal-c); color: var(--teal); display: grid; place-items: center; font-weight: 700; }
.appbar strong { font-size: var(--fs-base); color: var(--navy-deep); }

/* Type */
.screen h1 { color: var(--title-ink); font-weight: var(--fw-title); } /* W117: 27px / 800 navy (base.css h1) */
.screen h2 { color: var(--navy); font-weight: 700; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--lead-ink); margin: 0; } /* W117: 16.5px */
/* W64b: a phone number in a lead (verify / restore-code <bdi dir=ltr>) never breaks at its hyphens */
.lead bdi { white-space: nowrap; }
.small { font-size: var(--fs-sm); color: var(--ink2); margin: 0; text-align: center; line-height: 1.5; }

/* Pill + cards (prototype .pill / .card / .vcard / .ico) */
.pill { background: var(--brand-pill); border: 0; color: var(--brand-pill-ink); font-size: 0.725rem; font-weight: 600; gap: 6px; padding-block: 7px; padding-inline: 14px; } /* W117: the brand pill */
.pill.soft { background: var(--mint-tint); }
.card { background: var(--card-bg); border: 1.5px solid var(--card-line); border-radius: var(--card-radius); box-shadow: var(--card-shadow); padding: var(--space-4); } /* W117 */
.vcard { display: flex; gap: var(--space-4); align-items: flex-start; }
.ico { inline-size: var(--tile-size); block-size: var(--tile-size); border-radius: var(--tile-radius); display: grid; place-items: center; flex: none; font-size: var(--fs-lg); } /* W117: the icon tile */
.ico.teal { background: var(--tile-mint); color: var(--tile-mint-ink); }
.ico.peach { background: var(--tile-peach); color: var(--tile-peach-ink); }
.ico.sky { background: var(--tile-blue); color: var(--tile-blue-ink); }
.ico.lilac { background: var(--tile-lilac); color: var(--tile-lilac-ink); }
.ico.grey { background: var(--high); color: var(--ink2); }
.vcard h3 { margin: 0; font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.vcard p { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink2); }

/* Hero photo with a caption chip */
.hero { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); flex: none; background: linear-gradient(135deg, #f3e2cc, #e8cfb0); /* W21a: a warm placeholder while the photo loads, never a grey box */ }
.hero img { inline-size: 100%; block-size: 175px; object-fit: cover; display: block; }
.hero.tall img { block-size: 230px; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--gradient-hero); }
.hero .float { position: absolute; z-index: 1; inset-block-end: 12px; inset-inline: 12px; display: flex; justify-content: center; }
.hero .float span { display: inline-flex; align-items: center; gap: var(--space-2); background: rgba(255, 255, 255, 0.95); padding: 9px 14px; border-radius: 99px; font-size: var(--fs-sm); font-weight: 600; color: var(--teal); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }

/* Buttons: .btn-primary is the prototype .cta (navy, 60px); .ghost the quiet text button */
.btn { border-radius: 18px; font-size: var(--fs-base); font-weight: 600; }
/* W117: the v2 CTA (design-v2 .cta): navy gradient, 18px radius, 20px / 700 */
.btn-primary { background: var(--cta-grad); color: #ffffff; box-shadow: var(--cta-shadow); border-radius: var(--cta-radius); font-size: var(--fs-cta); font-weight: 700; }
.btn-primary:disabled { background: #b9c0cc; box-shadow: none; cursor: default; }
.ghost { background: none; border: 0; min-block-size: var(--target-min); inline-size: 100%; font-size: var(--fs-sm); font-weight: 600; color: var(--ghost-ink); cursor: pointer; }
/* W117: a full-width ghost in the action bar is design-v2's white outlined button (.ghost); inline ones stay quiet links */
.screen__actions > .ghost { background: #ffffff; border: 1.5px solid var(--ghost-line); border-radius: var(--cta-radius); font-size: var(--fs-ghost); }
.trust { display: flex; align-items: center; justify-content: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--ink2); text-align: center; }
.trustfoot { font-size: var(--fs-sm); color: var(--ink2); text-align: center; line-height: 1.6; }
.trustfoot a { color: var(--teal); font-weight: 600; }

/* Banner (prototype .banner) */
.banner { display: flex; gap: var(--space-3); align-items: center; background: var(--mint-tint); border-radius: 16px; padding: var(--space-4); font-size: var(--fs-sm); line-height: 1.5; color: var(--mint-ink); } /* W117: the mint hint */

/* Placeholder screens (W01): one per screen id until its card fills it */
.placeholder { border: 2px dashed var(--line); border-radius: 20px; padding: var(--space-4); color: var(--ink2); font-size: var(--fs-sm); }
.placeholder code { font-family: inherit; font-size: inherit; color: var(--teal); font-weight: 600; }

/* Home tab bar inside the webapp (home.css styles the bar; colours follow the version-B palette) */
.tabbar { background: var(--card); border-block-start: 1px solid var(--line); }
.tabbar .tab { color: var(--ink2); font-size: var(--fs-sm); }
.tabbar .tab-on { color: var(--teal); }

/* Context flag for review: a thin line only in a browser tab, never inside the home-screen app */
html[data-context="web"] .ctx-note { display: block; }
.ctx-note { display: none; }

/* W02: welcome / moments / meet (prototype .cta arrow, .trustfoot links, .moment, .hint, .neighbors / .nb) */
.btn-primary.cta { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-block-size: var(--btn-height); inline-size: 100%; }
.cta .cta-arrow { inline-size: 1.2rem; block-size: 1.2rem; flex: none; }
[dir="ltr"] .cta .cta-arrow { transform: scaleX(-1); }
[dir="ltr"] .cta-fwd svg { transform: scaleX(-1); } /* W128: buttons that carry an arrow_back slot without .cta */
.icon { display: inline-block; flex: none; vertical-align: middle; }
.icon-sm { inline-size: 1rem; block-size: 1rem; }
.icon-md { inline-size: 1.3rem; block-size: 1.3rem; }
.icon-lg { inline-size: 1.6rem; block-size: 1.6rem; }
.icon-xl { inline-size: 2.2rem; block-size: 2.2rem; }
.trust .icon { color: var(--teal); }
.trustfoot .trustlink { display: inline-flex; align-items: center; min-block-size: var(--target-min); }
.moments { display: flex; flex-direction: column; gap: var(--space-3); }
.moment { inline-size: 100%; display: flex; align-items: center; gap: 12px; text-align: start; border: 1.5px solid var(--card-line); cursor: pointer; font-family: inherit; color: var(--ink); }
.moment .txt { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.moment .txt strong { font-size: var(--fs-row); font-weight: 600; }
.moment .txt small { font-size: var(--fs-sm); color: var(--ink2); }
.moment .check { margin-inline-start: auto; inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--high); display: grid; place-items: center; color: #ffffff; flex: none; font-size: var(--fs-sm); }
.moment[aria-checked="true"] { border-color: var(--mint); background: var(--mint-bg); }
.moment[aria-checked="true"] .check { background: var(--tick); }
.moment[aria-checked="false"] .check { inline-size: 24px; block-size: 24px; background: #ffffff; border: 2px solid var(--radio-line); }
.moment[aria-checked="false"] .check .icon { visibility: hidden; }
.hint { font-size: var(--fs-sm); color: var(--ink2); text-align: center; margin: 0; }
.hint[hidden] { display: none; }
.neighbors { display: flex; flex-direction: column; gap: var(--space-3); }
.nb { display: flex; align-items: center; gap: var(--space-4); }
.nb .nf { font-size: 46px; line-height: 1; inline-size: 60px; block-size: 60px; border-radius: 18px; background: var(--low); display: grid; place-items: center; flex: none; }
.nb strong { font-size: var(--fs-lg); color: var(--navy); display: block; }
.nb small { font-size: var(--fs-sm); color: var(--ink2); }
/* F2 (review r1): the screen is a scrolling flex column; its blocks keep their height instead of shrinking when the
   content is taller than the screen (the welcome pill was squashed to 16px and, in English, overlapped the title). */
.screen > :is(.pill, h1, .lead, .banner, .card, .moments, .neighbors, .trustfoot) { flex-shrink: 0; }
.trustfoot .nowrap { white-space: nowrap; }
/* W04: report + routine (prototype .phero / .prow2 / .chips2 / .lib / .games / .gm / .radios / .chips / .chanl).
   The prototype's 14-19px labels are raised to the 1rem (20px) floor; layout and colours as in the prototype. */
.phero { background: linear-gradient(150deg, var(--navy), var(--teal)); color: #ffffff; border-radius: 20px; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.phero h1 { color: #ffffff; font-size: var(--fs-xl); line-height: 1.35; margin: 0; }
.res1 { align-self: flex-start; background: rgba(134, 242, 228, 0.2); color: var(--teal-c); font-size: var(--fs-sm); font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips2 .chips2-lbl { font-size: var(--fs-sm); font-weight: 600; }
.chips2 .chip2 { background: rgba(255, 255, 255, 0.16); color: #ffffff; font-size: var(--fs-sm); font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.prow2 { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.45; }
.prow2 .prow2-ico { font-size: var(--fs-lg); flex: none; }
.prow2 b { display: block; font-size: var(--fs-base); color: #ffffff; }
.lib h2 { margin: 0; font-size: var(--fs-lg); color: var(--navy); }
.libsub { margin: 4px 0 12px; font-size: var(--fs-sm); color: var(--ink2); }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.gm { position: relative; background: var(--low); border-radius: 16px; padding: var(--space-3); display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.gm .ico { inline-size: 40px; block-size: 40px; border-radius: 12px; margin-block-end: 4px; font-size: var(--fs-base); }
.gm strong { font-size: var(--fs-sm); color: var(--ink); overflow-wrap: anywhere; }
.gm small { font-size: var(--fs-sm); color: var(--ink2); line-height: 1.3; }
.gm em { align-self: flex-start; margin-block-start: 4px; font-style: normal; font-size: var(--fs-sm); font-weight: 700; background: var(--teal); color: #ffffff; padding: 1px 8px; border-radius: 99px; }
.gm em.p { background: var(--navy); }
.gm.inplan { outline: 2px solid var(--teal); background: #eefaf8; }
.gm.more { background: #ffffff; border: 2px dashed #9aa0a6; }
.gm.more .ico { background: var(--high); color: var(--ink2); }

.routine .hero img { block-size: 130px; }
.radios { display: flex; flex-direction: column; gap: 14px; }
.radio { inline-size: 100%; display: flex; align-items: center; gap: 12px; text-align: start; border: 1.5px solid var(--card-line); position: relative; cursor: pointer; font: inherit; color: inherit; min-block-size: var(--target-min); }
.radio .txt { display: flex; flex-direction: column; gap: 2px; }
.radio .txt strong { font-size: var(--fs-base); font-weight: 600; color: var(--navy); }
.radio .txt small { font-size: var(--fs-sm); color: var(--ink2); }
.radio .dot { margin-inline-start: auto; inline-size: 24px; block-size: 24px; border-radius: 50%; border: 2px solid var(--radio-line); background: #ffffff; display: grid; place-items: center; flex: none; }
.radio[aria-checked="true"] { border-color: var(--mint); background: var(--mint-bg); }
.radio[aria-checked="true"] .dot { inline-size: 26px; block-size: 26px; border-color: var(--tick); background: var(--tick); }
.radio[aria-checked="true"] .dot::after { content: "✓"; color: #ffffff; font-size: var(--fs-sm); font-weight: 700; }
.ribbon { position: absolute; inset-block-start: -11px; inset-inline-end: 14px; background: var(--tick); color: #ffffff; font-size: var(--fs-soft); font-weight: 600; padding: 2px 10px; border-radius: 9px; line-height: 1.3; } /* W117: the "מומלץ" badge */
.routine .sect { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--fs-base); font-weight: 600; color: var(--navy); }
.routine .sect small { margin-inline-start: auto; font-size: var(--fs-sm); font-weight: 500; color: var(--ink2); }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.chip { min-block-size: 72px; border-radius: 16px; border: 1.5px solid var(--card-line); background: var(--card-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; }
.chip b { font-size: var(--fs-base); color: var(--navy); }
.chips.two { grid-template-columns: 1fr 1fr; }
.chips.two .chip { min-block-size: 60px; flex-direction: row; gap: var(--space-2); font-weight: 600; }
.chip[aria-pressed="true"] { border-color: var(--mint); background: var(--mint-bg); }
.chanl { display: flex; gap: var(--space-3); align-items: center; background: #e8f7e2; border-radius: 16px; padding: 12px 14px; font-size: var(--fs-sm); line-height: 1.5; }
.chanl[data-kind="none"] { background: var(--low); }
/* W04 icons (inline SVG, screens/w04-icons.js) */
.report .icon, .routine .icon { inline-size: 1.2rem; block-size: 1.2rem; flex: none; }
.prow2 .prow2-ico { color: var(--teal-c); display: flex; }
.prow2 .prow2-ico .icon { inline-size: 1.3rem; block-size: 1.3rem; }
.gm .ico .icon { inline-size: 1.15rem; block-size: 1.15rem; }
.chip-ico { display: flex; }
.chip-ico-whatsapp { color: #1f8f4e; }
.chip-ico-push { color: var(--teal); }
.chanl .icon { color: #1f8f4e; inline-size: 1.3rem; block-size: 1.3rem; }
.chanl[data-kind="none"] .icon { color: var(--ink2); }
.gm em { border-radius: 12px; line-height: 1.3; }
/* W09: practice session (prototype data-s="sess") and its end screen (data-s="sess-done") */
.sess .sess-h { gap: var(--space-3); }
.sess .back.x { inline-size: var(--target-min); block-size: var(--target-min); border-radius: 50%; border: 0; background: radial-gradient(circle, var(--back-bg) 0 17.5px, transparent 18px); color: var(--title-ink); display: grid; place-items: center; flex: none; padding: 0; cursor: pointer; font-size: var(--fs-base); }
.sess .sess-n { margin-inline-start: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--ink2); }
.sessbar { block-size: 6px; background: var(--high); border-radius: 3px; overflow: hidden; flex: none; }
.sessbar i { display: block; block-size: 100%; background: var(--dot-on); transition: width 0.3s; }
.sess-body { display: flex; flex-direction: column; gap: var(--space-4); }
/* W24b: the practice is framed like W17's screens: the header and the progress stay put, ONE body scrolls between
   them and the action bar (sess.js showFeedback brings an answer's feedback into it); the bar sits below the body. */
.screen.sess { overflow: hidden; }
.sess > .sess-h { flex: none; }
.sess > .sess-body { flex: 0 1 auto; padding-block: 0 var(--space-2); gap: var(--space-4); }
.sess-body h2 { margin: 0; font-size: var(--fs-xl); }
.sess-foot { display: flex; flex-direction: column; gap: var(--space-2); }
.sess .cta { inline-size: 100%; min-block-size: var(--btn-height); }
.qhead { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-base); font-weight: 600; color: var(--navy); }
.qhead i { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--teal); flex: none; }
.sess .qhead::before { content: none; } /* W24: exercise.css draws the same dot with ::before; the practice keeps one (the <i>) */
.opts { display: flex; flex-direction: column; gap: var(--space-3); }
.opt { inline-size: 100%; min-block-size: 64px; display: flex; align-items: center; gap: var(--space-4); text-align: start; border: 1.5px solid var(--card-line); font-size: var(--fs-base); font-weight: 600; color: var(--ink); cursor: pointer; }
.opt .em { font-size: var(--fs-2xl); inline-size: 34px; text-align: center; }
.opt .check { margin-inline-start: auto; inline-size: 30px; block-size: 30px; border-radius: 50%; background: var(--high); display: grid; place-items: center; color: #ffffff; flex: none; font-size: var(--fs-sm); font-weight: 700; }
.opt.right { border-color: var(--mint); background: var(--mint-bg); }
.opt.right .check { background: var(--tick); }
.opt.wrong { border-color: #f1b8b0; background: #fff4f2; }
.opt.wrong .check { background: #c4554a; }
.opt:disabled { cursor: default; opacity: 1; }
.fb { display: flex; gap: var(--space-3); align-items: flex-start; background: var(--mint-tint); border-radius: 18px; padding: var(--space-4); }
.fb .ico { inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--tick); color: #ffffff; font-size: var(--fs-base); font-weight: 700; }
.fb strong { display: block; font-size: var(--fs-base); color: var(--teal); }
.fb p { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: #00403a; }
.fb.miss { background: #fff1e3; }
.fb.miss .ico { background: #b26a00; }
.fb.miss strong { color: #8a5200; }
.fb.miss p { color: #5a3700; }
.bigq { margin: 0; text-align: center; font-size: var(--fs-hero); font-weight: 700; color: var(--navy); }
.stroop-word { font-size: 2.4rem; -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.35); }
/* pairs board: face-up cards show the icon, face-down cards a plain back */
.pgrid { display: grid; gap: var(--space-3); position: relative; }
.pcard { position: relative; aspect-ratio: 1 / 1; min-block-size: 56px; padding: var(--space-2); display: flex; align-items: center; justify-content: center; border: 3px solid var(--line); border-radius: 16px; background: #f4f7fb; cursor: pointer; }
.pcard svg { inline-size: 100%; block-size: 100%; }
.pcard.down { background: #2a4a73; border-color: #a9c8ee; }
/* W21a: the marked card - a yellow ring and a "זו" tag, never mistaken for a plain face-up card */
.pcard.marked { border-color: #f2b705; border-width: 5px; box-shadow: 0 0 0 4px #fff1b8; }
.ptag { position: absolute; inset-block-start: -14px; inset-inline-start: 50%; transform: translateX(50%); background: #f2b705; color: #2b2100; font-size: var(--fs-sm); font-weight: 700; line-height: 1; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
[dir="ltr"] .ptag { transform: translateX(-50%); }
.phint { margin: 0; font-size: var(--fs-base); font-weight: 600; color: #6b5200; background: #fff6d6; border-radius: 14px; padding: var(--space-2) var(--space-3); }
.pcard.right { border-color: var(--teal); background: #e6f6f3; box-shadow: none; }
.pcard.found { animation: ppulse 0.5s ease-out 1; }
.pcard.wrong { border-color: #8a94a0; background: #eef1f4; }
.pcard:disabled { cursor: default; }
.pbadge { position: absolute; inset-block-start: -12px; inset-inline-end: -12px; inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center; color: #ffffff; border: 3px solid #ffffff; }
.pbadge.ok { background: var(--teal); }
.pbadge.no { background: #6b7480; }
.pbadge .icon-slot, .pbadge svg { inline-size: 22px; block-size: 22px; }
.ptoast { position: absolute; inset-inline: 0; inset-block-start: 50%; margin-inline: auto; transform: translateY(-50%); inline-size: max-content; max-inline-size: 90%; background: var(--teal); color: #ffffff; font-size: var(--fs-xl); font-weight: 700; padding: var(--space-3) var(--space-5, 24px); border-radius: 99px; box-shadow: 0 6px 20px rgba(0, 40, 36, 0.3); pointer-events: none; animation: ptoast 0.25s ease-out 1; }
.pcard.wiggle { animation: pwiggle 0.45s ease-in-out 1; }
.pcard.shake { animation: pshake 0.4s ease-in-out 1; }
@keyframes ppulse { 0% { transform: scale(1); } 45% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes ptoast { from { opacity: 0; transform: translateY(-40%) scale(0.9); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes pwiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes pshake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .pcard.found, .pcard.wiggle, .pcard.shake, .ptoast { animation: none; } }
/* facesnames: faces with their names (look), one face to name (ask) */
.faces { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
.face { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.face img { inline-size: 7rem; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; display: block; }
.faces.one .face img { inline-size: 9rem; }
.face figcaption { font-size: var(--fs-xl); font-weight: 700; color: var(--ink); }
/* W24: the practice's neighbour (meet), the face large and the name as the heading; the recall reuses .faces.one */
.meet1 { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; }
.meet1 .meet-face img { inline-size: min(11rem, 46vw); border-radius: 20px; }
.meet1 h2 { font-size: var(--fs-3xl); }
/* W57c r6: the body fills the room between the header and the bar and centres what it holds (safe: an overflow keeps
   its top); the answer's feedback card lives in the bar's slot above the button (sess.js), over the skip link */
.sess > .sess-body { flex: 1 1 auto; justify-content: safe center; }
.sess-fbslot { position: relative; display: flex; align-items: center; justify-content: center; }
.sess-fbslot > .ghost { inline-size: auto; }
.sess-fbslot > .fb:not([data-fit-probe]) { position: absolute; inset: 0; align-items: center; }
.sess-fbslot > .phint:not([hidden]) { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; }
/* W57c r5: every game step to its room (sess/fit.js sets these on the body; unset = the look as before) */
.fit-scope .opts { gap: var(--fit-gap, var(--space-3)); }
.fit-scope .opt { min-block-size: var(--fit-opt, 64px); }
.fit-scope[style*="--fit-opt"] .opt { padding-block: 0; block-size: var(--fit-opt); }
.fit-scope[data-fit-cols="2"] .opts { display: grid; grid-template-columns: 1fr 1fr; }
.fit-scope[data-fit-cols="3"] .opts { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.fit-scope[data-fit-cols="3"] .opt { position: relative; justify-content: center; text-align: center; padding-inline: var(--space-2); }
.fit-scope[data-fit-cols="3"] .opt .check { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; inline-size: 22px; block-size: 22px; }
.fit-scope[data-fit-cols="3"] .opt:not(.right):not(.wrong) .check { visibility: hidden; } /* three short names in a row: the mark only once answered */
.fit-scope[data-fit-cols="2"] .opt { justify-content: center; text-align: center; }
.fit-scope[data-fit-cols="2"] .opt .check { position: absolute; inset-inline-end: 10px; }
.fit-scope[data-fit-cols="2"] .opt { position: relative; }
.fit-scope .faces .face img { inline-size: calc(7rem * var(--fit-stage, 1)); }
.fit-scope .faces.one .face img { inline-size: calc(9rem * var(--fit-stage, 1)); }
.fit-scope[data-fit-tall] .faces .face img { aspect-ratio: 3 / 4; } /* W57c r6: the faces to learn, portrait, when one row of three leaves height free */
.fit-scope .bigq { font-size: calc(var(--fs-hero) * var(--fit-stage, 1)); }
.fit-scope .bigq.stroop-word { font-size: calc(2.4rem * var(--fit-stage, 1)); }
.fit-scope[style*="--fit-card"] .pcard { aspect-ratio: auto; block-size: var(--fit-card); }
/* W57c r7: the onboarding exercises (sess/fit.js fitExercise): the body centres what it holds; the stage = the face
   (faces), the room's photos (story), the neighbours' faces (meet); answer rows with a photo (q2) let it grow */
.screen__body.fit-scope { justify-content: safe center; }
.fit-scope[style*="--fit-stage"] .meet1 .meet-face img { inline-size: min(calc(11rem * var(--fit-stage)), 100%); } /* W57c r8: the practice's meet */
.fit-scope[style*="--fit-stage"] .bigface { inline-size: calc(140px * var(--fit-stage)) !important; block-size: calc(140px * var(--fit-stage)) !important; }
.fit-scope[style*="--fit-stage"] .room .card .ph { inline-size: min(calc(72px * var(--fit-stage)), 100%); block-size: auto; aspect-ratio: 1 / 1; } /* never wider than its card */
.fit-scope[style*="--fit-stage"] .nb .nf { inline-size: calc(60px * var(--fit-stage)); block-size: calc(60px * var(--fit-stage)); }
.fit-scope[style*="--fit-opt"] .opt .opt-ph { inline-size: calc(var(--fit-opt) - 16px); block-size: calc(var(--fit-opt) - 16px); }
.fit-scope[data-fit-room="4"] .room { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fit-scope[data-fit-room="4"] .room .card { padding: 10px 4px; }
.fit-scope[data-fit-tight] { gap: var(--space-2); padding-block-start: var(--space-2); }
.fit-scope[data-fit-tight] .ex-body, .fit-scope[data-fit-tight] .neighbors, .fit-scope[data-fit-tight] .opts { gap: var(--space-2); }
.fit-scope[data-fit-tight] .nb, .fit-scope[data-fit-tight] .room .card { padding-block: 10px; }
.fit-scope[data-fit-tight] .lead { line-height: 1.35; }
.ex-fbslot { position: relative; display: flex; align-items: center; justify-content: center; }
.ex-fbslot > .fb:not([hidden]):not([data-fit-probe]) { position: absolute; inset: 0; align-items: center; }
/* sequences keeps its module render(): map its dark-theme variables onto the version-B palette */
.game-area { --primary: var(--teal); --card: #ffffff; --foreground: var(--ink); --muted-foreground: var(--ink2); }
.game-area button { font-family: inherit; }
/* W57c r4: the squares fill the room under the instruction (sess/games.js fitSquares sets --seq-side), rounded, the
   module's inline lit look kept; a tapped square shows that same lit look briefly; a wrong tap is grey + calm, the
   square that was due gets a dashed teal outline. The module sets its look inline, hence !important here. */
.game-area[data-kind="positions"] .sequences-grid { gap: var(--seq-gap, 14px) !important; margin-block-start: var(--space-2); }
.game-area[data-kind="positions"] .sequences-cell { inline-size: var(--seq-side, auto); block-size: var(--seq-side, auto); border-radius: 22px !important; box-shadow: 0 2px 8px rgba(0, 40, 36, 0.08); transition: background-color 120ms ease-out, border-color 120ms ease-out; }
.game-area .sequences-cell.seq-tap { background: var(--teal) !important; border-color: var(--ink) !important; border-width: 5px !important; }
.game-area .sequences-cell.seq-miss { background: var(--high) !important; border-color: var(--ink2) !important; }
.game-area .sequences-cell.seq-due { border-color: var(--teal) !important; border-style: dashed !important; border-width: 4px !important; }
.game-area .sequences-status { font-size: var(--fs-lg) !important; font-weight: 600; color: var(--ink) !important; }
/* W57c r8: the instruction always holds two lines (watch -> repeat changes its text), so the centred grid never moves */
.fit-scope .game-area .sequences-status { min-block-size: calc(2 * 1.35em); line-height: 1.35; display: flex; align-items: center; justify-content: center; }
.fit-scope .game-area[data-kind="digits"] .sequences-cell { inline-size: var(--seq-side, auto); block-size: var(--seq-side, auto); min-block-size: 0 !important; min-inline-size: 0 !important; }
/* the big digit's box keeps its place once the repeat starts (the module hides it), so the keypad under it never moves */
.fit-scope .game-area[data-kind="digits"] .sequences-show { display: block !important; min-block-size: 64px !important; font-size: 56px !important; line-height: 64px !important; }
.fit-scope .game-area[data-kind="digits"] .sequences-cell { padding: 0; }
.fit-scope .meet1 .meet-face img { aspect-ratio: 1 / 1; object-fit: cover; } /* its height is known before the photo loads (the fit measures it) */
.fit-scope[data-fit-tall] .meet1 .meet-face img { aspect-ratio: 3 / 4; object-fit: cover; }
/* sess-done */
.yay { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; padding-block-start: var(--space-2); }
.yay .big { inline-size: 84px; block-size: 84px; border-radius: 50%; background: var(--teal-c); color: var(--teal); display: grid; place-items: center; font-size: 2rem; }
.yay h2 { margin: 0; font-size: var(--fs-3xl); }
.rep { display: flex; flex-direction: column; gap: var(--space-3); }
.rep .vcard h3 { font-size: var(--fs-base); }
.rep .ico { font-size: var(--fs-base); font-weight: 700; }
/* W21b: rows say what happened: a green check for right, a soft grey mark for missed / skipped; no red, no per-game
   colours, no minutes ring. The count line, and an outlined second button (one filled button per screen). */
.yay .big.sd-quiet { background: var(--high); color: var(--ink2); }
.yay .sd-name { margin: 0; font-size: var(--fs-lg); font-weight: 600; color: var(--teal); } /* W28: "כל הכבוד, רותי" */
.sd-rows { gap: var(--space-2); }
.sd-row { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-3); }
.sd-mk { inline-size: 36px; block-size: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--high); color: #8a929c; }
.sd-mk.ok { background: var(--teal); color: #ffffff; }
.sd-mk .icon { inline-size: 1.1rem; block-size: 1.1rem; }
.sd-line { font-size: var(--fs-base); font-weight: 600; color: var(--ink); line-height: 1.4; }
.sd-count { text-align: center; font-size: var(--fs-base); font-weight: 600; color: var(--navy); }
.btn-line { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; line-height: 1.3; }
/* W21b: X in a session -> a small sheet over the bottom ("לעצור כאן?" [להמשיך] [לצאת]) */
.sess-stop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 21, 47, 0.35); display: flex; align-items: flex-end; justify-content: center; padding: var(--space-4); padding-block-end: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); }
.sess-stop-card { inline-size: 100%; max-inline-size: 30rem; background: var(--card); border-radius: 20px; padding: var(--space-5); display: grid; gap: var(--space-3); text-align: center; box-shadow: 0 -2px 18px rgba(0, 21, 47, 0.18); }
.sess-stop-card h2 { margin: 0; text-align: center; font-size: var(--fs-xl); color: var(--navy); }
.sess-stop-card p { margin: 0; font-size: var(--fs-base); color: var(--ink2); }
.sess-stop-card .btn { inline-size: 100%; min-block-size: var(--btn-height); }
/* W09 icons (inline SVG via icon(name), no icon font) */
.icon { inline-size: 1.2rem; block-size: 1.2rem; display: block; }
.sess .back.x .icon { inline-size: 1.1rem; block-size: 1.1rem; }
.opt .check .icon { inline-size: 1rem; block-size: 1rem; }
.fb .ico .icon { inline-size: 1.1rem; block-size: 1.1rem; }
.rep .ico .icon { inline-size: 1.3rem; block-size: 1.3rem; }
.yay .big .icon { inline-size: 2.2rem; block-size: 2.2rem; }
.appbar .logo .icon { inline-size: 1.3rem; block-size: 1.3rem; }
[dir="ltr"] .icon-arrow { transform: scaleX(-1); }
/* W05: join / st-declined / verify / done (prototype .tl .plans .plan .today .field .seg .code .yay .legal) */
.w5-ic { inline-size: 1.1em; block-size: 1.1em; flex: none; }
.w5-cta { display: flex; align-items: center; justify-content: center; gap: var(--space-3); inline-size: 100%; min-block-size: var(--btn-height); border: 0; cursor: pointer; }
.w5-cta .w5-arrow { inline-size: 1.1rem; block-size: 1.1rem; }
[dir="ltr"] .w5-cta .w5-arrow { transform: scaleX(-1); }
.w5-center { text-align: center; }
.w5 .pill { flex: none; align-self: flex-start; display: inline-flex; align-items: center; border-radius: 99px; }
.w5 .yay .pill { align-self: center; }
.w5 .sect { font-size: var(--fs-lg); font-weight: 600; color: var(--navy); }
.w5 .tl { display: flex; flex-direction: column; position: relative; padding-inline-start: 6px; }
.w5 .tl > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; position: relative; padding-block-end: 14px; }
.w5 .tl > div:last-child { padding-block-end: 0; }
.w5 .tl > div:not(:last-child)::before { content: ""; position: absolute; inset-block: 34px 0; inset-inline-start: 16px; inline-size: 3px; background: var(--teal-c); }
.w5 .tl .n { inline-size: 34px; block-size: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #ffffff; grid-row: span 2; }
.w5 .tl .n.grey { background: var(--high); color: var(--ink2); }
.w5 .tl .n .w5-ic { inline-size: 18px; block-size: 18px; }
.w5 .tl strong { font-size: var(--fs-base); color: var(--navy); display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.w5 .tl .b { font-size: var(--fs-sm); font-weight: 700; padding: 0 10px; border-radius: 99px; background: var(--teal-t); color: var(--teal); }
.w5 .tl .b.peach { background: var(--peach); color: var(--peach-ink); }
.w5 .tl p { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink2); }
.w5 .plans { display: flex; flex-direction: column; gap: 12px; padding-block-start: 12px; }
.w5 .plan { inline-size: 100%; text-align: start; border: 2px solid transparent; position: relative; display: flex; flex-direction: column; gap: 8px; font: inherit; color: inherit; cursor: pointer; }
.w5 .plan[aria-checked="true"] { border: 2px solid var(--mint); background: var(--mint-bg); }
.w5 .plan .row { display: flex; align-items: center; gap: 10px; }
.w5 .plan .row strong { font-size: var(--fs-lg); color: var(--navy); }
.w5 .plan .sub { font-size: var(--fs-sm); color: var(--ink2); }
.w5 .plan .price { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); background: var(--low); border-radius: 12px; padding: 10px 12px; }
.w5 .plan .price b { font-size: var(--fs-2xl); color: var(--navy); white-space: nowrap; }
.w5 .plan .price span { font-size: var(--fs-sm); color: var(--teal); font-weight: 600; }
.w5 .plan .dot { margin-inline-start: auto; inline-size: 28px; block-size: 28px; border-radius: 50%; border: 2px solid #74777f; display: grid; place-items: center; flex: none; }
.w5 .plan[aria-checked="true"] .dot { background: var(--tick); border-color: var(--tick); }
.w5 .plan[aria-checked="true"] .dot::after { content: "✓"; color: #ffffff; font-size: 1rem; font-weight: 700; line-height: 1; }
.w5 .ribbon { position: absolute; inset-block-start: -11px; inset-inline-end: 14px; background: var(--tick); color: #ffffff; font-size: var(--fs-soft); font-weight: 600; padding: 2px 10px; border-radius: 9px; } /* W117: the "מומלץ" badge */
.w5 .today { display: flex; justify-content: space-between; align-items: center; background: var(--high); border-radius: 16px; padding: 14px 16px; font-size: var(--fs-base); font-weight: 600; color: var(--navy); }
.w5 .today b { color: var(--teal); }
.w5-pay, .w5-cardbox { display: flex; flex-direction: column; gap: 12px; }
.w5-pay .w5-cardbox[hidden] { display: none; }
.w5-field label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); margin-block-end: 6px; }
.w5-in { inline-size: 100%; box-sizing: border-box; min-block-size: 54px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); padding: 0 14px; font: inherit; font-size: var(--fs-lg); color: var(--ink); text-align: left; direction: ltr; }
.w5-in::placeholder { color: var(--ink2); opacity: 0.8; }
.w5-in:focus { outline: none; border-color: var(--ghost-ink); box-shadow: 0 0 0 3px #1d3d8a22; }
.w5-in[aria-invalid="true"] { border-color: var(--bad); }
/* W50: the country picker before the phone input (>= 16px: iOS zooms below that) and the code channel line + switch */
.w50-row { display: flex; gap: 8px; align-items: stretch; }
.w50-row > input { flex: 1 1 auto; min-inline-size: 0; }
.w50-cc { flex: 0 0 auto; min-block-size: 54px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); padding: 0 6px; font: inherit; font-size: max(16px, var(--fs-lg)); color: var(--ink); }
.w50-cc:focus { outline: none; border-color: var(--teal); }
.w50-chan { margin-block: 8px 0; color: var(--ink2); }
.w5-links .w50-sep { align-self: center; color: var(--ink2); }
.w50-chan .w50-switch { display: inline; inline-size: auto; min-block-size: var(--target-min); padding: 0; color: var(--teal); text-decoration: underline; font-size: inherit; }
.w5-err { margin: 6px 0 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--bad); }
.w5-err[hidden] { display: none; }
/* W28 r2: the optional first-name field on `done`, above the CTA: the join field look (own rules, no forced LTR): the text
   runs in its own direction (dir="auto": Hebrew right-to-left, a Latin name left-to-right). >= 16px (iOS zoom). */
.nm-field { display: grid; gap: 6px; }
.nm-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.nm-head label { font-size: var(--fs-base); font-weight: 600; color: var(--navy); }
.nm-skip { border: 0; background: none; padding: 6px 2px; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nm-in { inline-size: 100%; box-sizing: border-box; min-block-size: 52px; border-radius: 14px; background: var(--card); border: 2px solid var(--line); padding: 0 14px; font: inherit; font-size: max(16px, var(--fs-lg)); color: var(--ink); text-align: start; }
.nm-in::placeholder { color: var(--ink2); opacity: 0.8; }
.nm-in:focus { outline: none; border-color: var(--teal); }
/* the field in the bar takes room: done keeps its photo, title and reminder line in view by a smaller photo and mark,
   and on short phones (390x664) without the mark (the confetti celebrates) */
main[data-screen="done"] .hero.tall img { block-size: 150px; }
main[data-screen="done"] .yay .big { inline-size: 64px; block-size: 64px; }
@media (max-height: 700px) { main[data-screen="done"] .yay .big { display: none; } main[data-screen="done"] .hero.tall img { block-size: 130px; } }
.w5 .row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.w5 .row3.w58-row { grid-template-columns: 1fr 1.3fr 1.2fr; } /* W58: MM / YYYY / CVV while Sumit is live */
.w5 .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--high); border-radius: 14px; padding: 5px; }
.w5 .seg button { min-block-size: 50px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ink2); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.w5 .seg button[aria-pressed="true"] { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.w5 .legal { margin: 0; font-size: var(--fs-sm); color: var(--ink2); text-align: center; line-height: 1.5; }
.w5 .legal a { color: var(--teal); }
.w5 .trust .w5-ic { color: var(--teal); }
.w5 .yay { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.w5 .yay .big { inline-size: 84px; block-size: 84px; border-radius: 50%; background: var(--teal-c); color: var(--teal); display: grid; place-items: center; }
.w5 .yay .big .w5-ic { inline-size: 44px; block-size: 44px; }
.w5 .yay .big.warnc { background: #ffe2c2; color: #8a5200; }
.w5-code { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; direction: ltr; }
.w5-code span { block-size: 58px; border-radius: 12px; background: var(--card); border: 2px solid #9aa0a6; display: grid; place-items: center; font-size: var(--fs-2xl); font-weight: 600; color: var(--navy); }
.w5-code span.f { border-color: var(--teal); }
.w5-code span.cur { border-color: var(--ghost-ink); box-shadow: 0 0 0 3px #1d3d8a22; }
/* W64: opacity 1 (not 0) so Android's autofill / the keyboard's code chip treat it as a visible field; the text itself is
   transparent (the six boxes draw the digits), and so are a selection and Chrome's autofill tint */
.w5-codein { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 1; border: 0; padding: 0; font-size: 1rem; color: transparent; -webkit-text-fill-color: transparent; background: transparent; caret-color: transparent; outline: none; }
.w5-codein::selection { background: transparent; color: transparent; }
.w5-codein:-webkit-autofill, .w5-codein:autofill { -webkit-text-fill-color: transparent; -webkit-box-shadow: 0 0 0 100px transparent inset; box-shadow: 0 0 0 100px transparent inset; transition: background-color 9999s; }
.w5-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.w5-links .w5-inline { inline-size: auto; padding-inline: var(--space-2); }
.w5 .appbar .logo .w5-ic { inline-size: 24px; block-size: 24px; }
/* W05 round 2 (Manager 02/11 c): the CVV label wraps at 390 px; both labels take two lines and sit on their box, so the expiry and CVV boxes line up */
.w5 .row3 label { line-height: 1.3; min-block-size: 2.6em; display: flex; align-items: flex-end; }
.w5 > .legal, .w5 > .trust { flex: none; }

/* W06b: the iPhone screens pwa-add / ios-home / ios-login / restore / restore-code (prototype .howto3 / .sbar /
   .launcher / .field / .code), adapted from the W06 WIP sheet with the w6b- prefix. Nothing visible below 1rem. */
.w6b .w6b-center { text-align: center; }
.w6b-steps { display: grid; gap: var(--space-3); }
.w6b-step { display: flex; align-items: center; gap: var(--space-3); }
.w6b-num { inline-size: 36px; block-size: 36px; border-radius: 50%; background: var(--navy); color: #ffffff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: var(--fs-sm); }
.w6b-txt { flex: 1; font-size: var(--fs-base); line-height: 1.45; color: var(--ink); }
.w6b-pill { display: inline-flex; align-items: center; align-self: flex-start; flex: none; border-radius: 16px; line-height: 1.4; }
.w6b-sbar { display: flex; align-items: center; justify-content: space-around; background: var(--high); border-radius: 16px; padding: var(--space-3); color: var(--ink2); flex: none; }
.w6b-sbar > span { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 12px; }
.w6b-sbar .w6b-hl { background: #ffe066; color: var(--ink); box-shadow: 0 0 0 3px #ffd43b; }
.w6b-sbar .w6b-addr { flex: 1; block-size: 32px; background: var(--card); border-radius: 10px; margin-inline: var(--space-3); }
[dir="ltr"] .w6b-sbar [data-icon="arrow_back_ios"] svg, [dir="ltr"] .w6b-sbar [data-icon="arrow_forward_ios"] svg { transform: scaleX(-1); }
.w6b-launcher { background: linear-gradient(160deg, #1e3c72, #2a5298 55%, #6a8fd8); border-radius: 28px; padding: var(--space-4); color: #ffffff; flex: none; }
.w6b-status { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); font-weight: 600; padding-block-end: var(--space-3); }
.w6b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-2); }
.w6b-ai { display: grid; justify-items: center; gap: var(--space-1); background: none; border: 0; color: #ffffff; padding: 0; font: inherit; font-size: var(--fs-sm); min-block-size: var(--target-min); }
button.w6b-ai { cursor: pointer; }
.w6b-ait { inline-size: 60px; block-size: 60px; border-radius: 16px; display: grid; place-items: center; color: #ffffff; }
.w6b-me .w6b-ait { background: var(--teal-c); color: var(--teal); box-shadow: 0 0 0 3px #ffe066; }
.w6b-ain { font-size: var(--fs-sm); line-height: 1.2; text-align: center; }
.w6b-tip { font-weight: 600; }
.w6b-yay { display: grid; place-items: center; flex: none; }
.w6b-yay .ico { inline-size: 88px; block-size: 88px; border-radius: 50%; }
.w6b-yay .ico .icon { inline-size: 44px; block-size: 44px; }
.w6b-field { display: grid; gap: var(--space-2); }
.w6b-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.w6b-in { inline-size: 100%; box-sizing: border-box; min-block-size: 56px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); padding-inline: var(--space-4); font: inherit; font-size: var(--fs-lg); color: var(--ink); text-align: left; direction: ltr; }
.w6b-in:focus { outline: none; border-color: var(--teal); }
.w6b-err { margin: 0; background: var(--bad-t); color: var(--bad); border-radius: 14px; padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); line-height: 1.5; }
.w6b-err[hidden] { display: none; }
.w6b-sect { font-size: var(--fs-sm); font-weight: 600; color: var(--ink2); }
.w6b-rowbtn { inline-size: 100%; border: 0; text-align: start; cursor: pointer; font: inherit; }
.w6b-code { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; direction: ltr; flex: none; }
.w6b-f { block-size: 58px; border-radius: 12px; background: var(--card); border: 2px solid #9aa0a6; display: grid; place-items: center; font-size: var(--fs-2xl); font-weight: 600; color: var(--navy); }
.w6b-f.w6b-on { border-color: var(--teal); }
.w6b-f.w6b-cur { border-color: var(--navy); }
/* W64: opacity 1 (not 0) so Android's autofill / the keyboard's code chip treat it as a visible field; the text itself is
   transparent (the six boxes draw the digits), and so are a selection and Chrome's autofill tint */
.w6b-codein { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 1; border: 0; padding: 0; font-size: 1rem; color: transparent; -webkit-text-fill-color: transparent; background: transparent; caret-color: transparent; outline: none; }
.w6b-codein::selection { background: transparent; color: transparent; }
.w6b-codein:-webkit-autofill, .w6b-codein:autofill { -webkit-text-fill-color: transparent; -webkit-box-shadow: 0 0 0 100px transparent inset; box-shadow: 0 0 0 100px transparent inset; transition: background-color 9999s; }
.w6b-pill { white-space: normal; max-inline-size: 100%; box-sizing: border-box; text-align: start; }
.w6b-pill > span { min-inline-size: 0; flex: 1 1 auto; }
/* W17: a long pill (faces "תרגיל 2 מתוך 2 · זוכרים את השכנים?" at 390 px, any pill at text size 1.3) wraps inside its box */
.screen .pill { max-inline-size: 100%; text-wrap: balance; }
.screen .pill > span:last-child { flex-shrink: 1; min-inline-size: 0; overflow-wrap: anywhere; }
/* W17 round 2 (F3): a link inside running text is one box, never split over two lines, so a tap on what you see of it
   (and on its centre) lands on the link and not on the paragraph around it (join's terms / privacy line) */
.screen__body p a[href] { display: inline-block; padding-block: 0.15em; }
/* W12 gallery fix: a screen's programmatic focus target (tabIndex -1: the title / the sess counter, see each render's
   return) is not a control, so no focus ring, like base.css h1:focus. Keyboard focus on controls keeps :focus-visible. */
[tabindex="-1"]:focus { outline: none; }

/* W20 (Elad 3/11, fold audit option A): every screen at the prototype's type sizes (tokens.css), the prototype's
   19px labels on cards and buttons, and a soft fade at the bottom of a scrolling body instead of the hard edge line
   over a half-cut card. */
.vcard h3 { font-size: var(--fs-lg); }
.btn { font-size: var(--fs-lg); }
.btn-primary { font-size: var(--fs-cta); } /* W117: the v2 CTA is 20px */
.screen[data-framed][data-overflow] > .screen__actions { box-shadow: none; }
.screen[data-framed][data-overflow] > .screen__body {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent);
  padding-block-end: 48px; /* scrolled to the end, the last block sits above the fade */
}
main[data-screen="welcome"] .hero img { block-size: 150px; }
main[data-screen="welcome"] .vcard { padding: var(--space-3) var(--space-4); align-items: center; }
main[data-screen="welcome"] .screen__actions { gap: var(--space-1); }
/* W118: the exercise screens show the step bar again (design-v2: "שלב 3 מתוך 6" over the chip). */
/* W20 review (pcB/s1): with 16px text the short footer links ("תנאים", "Terms") need their own 48px tap width; and
   on short windows the faces screen keeps all three names above the bar (the face 80px under W18's
   tighter column). */
.trustfoot .trustlink { min-inline-size: var(--target-min); justify-content: center; }
/* W21c: the one-time add-to-home-screen offer on the first end screen */
.io-slot[hidden] { display: none; }
.io-card { display: grid; gap: var(--space-3); }
.io-head { display: flex; gap: var(--space-3); align-items: center; }
.io-txt strong { display: block; font-size: var(--fs-lg); color: var(--navy); }
.io-txt p { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink2); }
.io-card .btn-primary { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; } /* the end screen keeps one filled button */
/* W23: a busy button = a spinner + what is happening (join pay, verify code) */
.btn.is-busy { opacity: 1; cursor: progress; }
.btn.is-busy .w5-arrow { display: none; }
.btn.is-busy::before { content: ""; inline-size: 20px; block-size: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: #ffffff; animation: w23spin 0.8s linear infinite; flex: none; }
@keyframes w23spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::before { animation-duration: 2.4s; } }
.btn-primary.is-busy:disabled { background: var(--navy); color: #ffffff; box-shadow: var(--shadow-glow); cursor: progress; }
/* W105: the gift code's outlined button while the server checks (the spinner in navy, the button stays readable) */
.w5-gift-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-3); inline-size: 100%; min-block-size: var(--btn-height); }
.btn-line.is-busy::before { border-color: rgba(11, 42, 111, 0.25); border-top-color: var(--navy); }
.btn-line.is-busy:disabled { opacity: 1; color: var(--navy); }
/* W46 r2 (Elad 4/11, option A of docs/design/w46): the report as "your starting point". The owl beside the title, a
   badge with the real sample score, and a trailer card of the full practice (a muted loop of the real games). Fits
   390x664 without scrolling; the clip column shrinks on short windows. */
main[data-screen="report"] > .screen__body { gap: var(--space-4); }
.rp-hero { display: flex; align-items: center; gap: var(--space-3); }
.rp-owl { flex: none; }
.rp-hero-txt { display: grid; gap: 2px; min-inline-size: 0; }
.rp-title { margin: 0; font-size: var(--fs-3xl); line-height: 1.25; color: var(--navy); text-wrap: balance; }
.rp-sub { margin: 0; font-size: var(--fs-lg); line-height: 1.45; color: var(--ink2); }
.rp-seal { display: flex; align-items: center; gap: var(--space-4); background: var(--card, #fff); border-radius: 22px; padding: var(--space-4); box-shadow: var(--shadow-card); }
.rp-medal { flex: none; inline-size: 76px; block-size: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #17408f, var(--navy) 55%, var(--navy-deep)); box-shadow: inset 0 0 0 5px var(--teal-c), 0 6px 14px -6px rgba(0, 21, 47, 0.5); }
.rp-medal-num { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.rp-seal-txt { display: grid; gap: var(--space-2); justify-items: start; min-inline-size: 0; }
.rp-big { font-size: var(--fs-2xl); line-height: 1.3; color: var(--navy-deep); }
.rp-who { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--teal-t); color: #00403a; border-radius: var(--radius-full); padding: 3px 12px 3px 3px; font-size: var(--fs-base); font-weight: 600; }
.rp-who .rp-who-ph { inline-size: 30px; block-size: 30px; border-radius: 50%; object-fit: cover; flex: none; }
/* W55 (Elad 4/11, "the video part is too small"): the card is a column, the text on top and the clip below. The card
   takes the body's free height (phones), the clip's box (.rp-reel, a size container) takes the card's remaining height,
   and the frame inside is the largest box of the clip's ratio (4:5 or 9:16, report.js pickShape), at most 400px wide,
   centred. No JS measuring for the size; the CTA bar below never moves.
   W57 (Elad 4/11, V2 "מנטה עדינה"): the navy gradient pulled the eye; the card is a very light mint tint (--teal-t
   lightened), no border, navy text, so the clip is the focus. */
.rp-trailer { flex: 1 1 auto; display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); border-radius: 24px; padding: var(--space-4); color: var(--navy); background: #eefaf7; }
.rp-reel { flex: 1 1 var(--rp-reel-basis, 0px); min-block-size: 120px; container-type: size; display: grid; place-items: center; }
.rp-frame { inline-size: min(100cqw - 88px, 100cqh * 0.8, 400px); aspect-ratio: 4 / 5; /* W56 r1: never wider than leaves 44px+ of side margin for the toggle, centred; W57 r1: 88px, so it keeps a gap from the card edge */ border-radius: 16px; overflow: hidden; background: var(--bg); box-shadow: 0 10px 22px -10px rgba(0, 21, 47, 0.28), 0 1px 3px rgba(0, 21, 47, 0.08); /* W57: floats on a soft shadow */ }
.rp-frame[data-shape="916"] { inline-size: min(100cqw - 88px, 100cqh * 0.5625, 400px); aspect-ratio: 9 / 16; }
.rp-video { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; background: var(--bg); } /* the frame has the clip's own ratio: nothing is cropped */
.rp-watch { position: relative; inline-size: 100%; block-size: 100%; }
.rp-play { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; padding: 0; background: rgba(0, 21, 47, 0.28); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); font: inherit; font-size: var(--fs-base); font-weight: 700; }
.rp-play-label { background: var(--navy-deep); color: #fff; padding: 2px 12px; border-radius: var(--radius-full); }
.rp-play[hidden] { display: none; }
/* W56 r1: the pause / play toggle sits in the card's side margin (inline-end of the frame, level with its bottom edge), 44px, never over the clip */
.rp-stage { position: relative; }
.rp-toggle { position: absolute; inset-block-end: 0; inset-inline-start: 100%; inline-size: 44px; block-size: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(0, 21, 47, 0.16); cursor: pointer; display: grid; place-items: center; } /* W57: a navy icon on a light circle (the light card) */
.rp-toggle[hidden] { display: none; }
.rp-toggle svg { inline-size: 28px; block-size: 28px; }
.rp-toggle:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.rp-play-ico { display: grid; place-items: center; inline-size: 56px; block-size: 56px; border-radius: 50%; background: var(--teal-c); color: var(--navy-deep); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); }
.rp-play-ico svg { inline-size: 34px; block-size: 34px; }
.rp-play:focus-visible { outline: 4px solid #fff; outline-offset: -6px; }
.rp-trailer-txt { display: grid; gap: var(--space-1); justify-items: start; min-inline-size: 0; }
.rp-gift { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); font-size: var(--fs-base); font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); }
.rp-gift-ico { display: inline-grid; }
.rp-gift-ico svg { inline-size: 18px; block-size: 18px; }
main[data-screen="report"] .rp-trailer-title { margin: 0; font-size: var(--fs-2xl); font-weight: 700; line-height: 1.3; color: var(--navy); }
.rp-games { text-wrap: balance; margin: 0; font-size: var(--fs-base); line-height: 1.5; color: var(--navy); opacity: 0.85; }
/* W55: short phones (<= 700px tall: 360x640, 390x664): the header above the card is compact (owl, title, score badge,
   their spacing) so the clip still gets the room; the CTA and its bar keep their size. */
@media (max-height: 700px) {
  main[data-screen="report"] { --screen-pad-top: var(--space-3); --screen-head-gap: var(--space-2); }
  main[data-screen="report"] > .screen__body { gap: var(--space-2); padding-block-start: var(--space-2); padding-block-end: var(--space-2); }
  .rp-hero { gap: var(--space-2); }
  .rp-hero .rp-owl { inline-size: 2.75rem !important; block-size: 2.75rem !important; }
  .rp-title { font-size: var(--fs-2xl); line-height: 1.2; }
  .rp-sub { font-size: var(--fs-base); line-height: 1.3; }
  .rp-seal { gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: 18px; }
  .rp-medal { inline-size: 52px; block-size: 52px; box-shadow: inset 0 0 0 4px var(--teal-c), 0 4px 10px -6px rgba(0, 21, 47, 0.5); }
  .rp-medal-num { font-size: 1.1rem; }
  .rp-seal-txt { gap: var(--space-1); }
  .rp-big { font-size: var(--fs-lg); line-height: 1.25; }
  .rp-who { font-size: var(--fs-sm); padding: 2px 10px 2px 2px; }
  .rp-who .rp-who-ph { inline-size: 24px; block-size: 24px; }
  main[data-screen="report"] .rp-trailer-title { font-size: var(--fs-lg); line-height: 1.25; }
  .rp-trailer { gap: var(--space-2); padding: var(--space-3); border-radius: 20px; }
  .rp-gift { font-size: var(--fs-sm); padding: 2px 10px; }
  .rp-games { font-size: var(--fs-sm); line-height: 1.35; }
}
/* W55: tablet + desktop (the wide.css panel): the clip asks for 460px of height and shrinks with a short window */
@media (min-width: 768px) and (min-height: 600px) {
  main[data-screen="report"] { --rp-reel-basis: 460px; }
  main[data-screen="report"] .rp-trailer { flex: 0 1 auto; min-block-size: 0; } /* a short window: the card (its clip) gives way, never the CTA */
}
/* W44 r1: done with the install offer (gift finishers): the reminder line in place of the photo */
main[data-screen="done"].dn-offering .yay .big { display: none; } /* compact: the offer's button stays above the bar at 390x664 */
main[data-screen="done"].dn-offering .yay { gap: var(--space-2); }
main[data-screen="done"] .dn-float-line { margin: 0; font-size: var(--fs-base); font-weight: 600; color: var(--teal); }
/* W44c: gift-intro (the owl, the gift tag, a warm title, one line; "מתחילים" + a quiet "לא עכשיו") */
.gift-intro .big.gi-owl { background: none; box-shadow: none; inline-size: auto; block-size: auto; border-radius: 0; }
.gift-intro .yay .pill { align-self: center; }
.gift-intro .yay h2 { text-align: center; text-wrap: balance; }
.gift-intro .gi-lead { margin: 0; font-size: var(--fs-lg); line-height: 1.45; color: var(--ink2); max-inline-size: 30ch; }
/* W44: the gift practice's "דילוג" (where #/sess has its X) + gift-done + pay's one-more link */
.sess .sess-gskip { inline-size: auto; flex: none; min-block-size: var(--target-min); padding-inline: var(--space-4); border-radius: 14px; background: var(--high); color: var(--ink); font-size: var(--fs-base); font-weight: 600; }
.gift-done .gd-score { margin: 0; font-size: var(--fs-2xl); font-weight: 700; color: var(--ink); }
.gift-done .gd-compare { margin: 0; font-size: var(--fs-lg); line-height: 1.45; color: var(--ink2); max-inline-size: 30ch; }
.screen__actions .gift-more { align-self: center; font-size: var(--fs-base); color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }

/* W25 (Elad 3/11, real photos): object + face photos (webapp/src/photos.js) sized per place */
.pcard .pph { inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: 10px; display: block; }
.pcard.down .pph { display: none; }
.nb img.nf { object-fit: cover; padding: 0; display: block; }
/* W36 r2: the consent card, in the flow at the top of welcome */
.consent { display: grid; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #ffffff; box-shadow: var(--shadow-card); font-size: var(--fs-sm); line-height: 1.5; color: var(--ink); flex: none; }
.consent p { margin: 0; }
.consent a { color: var(--teal); font-weight: 600; }
.consent-btns { display: flex; gap: 10px; }
.consent-btns button { flex: 1; min-block-size: 44px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: var(--fs-base); font-weight: 700; cursor: pointer; }
.consent-yes { background: var(--navy); color: #ffffff; border: 0; }
.consent-no { background: transparent; color: var(--navy); border: 2px solid var(--line); }
/* W38: implied-consent line, install offer compact above the fold, the WhatsApp remind row */
.consent-notice { margin: 0; font-size: 0.75rem; color: var(--ink2); text-align: center; line-height: 1.5; }
.consent-notice a { color: var(--teal); font-weight: 600; }
main[data-screen="welcome"] > .hdr { display: none; }
.io-card .io-btns { display: flex; gap: 8px; align-items: center; }
.io-card .io-btns .btn { flex: 1; min-block-size: 44px; }
.io-card .io-btns .ghost { flex: none; inline-size: auto; padding-inline: 12px; }
.sd-remind { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); background: #e9fbf1; }
.sd-remind-t { font-weight: 600; font-size: var(--fs-sm); }
.sd-remind-b { color: #0a7d3b; font-size: var(--fs-sm); white-space: nowrap; }
/* W40: the support line under "today" on the plan + card screen */
.w5 .w5-support { display: flex; align-items: center; justify-content: center; gap: var(--space-2); color: var(--ink2); margin: 0; }
.w5 .w5-support .w5-ic { color: var(--teal); }
/* W38b: sess-done with the install offer: a compact hero, so the offer's button is above the sticky bar without scrolling */
.sess-done.sd-compact .yay { gap: var(--space-1); padding-block-start: 0; }
.sess-done.sd-compact .yay h2 { font-size: var(--fs-2xl); }
.sess-done.sd-compact .owl-cheer::before { inset: -10%; }
/* W43: the brand cubes fill their tile (logo, install card, mocks); the tile's own colour no longer shows */
/* W45: no :has() (Chrome 100 floor): the full-bleed mark covers its tile and takes the tile's own corners */
.brand-mark { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; border-radius: inherit; }
/* W117: the framed action bar is see-through, so the soft page and its mint wave run under the CTA (design-v2); the
   frame keeps content out from under the bar, so nothing shows through it */
.screen[data-framed] > .screen__actions, .screen[data-framed][data-overflow] > .screen__actions { background: transparent; }
/* >>> W118: web funnel screens 1-8 in the simple-screens-v2 look (docs/design/simple-v2/design-v2.html screens 1-8), built
   from W117's .ui-* components (base.css) and tokens. Text sizes in rem (1rem = 20px x the text-size setting), so the
   text-size setting still scales them; boxes in px as design-v2. */
:is(main[data-screen="welcome"], main[data-screen="moments"], main[data-screen="meet"], main[data-screen="story"], main[data-screen="q1"],
  main[data-screen="q2"], main[data-screen="faces"], main[data-screen="report"], main[data-screen="routine"]) {
  --screen-pad-top: 16px; --screen-pad-inline: 16px; --screen-gap: 11px; --screen-head-gap: 2px; --screen-actions-gap: 8px;
}
.screen__actions > [hidden] { display: none; }
.v2i { flex: none; display: block; }
/* the design's quiet link under the CTA (the exercise's "לדלג על התרגיל") */
.screen__actions .v2-skip { align-self: center; inline-size: auto; padding-inline: var(--space-3); }
/* rows (design-v2 .rows / .row): W117 .ui-row holds the tile, the label and the tick / radio */
.v2-rows { display: flex; flex-direction: column; gap: 9px; }
.v2-rows.tight { gap: 8px; }
.v2-rows.tight > .ui-row { padding: 7px 10px; }
.v2-rows.tight .ui-tile { inline-size: 38px; block-size: 38px; border-radius: 12px; }
.v2-rows.v2-big > .ui-row { padding: 15px 14px; }
.v2-rows.v2-big > .ui-row .lbl { flex: 1; font-size: 0.95rem; font-weight: 600; line-height: 1.25; }
.v2-mark { flex: none; }
.v2-two { display: flex; flex-direction: column; flex: 1; min-inline-size: 0; }
.v2-two b { font-size: var(--fs-row); font-weight: 600; line-height: 1.25; }
.v2-two small { font-size: var(--fs-soft); line-height: 1.35; color: var(--soft-ink); }
.v2-smile { font-size: 1.1rem; line-height: 1; }

/* 1. welcome */
main[data-screen="welcome"] .ui-brandpill { align-self: center; }
main[data-screen="welcome"] .wl-title { margin: 0; text-align: center; }
main[data-screen="welcome"] .wl-title > span { display: block; }
.wl-tiles { display: flex; justify-content: space-around; text-align: center; }
.wl-tiles > div { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.wl-tiles > div + div { border-inline-start: 1px solid #dbe5f0; }
.wl-tiles b { font-size: 0.775rem; font-weight: 600; color: var(--title-ink); }
/* W121: the story video's 4:5 frame is shown WHOLE (its captions are burned in at the foot), at the card's height, with
   the chip and the sound button beside it; fixed sizes, so the poster -> video swap never moves anything */
.wl-vid { position: relative; display: flex; gap: 12px; block-size: 268px; border-radius: 22px; overflow: hidden; background: #ffffff; box-shadow: 0 6px 18px #0b1d4a1f; flex: none; }
.wl-frame { position: relative; flex: none; block-size: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #e6edf4; }
.wl-video { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.wl-side { flex: 1 1 0; min-inline-size: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding-block: 12px; padding-inline-end: 12px; text-align: center; }
.wl-vtag { background: #ffffff; border-radius: 18px; padding: 8px 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: var(--tile-mint-ink); box-shadow: 0 2px 8px #0b1d4a22; max-inline-size: 100%; }
.wl-vtag b { font-size: 0.75rem; color: var(--title-ink); }
.wl-sound { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-block-size: 48px; padding: 8px 16px; border: 0;
  border-radius: 999px; background: var(--title-ink); color: #ffffff; font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 10px #0b1d4a33; white-space: nowrap; }
.wl-sound[data-state="on"] { background: #ffffff; color: var(--title-ink); box-shadow: inset 0 0 0 2px var(--title-ink); }
.wl-sound:focus-visible, .wl-play:focus-visible { outline: 3px solid var(--title-ink); outline-offset: 3px; }
.wl-play { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; padding: 0; background: #00152f33; cursor: pointer;
  display: grid; place-items: center; }
.wl-play[hidden] { display: none; }
.wl-play-ico { display: grid; place-items: center; inline-size: 60px; block-size: 60px; border-radius: 50%; background: #ffffff; color: var(--title-ink);
  box-shadow: 0 4px 12px #0000004d; }
.wl-play-ico svg { fill: currentColor; margin-left: 3px; } /* the play triangle points right in both directions */
main[data-screen="welcome"] .trustfoot { font-size: var(--fs-soft); }
/* W130 (reviewer pcA/r130): a 360-wide phone left the side column 90 px for a ~115 px sound pill, so it ran into the
   video frame and past the card edge; there the frame is a little smaller and the pill a little tighter (text unchanged) */
@media (max-width: 379.98px) { .wl-vid { block-size: 240px; } .wl-sound { padding-inline: 12px; gap: 5px; } }
@media (max-height: 699.98px) { .wl-vid { block-size: 200px; } } /* a short phone keeps the clip chip above the CTA */

/* 2. moments */
main[data-screen="moments"] .ui-hint { font-size: 0.775rem; }
.moment.ui-row { cursor: pointer; }

/* 3. meet (design-v2 .people / .person) */
.v2-people { gap: 9px; }
.v2-person.nb { gap: 14px; background: #ffffff; border-radius: 18px; padding: 8px; box-shadow: 0 2px 8px #0b1d4a12; }
.v2-person.nb img.nf { inline-size: 76px; block-size: 76px; border-radius: 14px; }
.v2-person.nb strong { font-size: 1.1rem; font-weight: 700; color: var(--title-ink); }
.v2-person.nb small { font-size: 0.7rem; color: var(--soft-ink); }
main[data-screen="meet"] .lead { margin-block-start: -6px; }

/* 4-6. the exercise (story, q1, q2, faces) */
.v2-chip { align-self: flex-start; background: var(--mint-tint); color: var(--brand-pill-ink); border-radius: 999px; padding: 4px 11px; font-size: var(--fs-soft); font-weight: 600; margin-block-end: -4px; }
.v2-ex .ex-body { gap: 11px; }
.v2-ex .ex-title { margin: 0; font-size: var(--fs-title); font-weight: var(--fw-title); line-height: var(--lh-title); color: var(--title-ink); }
.v2-ex .ex-title.c { text-align: center; }
.v2-ex .lead { margin-block-start: -4px; }
.v2-ex .v2-objs { gap: 9px; }
.v2-ex .v2-objs .card { border: 0; border-radius: 18px; padding: 8px 6px 9px; gap: 4px; box-shadow: 0 2px 8px #0b1d4a10; }
.v2-ex .v2-objs .card .ph { inline-size: 96px; block-size: 90px; border-radius: 12px; }
.v2-ex .v2-objs .card b { font-size: 0.8rem; font-weight: 600; color: var(--title-ink); }
.v2-ex .opt.ui-row { min-block-size: 0; cursor: pointer; border: 1.5px solid var(--card-line); }
.v2-ex .opt .em { font-size: 1.4rem; line-height: 1; }
.v2-ex .opt .opt-ph { inline-size: 44px; block-size: 44px; }
.v2-ex .opt .check { inline-size: 24px; block-size: 24px; display: inline-flex; align-items: center; justify-content: center; margin: 0; flex: none; }
.v2-ex .opt .check.ui-tick { inline-size: 26px; block-size: 26px; background: var(--tick); }
.v2-ex .opt .check.v2-x { inline-size: 26px; block-size: 26px; border-radius: 50%; background: #c4554a; color: #ffffff; }
.v2-ex .opt .check .icon-slot { inline-size: 16px; block-size: 16px; }
.v2-ex .opt.right { border-color: var(--mint); background: var(--mint-bg); }
.v2-ex .opt.wrong { border-color: #f1b8b0; background: #fff4f2; }
.v2-ex .opt:disabled { opacity: 1; cursor: default; color: var(--title-ink); }
.v2-ex .v2-names { display: flex; flex-direction: row; gap: 9px; }
.v2-ex .v2-name { position: relative; flex: 1; min-inline-size: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #ffffff;
  border: 1.5px solid #dbe4ef; border-radius: 16px; padding: 15px 4px; font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--title-ink); box-shadow: 0 2px 6px #0b1d4a0d; cursor: pointer; }
.v2-ex .v2-name .check.ui-radio { display: none; }
.v2-ex .v2-name .check { position: absolute; inset-block-start: -9px; inset-inline-end: -6px; }
.v2-ex .v2-bigface { align-self: center; inline-size: 168px; block-size: 168px; border-radius: 24px; overflow: hidden; box-shadow: 0 8px 22px #0b1d4a26; margin-block: 4px; padding: 0; }
.v2-ex .v2-bigface img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.v2-ex .v2-answer { min-block-size: 2.4rem; display: flex; align-items: center; justify-content: center; }
.v2-auto { text-align: center; }
.v2-ex .v2-auto[hidden], .v2-ex .v2-fb[hidden] { display: none; }
.v2-ex .v2-fb { inline-size: 100%; display: flex; justify-content: center; background: var(--mint-tint); border-radius: 14px; padding: 8px 12px; text-align: center; font-size: var(--fs-row); color: var(--mint-ink); }
.v2-ex .v2-fb strong { display: inline; color: var(--brand-pill-ink); }
.v2-ex .v2-fb .v2-fb-line { display: inline; margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.v2-ex .v2-fb.miss { background: #fff1e3; color: #5a3700; }
.v2-ex .v2-fb.miss strong { color: #8a5200; }
@media (max-height: 699.98px) {
  .v2-ex .v2-bigface { inline-size: 132px; block-size: 132px; }
  .v2-ex .v2-objs .card .ph { block-size: 72px; inline-size: 80px; }
}

/* 7. report (design-v2 .rhead / .scorepill / .giftcard) */
main[data-screen="report"] .rp-hero { justify-content: space-between; gap: 8px; }
main[data-screen="report"] .rp-title { font-size: 1.25rem; font-weight: var(--fw-title); color: var(--title-ink); }
.rp-score { align-self: flex-start; display: flex; align-items: center; gap: 8px; background: var(--mint-tint); color: var(--brand-pill-ink); border-radius: 999px;
  padding-block: 5px; padding-inline: 6px 14px; font-size: 0.8rem; font-weight: 600; }
.rp-score-num { background: var(--tick); color: #ffffff; border-radius: 999px; padding: 2px 9px; font-size: 0.75rem; font-weight: 700; }
main[data-screen="report"] .rp-giftcard { position: relative; margin-block-start: 12px; background: #ffffff; border: 1.5px solid #cdeee2; border-radius: 20px;
  padding: 20px 10px 12px; box-shadow: 0 4px 12px #0b1d4a12; gap: 10px; }
main[data-screen="report"] .rp-giftcard .rp-gift { position: absolute; inset-block-start: -13px; inset-inline-start: 16px; display: flex; align-items: center; gap: 5px;
  background: #e9e4ff; color: #5b45d6; border-radius: 999px; padding: 3px 11px; font-size: var(--fs-soft); font-weight: 700; }
main[data-screen="report"] .rp-giftcard .rp-trailer-title { text-align: center; font-size: 0.9rem; font-weight: 700; color: var(--title-ink); }
main[data-screen="report"] .rp-frame { border-radius: 16px; box-shadow: 0 0 0 1px #e2e9f2; } /* design-v2 .vid.in: a 1px line, drawn outside the frame (no layout change) */

/* 8. routine (design-v2 .rows.tight / .times / .chans / .note) */
.v2-routine .rt-title { margin: 0; }
.v2-routine .rt-goal { cursor: pointer; }
.v2-routine .rt-goalline { text-align: center; margin-block: -4px; }
.v2-routine .rt-sub { margin: 4px 0 0; font-size: var(--fs-sub); }
.rt-times, .rt-chans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rt-chans { grid-template-columns: repeat(var(--rt-cols, 3), minmax(0, 1fr)); }
.rt-time, .rt-chan { font: inherit; color: var(--title-ink); background: #ffffff; border: 1.5px solid var(--card-line); cursor: pointer; }
.rt-time { display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 16px; padding: 7px 4px; line-height: 1.25; }
.rt-time small { font-size: 0.7rem; color: var(--lead-ink); }
.rt-time b { font-size: 1rem; font-weight: 700; color: var(--title-ink); }
.rt-chan { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 14px; padding: 9px 4px; }
.rt-chan b { font-size: 0.75rem; font-weight: 600; }
.rt-time[aria-pressed="true"], .rt-chan[aria-pressed="true"] { border-color: var(--mint); background: var(--mint-bg); }
.rt-ic { display: inline-flex; color: #f0a019; }
.rt-ic-evening { color: var(--tile-lilac-ink); }
.rt-ic-whatsapp { color: #1faa59; }
.rt-ic-sms { color: var(--tile-blue-ink); }
.rt-ic-push { color: #f0a019; }
.v2-routine .rt-note { justify-content: center; gap: 6px; background: var(--mint-tint); color: var(--mint-ink); border-radius: 12px; padding: 7px 10px; font-size: 0.7rem; line-height: 1.4; }
.v2-routine .rt-note[data-kind="none"] { background: var(--low); color: var(--lead-ink); }
.v2-routine .rt-note .icon { inline-size: 1rem; block-size: 1rem; }
/* W123 (Elad 09/11): the routine fits a short phone (360x640, any height < 700) with NO body scroll: the same screen, the
   same texts, only the vertical rhythm is tighter (gaps, row and tile padding, the top inset). */
@media (max-height: 699.98px) {
  main.v2-routine { --screen-pad-top: var(--space-3); }
  main.v2-routine > .screen__body { gap: 5px; padding-block: 2px 6px; }
  .v2-routine .v2-rows.tight { gap: 5px; }
  .v2-routine .v2-rows.tight > .ui-row { padding-block: 4px; }
  .v2-routine .rt-time { padding-block: 4px; gap: 0; }
  .v2-routine .rt-ic svg { inline-size: 18px; block-size: 18px; }
  .v2-routine .rt-chan { padding-block: 7px; }
  .v2-routine .rt-note { padding-block: 5px; }
}
/* <<< W118 */

/* >>> W125: a screen waiting for a first open's device session (app-boot.js holdFor); the "ברוכים השבים" line after a
   restore or a store link that landed while the person was still in the funnel (showWelcomeBack) */
.w125-hold { display: flex; flex-direction: column; align-items: center; justify-content: center; min-block-size: 60vh; text-align: center; }
.w125-hold h1 { font-size: var(--fs-xl); }
.w125-back { position: fixed; inset-inline: 0; inset-block-start: max(16px, env(safe-area-inset-top)); margin-inline: auto; inline-size: max-content; max-inline-size: 90%; background: var(--teal); color: #ffffff; font-size: var(--fs-xl); font-weight: 700; padding: var(--space-3) var(--space-5, 24px); border-radius: 99px; box-shadow: 0 6px 20px rgba(0, 40, 36, 0.3); z-index: 60; pointer-events: none; transition: opacity 0.4s; }
.w125-back.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .w125-back { transition: none; } }
/* <<< W125 */
/* >>> W125 old-app guard: the way out of a hold past 15 s */
.w125-hold-actions { display: flex; flex-direction: column; gap: var(--space-3); inline-size: min(100%, 360px); margin-block-start: var(--space-4, 16px); }
.w125-hold p[data-testid="device-wait-line"] { max-inline-size: 32ch; }
/* <<< W125 old-app guard */

/* >>> W119: web funnel screens 9-12 (join, verify, pay, done) in the simple-screens-v2 look (docs/design/simple-v2/
   design-v2.html screens 9-12) + the look-only tail screens (st-declined, restore / restore-code, gift, gift-done,
   next-and3 / and-pwa / pwa-add, the pay variants). W117 .ui-* components and tokens; text in rem (the text-size
   setting scales it); boxes in px as design-v2. Inputs stay >= 16px. */
:is(main[data-screen="join"], main[data-screen="verify"], main[data-screen="pay"], main[data-screen="done"], main[data-screen="st-declined"]) {
  --screen-pad-top: 16px; --screen-pad-inline: 16px; --screen-gap: 12px; --screen-head-gap: 2px; --screen-actions-gap: 8px;
}
.v2-sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.v2-hero { align-self: center; margin-block-start: 12px; }
.v2-hero .ui-tile { inline-size: 70px; block-size: 70px; border-radius: 22px; }
.v2-hero .ui-tile svg { inline-size: 34px; block-size: 34px; }
.v2-tiny { margin: 0; text-align: center; font-size: var(--fs-soft); line-height: 1.45; color: var(--soft-ink); }
/* the quiet "כבר נרשמתם? כניסה" (join / verify / pay): under the CTA, centred, still a 48px tap target */
.screen__actions .v2-signin { align-self: center; inline-size: auto; min-block-size: var(--target-min); padding-inline: var(--space-3); }
main.w5 .hdr .step { align-self: center; }

/* 1. welcome: Elad's W38 line under the CTA, and the footer in two rows (a row never ends on a lone "·") */
.screen__actions .wl-trust { margin: 0; gap: 6px; font-size: var(--fs-soft); color: var(--lead-ink); }
.wl-trust .v2i { color: var(--tick); }
.trustfoot .tf-row { display: block; white-space: nowrap; }
.trustfoot .tf-gap { display: none; } /* the separator between the rows: in the text, never drawn (a row end needs none) */
[data-text-scale="1.3"] .trustfoot .tf-row:first-child { white-space: normal; } /* the largest text: row 1 may break */
[data-text-scale="1.3"] .trustfoot .tf-row:first-child > [aria-hidden] { display: none; }
[data-text-scale="1.3"] .trustfoot .tf-row:first-child > * { display: block; }
/* the >24 h resume choice on top of welcome */
.v2-resume { cursor: pointer; border-color: var(--mint); background: var(--mint-bg); }
.v2-resume .v2-resume-go { display: inline-flex; color: var(--title-ink); }
.v2-resume .v2-resume-go .icon { inline-size: 22px; block-size: 22px; }
[dir="ltr"] .v2-resume .v2-resume-go svg { transform: scaleX(-1); }

/* 9. join: the field big and centred (design .field), the channel line as the lead */
.v2-join .w50-chan.lead { margin: -4px 0 0; font-size: var(--fs-lead); color: var(--lead-ink); }
.v2-join .w5-in { min-block-size: 58px; border: 1.5px solid var(--ghost-line); border-radius: 16px; font-size: max(16px, 1.1rem); font-weight: 600;
  text-align: center; letter-spacing: 1px; box-shadow: 0 2px 6px #0b1d4a0d; }
.v2-join .w50-cc { min-block-size: 58px; border: 1.5px solid var(--ghost-line); border-radius: 16px; }
.v2-join .legal, .v2-pay .legal { font-size: var(--fs-soft); color: var(--soft-ink); }
.v2-join .legal a, .v2-pay .legal a { color: var(--ghost-ink); }

/* 10. verify (and the W06b restore-code): design-v2 .code boxes */
.v2-verify .lead { margin-block-start: -4px; }
:is(.w5-code span, .w6b-f) { block-size: 54px; border: 1.5px solid var(--ghost-line); border-radius: 14px; background: #ffffff; font-size: 1.2rem; font-weight: 700; color: var(--title-ink); }
.w5-code { gap: 7px; }
.w6b-code { gap: 7px; }
:is(.w5-code span.f, .w6b-f.w6b-on) { border-color: var(--ghost-line); }
:is(.w5-code span.cur, .w6b-f.w6b-cur) { border-color: var(--ghost-ink); box-shadow: 0 0 0 3px #1d3d8a22; }
.v2-verify .w5-links .ghost { color: var(--ghost-ink); font-size: var(--fs-link); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; box-shadow: none; }

/* 11. pay: the plan cards (design .plan), the compact timeline (.tl), the cancel line, "תשלום מאובטח" */
.v2-pay .lead { margin-block-start: -4px; }
.v2-pay .v2-plans { gap: 12px; padding-block-start: 8px; }
.w5 .plan.v2-plan { flex-direction: row; align-items: center; gap: 12px; background: var(--card-bg); border: 1.5px solid var(--card-line); border-radius: 18px;
  padding: 16px 14px; box-shadow: var(--card-shadow); color: var(--title-ink); }
.w5 .plan.v2-plan[aria-checked="true"] { border: 2px solid var(--mint); background: var(--mint-bg); padding: 15.5px 13.5px; }
.v2-plan .v2-two b { font-size: 0.95rem; font-weight: 700; }
.v2-plan .v2-two small { font-size: var(--fs-soft); color: var(--soft-ink); }
.v2-plan .v2-two .v2-perday { color: var(--tile-mint-ink); font-weight: 600; }
.w5 .plan.v2-plan .price { display: block; background: none; padding: 0; border-radius: 0; font-size: 1.2rem; font-weight: 800; white-space: nowrap; color: var(--title-ink); }
.v2-tl { display: flex; flex-direction: column; gap: 7px; background: #ffffff; border-radius: 16px; padding: 11px 14px; box-shadow: 0 2px 8px #0b1d4a10; }
.v2-tl > div { display: flex; align-items: baseline; gap: 10px; font-size: 0.775rem; line-height: 1.4; }
.v2-tl .d { flex: none; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--dot); align-self: center; }
.v2-tl .d.on { background: var(--tick); }
.v2-tl b { flex: none; inline-size: 3.2em; font-weight: 700; color: var(--title-ink); }
.v2-tl .v2-tl-txt { flex: 1; color: var(--lead-ink); }
.v2-tl .b { display: inline-block; margin-inline-start: 6px; font-size: var(--fs-soft); font-weight: 700; padding: 0 8px; border-radius: 99px; background: var(--mint-tint); color: var(--mint-ink); white-space: nowrap; }
.v2-pay .today { background: #ffffff; box-shadow: var(--card-shadow); }
.v2-pay .today b { color: var(--tile-mint-ink); }
.screen__actions .v2-secure { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.7rem; color: var(--tick); }
.v2-secure span { color: var(--lead-ink); }

/* 12. done: the check burst over the confetti, the push card (design .pushcard + .ghost.strong) */
.v2-done .v2-burst { align-self: center; margin-block-start: 16px; inline-size: 120px; block-size: 120px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: radial-gradient(circle, var(--mint-tint) 0 58%, transparent 59%); flex: none; }
.v2-done .v2-okc { inline-size: 84px; block-size: 84px; border-radius: 50%; background: #14b07f; color: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px #14b07f55; }
.v2-done .yay { gap: 8px; }
.v2-done .yay h1 { margin: 0; text-align: center; }
main.v2-done .dn-float-line { margin: 0; font-size: var(--fs-lead); color: var(--lead-ink); }
.v2-done .dn-float-line span { color: var(--lead-ink); font-weight: 600; }
.v2-pushcard { display: flex; flex-direction: column; gap: 10px; flex: none; }
.v2-pushcard[hidden] { display: none; }
.v2-pushrow { display: flex; align-items: center; gap: 12px; background: #ffffff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 2px 8px #0b1d4a10; }
.v2-pushrow b { font-size: 0.85rem; font-weight: 700; color: var(--title-ink); }
.ui-ghost.v2-strong { border-color: #f0a019; color: #a35f00; background: #fff8ec; }
.ui-ghost.v2-strong[hidden] { display: none; }
@media (max-height: 699.98px) { .v2-done .v2-burst { inline-size: 84px; block-size: 84px; margin-block-start: 4px; } .v2-done .v2-okc { inline-size: 60px; block-size: 60px; } }
main[data-screen="done"].dn-offering .v2-burst { display: none; } /* compact: the install offer's button stays above the bar */

/* 5. look only (same copy and flow): the W117 card / tile / ghost on the tail screens */
main[data-screen="st-declined"] .yay .big { inline-size: 70px; block-size: 70px; border-radius: 22px; background: var(--tile-peach); color: var(--tile-peach-ink); }
main[data-screen="st-declined"] .yay .big .w5-ic { inline-size: 34px; block-size: 34px; }
:is(main[data-screen="gift"], main[data-screen="gift-done"], main[data-screen="next-and3"], main[data-screen="and-pwa"], main[data-screen="pwa-add"],
  main[data-screen="restore"], main[data-screen="restore-code"], main[data-screen="st-declined"], main[data-screen="pay"]) .card {
  background: var(--card-bg); border: 1.5px solid var(--card-line); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
:is(main[data-screen="gift-done"], main[data-screen="next-and3"], main[data-screen="and-pwa"], main[data-screen="pwa-add"], main[data-screen="restore"],
  main[data-screen="restore-code"], main[data-screen="st-declined"]) .ghost {
  background: #ffffff; color: var(--ghost-ink); border: 1.5px solid var(--ghost-line); border-radius: var(--cta-radius); font-size: var(--fs-ghost); font-weight: 600; }
main[data-screen="restore"] .w6b-in { border: 1.5px solid var(--ghost-line); border-radius: 16px; }
:is(.w6b-num, .w06-num) { background: var(--title-ink); }
/* <<< W119 */
