/* GEODESIC - the AI Concierge's face (design/starters/geodesic/bot.css). Contract version 1.

   Faceted and crystalline: cut-glass bubbles, polygon cards, a triangulated wall, a hexagonal launcher.

   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: #0f8f7e;
  --cv-color-ink: #14213d;
  --cv-color-paper: #f4f7fb;
  --cv-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cv-radius-s: 0px;
  --cv-radius-m: 0px;
  --cv-radius-l: 0px;
  --cv-shadow-1: 0 1px 2px rgba(20, 33, 61, .12);
  --cv-shadow-2: 0 6px 18px rgba(20, 33, 61, .14);
  --cv-shadow-3: 0 24px 60px rgba(20, 33, 61, .2);
  --cv-motion-fast: 120ms;
  --cv-motion-slow: 240ms;
  /* semantic */
  --cv-surface: #ffffff;
  --cv-on-surface: var(--cv-color-ink);
  --cv-accent: #0f8f7e;
  --cv-on-accent: #ffffff;
  --cv-muted: #4a5a78;
  --cv-danger: #b3261e;
  --cv-focus: var(--cv-accent);
  --cv-bubble-me-bg: #0f8f7e;
  --cv-bubble-me-ink: #ffffff;
  --cv-bubble-them-bg: #ffffff;
  --cv-bubble-them-ink: #14213d;
  --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: 0px;
  --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: #dff3ef;
  --cv-chip-ink: #0a6b5e;
  --cv-chip-border: transparent;
  --cv-chip-radius: 999px;
  --cv-chip-hover-bg: #c7ebe4;
  --cv-composer-bg: var(--cv-surface);
  --cv-composer-ink: var(--cv-on-surface);
  --cv-composer-placeholder-ink: var(--cv-muted);
  --cv-composer-line: 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: #e7eef7;
  --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);
}

/* ── Geodesic ─────────────────────────────────────────────────────────────────────────────────────── */

[data-cv-part="thread"] { background-image: url("assets/facets.svg"); background-size: 240px 240px; }
[data-cv-part="name"] { letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
[data-cv-part="brand-logo"] { clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); border-radius: 0; }
[data-cv-part="progress-bar"] { background-image: repeating-linear-gradient(120deg, #0f8f7e 0 10px, #13a894 10px 20px); }

[data-cv-screen="thread"] :is([data-cv-part="bubble-me"], [data-cv-part="bubble-them"]) { clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); border-radius: 0; padding-inline: 16px; }
[data-cv-screen="thread"] [data-cv-part="bubble-me"] { background-image: linear-gradient(135deg, rgba(15, 143, 126, .08) 0 50%, transparent 50%); }
[data-cv-screen="thread"] [data-cv-part="chip"] { clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); border-radius: 0; padding-inline: 22px; border-color: transparent; }
[data-cv-screen="thread"] [data-cv-part="card"] { clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); border-radius: 0; border-color: transparent; background-color: #ffffff; }
[data-cv-screen="thread"] [data-cv-part="card-picture"] { clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); border-radius: 0; }
[data-cv-screen="thread"] [data-cv-part="composer"] { clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); border-radius: 0; }
[data-cv-screen="thread"] [data-cv-part="send"] { clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); border-radius: 0; }
