/* NEON - the AI Concierge's face (design/starters/neon/bot.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, where the concierge declares its own (a design's layer beats the dark theme's html[data-
      theme] there). 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 {
  /* 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-line: rgba(255, 43, 214, .55);
  --cv-avatar-bg: var(--cv-accent);
  --cv-avatar-ink: var(--cv-on-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-page-bg: #07030d;
  --cv-panel-bg: #0d0716;
  --cv-panel-radius: var(--cv-radius-l);
  --cv-panel-shadow: var(--cv-shadow-3);
  --cv-language-line: color-mix(in srgb, var(--cv-on-surface) 14%, transparent);
  --cv-language-line-hover: color-mix(in srgb, var(--cv-on-surface) 28%, transparent);
  --cv-chip-font-size: 13.5px;
  --cv-card-picture-bg: color-mix(in srgb, var(--cv-accent) 8%, var(--cv-surface));
  --cv-document-bg: color-mix(in srgb, var(--cv-accent) 6%, var(--cv-surface));
  --cv-done-line-rule: color-mix(in srgb, var(--cv-on-surface) 12%, transparent);
  --cv-composer-radius: 999px;
  --cv-composer-focus-line: var(--cv-accent);
  --cv-overlay-bg: rgba(7, 3, 13, .78);
}

/* ── 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 assistant's name, lit, over a thin pink tube. */
[data-cv-part="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"] { box-shadow: 0 1px 0 rgba(255, 43, 214, .55), 0 6px 18px -8px rgba(255, 43, 214, .6); }
[data-cv-part="brand-logo"] { box-shadow: 0 0 0 2px #ff2bd6, 0 0 14px rgba(255, 43, 214, .7); }
[data-cv-part="progress-bar"] { box-shadow: 0 0 8px #ff2bd6; }

[data-cv-part="thread"] {
  background-image:
    radial-gradient(120% 50% at 50% 0%, rgba(255, 43, 214, .14), transparent 62%),
    radial-gradient(120% 50% at 50% 100%, rgba(33, 230, 255, .1), transparent 62%);
}

[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);
}
[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"] :is([data-cv-part="chip"], [data-cv-part="card"]) {
  border-color: #21e6ff;
  box-shadow: 0 0 6px rgba(33, 230, 255, .55), inset 0 0 6px rgba(33, 230, 255, .2);
}
[data-cv-screen="thread"] [data-cv-part="chip"] { font-family: var(--cv-font-display); letter-spacing: .03em; color: #21e6ff; text-shadow: 0 0 6px rgba(33, 230, 255, .8); }
[data-cv-screen="thread"] [data-cv-part="card-picture"] { box-shadow: 0 0 10px rgba(255, 43, 214, .55); }
[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="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 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); }
