.live-chat{margin:20px 0;padding:20px 0 0;border-top:1px solid #ffffff12;background:transparent;color:#f1f4f8}.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.chat-heading h3{margin:0 0 4px;font-size:17px;font-weight:650;letter-spacing:-.4px}.chat-heading span{font-size:12px;color:#8996a8}.chat-live-badge{display:flex;align-items:center;gap:6px;letter-spacing:1px;font-size:9px!important;font-weight:700;color:#8fd8c8!important}.chat-live-badge i{height:5px;width:5px;background:#80ddbb;border-radius:50%}.chat-log{height:260px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff18 transparent;padding:4px 4px 8px 0}.chat-log:empty:before{content:'Start the conversation. Say salaam 👋';display:block;color:#8996a8;text-align:center;padding:70px 8px}.chat-message{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) 32px;column-gap:10px;align-items:start;padding:9px 0;margin-bottom:5px;overflow-wrap:anywhere}.chat-avatar{grid-column:1;grid-row:1 / span 2;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#35465b;color:#c9e1ff;font-size:12px;font-weight:650}.chat-message:nth-child(3n) .chat-avatar{background:#42395d;color:#e0ccff}.chat-message strong{grid-column:2;grid-row:1;color:#acb8ca;font-size:12px;font-weight:550;line-height:1.5}.chat-you{margin-left:7px;padding:2px 5px;border-radius:4px;background:#8db9ee16;color:#8db9ee;font-size:9px;font-weight:600}.chat-message p{grid-column:2;grid-row:2;margin:3px 0 0;white-space:pre-wrap;line-height:1.5;font-size:14px;color:#e5eaf1}.chat-gift{display:block;padding:12px 14px;margin:12px 0;border-radius:14px;background:linear-gradient(110deg,#aa79251c,#76539d16);border:1px solid #d6aa4633}.chat-gift p{font-size:13px;color:#f4d698;margin:0;line-height:1.5}.chat-form{display:flex;align-items:center;gap:8px;margin-top:12px;padding:5px 5px 5px 14px;border:1px solid #ffffff18;border-radius:28px;background:#ffffff07;transition:border-color .15s}.chat-form:focus-within{border-color:#6aaefb90}.chat-form input{min-width:0;flex:1;border:0!important;outline:none;background:transparent!important;color:#fff;padding:8px 0!important;font:inherit;font-size:16px;box-shadow:none!important}.chat-form input::placeholder{color:#8190a2}.chat-form .primary{border:0;border-radius:23px;min-height:42px;padding:0 18px;background:#a3ceff;color:#132237;box-shadow:none;font-size:13px;font-weight:650}.chat-status{font-size:12px;color:#a7b6c8;line-height:1.5;margin:8px 8px 0}.chat-status:empty{display:none}.chat-moderation{grid-column:3;grid-row:1 / span 2;position:relative;align-self:start}.chat-moderation summary{list-style:none;cursor:pointer;width:32px;height:32px;display:grid;place-items:center;color:#8491a3;font-size:11px;border-radius:50%;letter-spacing:1px}.chat-moderation summary::-webkit-details-marker{display:none}.chat-moderation summary:hover,.chat-moderation[open] summary{background:#ffffff0d;color:#fff}.chat-moderation summary:focus-visible{outline:2px solid #a3ceff}.chat-actions{position:absolute;right:0;top:30px;z-index:3;padding:5px;min-width:130px;background:#25303e;border:1px solid #ffffff16;border-radius:12px;box-shadow:0 8px 20px #0006}.chat-actions .secondary{width:100%;text-align:left;border:0;background:transparent;font-size:12px;padding:10px;min-height:38px;border-radius:8px}.chat-actions .secondary:hover{background:#ffffff10}.chat-muted-members{display:flex;flex-wrap:wrap;gap:8px}.chat-muted-members:not(:empty){margin-top:8px}.chat-muted-members button{font-size:12px}.chat-latest{display:block;margin:8px auto;border-radius:20px!important;font-size:12px!important}.chat-latest[hidden]{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:600px){.live-chat{padding:16px 0 0;margin:16px 0}.chat-log{height:30dvh;min-height:200px;max-height:320px}}
.chat-message strong .chat-you{display:inline-block;vertical-align:middle;width:auto}.chat-heading>div>span{display:block}.chat-moderation>summary{padding:0!important;margin:0!important}
/* Quiet surfaces keep the conversation and live video in focus. */
.live-chat{--chat-accent:#b4d5ff;border-top-color:#ffffff0b}.chat-heading{margin-bottom:16px}.chat-heading h3{font-size:18px;letter-spacing:-.55px}.chat-heading>div>span{color:#7d8c9f;font-size:11px}.chat-live-badge{padding:6px 8px;background:#80ddbb08;border:1px solid #80ddbb12;border-radius:20px;letter-spacing:.8px}.chat-message{column-gap:11px;padding:11px 0}.chat-avatar{width:32px;height:32px;background:linear-gradient(145deg,#35546c,#293745);border:1px solid #b4d5ff17;box-shadow:0 2px 8px #0002}.chat-message:nth-child(even) .chat-avatar{background:linear-gradient(145deg,#605076,#3c344a);color:#e4d2ff}.chat-message strong{color:#9facbf;font-size:11px;letter-spacing:.1px}.chat-message p{font-size:14px;letter-spacing:-.12px;line-height:1.55}.chat-gift{padding:0;display:flex;align-items:center;gap:12px;background:linear-gradient(115deg,#ad88471a,#b589dc08);border-color:#e5b96d22;border-radius:17px;overflow:hidden}.chat-gift-icon{flex:0 0 48px;display:grid;place-items:center;align-self:stretch;font-size:27px;background:#e4ba6710;min-height:64px}.chat-gift-copy{padding:11px 12px 11px 0;min-width:0}.chat-gift-copy small{display:block;margin-bottom:3px;color:#bda172;font-size:9px;text-transform:uppercase;letter-spacing:1.1px}.chat-gift .chat-gift-copy p{font-size:12px;color:#f1d8ac;line-height:1.5}.chat-form{margin-top:15px;background:linear-gradient(120deg,#ffffff09,#ffffff05);border-color:#ffffff15;padding:5px 5px 5px 17px;box-shadow:0 5px 20px #0000000a}.chat-form:focus-within{box-shadow:0 0 0 3px #99c9ff0a;border-color:#8abef961}.chat-form .primary{background:linear-gradient(135deg,#c5e1ff,#91bfff);min-width:66px;box-shadow:0 2px 8px #11182726}.chat-form .primary:hover{filter:brightness(1.06)}.chat-form .primary:disabled{opacity:.45}.chat-form input::placeholder{font-size:14px;color:#8190a2}.chat-moderation summary{opacity:.7}.chat-moderation summary:hover,.chat-moderation summary:focus-visible{opacity:1}.chat-actions .secondary:first-of-type{color:#ffb5b5}.chat-latest{background:#20374c!important;color:#c2dfff!important;border:1px solid #7da3d332!important;box-shadow:0 4px 12px #0003}.chat-message strong .chat-you{font-size:8px;text-transform:uppercase;letter-spacing:.6px;background:transparent;border:1px solid #8db9ee23;color:#819ab7;padding:1px 4px;margin-left:6px}

/* Stage and conversation share a bounded viewport; only messages/tools scroll. */
.live-room-dialog[open]{position:fixed;inset:auto;top:calc(var(--room-top,0px) + 12px);left:50%;transform:translateX(-50%);margin:0;box-sizing:border-box;width:min(1120px,calc(100% - 24px));height:calc(var(--room-height,100dvh) - 24px);max-width:none;max-height:none;padding:20px;overflow:hidden}
.live-room-dialog .modal-close{position:absolute;top:12px;right:12px;float:none;z-index:5}
.live-room-dialog #modal-content{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:20px;height:100%;min-height:0}
.live-stage-area{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.live-room-dialog .live-media{flex:1;align-content:start;max-height:none;min-height:0;overflow:auto}
.live-room-dialog .live-media:has(.live-focused){max-height:none}
.live-room-dialog .live-controls{position:static;flex-shrink:0;box-shadow:none;padding:8px 0 0}
.live-conversation-area{display:flex;flex-direction:column;min-height:0;min-width:0;border-left:1px solid #ffffff12;padding-left:20px;padding-top:30px}
.live-room-tabs{display:flex;gap:6px;flex-shrink:0;padding:4px;background:#ffffff06;border-radius:14px;margin-bottom:12px}
.live-room-tabs button{flex:1;min-height:40px;border:0;border-radius:10px;background:transparent;color:#9baabb;font:inherit;font-size:13px;cursor:pointer}
.live-room-tabs button[aria-selected=true]{background:#2a3949;color:#fff}
.live-room-dialog .live-chat{display:flex;flex-direction:column;flex:1;min-height:0;padding:0;margin:0;border:0}
.live-room-dialog .chat-heading{margin-bottom:10px;flex-shrink:0}.live-room-dialog .chat-heading h3{font-size:16px}
.live-room-dialog .chat-log{flex:1;height:auto;min-height:0;max-height:none;overflow-y:auto;overflow-anchor:none}
.live-room-dialog .chat-form{flex-shrink:0;margin-top:10px;min-height:48px}
.live-room-dialog .chat-status{flex-shrink:0;max-height:42px;overflow:auto;margin:6px 0 0}
.live-room-dialog .chat-muted-members{max-height:60px;overflow:auto;flex-shrink:0}
.live-room-dialog .chat-latest{flex-shrink:0}
.live-room-tools{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
.live-room-dialog .live-chat[hidden],.live-room-dialog .live-room-tools[hidden]{display:none}
@media(max-width:700px){
 .live-room-dialog[open]{top:var(--room-top,0px);left:0;transform:none;width:100%;height:var(--room-height,100dvh);border-radius:0;padding:12px 12px max(8px,env(safe-area-inset-bottom));border:0}
 .live-room-dialog #modal-content{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,42%) minmax(0,1fr);gap:10px}
 .live-conversation-area{border-left:0;border-top:1px solid #ffffff12;padding:8px 0 0}
 .live-heading h2{font-size:17px;margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-heading .modal-eyebrow{font-size:9px}
 .live-room-dialog #live-status,.live-room-dialog #live-stage-status{font-size:11px;margin:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .live-room-dialog .live-media{grid-auto-rows:100%;align-content:normal;gap:6px}
 .live-room-dialog .live-track,.live-room-dialog .live-track:only-child,.live-room-dialog .live-track.live-focused{height:100%;aspect-ratio:auto;max-height:none}
 .live-room-dialog .live-controls{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:6px 0 0;overscroll-behavior:contain}
 .live-room-dialog .live-controls button{flex:0 0 auto;min-height:40px;padding:7px 12px;font-size:11px}
 .live-room-tabs{margin-bottom:6px;padding:2px}.live-room-tabs button{min-height:34px}
 .live-room-dialog .chat-heading{display:none}.live-room-dialog .chat-form{margin-top:6px}
 .live-compact-viewport #modal-content{grid-template-rows:minmax(0,38%) minmax(0,1fr);gap:4px}
 .live-compact-viewport .live-heading,.live-compact-viewport #live-status,.live-compact-viewport #live-stage-status{display:none}
 .live-compact-viewport .live-controls button{min-height:32px;padding:4px 10px}
 .live-compact-viewport .live-conversation-area{padding-top:4px}
}
/* Creator controls: a quiet corner button with a touch-friendly popover. */
.live-guest-menu{position:absolute;top:8px;left:8px;z-index:12;max-width:calc(100% - 16px)}
.live-guest-menu-toggle{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:7px;border:1px solid #ffffff26;border-radius:50%;background:#101a2bd9;color:#fff;cursor:pointer;backdrop-filter:blur(10px)}
.live-guest-menu-toggle svg{width:20px;height:20px;fill:currentColor}
.live-guest-menu-toggle:focus-visible{outline:2px solid #9bcaff;outline-offset:2px}
.live-guest-menu-panel{position:relative;margin-top:5px;width:210px;max-width:100%;box-sizing:border-box;padding:5px;background:#162333f5;border:1px solid #ffffff20;border-radius:14px;box-shadow:0 10px 30px #0005;max-height:min(230px,30dvh);overflow:auto;overscroll-behavior:contain;backdrop-filter:blur(16px)}
.live-guest-menu-panel[hidden]{display:none}
.live-guest-menu-panel button{display:block;width:100%;min-height:42px;border:0;border-radius:9px;padding:8px 10px;background:transparent;color:#edf3fc;text-align:left;font-size:12px;line-height:1.3;cursor:pointer}
.live-guest-menu-panel button:hover,.live-guest-menu-panel button:focus-visible{background:#ffffff12}
.live-guest-menu-panel button:disabled{opacity:.45;cursor:default}
.live-guest-menu-panel .guest-remove{color:#ff9ba9;border-top:1px solid #ffffff0c}
.guest-menu-notice{font-size:11px;line-height:1.4;color:#bfcedd;margin:6px;padding:0 4px}.guest-menu-notice:empty{display:none}
.live-room-dialog .live-track:has(.live-guest-menu-panel:not([hidden])){overflow:visible;z-index:15}
.live-room-dialog .live-track video{border-radius:inherit}
.live-room-dialog .live-media:has(.live-guest-menu-panel:not([hidden])){overflow:visible}

/* Consistent icon rows; room roles and removal remain visually separate. */
.live-guest-menu-panel{position:absolute;top:100%;left:0;max-width:none;margin-top:7px;padding:7px;border-radius:16px;background:#172331fa;border-color:#ffffff1c;scrollbar-width:thin;scrollbar-color:#425063 transparent}
.live-guest-menu-panel button{display:flex;align-items:center;gap:11px;min-height:44px;padding:9px 11px;font-size:12px;font-weight:500;letter-spacing:.05px}
.live-guest-menu-panel .guest-action-icon{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.live-room-dialog .live-track .guest-action-label{position:static;display:block;min-width:0;max-width:none;overflow:visible;white-space:normal;background:none;padding:0;color:inherit;font:inherit;border-radius:0}
.live-guest-menu-panel [data-guest-action="grant-moderator"]{border-top:1px solid #ffffff0c;border-radius:0;margin-top:4px;padding-top:12px}
.live-guest-menu-panel .guest-remove{border-radius:0;margin-top:4px;padding-top:12px;color:#ff9da9}
/* Personal call controls; guest moderation stays on the guest's tile. */
.live-room-dialog .live-controls{display:flex;justify-content:center;align-items:center;gap:16px;overflow-x:auto;padding:10px 0 4px}
.live-room-dialog .live-controls .live-icon-control{display:flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:48px;min-height:54px;padding:5px 8px;border:0;border-radius:14px;background:transparent;box-shadow:none;color:#c9d5e3}
.live-icon-control svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.live-control-label{font-size:10px;line-height:13px;font-weight:500}
.live-room-dialog .live-controls .live-icon-control:hover{background:#ffffff09}
.live-room-dialog .live-controls .live-icon-control.is-off{color:#ffafba;background:#e76d7f12}
.live-room-dialog .live-controls [data-live-leave]{color:#ff9da9;background:#ff8f9d0c}
.live-room-tools>[data-live-end]{width:100%;margin-top:20px;min-height:44px}
.live-camera-flip{position:absolute;bottom:1px;right:1px;z-index:6;display:grid;place-items:center;min-height:44px;width:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}
.live-camera-flip::before{content:"";position:absolute;inset:8px;border:1px solid #ffffff20;border-radius:50%;background:#102032b8;backdrop-filter:blur(8px);pointer-events:none}
.live-camera-flip svg{position:relative;width:15px;height:15px;pointer-events:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.live-camera-flip[hidden]{display:none}.live-camera-flip:disabled{opacity:.5}
.live-room-dialog .live-track:has(.live-camera-flip)>span{max-width:calc(100% - 66px)}
.live-camera-flip:focus-visible,.live-icon-control:focus-visible{outline:2px solid #9bcaff;outline-offset:2px}
@media(max-width:400px){.live-room-dialog .live-controls{gap:10px}}
@media(max-height:560px){.live-room-dialog .live-controls{padding-top:4px}.live-room-dialog .live-controls .live-icon-control{min-height:40px;gap:2px;padding:3px 7px}.live-icon-control svg{width:18px;height:18px}}

#live-camera-feedback{flex-shrink:0;margin:4px 0;font-size:12px;line-height:1.4;color:#c7def7;max-height:58px;overflow:auto}#live-camera-feedback:empty{display:none}

/* Fit every regular stage row inside the viewport. Hidden rows pause adaptive video. */
.live-room-dialog .live-media{--stage-rows:1;grid-template-rows:repeat(var(--stage-rows),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);align-content:stretch}
.live-room-dialog .live-media:has(>.live-track:nth-child(3)){--stage-rows:2}
.live-room-dialog .live-media:has(>.live-track:nth-child(5)){--stage-rows:3}
.live-room-dialog .live-media:has(>.live-track:nth-child(7)){--stage-rows:4}
.live-room-dialog .live-media:has(>.live-track:nth-child(9)){--stage-rows:5}
.live-room-dialog .live-media:has(>.live-track:nth-child(11)){--stage-rows:6}
.live-room-dialog .live-media>.live-track,.live-room-dialog .live-media>.live-track:only-child{height:100%;max-height:none;aspect-ratio:auto}
.live-room-dialog .live-media:has(.live-focused){grid-template-rows:none;grid-auto-rows:minmax(160px,1fr);overflow-y:auto}
@media(max-width:700px){
 .live-room-dialog #modal-content:has(.live-media>.live-track:nth-child(3)){grid-template-rows:minmax(0,55%) minmax(0,1fr)}
 .live-room-dialog .live-media:has(.live-focused){grid-auto-rows:minmax(120px,1fr)}
}
/* Compact live conversation: readable inline names, quiet chrome, anchored composer. */
.live-room-dialog .live-conversation-area{background:linear-gradient(180deg,#111b2600,#101923b8 32%,#101923);border-left-color:#ffffff0a}
.live-room-dialog .live-room-tabs{background:transparent;border-radius:0;padding:0;border-bottom:1px solid #ffffff0a;gap:22px;margin-bottom:10px}
.live-room-dialog .live-room-tabs button{flex:0 0 auto;border-radius:0;padding:8px 2px;min-height:38px;color:#91a2b8;font-size:12px;font-weight:600}
.live-room-dialog .live-room-tabs button[aria-selected=true]{background:none;color:#e9f3ff;border-bottom:2px solid #8bbfff}
.live-room-dialog .chat-heading{display:none}
.live-room-dialog .chat-log{display:flex;flex-direction:column;padding:10px 4px 10px 0;scrollbar-color:#ffffff14 transparent;mask-image:linear-gradient(to bottom,transparent,#000 12px,#000)}
.live-room-dialog .chat-log>.chat-message:first-child{margin-top:auto}
.live-room-dialog .chat-message{display:block;flex-shrink:0;padding:6px 36px 6px 0;margin-bottom:2px;line-height:1.6;text-shadow:0 1px 3px #0004}
.live-room-dialog .chat-avatar{display:none}
.live-room-dialog .chat-message>strong{display:inline;color:#a9ccf0;font-size:12px;font-weight:650;line-height:1.6;letter-spacing:0;margin-right:7px}
.live-room-dialog .chat-message:nth-child(3n)>strong{color:#c3b5e8}
.live-room-dialog .chat-message:nth-child(3n+1)>strong{color:#96d6c9}
.live-room-dialog .chat-message>p{display:inline;color:#f5f7fb;font-size:14px;font-weight:450;line-height:1.6;letter-spacing:0;margin:0}
.live-room-dialog .chat-you{display:none!important}
.live-room-dialog .chat-moderation{position:absolute;right:0;top:2px}
.live-room-dialog .chat-moderation summary{width:32px;height:36px;opacity:.6;color:#b6c5d6;letter-spacing:1px}
.live-room-dialog .chat-gift{display:flex;align-items:center;gap:9px;max-width:100%;padding:9px 11px;margin:8px 0;border-radius:12px;border-color:#c2a97825;background:linear-gradient(110deg,#ae7a2426,#b78bea0a)}
.live-room-dialog .chat-gift-icon{flex:0 0 32px;min-height:36px;font-size:23px;border-radius:9px;background:#d1a66712}
.live-room-dialog .chat-gift-copy{padding:0}.live-room-dialog .chat-gift-copy small{font-size:8px;letter-spacing:.65px;color:#c6b494;margin:0 0 3px}
.live-room-dialog .chat-gift-copy p{font-size:12px;line-height:1.5;color:#ffe3b6}
.live-room-dialog .chat-form{background:#ffffff08;border-color:#ffffff1b;border-radius:24px;padding:4px 4px 4px 14px;min-height:48px;box-shadow:none}
.live-room-dialog .chat-form .primary{min-width:54px;min-height:38px;border-radius:20px;font-size:12px;background:#b8d9ff;color:#102136;box-shadow:none}
.live-room-dialog .chat-form input::placeholder{color:#a6b1c1}
.live-room-dialog .chat-status{font-size:11px;color:#a9b9cc}
@media(max-width:700px){
 .live-room-dialog .live-conversation-area{border-top:0;padding-top:0}
 .live-room-dialog .live-room-tabs{margin-bottom:2px;gap:20px}
 .live-room-dialog .live-room-tabs button{min-height:34px;padding:5px 1px}
 .live-room-dialog .chat-message{padding-top:5px;padding-bottom:5px}
}

/* Square camera tiles, fitted to the entire stage without hiding additional guests. */
.live-room-dialog .live-media:not(:has(.live-focused)):not(:empty){grid-template-columns:repeat(var(--stage-columns,2),var(--square-size,minmax(0,1fr)));grid-template-rows:repeat(var(--stage-rows,1),var(--square-size,minmax(0,1fr)));justify-content:center;align-content:center}
.live-room-dialog .live-media:not(:has(.live-focused))>.live-track{width:100%;height:100%;aspect-ratio:1;border-radius:18px}
.live-room-dialog .live-media:not(:has(.live-focused))>.live-track:only-child{grid-column:auto}
.live-room-dialog .live-track video{object-fit:cover;object-position:center}

/* Small visual controls with forgiving 44px touch targets. */
.live-room-dialog .live-enlarge,.live-room-dialog .live-guest-menu-toggle{width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;backdrop-filter:none;color:#f3f7fc}
.live-room-dialog .live-enlarge{top:1px;right:1px;font-size:0}
.live-room-dialog .live-guest-menu{top:1px;left:1px}
.live-room-dialog .live-guest-menu-toggle{position:relative}
.live-room-dialog .live-enlarge::before,.live-room-dialog .live-guest-menu-toggle::before{content:'';position:absolute;inset:8px;border:1px solid #ffffff20;border-radius:50%;background:#101a2bb3;backdrop-filter:blur(8px);pointer-events:none}
.live-room-dialog .live-enlarge::after{content:'';position:absolute;inset:15px;pointer-events:none;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f3f7fc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2H2v4m8-4h4v4M2 10v4h4m8-4v4h-4'/%3E%3C/svg%3E")}
.live-room-dialog .live-enlarge[aria-pressed=true]::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f3f7fc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h4V2m4 0v4h4M6 14v-4H2m12 0h-4v4'/%3E%3C/svg%3E")}
.live-room-dialog .live-guest-menu-toggle svg{position:relative;width:15px;height:15px;pointer-events:none}
.live-room-dialog .live-enlarge:hover::before,.live-room-dialog .live-guest-menu-toggle:hover::before,.live-room-dialog .live-guest-menu-toggle[aria-expanded=true]::before{background:#263c55e6;border-color:#ffffff40}
.live-room-dialog .live-enlarge:focus-visible,.live-room-dialog .live-guest-menu-toggle:focus-visible{outline:2px solid #9bcaff;outline-offset:-3px}
/* Adaptive call stage. Position transitions preserve attached media elements. */
.live-room-dialog .live-media.adaptive-live-grid{display:block!important;position:relative;overflow:visible!important;border-radius:0;margin:4px;isolation:isolate}
.live-room-dialog .adaptive-live-grid>.live-track,.live-room-dialog .adaptive-live-grid>.live-track:only-child,.live-room-dialog .adaptive-live-grid>.live-track.live-focused{position:absolute;aspect-ratio:auto;max-width:none;max-height:none;border:1px solid #ffffff14;border-radius:20px;box-shadow:0 5px 16px #0002;transition:left .38s cubic-bezier(.2,.8,.2,1),top .38s cubic-bezier(.2,.8,.2,1),width .38s cubic-bezier(.2,.8,.2,1),height .38s cubic-bezier(.2,.8,.2,1),transform .3s ease,box-shadow .3s ease;animation:call-tile-in .3s ease both;transform:scale(1);transform-origin:center}
.live-room-dialog .adaptive-live-grid>.live-track.is-speaking{transform:scale(1.012);box-shadow:0 0 0 2px #a8d8ed,0 8px 22px #0003;z-index:2}
.live-room-dialog .adaptive-live-grid>.live-track:has(.live-guest-menu-panel:not([hidden])){z-index:15}
.live-room-dialog .adaptive-live-grid .live-camera-off{background:radial-gradient(ellipse at 30% 15%,#344e62,#182631 75%);padding:12px;gap:7px}
.live-room-dialog .adaptive-live-grid .camera-off-avatar{width:clamp(32px,8vw,66px);height:clamp(32px,8vw,66px);font-size:clamp(15px,3vw,25px);font-weight:500;background:linear-gradient(140deg,#7a9eae44,#55748133);border:1px solid #d2e6ee29;box-shadow:0 0 0 7px #ffffff03}
.live-room-dialog .adaptive-live-grid .live-camera-off strong{font-size:13px;font-weight:550}.live-room-dialog .adaptive-live-grid .live-camera-off small{font-size:10px;color:#b4c3ce}
@keyframes call-tile-in{from{opacity:0;filter:blur(2px)}to{opacity:1;filter:none}}
@media(prefers-reduced-motion:reduce){.live-room-dialog .adaptive-live-grid>.live-track{animation:none;transition:none}.live-room-dialog .adaptive-live-grid>.live-track.is-speaking{transform:none}}

/* Preserve the whole camera frame, including in focused view. */
.live-room-dialog .adaptive-live-grid>.live-track{background:radial-gradient(ellipse at top,#263c4d,#172431);border-radius:18px}
.live-room-dialog .adaptive-live-grid>.live-track video{object-fit:contain;object-position:center;width:100%;height:100%}
.live-preflight{box-sizing:border-box;width:min(430px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:22px;border:1px solid #ffffff20;border-radius:24px;background:#172430;color:#edf4fa;box-shadow:0 24px 80px #0007}.live-preflight::backdrop{background:#080f19b8;backdrop-filter:blur(5px)}.live-preflight h2{font-size:21px;margin:0 0 10px;letter-spacing:-.4px}.live-preflight p{font-size:13px;line-height:1.5;color:#b9cbd8}.preflight-frame{display:grid;place-items:center;aspect-ratio:4/3;overflow:hidden;border-radius:17px;background:#0e1822;color:#8fa5b8;font-size:13px;text-align:center}.preflight-frame video{width:100%;height:100%;object-fit:contain;min-height:0;transform:none}.preflight-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.preflight-actions button{min-height:44px;border-radius:14px}.preflight-actions [hidden]{display:none}#live-connection{flex-shrink:0;margin:4px 0;font-size:11px;line-height:1.4;color:#f2d4a4;max-height:40px;overflow:auto}#live-connection[hidden]{display:none}

/* Reserve meaningful space for real camera tiles, including real status/control chrome. */
.live-room-dialog .live-controls{margin:6px 0 0;padding-top:6px}
.live-room-dialog .live-heading{flex-shrink:0}
.live-room-dialog #live-status{flex-shrink:0;font-size:11px;line-height:1.4;margin:4px 0;max-height:32px;overflow:auto}
@media(max-width:700px){
 .live-room-dialog #modal-content,.live-room-dialog #modal-content:has(.live-media>.live-track:nth-child(3)){grid-template-rows:minmax(0,60%) minmax(0,1fr);gap:8px}
 .live-room-dialog #modal-content:has(.live-focused){grid-template-rows:minmax(0,70%) minmax(0,1fr)}
 .live-room-dialog.live-compact-viewport #modal-content{grid-template-rows:minmax(0,52%) minmax(0,1fr);gap:4px}
 .live-room-dialog.live-compact-viewport #live-camera-feedback{max-height:28px;font-size:10px}
}

/* Video-first balance; chat stays scrollable with an anchored composer. */
.live-room-dialog #modal-content{grid-template-columns:minmax(0,2.4fr) minmax(260px,.9fr)}
@media(max-width:700px){
 .live-room-dialog #modal-content,.live-room-dialog #modal-content:has(.live-media>.live-track:nth-child(3)){grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,73%) minmax(0,1fr);gap:6px}
 .live-room-dialog #modal-content:has(.live-focused){grid-template-rows:minmax(0,77%) minmax(0,1fr)}
 .live-room-dialog.live-compact-viewport #modal-content{grid-template-rows:minmax(0,55%) minmax(0,1fr);gap:4px}
 .live-room-dialog .live-room-tabs button{min-height:30px}
 .live-room-dialog .chat-message{padding-top:3px;padding-bottom:3px}
}
.live-room-dialog .live-chat{position:relative}
.live-room-dialog .chat-latest{position:absolute;bottom:62px;left:50%;transform:translateX(-50%);z-index:4;margin:0;min-height:34px;padding:6px 12px;white-space:nowrap}
@media(max-width:700px){.live-room-dialog.live-compact-viewport #modal-content{grid-template-rows:minmax(0,55%) minmax(0,1fr)!important}}

/* While typing, spend the limited keyboard viewport on faces and the composer. */
@media(max-width:700px){
 .live-room-dialog.live-typing #modal-content{grid-template-rows:minmax(0,1fr) 108px!important;gap:4px}
 .live-room-dialog.live-typing .live-room-tabs,.live-room-dialog.live-typing .chat-heading,.live-room-dialog.live-typing .modal-eyebrow,.live-room-dialog.live-typing #live-status{display:none}
 .live-room-dialog.live-typing .live-heading h2{font-size:15px;line-height:20px;margin:0;padding-right:38px}
 .live-room-dialog.live-typing .live-conversation-area{padding:0}
 .live-room-dialog.live-typing .live-controls{margin:2px 0 0;padding:0;gap:14px}
 .live-room-dialog.live-typing .live-controls .live-icon-control{min-height:40px;padding:2px 8px;gap:0}
 .live-room-dialog.live-typing .live-controls .live-control-label{display:none}
 .live-room-dialog.live-typing .chat-form{margin-top:4px;min-height:44px}
 .live-room-dialog.live-typing .chat-status{max-height:18px;margin-top:2px;font-size:10px}
 .live-room-dialog.live-typing .chat-muted-members{display:none}
 .live-room-dialog.live-typing .chat-log{padding-bottom:2px}
}

/* Filled group squares; expanding a creator reveals their full camera frame. */
.live-room-dialog .adaptive-live-grid:not(:has(.live-focused))>.live-track:not(:only-child) video{object-fit:cover;object-position:50% 50%}
.live-room-dialog .adaptive-live-grid>.live-track.is-speaking{transform:none}

.live-room-dialog .chat-message .chat-delivery{font-size:10px;color:#9caec0;line-height:1.4;margin-left:6px}.live-room-dialog .chat-message[data-delivery=retry] .chat-delivery{color:#f0ba92}

/* Persistent request notification for the host and appointed room moderators. */
.live-stage-area{position:relative}
.live-request-notice{position:absolute;top:54px;left:6px;right:6px;z-index:16;display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #a3ceff55;border-radius:14px;background:#152c43ed;box-shadow:0 5px 22px #0004;backdrop-filter:blur(12px);color:#edf6ff;font-size:13px}
.live-request-notice span{flex:1;min-width:0;overflow-wrap:anywhere}.live-request-notice button{min-height:36px;padding:5px 12px;border-radius:10px;flex-shrink:0}
.live-typing .live-request-notice{top:8px}

.live-room-dialog .live-room-tabs{gap:16px}
.live-room-dialog .live-room-tabs button{display:flex;align-items:center;gap:6px;white-space:nowrap}
.live-room-tabs svg{width:17px;height:17px;flex-shrink:0}
.live-room-gifts{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 0 12px}
.live-room-gifts[hidden]{display:none!important}
.live-room-gifts .test-gift-panel{margin:0;padding-top:6px;border-top:0}
@media(max-width:360px){.live-room-dialog .live-room-tabs{gap:10px}.live-room-dialog .live-room-tabs button{font-size:11px;gap:4px}}

/* Compact room navigation: independent share action, equal icon weight. */
.live-room-nav{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-bottom:6px;border-bottom:1px solid #ffffff0b}
.live-room-dialog .live-room-nav .live-room-tabs{flex:1;min-width:0;margin:0;border:0;gap:clamp(8px,2vw,18px)}
.live-room-dialog .live-room-nav .live-room-tabs button{min-width:0;min-height:44px}
.live-room-nav [data-room-tab-label]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-room-share{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#b9cde0;cursor:pointer}
.live-room-share svg{width:19px;height:19px}
.live-room-share:hover{background:#ffffff0b;color:#fff}
.live-room-share:focus-visible{outline:2px solid #9bcaff;outline-offset:-3px}
.live-share-feedback{font-size:12px;color:#b7cce0;flex-shrink:0}
.live-share-feedback:empty{display:none}
.live-share-feedback input{width:100%;font-size:16px}
.live-room-dialog.live-typing .live-room-nav{display:none}
.live-shared-invite{padding:16px;margin-bottom:16px;border:1px solid #8bbfff50;border-radius:16px;background:#8bbfff0b}
@media(max-width:420px){.live-room-dialog .live-room-nav .live-room-tabs button{flex:1;font-size:11px;gap:5px}.live-room-nav .live-room-tabs svg{width:16px;height:16px}}

.live-room-dialog .live-room-nav #live-tools-tab{flex:0 0 44px;justify-content:center;width:44px;padding:0}
#live-tools-tab [data-room-tab-label]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.live-room-dialog .live-room-nav #live-tools-tab svg{width:19px;height:19px}

.live-room-dialog .live-room-nav #live-gifts-tab .room-gift-art{width:27px;height:27px;filter:drop-shadow(0 2px 4px #dc43832b)}
.live-room-dialog .live-room-nav #live-tools-tab .room-people-art{width:27px;height:27px;filter:drop-shadow(0 2px 4px #4389dd30)}
.live-room-dialog #live-gifts-tab{color:#e9c4d6}

/* Camera preparation stays inside the existing live room. */
.live-stage-area{position:relative}
.live-preflight-inline{position:absolute;inset:0;z-index:30;width:100%;height:100%;max-height:100%;margin:0;padding:16px;display:flex;flex-direction:column;gap:8px;box-shadow:none;border-radius:20px;overflow:auto}
.live-preflight-inline h2{font-size:18px;margin:0}.live-preflight-inline p{margin:0;font-size:12px}
.live-preflight-inline .preflight-frame{flex:1;min-height:80px;aspect-ratio:auto}
.live-preflight-inline .preflight-frame video{height:100%;max-height:100%;object-fit:contain}
.live-preflight-inline .preflight-actions{flex-shrink:0}.live-preflight-inline .preflight-actions button{flex:1}

.chat-profile-link{appearance:none;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;line-height:inherit;text-align:left;padding:5px 2px;margin:-5px -2px;cursor:pointer;touch-action:manipulation}.chat-profile-link:focus-visible{outline:2px solid #add5ff;outline-offset:2px;border-radius:4px}.chat-profile-link:disabled{cursor:default}

/* Keep room gestures inside the room instead of rubber-banding the page below. */
html:has(.live-room-dialog[open]),body:has(.live-room-dialog[open]){overflow:hidden;overscroll-behavior:none}
.live-room-dialog[open]{overscroll-behavior:none}
.live-room-dialog .chat-log,.live-room-tools,.live-room-gifts{overscroll-behavior-y:none;touch-action:pan-y;scroll-behavior:auto}

.live-audience-count{display:block;font-size:11px;line-height:1.5;color:#a9bed2;font-variant-numeric:tabular-nums;margin:3px 0 5px}.live-listen-retry{border:1px solid #a3ceff40;border-radius:12px;background:#233b50;color:#d7eaff;padding:7px 12px;font-size:12px;min-height:36px}

button.live-audience-count{width:fit-content;border:1px solid #aacff323;background:#a6cfff0b;border-radius:100px;padding:4px 10px;min-height:32px;cursor:pointer;color:#c6dff3}button.live-audience-count:hover{background:#a6cfff19}button.live-audience-count:focus-visible{outline:2px solid #a6cfff;outline-offset:2px}
.live-people-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(420px,calc(100% - 24px));max-height:min(640px,80dvh);padding:0;border:1px solid #b7d9ff26;border-radius:24px;background:#111d2a;color:#edf5ff;overflow:hidden;box-shadow:0 24px 80px #0006}
.live-people-dialog[open]{display:flex;flex-direction:column}.live-people-dialog::backdrop{background:#050c1670;backdrop-filter:blur(5px)}.live-people-dialog header{position:static;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;border-bottom:1px solid #b9dfff10;flex-shrink:0}.live-people-dialog h2{font-size:18px;margin:0;letter-spacing:-.4px}.live-people-summary{margin:4px 0 0;font-size:12px;color:#91abc2}.live-people-close{width:40px;height:40px;border:0;border-radius:50%;background:#bddfff0d;color:#d6eaff;font-size:24px}.live-people-list{overflow-y:auto;overscroll-behavior:contain;padding:6px 12px 14px;min-height:0}.live-person-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 8px;border:0;background:transparent;color:inherit;text-align:left;border-radius:14px}.live-person-row:hover{background:#aed4ff0a}.live-person-row .creator-avatar{position:relative;display:grid;place-items:center;overflow:hidden;flex:0 0 44px;width:44px;height:44px;margin:0;border-radius:50%;border:1px solid #badfff25;background:linear-gradient(140deg,#365b78,#1b3248);font-size:15px;color:#d9edff}.live-person-row .creator-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.live-person-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.live-person-copy strong{font-size:14px;overflow-wrap:anywhere}.live-person-copy small{font-size:11px;color:#9bb8d0}
@media(max-width:600px){.live-people-dialog{inset:auto 0 0;margin:0;width:100%;max-height:72dvh;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}}
@media(max-width:600px){.live-people-dialog{max-width:100%;left:0;right:0}}

.live-room-dialog .chat-message.chat-arrival{display:block;margin:4px 0;padding:6px 10px;border-left:2px solid #96c9f777;border-radius:0 9px 9px 0;background:linear-gradient(90deg,#8fc5ff0e,transparent);font-size:12px;line-height:1.5;color:#91aac0}.chat-arrival .chat-profile-link{font-weight:600;color:#c1ddf5}.chat-arrival>span{position:static;background:none;padding:0;color:inherit}
