/* TRIANGLE - the AI Concierge's face (design/starters/triangle/bot.css). Contract version 1.

   Sharp and directional: arrow-shaped answers, chevron cards, a sawtooth header, a launcher pointing at the page.

   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: #111111;
  --cv-color-ink: #111111;
  --cv-color-paper: #fbfbf8;
  --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: 2px 2px 0 #111111;
  --cv-shadow-2: 4px 4px 0 #111111;
  --cv-shadow-3: 0 24px 50px rgba(17, 17, 17, .25);
  --cv-motion-fast: 120ms;
  --cv-motion-slow: 240ms;
  /* semantic */
  --cv-surface: #ffffff;
  --cv-on-surface: var(--cv-color-ink);
  --cv-accent: #111111;
  --cv-on-accent: #ffd400;
  --cv-muted: #4a4a4a;
  --cv-danger: #c4161c;
  --cv-focus: #ffb800;
  --cv-bubble-me-bg: #ffd400;
  --cv-bubble-me-ink: #111111;
  --cv-bubble-them-bg: #ffffff;
  --cv-bubble-them-ink: #111111;
  --cv-field-font-size: 16px;
  /* component */
  --cv-header-bg: #ffd400;
  --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: none;
  --cv-typing-dot: var(--cv-muted);
  --cv-card-radius: var(--cv-radius-l);
  --cv-chip-bg: #ffd400;
  --cv-chip-ink: #111111;
  --cv-chip-border: transparent;
  --cv-chip-radius: 0px;
  --cv-chip-hover-bg: #ffe14d;
  --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: #ecece6;
  --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: 0px;
  --cv-composer-focus-line: var(--cv-accent);
  --cv-overlay-bg: rgba(0, 0, 0, .55);
}

/* ── Triangle ─────────────────────────────────────────────────────────────────────────────────────── */

[data-cv-part="header"] { padding-bottom: 10px; -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 16px 8px repeat-x; mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 16px 8px repeat-x; color: #111111; }
[data-cv-part="name"] { font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
[data-cv-part="brand-logo"] { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
[data-cv-part="progress-bar"] { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); }

[data-cv-screen="thread"] [data-cv-part="bubble-them"] { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 26px calc(100% - 10px), 12px 100%, 12px calc(100% - 10px), 0 calc(100% - 10px)); padding-bottom: 18px; border-radius: 0; box-shadow: none; }
[data-cv-screen="thread"] [data-cv-part="bubble-me"] { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 12px) calc(100% - 10px), calc(100% - 12px) 100%, calc(100% - 26px) calc(100% - 10px), 0 calc(100% - 10px)); padding-bottom: 18px; border-radius: 0; font-weight: 700; }
[data-cv-screen="thread"] :is([data-cv-part="chip"], [data-cv-part="card"]) { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-right: 26px; border-radius: 0; border-color: transparent; }
[data-cv-screen="thread"] [data-cv-part="chip"] { font-weight: 800; text-transform: uppercase; }
[data-cv-screen="thread"] [data-cv-part="card"] { background-color: #ffffff; box-shadow: inset 4px 0 0 #ffd400; }
@media (prefers-reduced-motion: no-preference) {
  [data-cv-screen="thread"] :is([data-cv-part="chip"], [data-cv-part="card"]) { transition: transform var(--cv-motion-fast) ease-out; }
  [data-cv-screen="thread"] :is([data-cv-part="chip"], [data-cv-part="card"]):hover { transform: translateX(4px); }
}
[data-cv-screen="thread"] [data-cv-part="composer"] { border-radius: 0; box-shadow: inset 0 0 0 2px #111111; }
[data-cv-screen="thread"] [data-cv-part="send"] { clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 0; }

/* ── 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-radius: 0; box-shadow: inset 4px 0 0 #ffd400; }
[data-cv-screen="thread"] [data-cv-part="heard-pill"] { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); padding-right: 20px; border-radius: 0; }
[data-cv-screen="thread"] [data-cv-part="saved-receipt"] { border-radius: 0; box-shadow: inset 4px 0 0 #ffd400; }
