/* Concept A chat assistant ("Robin"). */
.pc-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 20px 8px 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--deep); color: var(--on-deep); font: 800 1rem/1.1 var(--body);
  box-shadow: 0 12px 30px -10px rgba(var(--shadow-rgb), .6);
}
.pc-launch:hover { background: var(--deep-2); }
.pc-launch .av { width: 42px; height: 42px; }
.pc-launch small { display: block; font-weight: 600; font-size: .75rem; color: var(--on-deep-muted); }
.pc-launch[aria-expanded="true"] { display: none; }
.pc-av {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); position: relative;
}
.pc-av svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-av.on::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--live); border: 2px solid var(--deep); }

.pc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(400px, calc(100vw - 40px)); padding: 0;
  height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -20px rgba(var(--shadow-rgb), .55);
}
.pc-panel[hidden] { display: none; }
.pc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--deep); color: var(--on-deep); }
.pc-head .pc-av { width: 42px; height: 42px; }
.pc-head h2 { color: var(--on-deep); font-size: 1.15rem; margin: 0; }
.pc-head p { margin: 0; font-size: .82rem; color: var(--on-deep-muted); line-height: 1.3; }
.pc-close { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--on-deep) 10%, transparent); color: var(--on-deep); cursor: pointer; display: grid; place-items: center; flex: none; }
.pc-close:hover { background: color-mix(in srgb, var(--on-deep) 20%, transparent); }
.pc-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pc-demo { background: var(--accent-soft); color: var(--accent-strong); font-size: .78rem; font-weight: 700; padding: 6px 16px; }
.pc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.pc-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.pc-msg .bubble { padding: 11px 14px; border-radius: 18px; font-size: .96rem; line-height: 1.5; }
.pc-msg .bubble p { margin: 0 0 .5em; }
.pc-msg .bubble p:last-child { margin: 0; }
.pc-msg .bubble ul { margin: .3em 0 .5em; padding-left: 1.1em; }
.pc-msg.bot .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.pc-msg.user { align-self: flex-end; }
.pc-msg.user .bubble { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pc-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 999px; background: var(--deep); color: var(--on-deep); font-weight: 800; font-size: .88rem; text-decoration: none; }
.pc-actions a.alt { background: var(--bg-alt); color: var(--deep); }
.pc-actions a:hover { filter: brightness(1.1); }
.pc-typing .bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.pc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: pcDot 1s infinite ease-in-out; }
.pc-typing i:nth-child(2) { animation-delay: .15s; }
.pc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pcDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.pc-chips button { min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent-strong); font: 700 .88rem/1.2 var(--body); cursor: pointer; text-align: left; }
.pc-chips button:hover { background: var(--accent); color: var(--on-accent); }
.pc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.pc-form input { flex: 1; min-width: 0; min-height: 46px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 16px; font: 400 1rem var(--body); color: var(--ink); background: var(--field); }
.pc-form input:focus { outline: 3px solid var(--accent-strong); outline-offset: 1px; border-color: var(--accent); }
.pc-form button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; display: grid; place-items: center; }
.pc-form button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pc-foot { font-size: .72rem; color: var(--muted); padding: 0 14px 10px; background: var(--surface); }

@media (max-width: 720px) {
  .pc-launch { bottom: 82px; right: 12px; padding: 7px; min-height: 0; }
  .pc-launch .txt { display: none; }
  .pc-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .pc-form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
