/* HOT-RODDER - the RCS emulator's face (design/starters/hot-rodder/rcs.css). Contract version 1.

   Chrome, flames and racing stripes: a brushed-metal header, flame-licked cards, heavy slanted type.

   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: #ff5a1f;
  --cv-color-ink: #f2f2f2;
  --cv-color-paper: #16181b;
  --cv-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-font-display: "Hot Rod Oxanium", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-radius-s: 4px;
  --cv-radius-m: 6px;
  --cv-radius-l: 10px;
  --cv-shadow-1: 0 2px 0 rgba(0, 0, 0, .5);
  --cv-shadow-2: 0 6px 0 rgba(0, 0, 0, .45);
  --cv-shadow-3: 0 30px 60px rgba(0, 0, 0, .6);
  --cv-motion-fast: 120ms;
  --cv-motion-slow: 240ms;
  /* semantic */
  --cv-surface: #1d2024;
  --cv-on-surface: var(--cv-color-ink);
  --cv-accent: #ff5a1f;
  --cv-on-accent: #1b0a00;
  --cv-muted: #b6bcc4;
  --cv-danger: #ff6b6b;
  --cv-focus: #ffc400;
  --cv-bubble-me-bg: #ff5a1f;
  --cv-bubble-me-ink: #1b0a00;
  --cv-bubble-them-bg: #2a2e33;
  --cv-bubble-them-ink: #f2f2f2;
  --cv-field-font-size: 16px;
  /* component */
  --cv-header-bg: #c9ced6;
  --cv-header-ink: #15181c;
  --cv-header-line: #ff5a1f;
  --cv-header-shadow: var(--cv-shadow-1);
  --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: 14.5px;
  --cv-bubble-them-shadow: var(--cv-shadow-1);
  --cv-typing-dot: var(--cv-muted);
  --cv-card-radius: var(--cv-radius-l);
  --cv-chip-bg: #1d2024;
  --cv-chip-ink: #ffc400;
  --cv-chip-border: #ffc400;
  --cv-chip-radius: 999px;
  --cv-chip-hover-bg: rgba(255, 196, 0, .12);
  --cv-composer-bg: #24282d;
  --cv-composer-ink: var(--cv-on-surface);
  --cv-composer-placeholder-ink: var(--cv-muted);
  --cv-composer-line: color-mix(in srgb, var(--cv-on-surface) 16%, transparent);
  --cv-send-bg: var(--cv-accent);
  --cv-send-ink: var(--cv-on-accent);
  --cv-sheet-bg: var(--cv-surface);
  --cv-sheet-backdrop: rgba(15, 17, 19, .7);
  --cv-verified-bg: rgba(255, 196, 0, .1);
  --cv-verified-ink: var(--cv-muted);
  --cv-verified-icon: #ffc400;
  --cv-verified-shield: #ffc400;
  --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: #16181b;
  --cv-card-bg: #2a2e33;
  --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: var(--cv-shadow-2);
  --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: a yellow stripe down its side, the replies in the racing face, a double chevron each */
  --cv-reply-list-ink: #ffc400;
  --cv-reply-list-line: rgba(255, 196, 0, .25);
  --cv-reply-list-font-weight: 800;
  --cv-reply-list-align: left;
  --cv-reply-list-row-padding: 11px 34px 11px 16px;
  --cv-reply-list-selected-bg: var(--cv-accent);
  --cv-reply-list-selected-ink: var(--cv-on-accent);
  --cv-reply-list-chevron: "\BB";
  --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: var(--cv-shadow-1);
  --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(180deg, #fbfcfd 0%, #d5dae1 30%, #8f97a1 50%, #c7ccd3 70%, #f1f3f6 100%);
  --cv-device-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 40px 80px -20px rgba(0, 0, 0, .8);
}

/* ── Hot-Rodder ─────────────────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Hot Rod Oxanium";
  src: url("assets/fonts/oxanium-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* A brushed-chrome header: a fine brushed grain over a polished bar. */
[data-cv-part="header"] { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .10) 0 1px, rgba(0, 0, 0, .05) 1px 3px), linear-gradient(180deg, #fbfcfd 0%, #d5dae1 38%, #8f97a1 50%, #c7ccd3 62%, #f1f3f6 100%); background-blend-mode: overlay, normal; border-bottom: 3px solid #ff5a1f; }
[data-cv-part="brand-name"] { font-family: var(--cv-font-display); font-weight: 800; font-style: oblique 10deg; text-transform: uppercase; letter-spacing: .02em; }

/* Flames licking up behind the answers. */
[data-cv-part="thread"] { background-image: url("assets/flames.svg"); background-repeat: repeat-x; background-position: bottom; background-size: 260px 90px; }

[data-cv-screen="thread"] [data-cv-part="bubble-me"] { font-weight: 700; box-shadow: 0 3px 0 #9c2f00; }
[data-cv-screen="thread"] [data-cv-part="bubble-them"] { border-left: 4px solid #ffc400; }

/* Flame-licked cards: a strip of fire under each one. */
[data-cv-screen="thread"] [data-cv-part="card"] { border: 2px solid #ff5a1f; }
[data-cv-screen="thread"] [data-cv-part="card"]::after { content: ""; display: block; height: 28px; background: url("assets/flames.svg") bottom / 140px 28px repeat-x; }
[data-cv-screen="thread"] [data-cv-part="card-button"] { font-family: var(--cv-font-display); font-weight: 800; font-style: oblique 10deg; text-transform: uppercase; letter-spacing: .02em; color: #ffc400; }

[data-cv-screen="thread"] [data-cv-part="chip"] { font-family: var(--cv-font-display); font-weight: 800; font-style: oblique 10deg; text-transform: uppercase; letter-spacing: .02em; border-width: 2px; }

/* Racing stripes down the composer's top edge. */
[data-cv-screen="thread"] [data-cv-part="composer"] { background: linear-gradient(90deg, #ff5a1f 0 38%, #f2f2f2 38% 44%, #ff5a1f 44% 56%, #f2f2f2 56% 62%, #ff5a1f 62%) top / 100% 5px no-repeat, var(--cv-composer-bg); }
[data-cv-screen="thread"] [data-cv-part="send"] { box-shadow: 0 3px 0 #9c2f00; }

/* The list: the business's yellow stripe down its side, the replies leaning like the chips. */
[data-cv-screen="thread"] [data-cv-part="reply-list"] { border-left: 4px solid #ffc400; }
[data-cv-screen="thread"] [data-cv-part="reply-list-row"] { font-family: var(--cv-font-display); font-style: oblique 10deg; text-transform: uppercase; letter-spacing: .02em; }

/* ── The heard and saved cards (docs/claude/BOT-CONCIERGE.md section 0k) - heard-card, heard-pill, saved-receipt ──── */

[data-cv-screen="thread"] [data-cv-part="heard-card"] { border: 2px solid #ffc400; }
[data-cv-screen="thread"] [data-cv-part="heard-pill"] { border: 1px solid #ff5a1f; }
[data-cv-screen="thread"] [data-cv-part="saved-receipt"] { border: 2px solid #ff5a1f; border-left-width: 6px; }
