/* Yaya · site assistant widget. Same iOS language as the page: white, Apple gray, one navy accent. */
.yc-root { --yc-tint: #0a2f6b; --yc-tint-press: #07224f; --yc-panel: #f5f5f7; --yc-label: #1d1d1f;
  --yc-label-2: rgba(60,60,67,.68); --yc-label-3: rgba(60,60,67,.42); --yc-sep: rgba(60,60,67,.14);
  --yc-green: #248a3d; --yc-green-soft: rgba(52,199,89,.14); --yc-red: #d70015;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em; color: var(--yc-label); -webkit-font-smoothing: antialiased; }
.yc-root *, .yc-root *::before, .yc-root *::after { box-sizing: border-box; }
.yc-panel, .yc-head, .yc-body, .yc-foot { margin: 0; }

/* launcher */
.yc-launch { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: flex-end; gap: 12px; }
.yc-fab { width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 30px rgba(10,47,107,.22), 0 2px 6px rgba(0,0,0,.08);
  display: grid; place-items: center; transition: transform .2s cubic-bezier(.25,.1,.25,1); }
.yc-fab:hover { transform: translateY(-2px) scale(1.03); }
.yc-fab:active { transform: scale(.97); }
.yc-fab img { width: 54px; height: 54px; display: block; transform: translateY(3px); }
.yc-fab::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #34c759; box-shadow: 0 0 0 3px #fff; }
.yc-fab { position: relative; }
.yc-bubble { position: relative; max-width: 260px; margin-bottom: 14px; padding: 12px 34px 12px 16px; border-radius: 18px 18px 6px 18px;
  background: #fff; color: var(--yc-label); font-size: 15px; line-height: 1.35; font-weight: 500;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 12px 32px rgba(10,47,107,.16); cursor: pointer;
  opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .35s ease, transform .35s cubic-bezier(.25,.1,.25,1); pointer-events: none; }
.yc-bubble.on { opacity: 1; transform: none; pointer-events: auto; }
.yc-bubble b { display: block; font-weight: 600; margin-bottom: 2px; }
.yc-bubble span { color: var(--yc-label-2); font-weight: 400; font-size: 14px; }
.yc-bubble-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent;
  color: var(--yc-label-3); font-size: 18px; line-height: 24px; cursor: pointer; padding: 0; }
.yc-bubble-x:hover { background: rgba(118,118,128,.12); color: var(--yc-label-2); }

/* panel */
.yc-panel { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 61;
  width: 400px; height: min(680px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 80px rgba(10,47,107,.24), 0 4px 12px rgba(0,0,0,.08);
  opacity: 0; transform: translateY(16px) scale(.98); transform-origin: bottom right; pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.25,.1,.25,1); }
.yc-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.yc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: .5px solid var(--yc-sep);
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.yc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--yc-panel); display: grid; place-items: center; flex: none; overflow: hidden; }
.yc-avatar img { width: 32px; height: 32px; transform: translateY(2px); }
.yc-title { flex: 1; min-width: 0; }
.yc-title b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.yc-title span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--yc-label-2); }
.yc-title span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c759; }
.yc-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(118,118,128,.12); color: var(--yc-label-2);
  font-size: 20px; line-height: 32px; cursor: pointer; padding: 0; }
.yc-close:hover { background: rgba(118,118,128,.2); }

.yc-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--yc-panel); scroll-behavior: smooth; }
.yc-row { display: flex; gap: 8px; margin: 0 0 10px; align-items: flex-end; }
.yc-row.me { justify-content: flex-end; }
.yc-mini { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 .5px var(--yc-sep); }
.yc-mini img { width: 20px; height: 20px; transform: translateY(1px); }
.yc-msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; }
.yc-row.bot .yc-msg { background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 0 0 .5px var(--yc-sep); }
.yc-row.me .yc-msg { background: var(--yc-tint); color: #fff; border-bottom-right-radius: 6px; }
.yc-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.yc-row.bot .yc-msg a { color: var(--yc-tint); }
.yc-msg ul { margin: 4px 0 0; padding-left: 18px; white-space: normal; }
.yc-msg li { margin: 2px 0; }
.yc-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.yc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--yc-label-3); animation: yc-dot 1.2s infinite ease-in-out; }
.yc-typing i:nth-child(2) { animation-delay: .15s; } .yc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes yc-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.yc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px 34px; }
.yc-chip { border: 0; background: #fff; color: var(--yc-tint); font-family: inherit; font-size: 13.5px; font-weight: 500; line-height: 1; padding: 9px 12px; border-radius: 999px;
  cursor: pointer; box-shadow: 0 0 0 .5px var(--yc-sep); letter-spacing: -0.01em; }
.yc-chip:hover { background: #eef1f6; }

/* cards */
.yc-card { margin: 0 0 12px 34px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 .5px var(--yc-sep); overflow: hidden; }
.yc-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px 8px; }
.yc-card-h b { font-size: 14px; font-weight: 600; letter-spacing: -0.015em; }
.yc-card-h span { font-size: 12px; color: var(--yc-label-3); }
.yc-item { padding: 10px 14px; border-top: .5px solid var(--yc-sep); }
.yc-item-n { font-size: 13.5px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; }
.yc-item-t { font-size: 12px; color: var(--yc-label-2); margin-top: 2px; }
.yc-price { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.yc-price b { font-weight: 600; }
.yc-price s { color: var(--yc-label-3); text-decoration: none; font-size: 12px; }
.yc-item-note { font-size: 12px; color: var(--yc-label-2); margin-top: 4px; }
.yc-notes { padding: 10px 14px; border-top: .5px solid var(--yc-sep); background: #fafafc; font-size: 11.5px; color: var(--yc-label-2); line-height: 1.4; }
.yc-actions { display: flex; gap: 8px; padding: 10px 14px 12px; border-top: .5px solid var(--yc-sep); }
.yc-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 0; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none; letter-spacing: -0.01em; }
.yc-btn.primary { background: var(--yc-tint); color: #fff; }
.yc-btn.primary:hover { background: var(--yc-tint-press); text-decoration: none; }
.yc-btn.soft { background: rgba(10,47,107,.08); color: var(--yc-tint); }
.yc-btn.soft:hover { background: rgba(10,47,107,.13); }

.yc-score { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-top: .5px solid var(--yc-sep); }
.yc-ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--yc-ring, var(--yc-tint)) calc(var(--p) * 1%), rgba(118,118,128,.14) 0); }
.yc-ring span { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.yc-score-t { font-size: 12.5px; color: var(--yc-label-2); line-height: 1.4; }
.yc-score-t b { display: block; color: var(--yc-label); font-size: 13.5px; margin-bottom: 2px; word-break: break-all; }
.yc-check { display: flex; gap: 10px; padding: 8px 14px; border-top: .5px solid var(--yc-sep); font-size: 13px; line-height: 1.35; }
.yc-check i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; margin-top: 1px; }
.yc-check i.ok { background: var(--yc-green-soft); color: var(--yc-green); }
.yc-check i.no { background: rgba(255,59,48,.12); color: var(--yc-red); }
.yc-check small { display: block; color: var(--yc-label-2); font-size: 12px; margin-top: 1px; word-break: break-word; }

/* meeting slots */
.yc-day { padding: 10px 14px; border-top: .5px solid var(--yc-sep); }
.yc-day-l { font-size: 12.5px; font-weight: 600; color: var(--yc-label-2); margin-bottom: 7px; text-transform: capitalize; }
.yc-times { display: flex; flex-wrap: wrap; gap: 6px; }
.yc-time { border: 0; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; padding: 9px 12px; border-radius: 10px;
  background: rgba(10,47,107,.07); color: var(--yc-tint); font-variant-numeric: tabular-nums; }
.yc-time:hover { background: rgba(10,47,107,.13); }
.yc-time.on { background: var(--yc-tint); color: #fff; }
.yc-time:disabled:not(.on) { opacity: .45; cursor: default; }
.yc-meet .yc-card-h b { display: flex; align-items: center; gap: 8px; }
.yc-ok { width: 20px; height: 20px; border-radius: 50%; background: var(--yc-green-soft); color: var(--yc-green); display: inline-grid; place-items: center; font-size: 12px; }
.yc-when { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; text-transform: capitalize; }

/* composer */
.yc-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: .5px solid var(--yc-sep); background: #fff; }
.yc-form { display: flex; align-items: flex-end; gap: 8px; background: var(--yc-panel); border-radius: 22px; padding: 5px 5px 5px 14px; }
.yc-input { flex: 1; border: 0; background: transparent; resize: none; max-height: 120px; min-height: 22px; padding: 7px 0; font: inherit; color: inherit; outline: none; }
.yc-send { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--yc-tint); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; padding: 0; }
.yc-send:disabled { background: rgba(118,118,128,.28); cursor: default; }
.yc-send svg { width: 16px; height: 16px; }
.yc-legal { margin: 7px 4px 0; font-size: 11px; color: var(--yc-label-3); text-align: center; }
.yc-legal a { color: var(--yc-label-2); }

@media (max-width: 520px) {
  .yc-panel { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  .yc-bubble { max-width: 210px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .yc-root * { transition: none !important; animation: none !important; } }
