/* web-app/discover.css: a store's pages (components/discover.js: <of-storefront>, <of-store-list>, <of-listing>), on
   their own: link generated/tokens.css (the --of-* house geometry and type), then this; nothing else from the layer is
   needed, so a page that draws only a store (Streamliner's toll-free page) links the two alone. Colors are the theme's
   flat names (--bg, --surface, --surface-high, --border, --border-bright, --accent, --accent-text, --text-primary,
   --text-secondary, --text-muted); the listing's own color is --of-dl-kind (its streamline's), set through the CSSOM;
   the phones wear Base's light palette (set on each screen). No color arithmetic here (tokens-and-themes.md).
   Swift (Streamliner): Discover/Storefront/StorefrontViews.swift, StorefrontCarousel.swift, Catalog/PublicCatalogViews.swift,
   DiscoverRow.swift, DiscoverListingParts.swift, Previews/PhonePreview.swift. */

of-storefront, of-store-list, of-listing { display: block; min-width: 0; color: var(--text-primary, #000); font-family: var(--of-font-body); }
:is(of-storefront, of-store-list, of-listing, .of-ds-page) *, :is(of-storefront, of-store-list, of-listing) *::before, :is(of-storefront, of-store-list, of-listing) *::after { box-sizing: border-box; }
:is(of-storefront, of-store-list, of-listing) .of-glyph { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; }
:is(of-storefront, of-store-list, of-listing) :is(a, button):focus-visible { outline: 2px solid var(--accent-text, var(--accent)); outline-offset: 2px; }
:is(of-storefront, of-store-list, of-listing) button { font: inherit; color: inherit; }

/* The store's page column (OFPageScroll(maxWidth: 1100)): the host's search, then the storefront. */
.of-ds-page { display: grid; gap: calc(var(--of-size-page-group-gap, 26px) * var(--of-s, 1)); align-content: start; min-width: 0; width: 100%;
  max-width: calc(1100px + 2 * var(--of-size-page-side, 20px)); margin: 0 auto; padding: var(--of-size-page-top, 24px) var(--of-size-page-side, 20px) var(--of-size-page-bottom, 44px); }
@media (max-width: 699.98px) { .of-ds-page { padding-inline: var(--of-size-page-side-phone, 16px); } }
of-storefront { display: grid; gap: calc(var(--of-size-page-group-gap, 26px) * var(--of-s, 1)); }

/* ── the mark (OFLogoMark + discoverLogoPlate): a logo on white with rounded corners (24% of its side), else the
   initial on the listing's color ── */
.of-ds-mark { --of-ds-side: calc(var(--of-ds-mark, 52px) * var(--of-s, 1)); flex: none; display: grid; place-items: center; overflow: hidden;
  width: var(--of-ds-side); height: var(--of-ds-side); border-radius: 24%; background: var(--of-ds-mark-fill, var(--accent, #1E6BFF));
  color: var(--of-ds-mark-ink, #FFF); font-weight: 700; font-size: calc(var(--of-ds-side) * 0.46); line-height: 1; }
.of-ds-mark--logo { background: #FFF; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); }
.of-ds-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* How it signs in (DiscoverSignInLabel): caption, muted, its mark before it, one line. */
.of-ds-signin { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1));
  color: var(--text-muted, #666); white-space: nowrap; }
.of-ds-signin > span { overflow: hidden; text-overflow: ellipsis; }
.of-ds-signin .of-glyph { font-size: 1.05em; }

/* The Toll-Free badge (TollfreeBadge: OFTag in the accent with its gift). */
.of-ds-tf { display: inline-flex; align-items: center; gap: 3px; flex: none; width: max-content; padding: 1px 7px; border-radius: 999px; cursor: pointer;
  font-size: calc(11px * var(--of-s, 1)); font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: var(--accent, #000); color: var(--ink-on-accent, #FFF); }
.of-ds-tf .of-glyph { font-size: 1.05em; }

/* ── Featured (StorefrontCarousel + StorefrontFeaturedCard): one card a page, 188 points tall, 14-point corners ── */
.of-ds-featured { display: grid; gap: calc(8px * var(--of-s, 1)); min-width: 0; }
.of-ds-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; overscroll-behavior-x: contain; }
.of-ds-track::-webkit-scrollbar { display: none; }
.of-ds-card { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; gap: calc(18px * var(--of-s, 1));
  height: calc(188px * var(--of-s, 1)); padding: 0 calc(22px * var(--of-s, 1)); border: 0; border-radius: 0; text-align: start; text-decoration: none; cursor: pointer;
  background: var(--of-ds-fill, var(--accent)); color: var(--of-ds-ink, #FFF); min-width: 0; }
.of-ds-card:focus-visible { outline-offset: -4px; outline-color: var(--of-ds-ink, #FFF); }
.of-ds-card-text { display: grid; gap: calc(4px * var(--of-s, 1)); min-width: 0; justify-items: start; }
.of-ds-card-eyebrow { font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); font-weight: 600; text-transform: uppercase; opacity: 0.75; letter-spacing: 0.02em; }
.of-ds-card-name { font-size: calc(var(--of-text-title-size, 26px) * var(--of-s, 1)); font-weight: 600; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-ds-card-pitch { font-size: calc(var(--of-text-body-size, 14px) * var(--of-s, 1)); line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.of-ds-card-signin { display: flex; align-items: center; gap: 4px; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); opacity: 0.8; white-space: nowrap; }
.of-ds-card .of-ds-tf { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
@media (max-width: 699.98px) { .of-ds-card { gap: 14px; padding: 0 18px; height: 196px; } .of-ds-card .of-ds-mark { --of-ds-side: 72px; } .of-ds-card-name { font-size: 24px; } }
.of-ds-controls { display: flex; align-items: center; justify-content: center; gap: calc(10px * var(--of-s, 1)); }
.of-ds-arrow { display: grid; place-items: center; width: calc(28px * var(--of-s, 1)); height: calc(28px * var(--of-s, 1)); padding: 0; border: 0; background: none;
  color: var(--text-muted, #666); cursor: pointer; font-size: calc(12px * var(--of-s, 1)); border-radius: 50%; }
.of-ds-arrow:hover { color: var(--text-primary, #000); }
.of-ds-arrow .of-glyph { stroke-width: 2.6; }
.of-ds-dots { display: flex; gap: calc(6px * var(--of-s, 1)); }
.of-ds-dot { width: calc(13px * var(--of-s, 1)); height: calc(13px * var(--of-s, 1)); padding: calc(3px * var(--of-s, 1)); border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.of-ds-dot::before { content: ""; width: 100%; height: 100%; border-radius: 50%; background: var(--text-muted, #666); opacity: 0.4; }
.of-ds-dot.is-on::before { background: var(--text-primary, #000); opacity: 1; }

/* ── a shelf (StorefrontShelfView): the section label and See All, then tiles in a row that scrolls sideways ── */
.of-ds-shelf { display: grid; gap: calc(8px * var(--of-s, 1)); min-width: 0; }
.of-ds-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.of-ds-shelf-title { margin: 0; font-size: calc(var(--of-text-label-size, 10px) * var(--of-s, 1)); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted, #666); line-height: 1.3; }
.of-ds-seeall { border: 0; background: none; padding: 0; cursor: pointer; font-size: calc(var(--of-text-body-size, 14px) * var(--of-s, 1)); font-weight: 500; color: var(--accent-text, var(--accent)) !important; }
.of-ds-seeall:hover { text-decoration: underline; }
.of-ds-tiles { list-style: none; margin: 0; padding: 2px 0; display: flex; gap: calc(16px * var(--of-s, 1)); overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin; }
@media (pointer: coarse) { .of-ds-tiles { scrollbar-width: none; } .of-ds-tiles::-webkit-scrollbar { display: none; } }
.of-ds-tiles > li { flex: none; scroll-snap-align: start; }
.of-ds-tile { display: grid; gap: calc(6px * var(--of-s, 1)); width: calc(156px * var(--of-s, 1)); padding: 0; border: 0; background: none; text-align: start; text-decoration: none; color: inherit; cursor: pointer; align-content: start; }
.of-ds-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.of-ds-tile-name { font-size: calc(var(--of-text-headline-size, 17px) * var(--of-s, 1)); font-weight: 600; color: var(--text-primary, #000); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.of-ds-tile-sub { font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); line-height: 1.3; color: var(--text-muted, #666); min-height: 2.6em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.of-ds-tile:hover .of-ds-tile-name { text-decoration: underline; }

/* ── rows (DiscoverStreamlineRow): search's answer in a panel, See All and related listings in a grid ── */
.of-ds-caption { margin: 0 0 8px; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); color: var(--text-muted, #666); }
.of-ds-rows { list-style: none; margin: 0; padding: 0; min-width: 0; }
.of-ds-rows--panel { background: var(--surface, #F5F5F5); border: 1px solid var(--border, #E0E0E0); border-radius: var(--of-size-page-panel-radius, 10px); padding: 0 var(--of-size-page-panel-pad, 14px); }
.of-ds-rows--panel > li + li { border-top: 1px solid var(--border, #E0E0E0); }
.of-ds-rows--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(300px * var(--of-s, 1))), 1fr)); column-gap: calc(18px * var(--of-s, 1)); }
.of-ds-row { display: flex; align-items: center; gap: calc(12px * var(--of-s, 1)); width: 100%; min-height: var(--of-size-hit, 44px); padding: calc(10px * var(--of-s, 1)) 0;
  border: 0; background: none; text-align: start; text-decoration: none; color: inherit; cursor: pointer; min-width: 0; }
.of-ds-row-text { display: grid; gap: calc(2px * var(--of-s, 1)); min-width: 0; flex: 1 1 auto; justify-items: start; }
.of-ds-row-head { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.of-ds-row-name { font-size: calc(var(--of-text-body-size, 14px) * var(--of-s, 1)); font-weight: 600; color: var(--text-primary, #000); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-ds-row-sub { font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); line-height: 1.3; color: var(--text-muted, #666); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.of-ds-row-chevron { flex: none; color: var(--text-muted, #666); font-size: calc(12px * var(--of-s, 1)); }
.of-ds-row:hover .of-ds-row-name { text-decoration: underline; }

/* ── the listing's page (DiscoverListingLayout: 36-point spacing, 1040 wide) ── */
of-listing { container: of-dl / inline-size; --of-dl-kind: var(--accent, #1E6BFF); max-width: 1040px; margin: 0 auto; width: 100%; }
.of-dl { display: grid; gap: calc(36px * var(--of-s, 1)); min-width: 0; }
.of-dl h2 { margin: 0; font-size: calc(var(--of-text-headline-size, 17px) * var(--of-s, 1)); font-weight: 600; color: var(--text-primary, #000); }
.of-dl-muted { margin: 0; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); color: var(--text-muted, #666); line-height: 1.4; }
.of-dl-text { margin: 0; font-size: calc(var(--of-text-body-size, 14px) * var(--of-s, 1)); line-height: 1.45; white-space: pre-line; }
.of-dl .of-dl-label { margin: 0; font-size: calc(11px * var(--of-s, 1)); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #666); }

/* The hero (DiscoverListingHero): narrow, one column (the header, the actions, the phone, Try it…, the strip); from 700
   points the phone stands on the right of the rest. */
.of-dl-hero { display: flex; flex-direction: column; gap: calc(18px * var(--of-s, 1)); min-width: 0; }
.of-dl-head { order: 1; grid-area: head; display: flex; gap: calc(16px * var(--of-s, 1)); align-items: flex-start; min-width: 0; }
.of-dl-actions { order: 2; grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.of-dl-actions:empty { display: none; }
.of-dl-convo { order: 3; grid-area: convo; margin: 0; align-self: center; justify-self: center; }
.of-dl-try { order: 4; grid-area: try; display: grid; gap: calc(8px * var(--of-s, 1)); min-width: 0; }
.of-dl-strip { order: 5; grid-area: strip; }
of-listing[wide] .of-dl-hero--phone { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: calc(32px * var(--of-s, 1)); align-items: start;
  grid-template-areas: "head convo" "actions convo" "try convo" "strip convo"; grid-template-rows: auto auto auto 1fr; }
of-listing[wide] .of-dl-convo { justify-self: end; }
.of-dl-head .of-dl-mark { --of-ds-mark: 64px; }
of-listing[wide] .of-dl-head .of-dl-mark { --of-ds-mark: 80px; }
.of-dl-titles { display: grid; gap: calc(4px * var(--of-s, 1)); min-width: 0; justify-items: start; }
.of-dl-name { margin: 0; font-size: calc(28px * var(--of-s, 1)); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.of-dl-subtitle { margin: 0; font-size: calc(17px * var(--of-s, 1)); color: var(--text-muted, #666); line-height: 1.3; }
.of-dl-signin { margin: 0; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); color: var(--text-primary, #000); }
.of-dl-note { margin: 0; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); font-weight: 600; color: var(--accent-text, var(--accent)); }
.of-dl-tf { margin: 2px 0 0; }
.of-dl-shared { margin: 2px 0 0; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); color: var(--text-muted, #666); }

/* Try it… (DiscoverTryIt): each turn's words in a capsule that wraps to two lines; the one playing tinted in the
   streamline's color (12%, its edge 55%). */
.of-dl-says { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.of-dl-says > li { min-width: 0; max-width: 100%; }
.of-dl-say { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; text-align: start; cursor: pointer;
  font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); line-height: 1.35; padding: calc(5px * var(--of-s, 1)) 10px; border-radius: 999px;
  border: 1px solid var(--border, #E0E0E0); background: transparent; color: var(--text-primary, #000) !important; min-height: var(--of-touch, 0px);
  transition: background 0.15s ease, border-color 0.15s ease; }
.of-dl-say:hover { border-color: var(--of-dl-kind); }
.of-dl-say.is-on { background: color-mix(in srgb, var(--of-dl-kind) 12%, transparent); border-color: color-mix(in srgb, var(--of-dl-kind) 55%, transparent); }

/* The information strip (DiscoverListingStrip): a rule above and below, the facts in three columns (two under 520),
   small spaced capitals over each, the provider's line under them. */
.of-dl-strip { margin: 0; padding: calc(16px * var(--of-s, 1)) 0; border-top: 1px solid var(--border, #E0E0E0); border-bottom: 1px solid var(--border, #E0E0E0);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(16px * var(--of-s, 1)); min-width: 0; }
@container of-dl (min-width: 520px) { .of-dl-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.of-dl-fact { display: grid; gap: calc(4px * var(--of-s, 1)); align-content: start; min-width: 0; }
.of-dl-fact dt { font-size: calc(11px * var(--of-s, 1)); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #666); }
.of-dl-fact dd { margin: 0; font-size: calc(var(--of-text-body-size, 14px) * var(--of-s, 1)); font-weight: 600; overflow-wrap: anywhere; }
.of-dl-fact dd small { display: block; font-weight: 400; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); color: var(--text-muted, #666); }
.of-dl-provider { grid-column: 1 / -1; }
.of-dl-provider dd { font-weight: 400; }
.of-dl-provider a { color: var(--accent-text, var(--accent)); }
.of-dl-catlink { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-align: start; }

/* Description and What's New, side by side from 620 points (the second min(300, 36%)). */
.of-dl-about { display: grid; gap: calc(20px * var(--of-s, 1)); min-width: 0; }
of-listing[about-wide] .of-dl-about { grid-template-columns: minmax(0, 1fr) min(300px, 36%); column-gap: calc(32px * var(--of-s, 1)); }
.of-dl-block { display: grid; gap: calc(6px * var(--of-s, 1)); align-content: start; min-width: 0; }

/* Sections under the hero: Tools, Preview, related. */
.of-dl-section { display: grid; gap: var(--of-size-page-label-gap, 8px); min-width: 0; }
.of-dl-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.of-dl-count { color: var(--text-muted, #666); font-weight: 600; }
.of-dl-chip { font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); font-weight: 500; padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--text-muted, #666); align-self: center; }
.of-dl-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.of-dl-tool { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); line-height: 1.3;
  padding: 3px 9px; border-radius: 999px; background: var(--surface-high, #EBEBEB); color: var(--text-secondary, var(--text-primary)); overflow-wrap: anywhere; }
.of-dl-tool--asks { background: color-mix(in srgb, var(--of-dl-kind) 12%, transparent); color: var(--text-primary, #000); }
.of-dl-tool--asks .of-glyph, .of-dl-legend .of-glyph { color: var(--of-dl-kind); }
.of-dl-legend { margin: 0; display: flex; align-items: center; gap: 5px; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); color: var(--text-muted, #666); }
.of-dl-shots { list-style: none; margin: 0; padding: 6px 2px; display: flex; gap: calc(18px * var(--of-s, 1)); overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin; }
.of-dl-shot { flex: none; display: grid; gap: 8px; justify-items: center; scroll-snap-align: start; width: 200px; --of-dp-zoom: 0.487; }
.of-dl-shot-label { margin: 0; width: 200px; text-align: center; font-size: calc(var(--of-text-caption-size, 12px) * var(--of-s, 1)); color: var(--text-muted, #666); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-dl-convo { --of-dp-zoom: var(--of-dp-hero-zoom, 0.68); }

/* ── Outerface's iPhone (DiscoverPhoneFrame): every length a share of the screen's width; a black body with an even
   bezel, concentric corners, a thin rim, the Dynamic Island in the bezel (black in light and dark alike). The screen is
   the app's 393 × 852 points, zoomed. ── */
.of-dp { --of-dp-sw: calc(393px * var(--of-dp-zoom, 0.68)); --of-dp-b: max(2px, calc(var(--of-dp-sw) * 0.0225));
  position: relative; flex: none; width: calc(var(--of-dp-sw) + 2 * var(--of-dp-b)); padding: var(--of-dp-b); border-radius: calc(var(--of-dp-sw) * 0.172);
  background: #0B0B0C; box-shadow: 0 0 0 max(1px, calc(var(--of-dp-sw) * 0.002)) #2B2C30, 0 calc(var(--of-dp-sw) * 0.012) calc(var(--of-dp-sw) * 0.03) rgb(0 0 0 / 0.10); }
.of-dp-island { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--of-dp-b) + var(--of-dp-sw) * 0.028);
  width: calc(var(--of-dp-sw) * 0.316); height: calc(var(--of-dp-sw) * 0.092); border-radius: 999px; background: #000; pointer-events: none; }
.of-dp-screen { --of-s: 1.3; zoom: var(--of-dp-zoom, 0.68); width: 393px; height: 852px; border-radius: 58.75px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; background: var(--bg, #FFF); color: var(--text-primary, #000); font-family: var(--of-font-body);
  font-size: 17px; line-height: 1.3; pointer-events: none; user-select: none; -webkit-user-select: none; }
.of-dp-screen .of-glyph { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; }
.of-dp-band { flex: 0 0 54px; }
.of-dp-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 16px 8px; }
.of-dp-back, .of-dp-more { color: var(--text-muted, #666); font-size: 22px; display: grid; place-items: center; }
.of-dp-more { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--surface, #F5F5F5); font-size: 18px; }
.of-dp-titles { display: grid; min-width: 0; }
.of-dp-title { font-weight: 600; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-dp-sub { font-size: 13px; color: var(--text-muted, #666); }
.of-dp-chips { flex: none; display: flex; gap: 8px; padding: 0 16px 10px; border-bottom: 1px solid var(--border, #E0E0E0); overflow: hidden; }
.of-dp-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--surface, #F5F5F5);
  color: var(--text-muted, #666); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; flex: none; }
.of-dp-chip.is-on { background: color-mix(in srgb, var(--of-dp-kind) 14%, var(--bg, #FFF)); color: var(--text-primary, #000); font-weight: 600; flex-shrink: 1; min-width: 0; }
.of-dp-transcript { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 16px 16px 12px; display: flex; flex-direction: column; scroll-behavior: smooth; }
.of-dp-turn { display: flex; flex-direction: column; gap: 12px; }
.of-dp-turn > * { flex-shrink: 0; }
.of-dp-bubble { align-self: flex-end; max-width: 78%; margin: 0; padding: 9px 14px; border-radius: 20px; background: var(--of-dp-solid, var(--of-dp-kind)); color: var(--of-dp-solid-ink, #FFF); white-space: pre-wrap; }
.of-dp-reply { margin: 0; white-space: pre-wrap; }
.of-dp-card { border: 1px solid var(--border, #E0E0E0); border-radius: 18px; background: var(--surface, #F5F5F5); overflow: hidden; padding: 12px 14px; }
.of-dp-typing { margin: 0; display: none; gap: 5px; }
.of-dp-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted, #666); display: block; }
.of-dp-composer { flex: none; margin: 0 12px 30px; height: 46px; border-radius: 999px; border: 1px solid var(--border-bright, var(--border, #CCC));
  display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; background: var(--bg, #FFF); color: var(--text-muted, #666); font-size: 16px; }
.of-dp-composer > .of-glyph { font-size: 20px; color: var(--of-dp-kind); }
.of-dp-placeholder { flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.of-dp-composer b { width: 34px; height: 34px; border-radius: 50%; background: var(--of-dp-solid, var(--of-dp-kind)); color: var(--of-dp-solid-ink, #FFF); display: grid; place-items: center; font-size: 18px; flex: none; }
.of-dp-composer b .of-glyph { stroke-width: 2.6; }

/* Playing (components/discover.js adds .of-dp--play): one turn at a time; each part arrives on its step (data-at), and
   thinking shows only while it is the step. Without script, every part of the first turn stands. */
.of-dp-turn + .of-dp-turn { display: none; }
.of-dp--play .of-dp-turn { display: none; }
.of-dp--play .of-dp-turn.is-on { display: flex; }
.of-dp--play .of-dp-turn > * { opacity: 0; transform: translateY(8px); transition: opacity 0.22s ease-out, transform 0.22s ease-out; }
.of-dp--play .of-dp-turn > .is-in { opacity: 1; transform: none; }
.of-dp--play .of-dp-turn > :not(.is-in) { position: absolute; visibility: hidden; }
.of-dp--play .of-dp-turn > .of-dp-typing.is-in { display: flex; }
.of-dp--play .of-dp-typing i { animation: of-dp-dot 0.7s infinite ease-in-out; }
.of-dp--play .of-dp-typing i:nth-child(2) { animation-delay: 0.1s; }
.of-dp--play .of-dp-typing i:nth-child(3) { animation-delay: 0.2s; }
@keyframes of-dp-dot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* The card that waits for the tap (ConfirmCard): "Needs your tap", its question, Not yet and the button; once tapped,
   "<button>: you tapped it". */
.of-dp-ask { padding: 0; }
.of-dp-ask-head { margin: 0; padding: 12px 14px 0; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--of-dp-kind); }
.of-dp-ask-body, .of-dp-ask-own { padding: 8px 14px 14px; }
.of-dp-ask-title { margin: 0; font-weight: 600; font-size: 17px; }
.of-dp-ask-rows { margin: 8px 0 0; display: grid; gap: 4px; font-size: 14px; }
.of-dp-ask-rows div { display: flex; justify-content: space-between; gap: 12px; }
.of-dp-ask-rows dt { color: var(--text-muted, #666); }
.of-dp-ask-rows dd { margin: 0; text-align: end; font-weight: 500; }
.of-dp-ask-foot, .of-dp-ask-done { border-top: 1px solid var(--border, #E0E0E0); }
.of-dp-ask-foot { display: none; gap: 10px; padding: 12px; }
.of-dp-ask-foot span { flex: 1 1 0; text-align: center; padding: 10px 8px; border-radius: 12px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-dp-ask-no { background: var(--surface-high, #EBEBEB); }
.of-dp-ask-yes { background: var(--of-dp-solid, var(--of-dp-kind)); color: var(--of-dp-solid-ink, #FFF); font-weight: 600; transition: transform 0.12s ease, filter 0.12s ease; }
.of-dp-ask-done { margin: 0; padding: 14px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--success-text, #1E7A3C); }
.of-dp--play .of-dp-turn:not(.is-tapped) .of-dp-ask-foot { display: flex; }
.of-dp--play .of-dp-turn:not(.is-tapped) .of-dp-ask-done { display: none; }
.of-dp--play .of-dp-turn.is-pressing .of-dp-ask-yes { transform: scale(0.94); filter: brightness(0.85); }

@media (prefers-reduced-motion: reduce) {
  .of-dp--play .of-dp-turn > *, .of-dl-say { transition: none; }
  .of-dp--play .of-dp-typing i { animation: none; }
  .of-dp-transcript, .of-ds-track { scroll-behavior: auto; }
}
