/* One quiet focal point; all existing chat controls keep their behavior. */
.conversation > .presence-header { position: relative; min-height: 148px; align-items: flex-start; padding-top: 16px; }
.presence-header > .toolbar { margin-left: auto; }
.presence-header .presence-heading { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 132px; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; }
.presence-heading[data-ready="false"] { visibility: hidden; }
.presence-heading h1 { font-size: 1rem; line-height: 1.5; font-weight: 600; letter-spacing: 0; margin: 0; color: var(--ink); }
.presence-session-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.presence-stage { --presence-tone: #8fb6e5; width: 96px; height: 96px; position: relative; flex: none; display: inline-block; padding: 0; border: 0; border-radius: 50%; overflow: visible; isolation: isolate; background: color-mix(in srgb, var(--presence-tone) 15%, var(--paper)); color: var(--accent); box-shadow: none; cursor: pointer; vertical-align: middle; }
.presence-stage[data-character="lulu"] { --presence-tone: #e8ac5e; }
.presence-stage[data-character="xiaoman"] { --presence-tone: #b4aac5; }
.presence-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.presence-stage:hover { background: color-mix(in srgb, var(--presence-tone) 22%, var(--paper)); }
.presence-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; font-weight: 600; }
.presence-figure, .presence-crop { position: absolute; inset: 0; display: block; }
.presence-figure { opacity: 0;  }
.presence-crop { left: 4%; top: 4%; right: auto; bottom: auto; width: 92%; height: 92%; overflow: hidden; }
.presence-crop img { position: absolute; top: 0; left: 0; width: 300%; height: 200%; max-width: none; display: block; user-select: none; }
.presence-stage.is-ready .presence-figure { opacity: 1; }
.presence-stage.is-ready .presence-fallback { visibility: hidden; }




.presence-stage[data-character="lulu"] .presence-crop { width: 80%; height: 117.5%; left: 10%; top: -18.5%; }
.presence-stage[data-character="lulu"] .presence-crop img { width: 100%; height: 100%;  }
.presence-stage[data-character="xiaoman"] .presence-crop img { width: 100%; height: 100%; }
.presence-crop.has-motion > img { opacity: 0; }
.presence-motion { position: absolute; inset: 0; width: 100%; height: 100%;  }

.presence-team { width: 40px; height: 40px; border-radius: 50%; cursor: default; }
.presence-team .presence-fallback { font-size: .875rem; }

@media (max-width: 760px) {
  .conversation > .presence-header { min-height: 176px; padding: 12px 8px 8px; }
  .presence-header .presence-heading { top: 10px; }
  .presence-heading > .presence-stage { width: 84px; height: 84px; }
  .presence-header > .toolbar { position:absolute; right:8px; bottom:4px; top:auto; gap:0; }
  .presence-header > .toolbar > .toolbar-label, .presence-header > .toolbar > .toolbar-menu > summary { min-width:44px; width:44px; min-height:44px; height:44px; padding:10px; }
  .presence-header #personal-call { position:static; }
  .presence-header #personal-list-open { position:absolute; top:12px; left:8px; margin:0; min-width:44px; width:44px; height:44px; padding:10px; }
}
@media (max-width: 350px) {
  .conversation > .presence-header { min-height:156px; }
  .presence-heading > .presence-stage { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .presence-stage .presence-figure, .presence-stage .presence-crop img { animation: none !important; }
  .presence-crop, .presence-motion { transition: none; }
  .presence-heading[data-mode="thinking"] h1, .presence-heading[data-mode="replying"] h1 { color: var(--accent); }
}
