/* Concept B: Harmony Guide chat (launcher + panel; a full-screen sheet on phones). */
.hc-launch { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 20px 6px 6px;
  border: 0; border-radius: 999px; background: var(--primary); color: var(--on-primary); font: 500 .95rem var(--font-b); cursor: pointer; box-shadow: 0 10px 30px rgba(var(--shadow-rgb), .3); }
.hc-launch:hover { background: var(--primary-hover); }
.hc-launch:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.hc-launch strong { font-family: var(--font-h); font-weight: 600; }
.hc-launch[aria-expanded="true"] { display: none; }
.hc-short { display: none; font-family: var(--font-h); font-weight: 600; }
.hc-av { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.hc-av .icon { width: 24px; height: 24px; }
.hc-av.sm { width: 32px; height: 32px; }
.hc-av.sm .icon { width: 18px; height: 18px; }
@media (max-width: 639px) {
  .hc-launch { right: 12px; bottom: 12px; padding-right: 16px; min-height: 52px; }
  .hc-txt { display: none; }
  .hc-short { display: inline; }
  .hc-launch .hc-av { width: 40px; height: 40px; }
}

.hc-panel { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 390px; height: min(640px, calc(100dvh - 40px)); display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.hc-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hc-panel:not([hidden]) { animation: hc-in .18s ease-out; }
  @keyframes hc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 639px) {
  .hc-panel { inset: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  html.hc-open { overflow: hidden; }
}
.hc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--hero); color: var(--on-hero); --focus: var(--focus-on-dark); }
.hc-head h2 { color: var(--on-hero); font-size: 1.05rem; margin: 0; }
.hc-head p { margin: 0; font-size: .825rem; color: var(--on-hero-muted); }
.hc-close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(var(--on-hero-rgb), .14); color: var(--on-hero); display: grid; place-items: center; cursor: pointer; }
.hc-close:hover { background: rgba(var(--on-hero-rgb), .26); }
.hc-demo { margin: 0; padding: 8px 16px; font-size: .78rem; background: var(--tint); color: var(--muted); border-bottom: 1px solid var(--line); }
.hc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.hc-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.hc-msg.user { justify-content: flex-end; }
.hc-msg .bubble { padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; max-width: 85%; overflow-wrap: anywhere; }
.hc-msg.bot .bubble { background: var(--tint-2); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.hc-msg.user .bubble { background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.bubble p { margin: 0 0 .6em; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 0 0 .6em; padding-left: 1.2em; }
.bubble li { margin-bottom: .2em; }
.hc-fine { font-size: .8rem; color: var(--muted); }
.hc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hc-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: .875rem; text-decoration: none; }
.hc-actions a:hover { background: var(--primary-hover); color: var(--on-primary); }
.hc-actions a.alt { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); }
.hc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.hc-chips[hidden] { display: none; }
.hc-chips button { min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--primary); font: 600 .85rem var(--font-b); cursor: pointer; }
.hc-chips button:hover { border-color: var(--primary); background: var(--tint); }
.hc-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.hc-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; font: 1rem var(--font-b); color: var(--ink); }
.hc-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .15); }
.hc-form button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; cursor: pointer; flex: none; }
.hc-foot { margin: 0; padding: 0 16px 12px; font-size: .825rem; color: var(--muted); text-align: center; }
.hc-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.hc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; }
@media (prefers-reduced-motion: no-preference) {
  .hc-dots i { animation: hc-dot 1s infinite; }
  .hc-dots i:nth-child(2) { animation-delay: .15s; } .hc-dots i:nth-child(3) { animation-delay: .3s; }
  @keyframes hc-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
}
