/* Clara chat on the public site. Uses the site's palette and type tokens; sits above the page in the corner. */
.cc { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-family: var(--font-text, system-ui, sans-serif); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cc__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--p-ink, #1c1b19); color: var(--p-bg, #f7f5f0); font: 500 15px/1 var(--font-text, system-ui, sans-serif); box-shadow: 0 10px 30px rgb(28 27 25 / .22); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.cc__toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgb(28 27 25 / .28); }
.cc__toggle:active { transform: translateY(0); }
.cc__toggle:focus-visible, .cc button:focus-visible, .cc__input:focus-visible { outline: 2px solid var(--p-accent, #f7941d); outline-offset: 2px; }
.cc__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--p-accent, #f7941d); box-shadow: 0 0 0 4px rgb(247 148 29 / .25); }
.cc[data-open="true"] .cc__toggle { display: none; }
.cc__panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 110px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgb(28 27 25 / .12); border-radius: 14px; background: #fff; color: var(--p-ink, #1c1b19); box-shadow: 0 24px 60px rgb(28 27 25 / .22); }
.cc__panel[hidden] { display: none; }
.cc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--p-ink, #1c1b19); color: var(--p-bg, #f7f5f0); }
.cc__head div { display: flex; flex-direction: column; gap: 2px; }
.cc__head strong { font-weight: 600; font-size: 15px; }
.cc__head span { font-size: 12px; opacity: .75; }
.cc__close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.cc__close:hover { background: rgb(255 255 255 / .12); }
.cc__log { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--p-bg, #f7f5f0); overscroll-behavior: contain; }
.cc__msg { max-width: 88%; margin: 0; padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cc__msg--bot { align-self: flex-start; background: #fff; border: 1px solid rgb(28 27 25 / .08); border-bottom-left-radius: 4px; }
.cc__msg--user { align-self: flex-end; background: var(--p-ink, #1c1b19); color: var(--p-bg, #f7f5f0); border-bottom-right-radius: 4px; }
.cc__msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cc__typing { color: rgb(28 27 25 / .6); }
.cc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc__chip { padding: 8px 12px; border: 1px solid rgb(28 27 25 / .16); border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: 14px; line-height: 20px; cursor: pointer; transition: background-color 300ms cubic-bezier(0.22, 1, 0.36, 1), transform 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.cc__chip:hover { background: var(--p-surface, #ece9e1); transform: translateY(-1px); }
.cc__form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid rgb(28 27 25 / .08); background: #fff; }
.cc__input { flex: 1 1 auto; min-height: 42px; max-height: 120px; padding: 10px 12px; border: 1px solid rgb(28 27 25 / .18); border-radius: 10px; font: inherit; font-size: 16px; resize: none; color: inherit; background: #fff; }
.cc__send { min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--p-ink, #1c1b19); color: var(--p-bg, #f7f5f0); font: 500 14px/1 var(--font-text, system-ui, sans-serif); cursor: pointer; }
.cc__send:disabled { opacity: .5; cursor: default; }
.cc__note { margin: 0; padding: 0 12px 10px; background: #fff; font-size: 12px; line-height: 16px; color: rgb(28 27 25 / .62); }
@media (max-width: 639px) {
  .cc { right: 12px; bottom: 12px; left: 12px; align-items: flex-end; }
  .cc[data-open="true"] { left: 0; right: 0; bottom: 0; }
  .cc__panel { width: 100vw; height: min(85svh, 640px); border-radius: 14px 14px 0 0; }
  .cc__toggle { min-height: 44px; padding: 0 16px; }
}
/* The launcher is a 44px square button in the page's side margin, so it never sits on a line of the page's text
   while it scrolls (taste check nav-covers). Its name stays for screen readers; the dot marks it as live. */
.cc { pointer-events: none; }
.cc > * { pointer-events: auto; }
.cc__toggle { position: relative; justify-content: center; width: 44px; min-height: 44px; height: 44px; padding: 0; border-radius: var(--r-btn, 8px); transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.cc__toggle > span:not(.cc__dot) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cc__toggle::before { content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128 24a104 104 0 0 0-91.82 152.88l-11.35 34.05a16 16 0 0 0 20.24 20.24l34.05-11.35A104 104 0 1 0 128 24Zm0 192a87.87 87.87 0 0 1-44.06-11.81 8 8 0 0 0-4-1.08 7.85 7.85 0 0 0-2.53.42L40 216l12.47-37.4a8 8 0 0 0-.66-6.54A88 88 0 1 1 128 216Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128 24a104 104 0 0 0-91.82 152.88l-11.35 34.05a16 16 0 0 0 20.24 20.24l34.05-11.35A104 104 0 1 0 128 24Zm0 192a87.87 87.87 0 0 1-44.06-11.81 8 8 0 0 0-4-1.08 7.85 7.85 0 0 0-2.53.42L40 216l12.47-37.4a8 8 0 0 0-.66-6.54A88 88 0 1 1 128 216Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.cc:not([data-open="true"]) .cc__toggle { box-shadow: 0 0 0 1px rgb(255 255 255 / .18), 0 10px 30px rgb(28 27 25 / .22); }
.cc__toggle .cc__dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--p-ink, #1c1b19); }
.cc:not([data-open="true"]) { right: 16px; bottom: 16px; }
@media (max-width: 1023px) { .cc:not([data-open="true"]) { right: 12px; bottom: 12px; } }
@media (max-width: 639px) { .cc:not([data-open="true"]) { left: auto; } }
@media (prefers-reduced-motion: reduce) { .cc__toggle, .cc__chip { transition: none; } .cc__toggle:hover, .cc__chip:hover { transform: none; } }
