/* NEON - the RCS emulator's face (design/starters/neon/rcs.css). Contract version 1.

   A night-club sign after midnight: a near-black wall, hot-pink and ice-blue tube light, letters that hum.

   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: #ff2bd6;
  --cv-color-ink: #f6eaff;
  --cv-color-paper: #0d0716;
  --cv-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-font-display: "Neon Oxanium", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-radius-s: 10px;
  --cv-radius-m: 14px;
  --cv-radius-l: 18px;
  --cv-shadow-1: 0 0 6px rgba(255, 43, 214, .35);
  --cv-shadow-2: 0 0 16px rgba(255, 43, 214, .4);
  --cv-shadow-3: 0 0 44px rgba(33, 230, 255, .3);
  --cv-motion-fast: 140ms;
  --cv-motion-slow: 1800ms;
  /* semantic */
  --cv-surface: #150b22;
  --cv-on-surface: var(--cv-color-ink);
  --cv-accent: #ff2bd6;
  --cv-on-accent: #14001c;
  --cv-muted: #bba6d8;
  --cv-danger: #ff7a95;
  --cv-focus: #21e6ff;
  --cv-bubble-me-bg: #2a0b35;
  --cv-bubble-me-ink: #ffe6fb;
  --cv-bubble-them-bg: #0e1a2c;
  --cv-bubble-them-ink: #e2fbff;
  --cv-field-font-size: 16px;
  /* component */
  --cv-header-bg: #120a1e;
  --cv-header-ink: var(--cv-on-surface);
  --cv-header-line: rgba(255, 43, 214, .55);
  --cv-header-shadow: 0 0 18px rgba(255, 43, 214, .35);
  --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: #21e6ff;
  --cv-card-radius: var(--cv-radius-l);
  --cv-chip-bg: transparent;
  --cv-chip-ink: #21e6ff;
  --cv-chip-border: #21e6ff;
  --cv-chip-radius: 999px;
  --cv-chip-hover-bg: rgba(33, 230, 255, .12);
  --cv-composer-bg: #150b22;
  --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(7, 3, 13, .7);
  --cv-verified-bg: rgba(33, 230, 255, .08);
  --cv-verified-ink: var(--cv-muted);
  --cv-verified-icon: #21e6ff;
  --cv-verified-shield: #21e6ff;
  --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: #0d0716;
  --cv-card-bg: #120a1e;
  --cv-card-title-ink: #f6eaff;
  --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: 0 0 14px rgba(33, 230, 255, .6);
  /* the answers as a list: one ice-blue tube round them all, a chevron each, the picked one lit pink */
  --cv-reply-list-ink: #21e6ff;
  --cv-reply-list-line: rgba(33, 230, 255, .3);
  --cv-reply-list-border: #21e6ff;
  --cv-reply-list-border-width: 1px;
  --cv-reply-list-shadow: 0 0 4px #21e6ff, 0 0 14px rgba(33, 230, 255, .32), inset 0 0 8px rgba(33, 230, 255, .2);
  --cv-reply-list-row-padding: 11px 32px;
  --cv-reply-list-selected-bg: rgba(255, 43, 214, .22);
  --cv-reply-list-selected-ink: #ffe6fb;
  --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: 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(150deg, #3a1146 0%, #0b0410 45%, #10061a 60%, #3a1146 100%);
  --cv-device-shadow: 0 0 0 1px rgba(255, 43, 214, .55), 0 0 36px rgba(255, 43, 214, .35), 0 40px 80px -20px #000;
}

/* ── Neon ─────────────────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Neon Oxanium";
  src: url("assets/fonts/oxanium-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* The sign: the business's name, lit. */
[data-cv-part="brand-name"] {
  font-family: var(--cv-font-display); font-weight: 700; letter-spacing: .04em;
  text-shadow: 0 0 6px rgba(255, 43, 214, .9), 0 0 18px rgba(255, 43, 214, .5);
}
[data-cv-part="header"] { border-bottom: 1px solid rgba(255, 43, 214, .55); }

/* The wall: pink light from above, ice from below. */
[data-cv-part="thread"] {
  background-image:
    radial-gradient(120% 55% at 50% 0%, rgba(255, 43, 214, .16), transparent 62%),
    radial-gradient(120% 55% at 50% 100%, rgba(33, 230, 255, .12), transparent 62%);
}

/* The tubes: a hairline of light, a halo, an inner glow - pink for the person, ice-blue for the business. */
[data-cv-screen="thread"] [data-cv-part="bubble-me"] {
  border: 1px solid #ff2bd6;
  box-shadow: 0 0 4px #ff2bd6, 0 0 16px rgba(255, 43, 214, .45), inset 0 0 10px rgba(255, 43, 214, .28);
  text-shadow: 0 0 6px rgba(255, 43, 214, .55);
}
[data-cv-screen="thread"] [data-cv-part="bubble-them"] {
  border: 1px solid #21e6ff;
  box-shadow: 0 0 4px #21e6ff, 0 0 14px rgba(33, 230, 255, .32), inset 0 0 8px rgba(33, 230, 255, .2);
}
[data-cv-screen="thread"] [data-cv-part="chip"] {
  font-family: var(--cv-font-display); letter-spacing: .03em;
  box-shadow: 0 0 6px rgba(33, 230, 255, .55), inset 0 0 6px rgba(33, 230, 255, .22);
  text-shadow: 0 0 6px rgba(33, 230, 255, .8);
}
[data-cv-screen="thread"] [data-cv-part="card"] { border: 1px solid #ff2bd6; box-shadow: 0 0 6px #ff2bd6, 0 0 22px rgba(255, 43, 214, .32); }
[data-cv-screen="thread"] [data-cv-part="card-media"] { filter: saturate(1.25) contrast(1.05); }
[data-cv-screen="thread"] [data-cv-part="card-button"] { font-family: var(--cv-font-display); color: #21e6ff; text-shadow: 0 0 6px rgba(33, 230, 255, .8); }
[data-cv-screen="thread"] [data-cv-part="composer"] { box-shadow: 0 0 0 1px rgba(255, 43, 214, .6), 0 0 14px rgba(255, 43, 214, .28); }
[data-cv-screen="thread"] [data-cv-part="send"] { box-shadow: 0 0 10px #ff2bd6; }

@media (prefers-reduced-motion: no-preference) {
  [data-cv-part="brand-name"] { animation: cv-neon-hum 6s linear infinite; }
}
@keyframes cv-neon-hum {
  0%, 88%, 91%, 94%, 100% { opacity: 1; }
  89% { opacity: .5; }
  92.5% { opacity: .78; }
}

/* The list: the replies in the sign's own letters, humming ice-blue - the one picked turns pink. */
[data-cv-screen="thread"] [data-cv-part="reply-list-row"] {
  font-family: var(--cv-font-display); letter-spacing: .03em;
  text-shadow: 0 0 6px rgba(33, 230, 255, .8);
}
[data-cv-screen="thread"] [data-cv-part="reply-list-row"][data-cv-state="selected"] {
  text-shadow: 0 0 6px rgba(255, 43, 214, .9), 0 0 16px rgba(255, 43, 214, .5);
}

/* ── 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: 1px solid #ff2bd6; background: #150b22; box-shadow: 0 0 6px rgba(255, 43, 214, .55), 0 0 22px rgba(255, 43, 214, .25); }
[data-cv-screen="thread"] [data-cv-part="heard-pill"] { border: 1px solid rgba(33, 230, 255, .6); background: #0d0716; color: #f6eaff; box-shadow: 0 0 8px rgba(33, 230, 255, .3); }
[data-cv-screen="thread"] [data-cv-part="saved-receipt"] { border: 1px solid #21e6ff; background: #0d0716; box-shadow: 0 0 6px rgba(33, 230, 255, .55), 0 0 20px rgba(33, 230, 255, .22); }
