/* Existing C10/C51/C54 and portrait owners retain typography and geometry. */
.channel-story{position:fixed;inset:0;z-index:20;overflow:hidden;background:radial-gradient(ellipse at 38% 44%,#29303e,#141823 45%,#080b12 80%);color:var(--wq-story-text)}
.channel-story[hidden]{display:none!important}
.channel-story .lead-portrait-layer{background:transparent}
.channel-story wqxt-story-dialogue[hidden]{display:none!important}
.channel-story .wq-dialogue-line-reserved{visibility:hidden}
.channel-story .wq-dialogue-line{white-space:nowrap}
.channel-stage-preview p{margin:8px 0}
.channel-stage-preview h3{font:600 16px/1.4 var(--wq-story-serif);margin:16px 0 8px}
.channel-records{display:grid;gap:8px}
.channel-collection{display:grid;gap:8px}
.channel-collection wqxt-action-control{display:block}
.channel-lead-picker{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:24px}
.channel-lead-picker h3{margin:0;font-size:16px}
button.ritual-door{padding:0;color:inherit;background:transparent;cursor:pointer;min-width:44px;min-height:44px}
@media(max-width:1000px),(max-height:560px){.channel-stage-preview h3{font-size:14px}}

.channel-records .history-rows{max-height:45dvh;color:inherit}
.channel-records .ritual-receipt small{color:inherit}
#channelToast{position:fixed;z-index:100000}

.channel-story-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 42%;pointer-events:none}
#channelStoryLoader{position:absolute;inset:0;z-index:100;display:grid;place-items:center;background:var(--wq-story-bg,#111722)}
#channelStoryLoader[hidden],.channel-story-scene[hidden]{display:none!important}

/* Keep the approved head and gift fully visible on wide landscape screens. */
.channel-story::before{content:"";position:absolute;inset:0;background-image:var(--channel-scene-background);background-size:cover;background-position:center;filter:blur(16px) brightness(.65);transform:scale(1.06);pointer-events:none}
@media(max-width:1000px),(max-height:560px){.channel-story-scene{object-fit:contain;object-position:center}}

/* Adopt the existing prologue system-actor framing. */
.channel-system-portrait{position:absolute;z-index:2;right:-3vw;bottom:-11vh;width:min(52vw,680px);height:104vh;object-fit:contain;pointer-events:none;filter:drop-shadow(0 0 22px rgba(170,202,255,.42))}
.channel-system-portrait[hidden]{display:none!important}
.channel-story.is-call wqxt-story-dialogue{right:max(462px,calc(env(safe-area-inset-right) + 24px))}
@media(max-width:1000px),(max-height:560px){.channel-system-portrait{right:-1vw;bottom:-8vh;width:min(43vw,360px);height:88dvh}.channel-story.is-call wqxt-story-dialogue{right:max(362px,calc(env(safe-area-inset-right) + 16px))}}
