/* W11: the SPEC §4 state screens, the WhatsApp mock and the demo index (prototype.html .yay / .big / .list / .warn /
   .wa-* / .cta.danger), sized up so every visible text is >= 20px at scale 1 (--fs-sm = 1rem = 20px). */
/* .icon: the inline svg from ../icons.js (data-icon = the Material Symbol name). */
.icon { display: inline-block; inline-size: 1.2em; block-size: 1.2em; flex: none; }
.icon svg { inline-size: 100%; block-size: 100%; }
.appbar .logo .icon { inline-size: 24px; block-size: 24px; }

.st-screen .yay { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; padding-block-start: var(--space-2); }
.st-screen .yay h1 { margin: 0; font-size: var(--fs-2xl); line-height: 1.3; }
.st-screen .yay .lead { text-align: center; }
.big { inline-size: 84px; block-size: 84px; border-radius: 50%; background: var(--teal-c); color: var(--teal); display: grid; place-items: center; flex: none; }
.big .icon { inline-size: 44px; block-size: 44px; }
.big.grey { background: var(--high); color: var(--ink2); }
.big.red { background: #ffdad6; color: #b3261e; }

.st-list { display: flex; flex-direction: column; padding-block: var(--space-1); padding-inline: var(--space-4); }
.st-list > div { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-3); font-size: var(--fs-sm); flex-wrap: wrap; }
.st-list > div + div { border-block-start: 1px solid var(--line); }
.st-list .icon { color: var(--teal); }
.st-list b { margin-inline-start: auto; font-weight: 500; color: var(--ink2); }

.st-warn { display: flex; gap: var(--space-3); align-items: flex-start; background: var(--peach); color: #4a2d00; border-radius: 16px; padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); line-height: 1.5; }
.st-warn .icon { color: #8a5200; margin-block-start: 0.15em; }

.btn-danger { background: #b3261e; color: #ffffff; box-shadow: none; }

/* WhatsApp mock (wa-chat) */
.screen.wa-chat { background: #efeae2; padding: 0; gap: 0; }
.wa-top { display: flex; align-items: center; gap: var(--space-3); background: #075e54; color: #ffffff; padding: var(--space-4) var(--space-3); }
.wa-top .back { background: rgba(255, 255, 255, 0.15); color: #ffffff; border: 0; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; }
.wa-top .back svg { inline-size: 1.2rem; block-size: 1.2rem; }
[dir="ltr"] .wa-top .back svg { transform: scaleX(-1); }
.wa-av { inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--teal-c); color: var(--teal); display: grid; place-items: center; flex: none; }
.wa-av .icon { inline-size: 26px; block-size: 26px; }
.wa-who h1 { margin: 0; color: #ffffff; font-size: var(--fs-lg); line-height: 1.2; }
.wa-who small { display: block; font-size: var(--fs-sm); opacity: 0.9; }
.wa-bg { flex: 1; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.wa-day { align-self: center; background: #e1f2fb; color: #3b4a52; font-size: var(--fs-sm); padding: var(--space-1) var(--space-4); border-radius: 8px; }
.wa-b { align-self: flex-start; background: #ffffff; border-start-start-radius: 4px; border-radius: 4px 14px 14px 14px; padding: var(--space-4); max-inline-size: 92%; font-size: var(--fs-base); line-height: 1.5; color: var(--ink); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); }
.wa-b p { margin: 0; }
.wa-b small { display: block; text-align: end; font-size: var(--fs-sm); color: #54656f; }
.wa-btn { inline-size: 100%; min-block-size: 48px; margin-block-start: var(--space-2); border: 0; border-block-start: 1px solid #e9edef; background: none; color: #026a99; font-size: var(--fs-base); font-weight: 600; padding-block-start: var(--space-3); display: flex; align-items: center; justify-content: center; gap: var(--space-2); cursor: pointer; font-family: inherit; }
.wa-note { align-self: center; text-align: center; font-size: var(--fs-sm); color: #3b4a52; background: rgba(255, 255, 255, 0.8); padding: var(--space-2) var(--space-4); border-radius: 8px; line-height: 1.5; }

/* demo index */
.demo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.demo-link { display: flex; align-items: center; min-block-size: 56px; padding: var(--space-3) var(--space-4); background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); color: var(--navy); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; line-height: 1.4; }

/* W02 review: text blocks in a tall column never get squashed (the screen scrolls instead). */
.st-screen > *, .wa-bg > *, .wa-top, .demo-list > li { flex-shrink: 0; }
.st-screen > .screen__body { flex-shrink: 1; } /* W123: a framed state screen: the body is the one part that gives way (and scrolls) above the bar */

/* >>> W120 (simple screens v2, docs/design/simple-v2/design-v2.html): the app-context screens (notif, a11y-not, appjoin,
   app-paid, st-*; render only when ctx.context() === 'app'), LOOK ONLY (Fable note 2): no copy, flow or markup change.
   design-v2's pieces: the big icon in a 70px mint tile (done's .hero), the 27px / 800 navy title, the 16.5px lead, the
   fact rows as separate white card rows with a small tile (.rows.tight), the CTA's forward arrow (drawn here, so
   app-flow.js keeps its buttons), the white outlined ghost button. The web's own state screens keep their look (W119). */
html[data-context="app"] .st-screen .yay { gap: var(--space-3); padding-block-start: var(--space-4); }
html[data-context="app"] .st-screen .yay .big { inline-size: 70px; block-size: 70px; border-radius: 22px; background: var(--tile-mint); color: var(--tile-mint-ink); }
html[data-context="app"] .st-screen .yay .big .icon { inline-size: 34px; block-size: 34px; }
html[data-context="app"] .st-screen .yay .big.grey { background: var(--tile-blue); color: var(--tile-blue-ink); }
html[data-context="app"] .st-screen .yay .big.red { background: var(--tile-peach); color: #b3261e; }
html[data-context="app"] .st-screen h1 { font-size: var(--fs-title); font-weight: var(--fw-title); line-height: var(--lh-title); color: var(--title-ink); }
html[data-context="app"] .st-screen .yay .lead { font-size: var(--fs-lead); color: var(--lead-ink); }
html[data-context="app"] .st-screen > .small, html[data-context="app"] .st-screen > .screen__body > .small { font-size: var(--fs-soft); color: var(--soft-ink); }
html[data-context="app"] .st-screen .st-list { background: none; border: 0; box-shadow: none; padding: 0; gap: 8px; }
html[data-context="app"] .st-screen .st-list > div { background: var(--card-bg); border: 1.5px solid var(--card-line); border-radius: var(--card-radius);
  box-shadow: var(--card-shadow); padding: 7px 10px; gap: 12px; font-size: var(--fs-row); font-weight: 600; color: var(--title-ink); }
html[data-context="app"] .st-screen .st-list > div + div { border-block-start: 1.5px solid var(--card-line); }
html[data-context="app"] .st-screen .st-list > div > .icon { inline-size: 38px; block-size: 38px; padding: 8px; border-radius: 12px; background: var(--tile-mint); color: var(--tile-mint-ink); }
html[data-context="app"] .st-screen .st-list b { font-size: var(--fs-soft); font-weight: 600; color: var(--soft-ink); }
html[data-context="app"] .st-screen .vcard h3 { font-size: var(--fs-sub); font-weight: 700; color: var(--title-ink); }
html[data-context="app"] .st-screen .vcard p { font-size: var(--fs-lead); color: var(--lead-ink); }
html[data-context="app"] .st-screen .screen__actions .btn-primary { display: flex; align-items: center; justify-content: center; gap: 10px; }
html[data-context="app"] .st-screen .screen__actions .btn-primary:not(.w5-cta)::after { /* .w5-cta draws its own arrow */ content: ""; flex: none; inline-size: 22px; block-size: 22px; background: currentColor;
  -webkit-mask: var(--w120-arrow) center / contain no-repeat; mask: var(--w120-arrow) center / contain no-repeat; }
html[data-context="app"][dir="ltr"] .st-screen .screen__actions .btn-primary:not(.w5-cta)::after { transform: scaleX(-1); }
html[data-context="app"] .st-screen .screen__actions > .ghost { background: #ffffff; border: 1.5px solid var(--ghost-line); border-radius: var(--cta-radius);
  color: var(--ghost-ink); font-size: var(--fs-ghost); font-weight: 600; }
:root { --w120-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E"); }
/* <<< W120 */
