/* CASUAL - the AI Concierge's face (design/starters/casual/bot.css). Contract version 1.

   Friendly and warm: hand-drawn edges, a doodled background, bubbly chips, a launcher that waves.

   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: #c2412b;
  --cv-color-ink: #3d2f2a;
  --cv-color-paper: #fff9ef;
  --cv-font-body: "Casual Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-font-display: "Casual Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-radius-s: 10px;
  --cv-radius-m: 16px;
  --cv-radius-l: 22px;
  --cv-shadow-1: 2px 3px 0 rgba(61, 47, 42, .18);
  --cv-shadow-2: 4px 5px 0 rgba(61, 47, 42, .2);
  --cv-shadow-3: 0 20px 50px rgba(61, 47, 42, .2);
  --cv-motion-fast: 120ms;
  --cv-motion-slow: 240ms;
  /* semantic */
  --cv-surface: #fffdf7;
  --cv-on-surface: var(--cv-color-ink);
  --cv-accent: #c2412b;
  --cv-on-accent: #ffffff;
  --cv-muted: #6e5d55;
  --cv-danger: #b3261e;
  --cv-focus: var(--cv-accent);
  --cv-bubble-me-bg: #ffe1d6;
  --cv-bubble-me-ink: #3d2f2a;
  --cv-bubble-them-bg: #ffffff;
  --cv-bubble-them-ink: #3d2f2a;
  --cv-field-font-size: 16px;
  /* component */
  --cv-header-bg: var(--cv-surface);
  --cv-header-line: color-mix(in srgb, var(--cv-on-surface) 12%, transparent);
  --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: 15px;
  --cv-bubble-them-shadow: 2px 3px 0 rgba(61, 47, 42, .16);
  --cv-typing-dot: var(--cv-muted);
  --cv-card-radius: var(--cv-radius-l);
  --cv-chip-bg: #fffdf7;
  --cv-chip-ink: var(--cv-accent);
  --cv-chip-border: #c2412b;
  --cv-chip-radius: 999px;
  --cv-chip-hover-bg: color-mix(in srgb, var(--cv-accent) 10%, var(--cv-surface));
  --cv-composer-bg: var(--cv-surface);
  --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(0, 0, 0, .45);
  --cv-page-bg: #ffeedd;
  --cv-panel-bg: var(--cv-surface);
  --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(0, 0, 0, .55);
}

/* ── Casual ─────────────────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Casual Figtree";
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

[data-cv-part="name"] { font-family: var(--cv-font-display); font-weight: 800; }
[data-cv-part="thread"] { background-image: url("assets/doodles.svg"); background-size: 220px 220px; }
[data-cv-part="brand-logo"] { border: 2px solid #3d2f2a; }

[data-cv-screen="thread"] [data-cv-part="bubble-them"] { border-radius: 18px 24px 16px 26px / 22px 16px 24px 18px; border: 2px solid #3d2f2a; }
[data-cv-screen="thread"] [data-cv-part="bubble-me"] { border-radius: 24px 18px 26px 16px / 16px 22px 18px 24px; border: 2px solid #3d2f2a; }
[data-cv-screen="thread"] :is([data-cv-part="chip"], [data-cv-part="card"]) { border-radius: 18px 24px 16px 26px / 22px 16px 24px 18px; border: 2px dashed #c2412b; box-shadow: 2px 3px 0 rgba(61, 47, 42, .16); }
[data-cv-screen="thread"] [data-cv-part="card"]:nth-child(odd) { transform: rotate(-.8deg); }
[data-cv-screen="thread"] [data-cv-part="card"]:nth-child(even) { transform: rotate(.6deg); }
[data-cv-screen="thread"] [data-cv-part="composer"] { border-radius: 18px 24px 16px 26px / 22px 16px 24px 18px; border: 2px solid #3d2f2a; }
