/* HIGH CONTRAST - the RCS emulator's face (design/starters/high-contrast/rcs.css). Contract version 1.

   For every reader: 7 : 1 text, a thick focus ring, bigger targets, black borders.

   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-brand: #0033cc;
  --cv-color-ink: #000000;
  --cv-color-paper: #ffffff;
  --cv-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cv-font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cv-radius-s: 6px;
  --cv-radius-m: 8px;
  --cv-radius-l: 12px;
  --cv-shadow-1: none;
  --cv-shadow-2: none;
  --cv-shadow-3: 0 0 0 2px #000000;
  --cv-motion-fast: 120ms;
  --cv-motion-slow: 240ms;
  /* semantic */
  --cv-surface: var(--cv-color-paper);
  --cv-on-surface: var(--cv-color-ink);
  --cv-accent: #0033cc;
  --cv-on-accent: #ffffff;
  --cv-muted: #1f1f1f;
  --cv-danger: #a00000;
  --cv-focus: #000000;
  --cv-bubble-me-bg: #0033cc;
  --cv-bubble-me-ink: #ffffff;
  --cv-bubble-them-bg: #ffffff;
  --cv-bubble-them-ink: #000000;
  --cv-field-font-size: 18px;
  /* component */
  --cv-header-bg: #ffffff;
  --cv-header-ink: var(--cv-on-surface);
  --cv-header-line: #000000;
  --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: 17px;
  --cv-bubble-them-shadow: none;
  --cv-typing-dot: var(--cv-muted);
  --cv-card-radius: var(--cv-radius-l);
  --cv-chip-bg: #ffffff;
  --cv-chip-ink: #000000;
  --cv-chip-border: #000000;
  --cv-chip-radius: 999px;
  --cv-chip-hover-bg: #ffdd00;
  --cv-composer-bg: var(--cv-surface);
  --cv-composer-ink: var(--cv-on-surface);
  --cv-composer-placeholder-ink: var(--cv-muted);
  --cv-composer-line: #000000;
  --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: #ffffff;
  --cv-verified-ink: #000000;
  --cv-verified-icon: var(--cv-accent);
  --cv-verified-shield: var(--cv-accent);
  --cv-daymark-bg: #000000;
  --cv-daymark-ink: #ffffff;
  --cv-receipt-ink: var(--cv-muted);
  --cv-thread-bg: #ffffff;
  --cv-card-bg: #ffffff;
  --cv-card-title-ink: var(--cv-bubble-them-ink);
  --cv-card-text-ink: #1f1f1f;
  --cv-card-line: #000000;
  --cv-card-shadow: none;
  --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: thick black lines, big type, rows a finger can hit */
  --cv-reply-list-width: 90%;
  --cv-reply-list-border: #000000;
  --cv-reply-list-border-width: 2px;
  --cv-reply-list-shadow: none;
  --cv-reply-list-ink: #000000;
  --cv-reply-list-line: #000000;
  --cv-reply-list-line-width: 2px;
  --cv-reply-list-font-size: 16px;
  --cv-reply-list-font-weight: 700;
  --cv-reply-list-align: left;
  --cv-reply-list-row-padding: 14px 36px 14px 18px;
  --cv-reply-list-selected-bg: #000000;
  --cv-reply-list-selected-ink: #ffffff;
  --cv-reply-list-focus-line: #000000;
  --cv-reply-list-chevron: "\203A";
  --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: none;
  --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: #000000;
  --cv-device-shadow: 0 0 0 2px #000000;
}

/* ── High contrast ─────────────────────────────────────────────────────────────────────────────────────── */

[data-cv-part="brand-name"] { font-weight: 800; font-size: 17px; }
[data-cv-part="header"] { border-bottom: 2px solid #000000; }
[data-cv-screen="thread"] [data-cv-part="bubble-them"] { border: 2px solid #000000; }
[data-cv-screen="thread"] [data-cv-part="bubble-me"] { border: 2px solid #000000; }
[data-cv-screen="thread"] [data-cv-part="card"] { border: 2px solid #000000; }
[data-cv-screen="thread"] [data-cv-part="chip"] { min-height: 48px; padding: 10px 18px; font-size: 16px; font-weight: 700; border-width: 2px; }
[data-cv-screen="thread"] [data-cv-part="composer"] { border: 2px solid #000000; min-height: 52px; }
:focus-visible { outline: 4px solid #000000; outline-offset: 2px; box-shadow: 0 0 0 8px #ffdd00; }

/* The list: every row at least 48 px tall - a target a finger cannot miss. */
[data-cv-screen="thread"] [data-cv-part="reply-list-row"] { min-height: 48px; }

/* ── The heard and saved cards (docs/claude/BOT-CONCIERGE.md section 0k) - heard-card, heard-pill, saved-receipt ──── */

[data-cv-screen="thread"] :is([data-cv-part="heard-card"], [data-cv-part="saved-receipt"]) { border: 2px solid #000000; background: #ffffff; color: #000000; }
[data-cv-screen="thread"] [data-cv-part="heard-pill"] { border: 2px solid #000000; background: #ffffff; color: #000000; font-weight: 700; }
