/* SupportTalk — the support desk sheet + hover pill (2026-11-26).
   Self-contained component styling in the family language (cyan
   accent on a dark control-room sheet), so the desk looks the same
   on every surface it mounts: workspace doors, the Writing Station,
   the public face, the companion rail. */

.sup-talk { display: flex; flex-direction: column; gap: 10px; font-family: inherit; color: #eaf6f8; }
.sup-talk-head { display: flex; gap: 12px; align-items: center; }
.sup-talk-facewrap { position: relative; width: 64px; height: 64px; flex: 0 0 64px; }
.sup-talk-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.sup-talk-ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(0, 229, 255, .35); pointer-events: none; }
.sup-talk-facewrap.is-thinking .sup-talk-ring { border-color: #ffb300; animation: sup-pulse 1.1s ease-in-out infinite; }
.sup-talk-facewrap.is-speaking .sup-talk-ring { border-color: #00e5ff; animation: sup-pulse .8s ease-in-out infinite; }
@keyframes sup-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.sup-talk-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.sup-talk-status { color: #9fd8e0; font-size: .85rem; margin-top: 2px; }
.sup-talk-speaking-note { display: none; color: #00e5ff; font-size: .8rem; margin-top: 2px; }
.sup-talk-log { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 4px 2px; }
.sup-talk-empty { color: #9fd8e0; font-size: .9rem; margin: 6px 0; }
.sup-talk-msg { border-radius: 12px; padding: 8px 11px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; max-width: 92%; }
.sup-talk-msg .sup-talk-who { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; opacity: .75; }
.sup-talk-msg.user { align-self: flex-end; background: rgba(0, 229, 255, .14); border: 1px solid rgba(0, 229, 255, .35); }
.sup-talk-msg.desk { align-self: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.sup-talk-composer { display: flex; gap: 8px; align-items: flex-end; }
.sup-talk-input { flex: 1; border-radius: 10px; border: 1px solid rgba(0, 229, 255, .35); background: rgba(0, 0, 0, .35); color: #eaf6f8; padding: 9px 11px; font: inherit; font-size: .92rem; resize: vertical; }
.sup-talk-input:focus { outline: 2px solid rgba(0, 229, 255, .6); }
.sup-talk-send { background: #00e5ff; color: #04222a; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.sup-talk-send:disabled { opacity: .55; cursor: default; }
.sup-talk-micbtn { background: rgba(0, 229, 255, .12); color: #eaf6f8; border: 1px solid rgba(0, 229, 255, .35); border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.sup-talk-mic-off { opacity: .6; cursor: default; }
.sup-talk-hint { color: #9fd8e0; font-size: .78rem; margin: 0; }
.sup-talk-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .82rem; color: #cfeef3; }
.sup-talk-ctl { display: inline-flex; gap: 6px; align-items: center; }
.sup-talk-vol { width: 110px; }
.sup-talk-btn { background: transparent; color: #cfeef3; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; padding: 5px 10px; cursor: pointer; font: inherit; font-size: .82rem; }

/* The hover door: pill + in-place panel. */
.sup-pill { position: fixed; right: 18px; bottom: 18px; z-index: 99980; background: #00e5ff; color: #04222a; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 800; font-size: .95rem; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.sup-pill:hover { filter: brightness(1.07); }
/* Frame fit (2026-11-26, Carlton): the panel sizes itself against
   the window that holds it. Its height is capped by the room above
   its bottom anchor (deepest anchor 142px + a 24px top margin), so
   its head and its x never spill out of a short frame — e.g. a
   framed place window in a Meet room. On a tall screen the 78vh
   cap still bites first, so the standing shape is unchanged. */
.sup-panel { position: fixed; right: 18px; bottom: 76px; z-index: 99981; width: min(400px, calc(100vw - 24px)); max-height: min(78vh, 720px, calc(100dvh - 166px)); overflow-y: auto; background: #0b2229; border: 1px solid rgba(0, 229, 255, .4); border-radius: 16px; padding: 16px; /* Frame fit (2026-11-26): the panel is a flex column and the talk
   column inside it stretches — the LOG takes the squeeze (it is the
   scroller), so the typing line and the buttons stay pinned inside
   the panel, fully visible, at any panel height. */
box-shadow: 0 18px 50px rgba(0, 0, 0, .5); display: flex; flex-direction: column; }
.sup-panel-mount { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.sup-panel-mount .sup-talk { flex: 1 1 auto; min-height: 0; }
.sup-panel-close { position: absolute; top: 8px; right: 12px; background: transparent; border: 0; color: #9fd8e0; font-size: 1.4rem; line-height: 1; cursor: pointer; }
@media (max-width: 560px) {
    .sup-panel { right: 12px; left: 12px; width: auto; bottom: 70px; }
    .sup-pill { right: 12px; bottom: 12px; }
}
