/* Yaya site agent widget (uses the tokens in /assets/yaya.css) */
.yc-launch { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; font: 600 15px/1 var(--font, system-ui); background: var(--brand, #0a2f6b); color: var(--brand-contrast, #fff);
  border: 0; border-radius: 6px; cursor: pointer; box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.2)); }
.yc-launch:hover { transform: translateY(-1px); }
.yc-launch .yc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light, #9cc3ff); box-shadow: 0 0 0 4px rgba(156,195,255,.25); }
.yc-teaser { position: fixed; right: 20px; bottom: 80px; z-index: 50; max-width: 280px; background: var(--bg, #fff); color: var(--text, #14213d);
  border: 1px solid var(--border, #e3e8ee); border-radius: 12px; padding: 14px 36px 14px 16px; font: 14px/1.5 var(--font, system-ui);
  box-shadow: var(--shadow-lg); cursor: pointer; }
.yc-teaser b { color: var(--brand, #0a2f6b); }
.yc-teaser button { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--muted, #6b7788); cursor: pointer; font-size: 18px; line-height: 1; }

.yc-panel { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(420px, calc(100vw - 24px)); height: min(660px, calc(100vh - 40px));
  display: none; flex-direction: column; background: var(--bg, #fff); color: var(--text, #14213d); border: 1px solid var(--border, #e3e8ee);
  border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); font: 15px/1.55 var(--font, system-ui); }
.yc-panel.open { display: flex; }
.yc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--brand, #0a2f6b); color: var(--brand-contrast, #fff); }
.yc-head img { width: 28px; height: 28px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.yc-head div { flex: 1; line-height: 1.3; }
.yc-head b { font-size: 15px; }
.yc-head small { display: block; opacity: .75; font-size: 12.5px; }
.yc-head button { background: transparent; border: 1px solid rgba(255,255,255,.3); color: inherit; cursor: pointer; font: 500 13px var(--font, system-ui);
  padding: 4px 10px; border-radius: 4px; }
.yc-head button:hover { border-color: currentColor; }
.yc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface, #f6f8fa); }
.yc-msg { max-width: 88%; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; }
.yc-msg.user { align-self: flex-end; background: var(--accent, #1554c4); color: var(--brand-contrast, #fff); border-bottom-right-radius: 4px; white-space: pre-wrap; word-wrap: break-word; }
.yc-msg.bot { align-self: flex-start; background: var(--bg, #fff); border: 1px solid var(--border, #e3e8ee); border-bottom-left-radius: 4px; }
.yc-msg.bot p { margin: 0 0 8px; }
.yc-msg.bot p:last-child { margin-bottom: 0; }
.yc-msg.bot ul, .yc-msg.bot ol { margin: 4px 0 8px; padding-left: 20px; }
.yc-msg.bot li { margin: 3px 0; }
.yc-msg.bot li::marker { color: var(--accent, #1554c4); }
.yc-msg.bot strong { color: var(--brand, #0a2f6b); }
.yc-msg.bot a { color: var(--accent, #1554c4); text-decoration: underline; text-underline-offset: 2px; }
.yc-msg.bot code { font-family: var(--mono, monospace); font-size: .9em; }
.yc-msg.err { align-self: flex-start; background: var(--danger-soft, #fdecea); color: var(--danger, #b42318); font-size: 13.5px; }
.yc-status { align-self: flex-start; color: var(--muted, #6b7788); font-size: 13px; padding-left: 4px; }
.yc-status::after { content: "…"; animation: yc-dots 1.2s steps(4) infinite; display: inline-block; width: 1em; overflow: hidden; vertical-align: bottom; }
@keyframes yc-dots { from { width: 0; } to { width: 1em; } }
.yc-sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.yc-sugg button { background: var(--bg, #fff); border: 1px solid var(--border-strong, #cfd7df); color: var(--text, #14213d); font: 500 13.5px var(--font, system-ui);
  padding: 7px 12px; border-radius: 4px; cursor: pointer; text-align: left; }
.yc-sugg button:hover { border-color: var(--accent, #1554c4); color: var(--accent, #1554c4); }
.yc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border, #e3e8ee); background: var(--bg, #fff); }
.yc-form textarea { flex: 1; resize: none; height: 46px; padding: 12px 14px; font: 15px var(--font, system-ui); background: var(--bg, #fff); color: var(--text, #14213d);
  border: 1px solid var(--border-strong, #cfd7df); border-radius: 6px; outline: none; }
.yc-form textarea:focus { border-color: var(--accent, #1554c4); box-shadow: 0 0 0 3px var(--accent-soft, #e8f0fc); }
.yc-form button { padding: 0 18px; background: var(--brand, #0a2f6b); color: var(--brand-contrast, #fff); border: 0; border-radius: 6px; font: 600 14px var(--font, system-ui); cursor: pointer; }
.yc-form button:disabled { opacity: .45; cursor: wait; }
.yc-foot { padding: 0 14px 12px; background: var(--bg, #fff); color: var(--muted, #6b7788); font-size: 11.5px; line-height: 1.45; }
.yc-foot a { color: var(--text-2, #3d4a5c); }
@media (max-width: 560px) {
  .yc-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .yc-launch { right: 14px; bottom: 14px; }
  .yc-teaser { right: 14px; bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .yc-status::after { animation: none; width: 1em; } }
