/* ════════════════════════════════════════════════════════════════════════════
   LISTRAK CONVERSE - THE RCS EMULATOR EMBED - STARTER STYLESHEET

   The design-system tokens (--cv-*) the embedded conversation wears most, with
   the value each has when nothing sets it - per channel skin (RCS, WhatsApp,
   Apple) and per theme (light, dark) - and, at the end, every PART you can
   style by name and every token, straight from the design contract. Loaded
   exactly as it is, this file changes nothing you can see. Edit any value,
   host the file on your own https:// site and load it:

     ConverseRcs.mount("#phone", {
       code: "YOURCODE",
       style: { source: "host", href: "https://www.example.com/converse.css" }
     });

   or on the script tag: data-style-source="host" data-style-href="https://...".
   Your stylesheet is loaded INSIDE the frame, after the shell's own, so these
   selectors are the ones to use - and since the shell's own rules sit in cascade
   layers, a rule of yours wins over ours without a specificity fight. Style
   options you pass (accent, background, font, bubbleMe ...) still win over this
   file.

   docs: https://go.rcsbuilder.com/rcs/embed/  (the live demo + every option)
         RCS-Emulator-Embed.md "Styling" in the Listrak Converse developer docs.

   A token left out (or deleted) falls back to the shell's own value for the
   skin and theme on screen. --cv-chip-ink and --cv-avatar-bg are left out on
   purpose: chips follow --cv-accent, and the avatar wears the workspace's
   colour - set them to break the link. Set the phone's tokens on .screen (a
   token on :root never reaches the phone - the screen declares its own).

   Written for an older starter? The names before the design system were
   retired on 2026-10-29 - RCS-Emulator-Embed.md "Moving from the old names"
   has the one-to-one table.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── RCS (Google Messages) - light. The base: every other block changes only what differs. ── */
.screen {
  --cv-font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;  /* the screen's type */
  --cv-accent: #1a73e8;                         /* chips, card buttons, links, the send button */
  --cv-header-bg: #fff;                         /* the status bar and the app bar */
  --cv-header-ink: #1f1f1f;                     /* their text and icons */
  --cv-header-line: rgba(0, 0, 0, .07);         /* the line under the app bar */
  --cv-verified-shield: #1a73e8;                /* the verified shield beside the name */
  --cv-thread-bg: #f1f3f4;                      /* the conversation's background */
  --cv-bubble-me-bg: #1a73e8;                   /* the visitor's bubbles */
  --cv-bubble-me-ink: #fff;
  --cv-bubble-them-bg: #fff;                    /* the business's bubbles */
  --cv-bubble-them-ink: #1f1f1f;
  --cv-bubble-radius: 18px;
  --cv-bubble-font-size: 14.5px;
  --cv-verified-bg: rgba(26, 115, 232, .07);    /* "This business is verified" */
  --cv-verified-ink: #3c4043;                   /* its text (and a card's full-page text) */
  --cv-verified-icon: #1a73e8;
  --cv-daymark-bg: rgba(0, 0, 0, .045);         /* the "Today" pill */
  --cv-daymark-ink: #5f6368;
  --cv-receipt-ink: #80868b;                    /* "Delivered" */
  --cv-card-bg: #fff;                           /* rich cards, carousels and a card's full page */
  --cv-card-title-ink: #1f1f1f;
  --cv-card-text-ink: #5f6368;
  --cv-card-line: #e8eaed;                      /* the line above a card's buttons, an image still loading */
  --cv-card-radius: 17px;
  --cv-chip-bg: #fff;                           /* quick replies */
  --cv-chip-border: #dadce0;                    /* (also a contact card's initial) */
  --cv-chip-radius: 18px;
  --cv-composer-bg: #fff;                       /* the message field */
  --cv-composer-ink: #1f1f1f;
  --cv-composer-icon-ink: #5f6368;
  --cv-composer-placeholder-ink: #80868b;
  --cv-tile-ink: #5f6368;                       /* a contact's or a location's lines */
  /* --cv-chip-ink: #1a73e8;                       quick-reply text - follows --cv-accent unless set */
  /* --cv-avatar-bg: #5f6368;                      the business's initial - the workspace's colour unless set */
}

/* ── WhatsApp - light ── */
.screen[data-skin="WhatsApp"] {
  --cv-accent: #075e54;
  --cv-header-bg: #075e54;
  --cv-header-ink: #fff;
  --cv-header-line: rgba(255, 255, 255, .12);
  --cv-verified-shield: #a7f3d0;
  --cv-thread-bg: #ece5dd;
  --cv-bubble-me-bg: #dcf8c6;
  --cv-bubble-me-ink: #111b21;
  --cv-bubble-them-ink: #111b21;
  --cv-verified-bg: rgba(7, 94, 84, .08);
  --cv-verified-icon: #075e54;
}

/* ── Apple Messages for Business - light ── */
.screen[data-skin="AMB"] {
  --cv-accent: #007aff;
  --cv-header-bg: #f7f7f7;
  --cv-thread-bg: #fff;
  --cv-bubble-me-bg: #007aff;
  --cv-bubble-them-bg: #e9e9eb;
  --cv-bubble-them-ink: #000;
  --cv-verified-bg: #f2f2f7;
  --cv-verified-icon: #007aff;
}

/* ── RCS - dark (style: { theme: "dark" }, or "auto" on a dark device) ── */
html[data-theme="dark"] .screen {
  --cv-accent: #a8c7fa;
  --cv-header-bg: #1f1f1f;
  --cv-header-ink: #e3e3e3;
  --cv-header-line: rgba(255, 255, 255, .08);
  --cv-verified-shield: #a8c7fa;
  --cv-thread-bg: #121212;
  --cv-bubble-me-bg: #a8c7fa;
  --cv-bubble-me-ink: #062e6f;
  --cv-bubble-them-bg: #2d2f31;
  --cv-bubble-them-ink: #e3e3e3;
  --cv-verified-bg: rgba(168, 199, 250, .10);
  --cv-verified-ink: #c4c7c5;
  --cv-verified-icon: #a8c7fa;
  --cv-daymark-bg: rgba(255, 255, 255, .08);
  --cv-daymark-ink: #c4c7c5;
  --cv-receipt-ink: #9aa0a6;
  --cv-card-bg: #2d2f31;
  --cv-card-title-ink: #e3e3e3;
  --cv-card-text-ink: #c4c7c5;
  --cv-card-line: #444746;
  --cv-chip-bg: #1f1f1f;
  --cv-chip-border: #444746;
  --cv-composer-bg: #2d2f31;
  --cv-composer-ink: #e3e3e3;
  --cv-composer-icon-ink: #c4c7c5;
  --cv-composer-placeholder-ink: #9aa0a6;
  --cv-tile-ink: #c4c7c5;
}

/* ── WhatsApp - dark ── */
html[data-theme="dark"] .screen[data-skin="WhatsApp"] {
  --cv-accent: #00a884;
  --cv-header-bg: #1f2c34;
  --cv-header-ink: #e9edef;
  --cv-header-line: rgba(255, 255, 255, .08);
  --cv-verified-shield: #00a884;
  --cv-thread-bg: #0b141a;
  --cv-bubble-me-bg: #005c4b;
  --cv-bubble-me-ink: #e9edef;
  --cv-bubble-them-bg: #202c33;
  --cv-bubble-them-ink: #e9edef;
  --cv-verified-bg: rgba(0, 168, 132, .10);
  --cv-verified-icon: #00a884;
  --cv-card-bg: #202c33;
  --cv-chip-bg: #1f2c34;
  --cv-composer-bg: #202c33;
}

/* ── Apple - dark ── */
html[data-theme="dark"] .screen[data-skin="AMB"] {
  --cv-accent: #0a84ff;
  --cv-header-bg: #1c1c1e;
  --cv-header-ink: #fff;
  --cv-thread-bg: #000;
  --cv-bubble-me-bg: #0a84ff;
  --cv-bubble-me-ink: #fff;
  --cv-bubble-them-bg: #26252a;
  --cv-bubble-them-ink: #fff;
  --cv-verified-bg: #1c1c1e;
  --cv-verified-icon: #0a84ff;
  --cv-card-bg: #1c1c1e;
  --cv-chip-bg: #1c1c1e;
  --cv-composer-bg: #1c1c1e;
}

/* ── The bottom sheet (a long list, the + menu, a dropped pin, the related list). It rises inside the screen but
   keeps its own scope, so its tokens live here, on .sheet-wrap (its accent and type too - --cv-accent and
   --cv-font-body set here reach the sheet; the screen's do not). ── */
.sheet-wrap {
  --cv-sheet-bg: #fff;
  --cv-sheet-ink: #1f1f1f;
}
html[data-theme="dark"] .sheet-wrap {
  --cv-sheet-bg: #2d2f31;
  --cv-sheet-ink: #e3e3e3;
}

/* ── GENERATED FROM design/contract.json - do not edit by hand (Tests/Design/RcsStarterNamesTheContractTests) ── */
/*
   THE PARTS - every piece of the conversation you may style, by a name we keep across releases (unlike a
   class). Contract version 1. Select one with [data-cv-part="chip"].

   [data-cv-part="stage"]               The dark demo stage around the phone - the standalone page only; an embed never shows it.
   [data-cv-part="device"]              The phone's bezel - the iPhone's titanium rail, the Pixel's, or none at all.
   [data-cv-part="screen"]              The phone's glass - everything the conversation shows.
   [data-cv-part="header"]              The business's header - its logo, its name, and under the name the verified tick and its line (the verified-brand header, on every face; an embed hides it with frame.brandHeader false).
   [data-cv-part="brand-logo"]          The business's logo, or its initial, in the header.
   [data-cv-part="brand-name"]          The business's name in the header (beside brand-logo, on every face).
   [data-cv-part="call"]                The header's phone button - it dials the workspace's number (shown only when the workspace has one).
   [data-cv-part="more"]                The header's More button - it opens contact-menu (shown only when the workspace has contact details).
   [data-cv-part="contact-menu"]        The small menu under More: the workspace's phone, email, links and addresses (Settings > Contact us).
   [data-cv-part="contact-item"]        One line of contact-menu - a call, an email, a link or an address.
   [data-cv-part="contact-directions"]  The Directions mark on an address line of contact-menu.
   [data-cv-part="verified"]            The note at the top of the thread that says the business is verified.
   [data-cv-part="person"]              Who the conversation takes the visitor to be, right under verified - "Hi Dana" beside not-you, when the brand's launch token (or a page's hint the code allows) named them; afterwards the words that say they are no longer taken for that person.
   [data-cv-part="not-you"]             The Not you? chip beside person (protected - a design dresses it, never hides it): the visitor is not that person, and the conversation stops treating them as them.
   [data-cv-part="daymark"]             The Today pill above the first message.
   [data-cv-part="thread"]              The scrolling conversation.
   [data-cv-part="bubble-me"]           A bubble the visitor sent.
   [data-cv-part="bubble-them"]         A bubble the business sent - the typing bubble too, with data-cv-state typing.
   [data-cv-part="typing"]              The three dots while the business is typing.
   [data-cv-part="card"]                A rich card, alone or in a carousel.
   [data-cv-part="card-media"]          A card's picture.
   [data-cv-part="card-button"]         A button under a card - an answer, or a link that opens a page, a place on a map or an event for the calendar.
   [data-cv-part="card-detail"]         A card's full page, opened by tapping its text.
   [data-cv-part="carousel"]            A rail of cards - swiped on a phone, arrows on a desktop.
   [data-cv-part="document-tile"]       A file in a bubble - its type and its name.
   [data-cv-part="receipt"]             Delivered, under the visitor's last bubble.
   [data-cv-part="chip-rail"]           The row of quick replies under the thread.
   [data-cv-part="chip"]                A quick reply - or a link, a place on a map, an event for the calendar, a list's opener, Share location.
   [data-cv-part="reply-list"]          The replies of a moment set to Style "A list" - one panel under the business's last bubble, the way an iPhone stacks a long menu (the wire is the same suggestion chips; only the drawing differs). It goes when the thread moves on. Dressed by the --cv-reply-list-* tokens (its width, border, corners, shadow); its dividers sit between the rows.
   [data-cv-part="reply-list-row"]      One reply in that panel - a full-width row; a tap answers exactly as a quick reply does. The row tapped carries data-cv-state selected and every other row disabled while the answer travels (given back if it never lands); its ::before is the icon and its ::after the chevron when a design names them (--cv-reply-list-icon, --cv-reply-list-chevron).
   [data-cv-part="composer"]            The message field and its buttons.
   [data-cv-part="attach"]              The + button - camera, photos, a file, a location.
   [data-cv-part="composer-input"]      Where the visitor types.
   [data-cv-part="camera"]              The camera button.
   [data-cv-part="send"]                The send button - it appears when there is something to send (data-cv-state disabled while there is nothing to send).
   [data-cv-part="sheet"]               The bottom sheet a list, the + menu or a dropped pin opens.
   [data-cv-part="list"]                The rows inside the bottom sheet.
   [data-cv-part="sheet-row"]           One row of the bottom sheet - a field's row carries data-cv-state error while its answer is refused.
   [data-cv-part="error"]               A refusal said in the bottom sheet - a pin it cannot read, a link that is not https.
   [data-cv-part="link-sheet"]          A page the business opens over the thread, inside the phone.
   [data-cv-part="toast"]               A line the shell says over the page - an error or a refusal.
   [data-cv-part="related-strip"]       The strip of related conversations under the header - it scrolls sideways (shown only when the conversation has related conversations).
   [data-cv-part="related-bubble"]      One related conversation in the strip - a tap starts it here.
   [data-cv-part="related-button"]      The header's button that opens the related conversations' sheet, in the list's own title (when they are shown as topics).
   [data-cv-part="related-sheet"]       The bottom sheet of related conversations the header's button opens.
   [data-cv-part="related-row"]         One related conversation in that sheet, or in the rail of a wide screen - a tap starts it here.
   [data-cv-part="related-side"]        THE RAIL - the column down the left of a wide screen (a floating panel gone wide, or a bare embed 880 px or wider): New conversation, then the related conversations under their title. Shown only when the conversation has related conversations.
   [data-cv-part="new-conversation"]    New conversation, at the top of the rail - it starts the conversation over (Start over).
   [data-cv-part="expand-button"]       The app bar's expand button in a floating panel - wider and back (aria-pressed while wide); shown only while the page's window has room for the wide panel.
   [data-cv-part="consent-card"]        The card shown before the conversation starts, when it asks the visitor to accept a few words first (protected - a design dresses it in colours, type, borders and corners, never hides it).
   [data-cv-part="consent-text"]        The words of that card - paragraphs, bold and links, as the author wrote them (protected).
   [data-cv-part="consent-accept"]      The card's Accept button - it starts the conversation (protected).
   [data-cv-part="consent-decline"]     The card's Decline button - nothing starts (protected - a design never hides it).
   [data-cv-part="consent-declined"]    The words in the card's place once the visitor declined.
   [data-cv-part="heard-card"]          What the person's own typed words were heard as - above the reply: a sparkle and "The AI Concierge heard" (or "{name} heard" for the assistant's own name), then a heard-pill per answer (data-cv-turn heard). Drawn from the reply's own lines - the text a phone reads.
   [data-cv-part="heard-pill"]          One answer in heard-card - the moment's name, then the value as it landed (the run's record, never the AI's wording). The pills take three shades of the accent in turn.
   [data-cv-part="saved-receipt"]       The receipt under the reply when an Action moment finished, or the conversation was saved at its end - a check mark, the title and its line (data-cv-turn saved).

   On YOUR page (outside the frame - style these from your own stylesheet):
   [data-cv-part="frame"]               The box on the host page that holds an inline conversation, where the tag sits.
   [data-cv-part="panel"]               The floating box a launcher (or a data-converse-open link) opens. It says the launcher's corner in data-cv-corner (a linked panel sits at its corner too). While the launcher's teaser holds it open on its own it carries data-cv-state="teasing". (Inside the frame, the AI Concierge names its card panel too - the same idea, the other side of the frame.)
   [data-cv-part="panel-header"]        The floating panel's header on a phone-sized full screen, when the page asks for one (launcher.header) - the launcher's label and panel-close.
   [data-cv-part="panel-close"]         The close in that header.
   [data-cv-part="backdrop"]            The page's dimming behind an open panel, when the design names one (--cv-backdrop) - a click on it closes the panel. It says the launcher's corner in data-cv-corner, as the panel does.

   EACH ROW'S TURN - [data-cv-turn="card"] on the row a turn paints, the same word the turn event reports:
   text  media  file  card  carousel  list  contact  location  locationRequest  cta  heard  saved

   THE CONTEXT - on <html>, so [data-cv-skin="whatsapp"] [data-cv-part="chip"] reaches WhatsApp's chips alone:
   [data-cv-face]    rcs | bot | runner | launcher
   [data-cv-mode]    page | embed | panel | overlay | preview
   [data-cv-skin]    rcs | whatsapp | amb
   [data-cv-theme]   light | dark
   [data-cv-device]  iphone | pixel | bare
   [data-cv-screen]  thread | confirm | consent | signin | payment | done
   [data-cv-corner]  top-left | top-right | bottom-left | bottom-right   (the launcher frame's <html>; on YOUR page the panel and the backdrop)
   [data-cv-shape]   pill   (the launcher frame's <html>, a pill with a label only)

   THE STATES - [data-cv-state]: pending | typing | teasing | selected | disabled | error | muted
   (here: pending - the visitor's bubble on its way; typing - the business's typing bubble; disabled - the send
   button while there is nothing to send; error - a sheet row whose answer was refused; teasing - on YOUR page,
   the floating panel while the launcher's teaser holds it open)

   THE TOKENS - the design system's names, the only public variables. Set them on .screen (the sheet's on
   .sheet-wrap, the bezel's and the toast's on :root); the blocks at the top of this file set the ones the
   emulator wears most, with today's values. The emulator's own:

   --cv-avatar-bg                 --cv-header-bg                 --cv-header-ink
   --cv-header-line               --cv-header-shadow             --cv-brand-logo-size
   --cv-brand-logo-radius         --cv-brand-logo-ink            --cv-brand-name-size
   --cv-brand-name-weight         --cv-verified-line-size        --cv-verified-tick-size
   --cv-bubble-font-size          --cv-bubble-radius             --cv-bubble-tail-radius
   --cv-bubble-them-shadow        --cv-typing-dot                --cv-card-bg
   --cv-card-line                 --cv-card-radius               --cv-card-text-ink
   --cv-card-title-ink            --cv-card-shadow               --cv-card-button-hover-bg
   --cv-chip-bg                   --cv-chip-border               --cv-chip-ink
   --cv-chip-radius               --cv-chip-hover-bg             --cv-chip-hover-shadow
   --cv-reply-list-bg             --cv-reply-list-ink            --cv-reply-list-line
   --cv-reply-list-radius         --cv-reply-list-hover-bg       --cv-reply-list-width
   --cv-reply-list-border         --cv-reply-list-border-width   --cv-reply-list-shadow
   --cv-reply-list-gap            --cv-reply-list-row-bg         --cv-reply-list-row-radius
   --cv-reply-list-font-size      --cv-reply-list-font-weight    --cv-reply-list-align
   --cv-reply-list-row-padding    --cv-reply-list-line-width     --cv-reply-list-line-style
   --cv-reply-list-hover-ink      --cv-reply-list-pressed-bg     --cv-reply-list-focus-line
   --cv-reply-list-selected-bg    --cv-reply-list-selected-ink   --cv-reply-list-icon
   --cv-reply-list-icon-ink       --cv-reply-list-chevron        --cv-reply-list-chevron-ink
   --cv-composer-bg               --cv-composer-ink              --cv-composer-icon-ink
   --cv-composer-placeholder-ink  --cv-composer-icon-hover-bg    --cv-composer-shadow
   --cv-composer-line             --cv-send-bg                   --cv-send-ink
   --cv-daymark-bg                --cv-daymark-ink               --cv-receipt-ink
   --cv-sheet-bg                  --cv-sheet-ink                 --cv-sheet-muted
   --cv-sheet-line                --cv-sheet-row-line            --cv-sheet-row-hover
   --cv-sheet-field               --cv-sheet-backdrop            --cv-thread-bg
   --cv-tile-ink                  --cv-home-bar                  --cv-verified-bg
   --cv-verified-ink              --cv-verified-icon             --cv-verified-shield
   --cv-device-bezel              --cv-device-shadow             --cv-toast-bg
   --cv-toast-ink                 --cv-toast-line                --cv-toast-shadow
   --cv-consent-bg                --cv-consent-ink               --cv-consent-border
   --cv-consent-radius            --cv-consent-shadow            --cv-consent-padding
   --cv-consent-link-ink          --cv-consent-button-radius     --cv-consent-accept-bg
   --cv-consent-accept-ink        --cv-consent-decline-bg        --cv-consent-decline-ink
   --cv-consent-decline-border    --cv-consent-decline-hover-bg  --cv-consent-declined-ink
   --cv-related-strip-bg          --cv-related-strip-ink         --cv-related-strip-line
   --cv-related-bubble-bg         --cv-related-bubble-ink        --cv-related-bubble-border
   --cv-related-bubble-radius     --cv-related-bubble-hover-bg   --cv-related-row-ink
   --cv-related-row-hover-bg      --cv-related-mark-bg           --cv-related-mark-ink
   --cv-rail-bg                   --cv-rail-border               --cv-rail-width
   --cv-rail-heading-ink          --cv-heard-bg                  --cv-heard-line
   --cv-heard-ink                 --cv-heard-title-ink           --cv-heard-radius
   --cv-heard-pill-bg             --cv-heard-pill-bg-2           --cv-heard-pill-bg-3
   --cv-heard-pill-ink            --cv-heard-label-ink           --cv-saved-mark
   --cv-saved-bg                  --cv-saved-line                --cv-saved-ink
   --cv-saved-muted

   And the shared vocabulary - the same names on every face (reference, then semantic); a face reads the ones
   it wears:

   --cv-color-brand      --cv-color-ink        --cv-color-paper
   --cv-font-body        --cv-font-display     --cv-radius-s
   --cv-radius-m         --cv-radius-l         --cv-space-1
   --cv-space-2          --cv-space-3          --cv-space-4
   --cv-space-5          --cv-space-6          --cv-shadow-1
   --cv-shadow-2         --cv-shadow-3         --cv-motion-fast
   --cv-motion-slow      --cv-surface          --cv-on-surface
   --cv-accent           --cv-on-accent        --cv-muted
   --cv-danger           --cv-focus            --cv-bubble-me-bg
   --cv-bubble-me-ink    --cv-bubble-them-bg   --cv-bubble-them-ink
   --cv-field-font-size
*/
/* ── END OF THE GENERATED BLOCK ── */

/* ════════════════════════════════════════════════════════════════════════════
   THE STABLE CLASSES - the older way in, still kept (Tests/RcsEmbedBridgeTests
   pins them), but reach for the PARTS above first: a [data-cv-part] name is the
   one we promise across releases.

   html[data-theme="dark"]            the dark theme is on
   body.crs-embed                     the page runs in your frame
     [data-device]                    iphone | pixel | none
     [data-chrome]                    on | off (status bar, camera, home bar)
     [data-style-source]              tenant | none | host
   .device                            the bezel          .screen[data-skin]   RCS | WhatsApp | AMB
   .statusbar  .island  .home-bar     the phone's chrome
   .appbar  .avatar  .who-name  .who-sub  .vshield       the business's header
   .thread                            the scrolling conversation
   .verified-note  .daymark  .receipt
   .brow.me  .brow.them               one row - the visitor's / the business's
   .bub  .bub-media  .bub-link        a bubble, a picture or file bubble, a link inside one
   .cards-wrap  .cards  .card  .card-img  .card-title  .card-text  .card-act    rich cards / carousels
   .card-detail                       a card's full page
   .tile  .tile-avatar  .tile-map  .tile-name  .tile-line  .doc-chip           contact, location, file
   .chips-wrap  .chips-rail  .chip    quick replies
   .composer  .cmp-icon  #input  .send                   the message field
   .sheet-wrap  .sheet  .sheet-head  .sheet-row           the bottom sheet
   .toast                             a line the shell says (an error, a refusal)

   Examples (uncomment to try):

   [data-cv-part="bubble-them"] { box-shadow: none; }
   [data-cv-part="chip"] { text-transform: uppercase; letter-spacing: .04em; }
   [data-cv-part="card-button"] { font-weight: 600; }
   [data-cv-skin="whatsapp"] [data-cv-part="chip"] { border-radius: 6px; }
   .screen { --cv-typing-dot: #1a73e8; --cv-bubble-tail-radius: 18px; }
   ════════════════════════════════════════════════════════════════════════════ */
