#assistant-avatar { position: relative; }
.avatar-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
#memorial-call { width: min(440px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: auto; border: 1px solid #afc4a84d; border-radius: 30px; color: #f7f2df; background: #17271d; box-shadow: 0 24px 90px #0008; overscroll-behavior: contain; }
#memorial-call::backdrop { background: #09130ddd; }
.call-panel { position: relative; padding: 32px 28px 26px; display: flex; align-items: center; flex-direction: column; text-align: center; background: radial-gradient(ellipse at 50% 36%, #45674955, transparent 65%); }
.call-panel header { padding: 0 18px; }
.call-eyebrow { margin: 0 0 10px; color: #c5d1c0; font: 12px/1.5 'Memorial Editorial Sans', sans-serif; letter-spacing: .13em; text-transform: uppercase; }
#call-title { margin: 0; font: 32px/1.15 'Memorial Editorial', Georgia, serif; color: #f4e4af; }
#call-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #ffffff0a; color: #d3dfcd; line-height: 1; cursor: pointer; appearance: none; }
.call-panel svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#call-close svg { display: block; width: 22px; height: 22px; pointer-events: none; }
#call-close:hover { background: #ffffff18; }
#call-avatar { position: relative; width: 216px; height: 216px; margin: 24px 0 18px; border-radius: 50%; overflow: hidden; background: #122218; box-shadow: 0 0 50px #83ba6530; flex-shrink: 0; }
#call-avatar video { width: 100%; height: 100%; display: block; object-fit: cover; filter: hue-rotate(275deg) saturate(calc(.75 + var(--voice-level, 0) * .35)) brightness(calc(1.8 + var(--voice-level, 0) * 1.1)); mix-blend-mode: screen; }
#call-avatar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle, transparent 35%, #96ff6733 70%, #c5ffad66); box-shadow: inset 0 0 28px #b9ff9477; opacity: var(--voice-level, 0); mix-blend-mode: screen; }
#call-avatar[data-speaking="true"] { box-shadow: 0 0 28px #a4f78655, 0 0 68px #83ba6540; }
#call-status { min-height: 2.6em; margin: 0; max-width: 310px; color: #e6e9db; font: 15px/1.45 'Memorial Editorial Sans', sans-serif; }
#call-timer { margin: 4px 0; color: #c1d3b7; font: 14px/1.5 monospace; font-variant-numeric: tabular-nums; }
#call-disclosure { max-width: 320px; margin: 14px 0 20px; color: #aebda7; font: 12px/1.5 'Memorial Editorial Sans', sans-serif; }
#call-start { padding: 12px 24px; border: 1px solid #abc894; border-radius: 24px; background: #d1dfba; color: #18291b; font: 15px/1.4 'Memorial Editorial Sans', sans-serif; cursor: pointer; }
#call-start:disabled { opacity: .5; cursor: default; }
#call-start[hidden], #call-timer[hidden] { display: none; }
.call-controls { display: flex; gap: 24px; justify-content: center; margin-top: 26px; width: 100%; }
.call-controls button { display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 0; border: 0; color: #e3e9dc; background: none; font: 11px/1.3 'Memorial Editorial Sans', sans-serif; cursor: pointer; min-width: 64px; }
.call-controls svg { box-sizing: content-box; width: 24px; height: 24px; padding: 15px; border-radius: 50%; background: #ffffff16; }
.call-controls button:disabled { opacity: .35; cursor: default; }
.call-controls button[aria-pressed="true"] svg { background: #e0e7d5; color: #283927; }
.call-controls .control-slash { display: none; }
.call-controls [aria-pressed="true"] .control-slash { display: block; }
#call-end svg { background: #be4c45; color: white; }
.call-panel button:focus-visible { outline: 2px solid #f4e4af; outline-offset: 4px; }
html.memorial-call-open { overflow: hidden; }
@media (max-width: 480px) { .call-panel { padding: 28px 18px 24px; } #call-title { font-size: 29px; } #call-avatar { width: 190px; height: 190px; margin-top: 22px; } }
@media (max-height: 600px) { .call-panel { padding-top: 18px; padding-bottom: 18px; } .call-panel header { padding-top: 20px; } .call-eyebrow { margin-bottom: 5px; } #call-title { font-size: 25px; } #call-avatar { width: 110px; height: 110px; margin: 12px 0; } #call-disclosure { margin: 8px 0 12px; } .call-controls { margin-top: 16px; } }
@media (min-width: 480px) and (max-height: 460px) {
  #memorial-call { width: min(560px, calc(100vw - 24px)); }
  .call-panel { display: grid; grid-template-columns: 130px 1fr; column-gap: 18px; padding: 14px 22px; text-align: left; }
  .call-panel header { grid-column: 1 / -1; text-align: center; padding: 0 44px 8px; }
  .call-eyebrow { font-size: 10px; } #call-title { font-size: 24px; }
  #call-avatar { grid-column: 1; grid-row: 2 / 6; width: 130px; height: 130px; margin: 0; }
  #call-status { grid-column: 2; grid-row: 2; min-height: 0; font-size: 13px; }
  #call-timer { grid-column: 2; grid-row: 3; margin: 0; }
  #call-disclosure { grid-column: 2; grid-row: 4; font-size: 10px; margin: 6px 0; }
  #call-start { grid-column: 2; grid-row: 5; justify-self: start; padding: 8px 16px; font-size: 13px; }
  .call-controls { grid-column: 1 / -1; grid-row: 6; margin-top: 10px; }
  .call-controls svg { padding: 10px; } .call-controls button { gap: 4px; }
}
