/* PROFESSIONAL - the RCS emulator's face (design/starters/professional/rcs.css). Contract version 1.

   Quiet, confident, banking-grade: a hairline grid, restrained type, generous space, the brand colour used once.

   A STARTER DESIGN (designer-css-plan section 2.6): ours, read-only, loaded and changed and saved as a workspace's own
   design. Written ONLY against the --cv-* tokens and the data-cv-* parts, moments, turns, states and screens of
   design/contract.json - never a class name, never an !important. A design's CSS lands in the cascade layer cv.design (the
   server wraps it; on the go site's stage, Tests/Design/ShotCases.Starters.cs does), so it beats our default bundle
   without a specificity war. url() reaches only this package's own files.

   1. THE TOKENS - on :root (the page around the phone - the bezel, the toast), the phone's screen and the bottom
      sheet: the screen and the sheet declare their own tokens, so a token set on :root alone never reaches the
      phone. They equal manifest.json's tokens, value for value (Tests/Design/StarterLibraryTests).
   2. THE LOOK - every shape, glow, picture and motion is scoped to the conversation's own screen
      ([data-cv-screen="thread"]). A protected screen (confirm, consent, payment, sign-in) and a protected part (the
      verified note, Powered by, a signature, an action's confirm) take COLOURS ONLY, inside the contrast floor - so when
      the locked layer lands (P1) nothing here has to move. Motion runs only when the reader has not asked for less. */

:root,
[data-cv-part="screen"],
[data-cv-part="sheet"] {
  /* reference */
  --cv-color-ink: #111827;
  --cv-color-paper: #ffffff;
  --cv-font-body: "Professional Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-font-display: "Professional Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-radius-s: 4px;
  --cv-radius-m: 6px;
  --cv-radius-l: 8px;
  --cv-shadow-1: 0 1px 0 rgba(17, 24, 39, .06);
  --cv-shadow-2: 0 1px 3px rgba(17, 24, 39, .08);
  --cv-shadow-3: 0 12px 32px rgba(17, 24, 39, .12);
  --cv-motion-fast: 120ms;
  --cv-motion-slow: 240ms;
  /* semantic */
  --cv-surface: var(--cv-color-paper);
  --cv-on-surface: var(--cv-color-ink);
  --cv-accent: var(--cv-color-brand);
  --cv-on-accent: #ffffff;
  --cv-muted: #4b5563;
  --cv-danger: #b42318;
  --cv-focus: var(--cv-accent);
  --cv-bubble-me-bg: #f3f4f6;
  --cv-bubble-me-ink: #111827;
  --cv-bubble-them-bg: #ffffff;
  --cv-bubble-them-ink: #111827;
  --cv-field-font-size: 16px;
  /* component */
  --cv-header-bg: var(--cv-surface);
  --cv-header-ink: var(--cv-on-surface);
  --cv-header-line: #e5e7eb;
  --cv-header-shadow: none;
  --cv-avatar-bg: var(--cv-accent);
  --cv-bubble-radius: var(--cv-radius-l);
  --cv-bubble-tail-radius: var(--cv-radius-s);
  --cv-bubble-font-size: 14px;
  --cv-bubble-them-shadow: 0 0 0 1px #e5e7eb;
  --cv-typing-dot: var(--cv-muted);
  --cv-card-radius: var(--cv-radius-l);
  --cv-chip-bg: var(--cv-surface);
  --cv-chip-ink: #111827;
  --cv-chip-border: #d1d5db;
  --cv-chip-radius: 4px;
  --cv-chip-hover-bg: #f3f4f6;
  --cv-composer-bg: var(--cv-surface);
  --cv-composer-ink: var(--cv-on-surface);
  --cv-composer-placeholder-ink: var(--cv-muted);
  --cv-composer-line: #d1d5db;
  --cv-send-bg: var(--cv-accent);
  --cv-send-ink: var(--cv-on-accent);
  --cv-sheet-bg: var(--cv-surface);
  --cv-sheet-backdrop: rgba(0, 0, 0, .45);
  --cv-verified-bg: color-mix(in srgb, var(--cv-accent) 9%, transparent);
  --cv-verified-ink: var(--cv-muted);
  --cv-verified-icon: var(--cv-accent);
  --cv-verified-shield: var(--cv-accent);
  --cv-daymark-bg: color-mix(in srgb, var(--cv-on-surface) 7%, transparent);
  --cv-daymark-ink: var(--cv-muted);
  --cv-receipt-ink: var(--cv-muted);
  --cv-thread-bg: #fafafa;
  --cv-card-bg: var(--cv-bubble-them-bg);
  --cv-card-title-ink: var(--cv-bubble-them-ink);
  --cv-card-text-ink: var(--cv-muted);
  --cv-card-line: color-mix(in srgb, var(--cv-on-surface) 12%, transparent);
  --cv-card-shadow: 0 0 0 1px #e5e7eb;
  --cv-card-button-hover-bg: color-mix(in srgb, var(--cv-accent) 8%, transparent);
  --cv-tile-ink: var(--cv-muted);
  --cv-chip-hover-shadow: var(--cv-shadow-1);
  /* the answers as a list that reads like a settings menu - left-aligned rows, a quiet chevron at the end of each */
  --cv-reply-list-radius: 6px;
  --cv-reply-list-border: #e5e7eb;
  --cv-reply-list-border-width: 1px;
  --cv-reply-list-shadow: none;
  --cv-reply-list-ink: #111827;
  --cv-reply-list-line: #e5e7eb;
  --cv-reply-list-align: left;
  --cv-reply-list-row-padding: 11px 34px 11px 14px;
  --cv-reply-list-hover-bg: #f3f4f6;
  --cv-reply-list-selected-bg: color-mix(in srgb, var(--cv-accent) 10%, var(--cv-surface));
  --cv-reply-list-selected-ink: var(--cv-accent);
  --cv-reply-list-chevron: "\203A";
  --cv-reply-list-chevron-ink: #9ca3af;
  --cv-composer-icon-ink: var(--cv-muted);
  --cv-composer-icon-hover-bg: color-mix(in srgb, var(--cv-on-surface) 6%, transparent);
  --cv-composer-shadow: 0 0 0 1px #e5e7eb;
  --cv-home-bar: color-mix(in srgb, var(--cv-on-surface) 30%, transparent);
  --cv-sheet-ink: var(--cv-on-surface);
  --cv-sheet-muted: var(--cv-muted);
  --cv-sheet-line: color-mix(in srgb, var(--cv-on-surface) 12%, transparent);
  --cv-sheet-row-line: color-mix(in srgb, var(--cv-on-surface) 7%, transparent);
  --cv-sheet-row-hover: color-mix(in srgb, var(--cv-accent) 7%, var(--cv-surface));
  --cv-sheet-field: color-mix(in srgb, var(--cv-on-surface) 22%, transparent);
  --cv-toast-bg: var(--cv-on-surface);
  --cv-toast-ink: var(--cv-surface);
  --cv-toast-line: transparent;
  --cv-toast-shadow: var(--cv-shadow-3);
  --cv-device-bezel: linear-gradient(150deg, #9ca3af 0%, #374151 30%, #1f2937 60%, #4b5563 100%);
  --cv-device-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 36px 70px -24px rgba(17, 24, 39, .55);
}

/* ── Professional ─────────────────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Professional Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Figures line up everywhere; the business's name is set, not shouted. */
[data-cv-part="screen"] { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
[data-cv-part="brand-name"] { font-weight: 600; letter-spacing: -.01em; }
[data-cv-part="thread"] { background-image: linear-gradient(rgba(17, 24, 39, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 24, 39, .035) 1px, transparent 1px); background-size: 24px 24px; }
:focus-visible { outline: 2px solid var(--cv-focus); outline-offset: 2px; }

/* The list's chevron, set a size up so it reads as a mark, not a letter. */
[data-cv-screen="thread"] [data-cv-part="reply-list-row"]::after { font-size: 20px; line-height: 1; }
