@import url('/script/theme.css');
:root{color-scheme:dark;--bg:hsl(270,47%,18%);--panel:var(--bg);--surface:color-mix(in srgb,var(--bg) 92%,white);--tile:var(--bg);--text:#f5f0f8;--muted:#c9bed1;--line:#594367;--accent:var(--orange-accent);--accent-ink:#251529;--green:#b4d9c2;--red:#ffc2c2;--serif:Georgia,'Times New Roman',serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 system-ui,-apple-system,sans-serif}button,input,select{font:inherit;color:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);background:transparent;border-radius:9px;padding:9px 13px;min-height:40px}button:hover{background:var(--surface)}button:focus-visible,[role=button]:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button[aria-pressed=true]{background:var(--surface);color:var(--accent)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h2{font-size:18px}h3{font-size:14px}small,.hint{font-size:12px;color:var(--muted);line-height:1.6}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--muted)}.design-bar{min-height:46px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 28px;background:#18101f;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}.design-bar b{letter-spacing:1px;font-size:10px;color:var(--accent)}.design-bar>div{display:flex;gap:8px;align-items:center}.design-bar select,.design-bar button{background:var(--panel);border:1px solid var(--line);min-height:30px;padding:5px 9px;border-radius:6px}.app{max-width:1800px;margin:auto}.brand-header{height:100px;display:flex;align-items:center;justify-content:space-between;padding:18px 30px;border-bottom:1px solid var(--line);gap:20px}.identity span:not(.avatar){display:block;font-size:11px;color:var(--muted);margin-top:3px}.meeting-title{text-align:center}.meeting-title h1{font-size:18px;font-weight:500;margin-top:3px}.identity{display:flex;gap:10px;align-items:center;font-size:12px}.avatar{display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#69537e;color:#f5f0f8;border:1px solid #ffffff24;font:44px var(--serif);width:112px;height:112px}.avatar.small{width:34px;height:34px;font-size:14px}.avatar.tiny{width:38px;height:38px;font-size:15px}.room{height:calc(100dvh - 146px);min-height:590px;display:flex;flex-direction:column}.room-toolbar{padding:13px 28px;display:flex;justify-content:space-between;align-items:center;min-height:66px}.room-meta{display:flex;align-items:center;gap:20px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.connection{color:var(--green)}.view-switch{border:1px solid var(--line);padding:3px;display:flex;border-radius:9px}.view-switch button{min-height:30px;padding:5px 17px;font-size:12px}.meeting-body{display:flex;gap:22px;flex:1;min-height:0;padding:0 28px 20px}.stage{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}.stage-caption{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);padding-bottom:1px}.stage-caption>span:first-child{color:var(--text)}.stage-content{flex:1;min-height:0;display:flex}.tile{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:12px;background:var(--tile);border:1px solid var(--line);min-width:0}.speaker-tile{width:100%;background:var(--bg);border:1px solid transparent}.speaker-tile>.center-person{display:grid;justify-items:center;gap:16px}.speaker-tile .avatar{width:124px;height:124px;font-size:47px;background:#73558a}.center-person p{font-size:13px;color:var(--muted)}.speaker-name{position:absolute;bottom:20px;left:22px;display:flex;align-items:center;gap:10px}.speaker-name b{font-size:16px;font-weight:500}.host-tag{font-size:10px;letter-spacing:1px;background:#ffffff12;border:1px solid #ffffff25;padding:3px 7px;border-radius:4px}.speaking{position:absolute;left:20px;top:18px;display:flex;gap:8px;align-items:center;background:color-mix(in srgb,var(--bg) 67%,transparent);border:1px solid #ffffff15;border-radius:6px;padding:7px 10px;font-size:11px;color:var(--green)}.sound-bars{display:flex;align-items:center;gap:2px;height:13px}.sound-bars i{display:block;width:3px;background:var(--green);border-radius:2px}.sound-bars i:nth-child(1){height:7px}.sound-bars i:nth-child(2){height:13px}.sound-bars i:nth-child(3){height:10px}.pin-button{position:absolute;right:12px;top:12px;font-size:11px;background:color-mix(in srgb,var(--bg) 60%,transparent);border:1px solid #ffffff20}.filmstrip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;height:106px}.filmstrip .tile .avatar{width:42px;height:42px;font-size:19px;margin-bottom:12px}.tile-label{position:absolute;left:10px;right:10px;bottom:8px;display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:11px;color:#f5f0f8}.tile-label span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile-label .muted-icon{flex-shrink:0;color:#cfbfd8}.tile-label svg{width:12px;height:12px}.strip-pager{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.strip-pager button{min-height:24px;padding:2px 9px;font-size:12px}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:10px;width:100%}.gallery.capacity{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr))}.gallery .tile .avatar{height:54px;width:54px;font-size:22px;margin-bottom:12px}.gallery .tile:first-child{border-color:transparent}.sidebar{width:320px;flex-shrink:0;display:flex;flex-direction:column;border:1px solid var(--line);background:var(--panel);border-radius:12px;overflow:hidden}.side-tabs{display:flex;padding:9px 8px;border-bottom:1px solid var(--line);gap:1px}.side-tabs button{font-size:12px;padding:8px 10px;min-height:36px}.side-tabs #close-side{margin-left:auto;font-size:20px;padding:2px 8px}.badge{display:inline-grid;place-items:center;border-radius:20px;background:var(--accent);color:var(--accent-ink);font-size:10px;font-weight:800;min-width:17px;height:17px;margin-left:4px}.side-panel{display:flex;flex-direction:column;flex:1;min-height:0}.panel-heading{padding:20px 18px 13px}.panel-heading h2{font-weight:500;font-size:16px}.panel-heading p{font-size:11px;color:var(--muted);margin-top:4px}.messages{padding:0 18px;flex:1;overflow:auto}.day-line{display:flex;gap:10px;align-items:center;font-size:9px;letter-spacing:1px;color:var(--muted);margin:10px 0 20px}.day-line:before,.day-line:after{content:'';height:1px;flex:1;background:var(--line)}.message{display:flex;gap:10px;margin-bottom:23px}.message>div{min-width:0;flex:1}.message header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.message b{font-size:11px;font-weight:600}.message time{font-size:9px;color:var(--muted);white-space:nowrap}.message p{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.reading{border-left:2px solid var(--accent);background:var(--surface);padding:12px;margin-top:10px;display:grid;gap:6px}.reading .eyebrow{font-size:8px;letter-spacing:1px}.reading strong{font:19px var(--serif)}.reading>span:last-child{font-size:11px;color:var(--muted)}.composer{padding:14px 16px;border-top:1px solid var(--line)}.composer label{font-size:11px;display:block;margin-bottom:7px}.composer>div{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--bg)}.composer input{min-width:0;flex:1;border:0;background:transparent;padding:11px;font-size:12px}.composer button{font-size:22px;min-height:40px;padding:0 13px;color:var(--accent)}.composer small{display:block;font-size:10px;margin-top:8px}.control-bar{display:flex;align-items:center;justify-content:space-between;padding:14px 28px;border-top:1px solid var(--line);background:var(--panel);gap:20px;min-height:92px}.media-controls,.group-controls{display:flex;align-items:center;gap:12px}.control-bar button:not(.chevron):not(.leave){display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;min-width:66px}.control-icon svg{width:22px;height:22px;display:block}.split-control{display:flex;align-items:center}.split-control>button:first-child{padding-right:5px;padding-left:5px}.split-control .chevron{padding:3px;min-width:22px;color:var(--muted)}#mic:not([aria-pressed=true]),#camera:not([aria-pressed=true]){color:var(--red)}.leave,.danger{color:var(--red);border:1px solid #aa737d;background:#5d303b33}.leave{min-width:80px}.people-list,.host-content{padding:2px 18px 18px;overflow:auto;flex:1}.person-row{display:flex;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.person-row>div{flex:1}.person-row b{font-size:12px;font-weight:500}.person-row small{display:block;font-size:10px}.person-row button{padding:6px 8px;font-size:10px;min-height:32px;border:1px solid var(--line)}.waiting-heading{display:flex;align-items:center;justify-content:space-between;margin:5px 0 7px}.waiting-heading span{font-size:11px;color:var(--accent)}.host-content>.hint{margin:12px 0 20px}.host-content>h3{margin-bottom:12px}.wide-button{width:100%;border:1px solid var(--line);font-size:12px;text-align:left}.setting{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:17px 0;font-size:12px}.setting small{display:block;font-size:10px;margin-top:3px}.setting input{accent-color:var(--accent);width:17px;height:17px}.recovery{background:#553519;padding:12px 28px;display:flex;gap:14px;align-items:center;color:#fff0de;font-size:12px;margin-bottom:15px}.recovery span{flex:1}.recovery button{border:1px solid var(--accent);font-size:11px}.shared-stage{width:100%;display:flex;flex-direction:column;background:#eae4ef;color:#30203c;border-radius:10px;overflow:hidden}.share-title{background:#392747;color:#f5f0f8;padding:10px 16px;font-size:12px;display:flex;justify-content:space-between;align-items:center}.share-title button{min-height:28px;padding:3px 9px;border:1px solid #987caa;font-size:11px}.shared-page{padding:30px;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:20px;border:14px solid #eae4ef;background:#f5f0f8}.shared-page .eyebrow{color:#715d80}.shared-page h2{font:clamp(25px,3vw,42px) var(--serif);color:#57336f}.shared-page p{max-width:450px;font:clamp(18px,2vw,28px)/1.5 var(--serif)}.shared-page small{color:#715d80}.prejoin{max-width:1000px;margin:45px auto;display:grid;grid-template-columns:1.4fr 1fr;gap:65px;padding:0 28px}.welcome h2{font:38px var(--serif);margin:14px 0}.welcome>p{color:var(--muted)}.join-preview{height:280px;margin:25px 0 16px;border:1px solid var(--line);border-radius:12px;background:radial-gradient(ellipse,#50345f,var(--panel));display:grid;align-content:center;justify-items:center;gap:20px}.join-preview>span:last-child{font-size:12px;color:var(--muted)}.profile-note{font-size:12px}.join-settings h2{font-size:24px;font-weight:500;margin-bottom:7px}.join-settings>p{color:var(--muted);margin-bottom:25px}.join-settings>label:not(.setting){display:block;font-size:12px;margin:18px 0}.join-settings select{display:block;width:100%;padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:7px;margin-top:6px}.join-settings>button:not(.primary){border:1px solid var(--line);font-size:12px}.primary{background:var(--accent);color:var(--accent-ink);font-weight:700;padding:13px 22px}.primary:hover{background:color-mix(in srgb,var(--accent) 88%,white)}.join-settings .primary{width:100%}.join-settings>small{display:block;text-align:center;margin-top:15px;font-size:11px}.lobby{min-height:500px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;text-align:center}.lobby h2{font:32px var(--serif)}.lobby p{color:var(--muted);line-height:1.8}.lobby .avatar{width:84px;height:84px;font-size:32px}#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);max-width:85%;padding:13px 20px;border-radius:9px;box-shadow:0 5px 25px #0005;font-size:13px;z-index:5}dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:15px;width:min(460px,90vw);padding:24px}dialog::backdrop{background:#140b1dbb}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-heading button{font-size:24px}dialog p{color:var(--muted);margin:12px 0}dialog label{display:block;margin:14px 0;font-size:12px}dialog select{display:block;margin-top:6px;width:100%;padding:10px;background:var(--bg);border:1px solid var(--line);border-radius:7px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.warm{--bg:#38244b;--panel:#432d56;--surface:#513762;--tile:#49335a;--line:#735b84}
@media(min-width:1500px){.filmstrip{height:125px}.sidebar{width:350px}.gallery:not(.capacity){grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}}
@media(max-width:1150px){.brand-header{padding:16px 20px}.identity>div{display:none}.meeting-body{padding:0 18px 16px;gap:15px}.sidebar{width:290px}.control-bar{padding:12px 18px;gap:10px}.group-controls{gap:2px}.media-controls{gap:2px}.control-bar button:not(.chevron):not(.leave){min-width:58px;padding:8px}.filmstrip{height:92px;gap:7px}.filmstrip .tile-label{font-size:9px;left:6px;right:6px}.speaker-name{bottom:15px;left:15px}.gallery.capacity{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr))}.gallery.capacity .avatar{height:38px;width:38px;font-size:17px}}
@media(max-width:850px){.design-bar{padding:8px 14px;flex-wrap:wrap}.brand-header{height:88px}.meeting-title{display:none}.room{height:auto;min-height:700px}.meeting-body{min-height:510px}.sidebar{width:275px}.stage-caption>span:last-child{display:none}.filmstrip{grid-template-columns:repeat(3,minmax(0,1fr));height:180px;grid-template-rows:repeat(2,minmax(0,1fr))}.control-bar{flex-wrap:wrap}.control-bar .group-controls{order:3;justify-content:center;width:100%}.prejoin{gap:28px}.recovery{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.view-tools{display:flex;align-items:center;gap:10px}#fullscreen{min-height:44px;border:1px solid var(--line);font-size:12px;white-space:nowrap}.focus-mode .design-bar,.focus-mode .brand-header{display:none}.focus-mode .app{max-width:none}.focus-mode .room{height:100dvh;min-height:320px;padding-top:env(safe-area-inset-top)}.focus-mode .control-bar{padding-bottom:max(14px,env(safe-area-inset-bottom))}dialog{max-height:90dvh;overflow:auto}
@media(max-width:700px){
 .design-bar{height:92px;min-height:92px;padding:8px 12px;align-content:center;gap:7px}.design-bar>span{font-size:10px}.design-bar>div{width:100%;gap:5px}.design-bar label{font-size:10px}.design-bar select{min-width:0;flex:1;font-size:11px;min-height:36px}.design-bar button{font-size:10px;min-height:36px;padding:5px 7px}
 .brand-header{height:70px;padding:10px 14px;gap:9px}.identity .avatar{width:30px;height:30px;font-size:13px}
 .room{position:relative;height:calc(100dvh - 162px);min-height:440px}.room-toolbar{padding:8px 12px;min-height:100px;display:grid;gap:6px}.room-meta{justify-content:space-between;gap:9px;font-size:11px}.view-tools{justify-content:space-between;gap:8px}.view-switch{padding:0}.view-switch button{min-height:44px;padding:8px 14px}.view-tools #fullscreen{font-size:11px;min-height:44px;padding:8px 10px}
 .meeting-body{min-height:0;flex:1;padding:0 12px 9px;gap:0}.stage{gap:7px}.stage-caption{font-size:11px}.stage-content{min-height:100px}.speaker-tile .avatar{width:76px;height:76px;font-size:30px}.speaker-tile>.center-person{gap:10px}.center-person p{font-size:10px}.speaker-name{left:12px;bottom:12px;gap:7px}.speaker-name b{font-size:13px}.host-tag{font-size:8px}.speaking{top:10px;left:10px;font-size:9px;padding:4px 6px}.pin-button{top:6px;right:6px;font-size:9px;padding:5px 8px;min-height:36px}
 .filmstrip{height:76px;min-height:76px;grid-template-columns:repeat(5,90px);grid-template-rows:1fr;overflow-x:auto;gap:7px;padding-bottom:3px}.filmstrip .tile .avatar{height:28px;width:28px;font-size:13px}.filmstrip .tile-label{font-size:8px;bottom:5px}.strip-pager{font-size:10px;min-height:28px}.strip-pager button{min-height:32px;min-width:44px}
 .sidebar{position:absolute;z-index:2;left:8px;right:8px;top:102px;bottom:142px;width:auto;box-shadow:0 8px 35px #0007}.side-tabs button{min-height:44px}.side-tabs #close-side{min-width:44px}.panel-heading{padding:12px 16px}.messages{padding:0 16px}.composer{padding:10px 14px}.composer input{font-size:16px}.composer button{min-width:44px;min-height:44px}.person-row button{min-height:44px;min-width:44px}.host-content .wide-button{min-height:44px}.setting input{width:24px;height:24px;margin:10px}
 .control-bar{padding:8px 12px max(8px,env(safe-area-inset-bottom));gap:6px;min-height:138px;align-content:center}.control-bar .media-controls{gap:12px}.control-bar .group-controls{gap:0;justify-content:space-between}.control-bar button:not(.chevron):not(.leave){min-width:52px;min-height:52px;padding:6px 5px;font-size:10px;gap:4px}.split-control .chevron{min-width:32px;min-height:44px}.control-bar .leave{min-height:44px;min-width:72px}.control-icon svg{width:20px;height:20px}.control-bar .badge{font-size:9px;min-width:14px;height:14px;margin-left:2px}
 .gallery,.gallery.capacity{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:6px}.gallery.capacity{grid-template-rows:repeat(5,minmax(0,1fr))}.gallery .tile .avatar,.gallery.capacity .tile .avatar{height:35px;width:35px;font-size:15px;margin-bottom:14px}.gallery .tile-label{font-size:9px;left:6px;right:6px;bottom:5px}
 .prejoin{display:flex;flex-direction:column;margin:25px auto;padding:0 20px 30px;gap:28px}.welcome h2{font-size:32px}.join-preview{height:210px}.join-settings select{font-size:16px}.join-settings>button{min-height:44px}.lobby{padding:25px 20px;min-height:480px}.lobby h2{font-size:28px}.recovery{padding:10px 12px;margin-bottom:8px;gap:7px;font-size:11px}.recovery span{display:none}.recovery button{min-height:44px}.shared-page{padding:14px;border-width:6px;gap:12px}.shared-page h2{font-size:22px}.shared-page p{font-size:18px}.share-title{font-size:10px;padding:7px}.share-title button{min-height:36px}.focus-mode .sidebar{top:calc(102px + env(safe-area-inset-top));bottom:calc(142px + env(safe-area-inset-bottom))}#toast{bottom:150px;font-size:12px}
}
@media(max-height:500px) and (max-width:950px){.brand-header{display:none}.room{height:calc(100dvh - 46px);min-height:320px}.room-toolbar{min-height:56px;padding:5px 12px;display:flex}.room-meta{font-size:10px;gap:10px}.meeting-body{min-height:0}.filmstrip{display:none!important}.strip-pager{display:none}.stage-caption{display:none}.control-bar{min-height:80px;padding:6px 12px;flex-wrap:nowrap;gap:6px}.control-bar .group-controls{order:initial;width:auto;gap:1px}.control-bar button:not(.chevron):not(.leave){min-width:48px;font-size:9px;padding:5px}.media-controls{gap:1px!important}.control-bar .leave{min-width:55px}.sidebar{position:absolute;top:60px;bottom:82px;right:8px;width:min(360px,90%);left:auto;z-index:2}.room{position:relative}.speaker-tile .avatar{height:70px;width:70px;font-size:28px}.gallery,.gallery.capacity{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.gallery .tile .avatar{height:30px;width:30px;font-size:13px}.focus-mode .sidebar{top:60px;bottom:82px}.prejoin{margin:20px auto}.design-bar{height:46px;min-height:46px;flex-wrap:nowrap}.design-bar>div{width:auto}.design-bar>span{font-size:9px}}
@media(max-width:700px){.room-toolbar{justify-content:stretch;grid-template-columns:minmax(0,1fr)}.pin-button{min-height:44px}.strip-pager button{min-height:44px}.strip-pager{min-height:44px}.share-title button{min-height:44px}}
@media(min-width:701px) and (min-height:501px){.room{min-height:520px}.focus-mode .room{min-height:320px}}
@media(max-height:500px) and (max-width:950px){.sidebar .panel-heading{display:none}.composer small{display:none}.composer{padding:8px 12px}.side-tabs{padding:3px 8px}.side-tabs button{min-height:44px}.side-tabs #close-side{min-width:44px}.split-control .chevron{min-height:44px;min-width:28px}.composer input{font-size:16px}.composer button{min-height:44px;min-width:44px}.room-toolbar #fullscreen,.view-switch button{min-height:44px}}
/* User review revisions: restrained church typography, clearer states, and motion. */
:root{--red:#ff6b76}.leave,.danger{border-color:#d75161;background:#ae233b1c}#fullscreen,#fullscreen[aria-pressed=true]{color:var(--accent)}

.filmstrip{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px)/5);grid-template-rows:1fr;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--line) transparent;overscroll-behavior-x:contain}.filmstrip .tile{height:100%}
.meeting-body{display:grid;grid-template-columns:minmax(0,1fr) 320px;transition:grid-template-columns .28s ease,column-gap .28s ease}.meeting-body.panel-closed{grid-template-columns:minmax(0,1fr) 0;column-gap:0}.sidebar{width:100%;min-width:0;transition:opacity .24s ease,transform .28s ease;opacity:1;transform:translateX(0)}.panel-closed .sidebar{opacity:0;transform:translateX(24px);pointer-events:none}.sidebar>.side-tabs,.sidebar>.side-panel{min-width:278px}.stage{min-width:0}.stage-caption{justify-content:flex-end}
.custom-select{position:relative;min-width:0}.select-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 12px;border:1px solid var(--line);background:var(--bg);font-size:13px;text-align:left;white-space:nowrap}.select-trigger:after{content:'⌄';color:var(--muted);font-size:16px}.select-trigger[aria-expanded=true]{border-color:var(--accent)}.select-options{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 6px);background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 30px #0006;padding:5px;max-height:220px;overflow:auto}.select-options button{display:block;width:100%;text-align:left;min-height:44px;font-size:13px;white-space:normal}.select-options button[aria-selected=true]{color:var(--accent);background:var(--surface)}.select-options button:focus-visible{outline-offset:-3px}.design-bar .custom-select{min-width:175px}.design-bar .select-trigger{min-height:32px;font-size:12px;padding:5px 9px}.join-settings .custom-select,dialog .custom-select{margin-top:6px}.join-settings .select-trigger{font-size:16px}.join-settings label>.custom-select{display:block}.design-bar label{white-space:nowrap}
#dialog{width:min(416px,calc(100vw - 32px));padding:8px 24px 24px;border:2px solid #ffffff33;border-radius:12px;background:var(--panel);box-shadow:0 12px 60px #0003;overflow:visible;max-height:90dvh}#dialog::backdrop{background:hsl(270 47% 26%/.75)}.dialog-heading{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:6px;min-height:44px;margin-bottom:12px}.dialog-heading h2{grid-column:2;grid-row:1;font:600 20px/1.25 system-ui,sans-serif;text-align:center}.dialog-heading button{grid-column:3;grid-row:1;width:44px;height:44px;padding:0;border:1px solid #ffffff33;border-radius:8px;background:transparent;font-size:22px;color:var(--muted)}#dialog-content{max-height:calc(90dvh - 100px);overflow-y:auto;overflow-x:visible;padding:3px 3px 8px;margin:0 -3px}#dialog-content:has(.select-trigger[aria-expanded=true]){min-height:235px}#dialog p{font-size:14px}#dialog .select-options{position:relative;top:auto;margin-top:6px;box-shadow:none}
@supports(backdrop-filter:blur(10px)){#dialog{background:radial-gradient(ellipse 100% 15vh at 50% 0%,#ffffff19,transparent),color-mix(in srgb,var(--panel) 25%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}}
@media(max-width:1150px){.meeting-body{grid-template-columns:minmax(0,1fr) 290px}.filmstrip{grid-auto-columns:calc((100% - 28px)/5)}}
@media(max-width:850px){.meeting-body{grid-template-columns:minmax(0,1fr) 275px}.filmstrip{height:92px;grid-auto-columns:calc((100% - 28px)/5);grid-template-rows:1fr}}
@media(max-width:700px){.meeting-body,.meeting-body.panel-closed{grid-template-columns:minmax(0,1fr)}.filmstrip{height:76px;grid-auto-columns:90px}.sidebar>.side-tabs,.sidebar>.side-panel{min-width:0}.design-bar .custom-select{flex:1;min-width:0}.design-bar .select-trigger{min-height:36px;font-size:11px;padding:5px 8px}.design-bar .select-options{min-width:200px}.select-trigger{font-size:16px}#dialog{padding:8px 18px 20px}.dialog-heading h2{font-size:18px}}
@media(max-height:500px) and (max-width:950px){.meeting-body,.meeting-body.panel-closed{grid-template-columns:minmax(0,1fr)}.sidebar>.side-tabs,.sidebar>.side-panel{min-width:0}#dialog{max-height:95dvh}#dialog-content{max-height:calc(95dvh - 95px)}}
@media(prefers-reduced-motion:reduce){.meeting-body,.sidebar{transition:none}.filmstrip{scroll-behavior:auto}}
.design-bar{padding-block:6px}
.room{overflow:clip}
@media(max-width:700px){.sidebar{width:auto}}
@media(max-height:500px) and (max-width:950px){.sidebar{width:min(360px,90%)}}
/* Keep the page fixed; only content inside meeting panels can scroll. */
html{height:100%;overflow:hidden;overscroll-behavior:none}
body{height:100dvh;overflow:hidden;display:flex;flex-direction:column;overscroll-behavior:none}
.design-bar,.brand-header,.room-toolbar,.control-bar,.recovery,.filmstrip,.strip-pager{flex-shrink:0}
.app,.focus-mode .app{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;margin:0 auto}
.room,.focus-mode .room{flex:1;height:auto;min-height:0}
.meeting-body,.stage{min-height:0}
.prejoin{flex:1;min-height:0;overflow:auto;width:100%;margin:0 auto;padding-top:25px;padding-bottom:25px;overscroll-behavior:contain}
.lobby{flex:1;min-height:0;overflow:auto;padding:25px 20px;overscroll-behavior:contain}
/* A quiet, transparent scrollbar matching the main site's subtle thumb. */
.messages,.people-list,.host-content,.filmstrip,.select-options,#dialog-content,.prejoin,.lobby{scrollbar-width:thin;scrollbar-color:#ffffff73 transparent}
.messages::-webkit-scrollbar,.people-list::-webkit-scrollbar,.host-content::-webkit-scrollbar,.filmstrip::-webkit-scrollbar,.select-options::-webkit-scrollbar,#dialog-content::-webkit-scrollbar,.prejoin::-webkit-scrollbar,.lobby::-webkit-scrollbar{width:5px;height:5px}
.messages::-webkit-scrollbar-track,.people-list::-webkit-scrollbar-track,.host-content::-webkit-scrollbar-track,.filmstrip::-webkit-scrollbar-track,.select-options::-webkit-scrollbar-track,#dialog-content::-webkit-scrollbar-track,.prejoin::-webkit-scrollbar-track,.lobby::-webkit-scrollbar-track{background:transparent}
.messages::-webkit-scrollbar-thumb,.people-list::-webkit-scrollbar-thumb,.host-content::-webkit-scrollbar-thumb,.filmstrip::-webkit-scrollbar-thumb,.select-options::-webkit-scrollbar-thumb,#dialog-content::-webkit-scrollbar-thumb,.prejoin::-webkit-scrollbar-thumb,.lobby::-webkit-scrollbar-thumb{background:#ffffff73;border-radius:5px}
.messages::-webkit-scrollbar-button,.people-list::-webkit-scrollbar-button,.host-content::-webkit-scrollbar-button,.filmstrip::-webkit-scrollbar-button,.select-options::-webkit-scrollbar-button,#dialog-content::-webkit-scrollbar-button,.prejoin::-webkit-scrollbar-button,.lobby::-webkit-scrollbar-button{display:none;width:0;height:0}
.messages{overflow-anchor:none;overscroll-behavior:contain}.messages .message{opacity:1;transform:translateY(0);transition:opacity .25s ease,transform .25s ease}.messages .message.pending{opacity:0;transform:translateY(8px)}
@media(prefers-reduced-motion:reduce){.messages .message{transition:none}}
.chat-scroll-region{position:relative;display:flex;flex:1;min-height:0}.chat-scroll-region .messages{min-height:0;height:100%;width:100%;scrollbar-width:none}.chat-scroll-region .messages::-webkit-scrollbar{display:none;width:0;height:0}.chat-scroll-thumb{position:absolute;right:3px;top:0;width:5px;border-radius:5px;background:#ffffff73;pointer-events:none}
.speaking{color:var(--muted);min-width:88px;min-height:30px;transition:color .2s ease-out}.speaking .sound-bars{height:17px}.speaking .sound-bars i{height:3px;background:currentColor;transition:height .08s ease-out}.speaking.is-talking{color:var(--green)}.speaking.is-muted{color:var(--red)}
@media(prefers-reduced-motion:reduce){.speaking{transition:none}.speaking .sound-bars i{transition:none}}

@media(max-width:700px),(max-width:950px) and (max-height:500px){.filmstrip{scrollbar-width:none}.filmstrip::-webkit-scrollbar{display:none;height:0;width:0}}
.filmstrip{scrollbar-width:none}.filmstrip::-webkit-scrollbar{display:none;width:0;height:0}
.composer button:disabled{opacity:.55;cursor:default;font-size:12px;min-width:44px}.composer .chat-cooldown{color:var(--accent);font-size:11px}
@media(max-width:700px),(max-width:950px) and (max-height:500px){
 .control-bar{flex-wrap:wrap;min-height:138px;align-content:center}
 .control-bar .group-controls{order:0;width:100%;justify-content:space-between}
 .control-bar .media-controls{order:1}
 .control-bar .leave{order:2;margin-left:auto}
}
@media(max-height:500px) and (max-width:950px){.sidebar,.focus-mode .sidebar{bottom:140px}}
#fullscreen,#fullscreen[aria-pressed=true]{color:#fff}
#fullscreen,#fullscreen[aria-pressed=true]{border-color:#b6b4ff}#fullscreen:focus-visible{outline-color:#b6b4ff}
#fullscreen,#fullscreen[aria-pressed=true]{color:#fff;border-color:#fff}#fullscreen:focus-visible{outline-color:#fff}
#hand:disabled{opacity:.55;cursor:default}
.waiting-content{flex:1;min-height:0;overflow:auto;padding:18px;scrollbar-width:thin;scrollbar-color:#ffffff73 transparent}.waiting-content>.hint{margin:16px 0;line-height:1.6}.waiting-content::-webkit-scrollbar{width:5px}.waiting-content::-webkit-scrollbar-thumb{background:#ffffff73;border-radius:5px}
#dialog[open]{animation:dialog-fade-in 250ms ease both}#dialog[open]::backdrop{animation:dialog-fade-in 250ms ease both}.select-options:not([hidden]){animation:dialog-fade-in 160ms ease both}
@keyframes dialog-fade-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#dialog[open],#dialog[open]::backdrop,.select-options:not([hidden]){animation:none}}
#dialog[open].popup-closing,#dialog[open].popup-closing::backdrop{animation:popup-fade-out 250ms ease both}.select-options:not([hidden]).popup-closing{animation:popup-fade-out 160ms ease both}
@keyframes popup-fade-out{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){#dialog[open].popup-closing,#dialog[open].popup-closing::backdrop,.select-options:not([hidden]).popup-closing{animation:none}}
.device-check-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 10px}.device-check-actions button{border:1px solid var(--line);font-size:13px;min-height:44px}.device-check-actions button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:var(--surface)}.microphone-meter{display:flex;gap:5px;height:20px;margin:14px 0}.microphone-meter i{flex:1;border-radius:3px;background:var(--surface);transition:background .1s ease}.microphone-meter i.lit{background:var(--green)}#microphone-check .hint{font-size:11px;margin:6px 0 14px}@media(prefers-reduced-motion:reduce){.microphone-meter i{transition:none}}
.device-check-actions button:disabled{opacity:.45;cursor:not-allowed}.device-check-actions button:disabled:hover{background:transparent}
.composer input:focus-visible{outline:none}.composer>div:has(input:focus-visible){border-color:var(--line)}
.composer button svg{display:block}
.composer #open-scripture{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;width:44px;min-width:44px;min-height:44px;padding:0 4px}.composer #open-scripture svg{width:24px;height:24px}.composer #chat-send{display:flex;align-items:center;justify-content:flex-start;width:44px;min-width:44px;padding:0 4px}
.participant-fullscreen .control-bar,.tile:fullscreen>.control-bar,.tile.tile-fullscreen-fallback>.control-bar{background:color-mix(in srgb,var(--bg) 48%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top-color:rgba(255,255,255,.14)}
.composer{position:relative}.mention-options{position:absolute;z-index:4;bottom:calc(100% - 12px);left:14px;right:14px;max-height:190px;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:5px;box-shadow:0 -8px 28px #0005;scrollbar-width:thin;scrollbar-color:#ffffff73 transparent;animation:dialog-fade-in 160ms ease both}.mention-options [role=option]{padding:12px;min-height:44px;font-size:13px;border-radius:6px;cursor:pointer}.mention-options [role=option]:hover,.mention-options [aria-selected=true]{color:var(--accent);background:var(--surface)}.mention-options p{padding:12px;color:var(--muted);font-size:12px}@media(prefers-reduced-motion:reduce){.mention-options{animation:none}}
.speaking .speaking-label{display:none}.speaking{min-width:0;gap:0}
.composer>.composer-heading{display:flex;justify-content:space-between;align-items:center;background:transparent;border:0;overflow:visible;margin-bottom:6px}.composer-heading label{margin:0}.composer-heading #open-scripture{font-size:12px;min-height:36px;padding:5px 9px;border:1px solid var(--line);color:var(--text)}#scripture-reference{display:block;width:100%;margin-top:6px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);padding:12px;font-size:16px;min-height:44px}.scripture-card{display:flex;flex-direction:column;gap:10px;line-height:1.6}.scripture-card>span:last-child{font-family:var(--serif);font-size:16px}#scripture-preview{margin-top:18px}#send-scripture:disabled{opacity:.5;cursor:default}
.scripture-books{max-height:160px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:4px;margin-top:-8px;scrollbar-width:thin;scrollbar-color:#ffffff73 transparent}.scripture-books [role=option]{min-height:44px;padding:12px;font-size:13px;border-radius:5px;cursor:pointer}.scripture-books [role=option]:hover,.scripture-books [aria-selected=true]{color:var(--accent);background:var(--surface)}.scripture-card>span:last-child{white-space:pre-line}
.messages .scripture-card>.scripture-text{white-space:pre-line;font-family:var(--serif);font-size:16px;line-height:1.6;display:block;max-height:4.8em;overflow:hidden;transition:max-height 250ms ease}.scripture-more{align-self:flex-start;min-height:36px;padding:5px 0;font-size:12px;color:var(--accent)}@media(prefers-reduced-motion:reduce){.messages .scripture-card>.scripture-text{transition:none}}
#dialog .select-options{position:absolute;top:calc(100% + 6px);margin-top:0;max-height:min(220px,35dvh);box-shadow:0 12px 30px #0006}#dialog-content:has(.select-trigger[aria-expanded=true]){min-height:0;overflow:visible}
#dialog::backdrop{background:color-mix(in srgb,var(--bg) 82%,transparent)}#dialog{background:color-mix(in srgb,var(--panel) 92%,transparent);border-color:var(--line)}.dialog-heading button{border-color:var(--line)}
#dialog-content:has(.select-options:not([hidden])){min-height:0;overflow:visible}#dialog-content{scrollbar-width:none}#dialog-content::-webkit-scrollbar{display:none;width:0;height:0}
#dialog-content:has(#scripture-reference){display:flex;flex-direction:column;overflow:visible;min-height:0}
#dialog-content:has(#scripture-reference)>label,#dialog-content:has(#scripture-reference)>.hint{flex-shrink:0}
#scripture-preview{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
#scripture-preview::-webkit-scrollbar{display:none;width:0;height:0}
#dialog-content:has(#scripture-reference)>.dialog-actions{flex-shrink:0;margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.join-preview{gap:12px;text-align:center}
.join-preview>.avatar{border:5px solid #ffffff40;background:#ffffff0a;box-shadow:0 0 0 1px #0003 inset;font:400 clamp(3rem,7vmin,5rem)/1.2 Georgia,serif;color:#fff;letter-spacing:0;user-select:none}
.join-preview>.profile-note{font:400 clamp(1.8rem,4vmin,2.25rem)/1.2 Georgia,serif;color:#fff;overflow-wrap:anywhere;max-width:100%;padding:0 12px}
.join-preview>.profile-note b{font:inherit}
.join-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px;text-align:left;font-size:12px;color:var(--muted)}
.join-status>span{display:inline-flex;align-items:center;gap:7px}
.join-status>span::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}
#join-camera{width:7.5rem;flex:0 0 7.5rem;white-space:nowrap}
#join-camera-status{width:6rem}
#prejoin:has(#join-camera[aria-pressed=true]) #join-camera-status::before{background:var(--green)}
#mic:not([aria-pressed=true]){color:var(--red)}#mic[aria-pressed=true]{color:var(--accent)}
#camera:not([aria-pressed=true]){color:var(--red)}#camera[aria-pressed=true]{color:var(--accent)}
#mic-label{color:#fff}
#mic-label,#camera-label{color:var(--text)}
#mic-label,#camera-label{color:inherit}
/* Approved layout adapted to authenticated runtime IDs. */
.speaker-stage .tile .avatar{width:124px;height:124px;font-size:47px}.waiting-content{padding:2px 18px 18px;overflow:auto;flex:1;min-height:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#microphone:not([aria-pressed=true]){color:var(--red)}#microphone[aria-pressed=true]{color:var(--accent)}button:disabled{opacity:.45;cursor:default}
#entry input{display:block;width:100%;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:8px;padding:12px;min-height:44px;margin:6px 0 14px;font:inherit}#join-button{width:100%}#entry #create{margin:12px 0}
#entry:has(#join-camera[aria-pressed=true]) #join-camera-status::before,.join-status .camera-on::before{background:var(--green)}
.avatar{position:relative;overflow:hidden;border:5px solid #ffffff40;background:#ffffff0a;box-shadow:0 0 0 1px #0003 inset;font-weight:400;color:#fff}.profile-avatar__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-avatar__initials{position:relative;z-index:1;font:inherit;color:inherit}.avatar.small,.avatar.tiny{border-width:2px}
.join-preview{position:relative}.join-preview>video{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.join-preview>.profile-note{position:relative;z-index:1}.join-preview:has(video:not([hidden]))>.profile-note{align-self:end;background:color-mix(in srgb,var(--bg) 67%,transparent);border-radius:8px;padding:4px 12px}.join-preview>.avatar{width:112px;height:112px;font-size:44px}
.speaker-stage{display:flex}.speaker-stage>.tile{flex:1}.tile .center-person{height:100%;width:100%;display:grid;place-items:center}.center-person>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.tile .center-person>.avatar{margin:0}.tile .tile-label{z-index:1;background:color-mix(in srgb,var(--bg) 50%,transparent);border-radius:5px;padding:4px 6px}.speaking,.pin-button{z-index:2}.filmstrip .pin-button{display:none}.gallery:not(.speaker-stage){grid-template-rows:none;grid-auto-rows:minmax(0,1fr)}.shared-screen{min-height:0;flex:1}.shared-screen>video{width:100%;height:100%;object-fit:contain}.speaker-stage:has(.shared-screen:not([hidden]))>.tile:not(.shared-screen){display:none}
#waiting{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px 22px;margin:0 28px 14px;color:var(--muted)}#waiting::first-line{color:var(--text)}
#dialog{display:block}#dialog:not([open]){display:none}.select-options{scrollbar-width:none}.select-options::-webkit-scrollbar{display:none}.prejoin{scrollbar-width:none}.prejoin::-webkit-scrollbar{display:none}.composer input:focus{outline:none}.view-tools{flex-wrap:wrap}.strip-pager{min-height:30px}
@media(max-width:700px){.brand-header{height:70px}.room-toolbar{min-height:96px}.sidebar{top:98px;bottom:145px}.room{position:relative}.control-bar .group-controls{gap:0}.control-bar #play{font-size:10px;min-width:48px}.prejoin{gap:18px;padding:18px 20px}.join-preview{height:180px}.welcome h2{font-size:28px}.device-check-actions{gap:8px}.gallery:not(.speaker-stage){grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(75px,1fr)}#waiting{margin:0 12px 8px;padding:10px 12px}}
@media(max-height:500px){.brand-header{display:none}.room-toolbar{min-height:58px}.meeting-body{min-height:0}.prejoin{display:grid;grid-template-columns:1fr 1fr;gap:24px}.join-preview{height:150px}.control-bar{min-height:120px}.sidebar{top:60px;bottom:125px}}
.join-preview:has(video:not([hidden]))>.profile-note{position:absolute;left:12px;bottom:12px;margin:0;max-width:calc(100% - 24px);font:400 14px/1.4 system-ui,-apple-system,sans-serif;text-align:left;z-index:1}
.join-preview{width:100%;height:auto;min-height:0;aspect-ratio:16/9;overflow:hidden}.join-preview>video{border-radius:inherit}
.tile .tile-label{background:transparent;padding:0}.tile .tile-label>span:not(:empty){background:color-mix(in srgb,var(--bg) 50%,transparent);border-radius:5px;padding:4px 6px}.tile .tile-label>span:last-child{flex-shrink:0}
.has-waiting .badge{color:var(--accent);position:relative;isolation:isolate}
.has-waiting .badge::after{content:"";position:absolute;inset:-2px;border-radius:50%;background:color-mix(in srgb,var(--accent) 50%,transparent);box-shadow:0 0 24px 12px color-mix(in srgb,var(--accent) 50%,transparent);z-index:-1;pointer-events:none;animation:waiting-pulse 10s ease-out infinite}
@keyframes waiting-pulse{0%{transform:scale(1);opacity:.5}10%{transform:scale(2.2);opacity:0}100%{transform:scale(1);opacity:0}}
@media(prefers-reduced-motion:reduce){.has-waiting .badge::after{animation:none;opacity:0}}
.filmstrip .speaking{left:4px;top:4px;padding:3px 4px;min-height:22px;border-radius:5px}
.filmstrip .tile-label{left:4px;right:4px;bottom:4px}
.filmstrip .tile,.gallery:not(.speaker-stage)>.tile{border:0;background:transparent}
.filmstrip .tile .center-person>.avatar,.gallery:not(.speaker-stage)>.tile .center-person>.avatar{position:absolute;inset:0;width:100%;height:100%;margin:0;border-radius:inherit;border-width:2px;transform:none;font-size:32px;z-index:0}
.filmstrip .profile-avatar__initials,.gallery:not(.speaker-stage) .profile-avatar__initials{transform:translateY(-6px)}
.gallery:not(.speaker-stage)>.tile{container-type:size}
.gallery:not(.speaker-stage) .profile-avatar__initials{font-size:clamp(20px,min(22cqw,30cqh),96px);line-height:1.1}
.gallery:not(.speaker-stage) .tile-label{font-size:clamp(10px,5cqw,18px)}
.spotlight-button[aria-pressed=true]{color:var(--green);border-color:var(--green);background:#b4d9c212}
/* Mobile gathering: four primary controls, with secondary actions in More. */
.mobile-only{display:none!important}
.prejoin-content{display:contents}.prejoin-icon{display:none}
.join-preview[role=button]{cursor:pointer}
#entry.preview-expanded .prejoin-content{display:flex;flex:1;min-height:0;width:100%}
#entry.prejoin.preview-expanded{display:flex;flex-direction:column;max-width:none;margin:0;gap:0;padding:0}
#entry.preview-expanded .prejoin-content{padding:24px 20px;overflow:hidden}
#entry.preview-expanded .mobile-check-heading,#entry.preview-expanded #mobile-back{display:none!important}
#entry.preview-expanded .welcome{display:flex;flex:1;min-height:0;width:100%}
#entry.preview-expanded .join-settings,#entry.preview-expanded .join-status{display:none}
#entry.preview-expanded .join-preview{flex:1;width:100%;height:100%;min-height:280px;aspect-ratio:auto;margin:0}
.join-preview.tile-fullscreen-fallback{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh;max-width:none;aspect-ratio:auto;margin:0;border-radius:0;background:var(--bg)}
/* Match the avatar's corner shape to its tile instead of inheriting a square
   center wrapper and clipping a thick rectangular border. */
.tile .center-person{border-radius:inherit;overflow:hidden}
.tile .center-person>.avatar{border-radius:inherit;box-sizing:border-box}
.tile .center-person.has-live-video::after{content:'';position:absolute;inset:0;border:3px solid;border-color:inherit;border-radius:inherit;pointer-events:none;z-index:1}
.tile.tile-fullscreen-fallback .center-person.has-live-video{display:flex;align-items:center;justify-content:center;container-type:size}
.tile.tile-fullscreen-fallback .center-person.has-live-video::after{display:none}
.tile.tile-fullscreen-fallback .center-person>video{position:relative;inset:auto;width:min(100cqw,calc((100cqh - 6px)*var(--camera-aspect,1.7777778) + 6px));height:min(100cqh,calc((100cqw - 6px)/var(--camera-aspect,1.7777778) + 6px));max-width:100%;max-height:100%;border:3px solid;border-color:inherit;border-radius:12px;box-sizing:border-box}
.gallery:not(.speaker-stage){grid-template-rows:none;grid-auto-rows:max-content;align-content:start;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.gallery:not(.speaker-stage)>.tile{aspect-ratio:16/9;height:auto;min-height:0;align-self:start}
.device-details>summary{display:none}.device-details>label{display:block;font-size:12px;margin:18px 0}
.mobile-more-menu{display:flex;flex-direction:column;gap:2px}
.mobile-menu-row{display:flex;align-items:center;gap:16px;text-align:left;min-height:52px;padding:14px 6px;border-bottom:1px solid var(--line);border-radius:0}
.mobile-menu-row>.badge{margin-left:auto}.mobile-menu-row[aria-pressed=true]{color:var(--accent)}
.control-bar button.media-pending:disabled{opacity:1;cursor:progress;position:relative}
.control-bar button.media-pending .control-icon{position:relative}
.control-bar button.media-pending .control-icon::after{content:'';position:absolute;inset:-5px;border:2px solid transparent;border-top-color:currentColor;border-radius:50%;animation:media-spin .8s linear infinite}
.control-bar button.media-pending::after{content:none}
#microphone.media-pending::after,#camera.media-pending::after,#screen.media-pending::after{content:none}
@keyframes media-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.control-bar button.media-pending .control-icon::after{animation:none}}
@media(max-width:700px){
 .mobile-only{display:flex!important}
 .brand-header{height:64px;padding:12px 20px}.brand-header .meeting-title,.brand-header .identity{display:none}
 body:has(#room:not([hidden])) .brand-header{display:none}
 .prejoin{display:block;padding:24px 20px;overflow:auto}
 .prejoin .welcome{display:flex;flex-direction:column}.prejoin .welcome h2{font-size:32px}
 #entry:not(.checking-settings) .join-settings,#entry:not(.checking-settings) .join-status{display:none}
 #mobile-continue{width:100%;margin-top:24px;justify-content:center;min-height:52px}
 #entry.checking-settings .welcome>.eyebrow,#entry.checking-settings .welcome>h2,#entry.checking-settings .welcome>p,#entry.checking-settings #mobile-continue{display:none!important}
 #entry.checking-settings .join-preview{margin-top:0}
 .join-settings{margin-top:20px}.join-settings>h2{font-size:23px}.join-settings>p{margin-bottom:16px}
 #mobile-back{padding:8px 0;margin-bottom:12px;color:var(--muted)}
 .device-details{margin:12px 0 20px}.device-details>summary{display:list-item;cursor:pointer;font-size:14px;color:var(--muted);padding:12px 0}
 .device-check-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:16px}
 .device-check-actions button,#join-camera{width:auto;min-width:0;padding:12px 5px;font-size:12px;min-height:48px}
 #join-button{min-height:52px;font-size:16px}
 .room-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:0;padding:16px 20px}
 .mobile-room-title{justify-content:space-between;align-items:center;font-size:16px;font-weight:600}
 .mobile-room-title .leave{font-size:13px;min-width:0;min-height:36px;padding:6px 12px;font-weight:400}
 .room-meta{font-size:11px;gap:12px}.view-tools{width:100%;display:block}.view-tools>#copy,.view-tools>#fullscreen{display:none}
 .view-switch{width:100%;padding:4px;border-radius:13px}.view-switch button{flex:1;min-height:40px;font-size:14px}
 .meeting-body{padding:0 16px 12px;gap:0;position:relative}.stage{padding:0;gap:12px}
 .filmstrip{display:flex;height:110px;gap:10px;overflow:auto}.filmstrip>.tile{flex:0 0 calc((100% - 10px)/2);min-width:0}
 .strip-pager{min-height:24px;font-size:10px}.gallery:not(.speaker-stage){grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(100px,1fr);gap:10px}
 .speaker-stage .tile .center-person>.avatar{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;font-size:clamp(48px,20vw,96px);border-width:2px}
 .speaker-stage .tile-label{left:4px;right:4px;bottom:4px;font-size:13px}.speaker-stage .speaking{left:4px;top:4px}
 .control-bar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:0;padding:12px 12px max(16px,env(safe-area-inset-bottom));min-height:84px;align-content:normal}
 .control-bar .media-controls{display:grid;grid-template-columns:1fr 1fr;gap:0;order:0}
 .control-bar .split-control{justify-content:center}.control-bar .chevron{display:none}
 .control-bar .group-controls{display:contents;width:auto}.group-controls>button:not(#open-chat){display:none!important}
 .control-bar #open-chat{order:1}.control-bar #mobile-more{order:2}
 .control-bar #leave{display:none}.control-bar button:not(.chevron):not(.leave){min-width:0;width:100%;font-size:12px;min-height:52px}
 .sidebar,.focus-mode .sidebar{position:absolute;z-index:5;inset:0;width:100%;height:100%;border:0;border-radius:0;background:var(--bg);box-shadow:none;transform:none}
 .meeting-body.panel-closed .sidebar{display:none}.side-tabs{padding:12px 10px}.side-tabs button{font-size:13px;min-height:44px}
 .room:has(.meeting-body:not(.panel-closed))>.room-toolbar{display:none}
 .panel-heading{padding:16px 20px}.messages{padding:0 20px}.message p{font-size:14px}.message b{font-size:13px}.composer input{font-size:16px}
 #dialog:has(.mobile-more-menu){width:100%;max-width:none;max-height:85dvh;margin:auto 0 0;border-radius:22px 22px 0 0;padding:20px 24px max(24px,env(safe-area-inset-bottom))}
 #dialog:has(.mobile-more-menu) #dialog-content{overflow:auto}
 .focus-mode .room-toolbar{padding:12px 20px}
}
@media(max-width:700px){
 #entry.prejoin{display:flex;flex-direction:column;overflow:hidden;padding:0}
 .prejoin-content{display:block;flex:1;min-height:0;overflow:auto;padding:24px 20px;scrollbar-width:none}
 #entry:not(.checking-settings) #mobile-back,#entry:not(.checking-settings) .mobile-check-heading,#entry:not(.checking-settings) .mobile-join-footer{display:none!important}
 #entry.checking-settings .mobile-check-heading{display:block!important;margin-bottom:20px}
 .mobile-check-heading h2{font-size:27px;margin:0 0 10px}.mobile-check-heading p{font-size:14px;color:var(--muted);line-height:1.5}
 #entry.checking-settings .join-settings>h2,#entry.checking-settings .join-settings>p:first-of-type{display:none}
 #mobile-back{display:inline-block;text-decoration:none;align-self:flex-start;min-width:72px;min-height:40px;padding:8px 0;margin:0 0 14px;border:none;background:none}
 .join-preview>.avatar{width:82px;height:82px;font-size:36px;border-width:3px}
 .join-preview>.profile-note{font-size:18px;line-height:1.3}
 .join-preview{gap:12px;margin:18px 0 12px;background:var(--surface)}
 .join-settings{display:flex;flex-direction:column;gap:0}
 .device-check-actions{order:0;margin-top:12px}.device-details{order:2;margin:12px 0}.device-details>summary{font-size:13px}
 #microphone-check{order:1}#join-form{order:3}#create{order:4}.join-settings>.hint{order:5}
 .device-check-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:74px}
 .prejoin-icon{display:block}.prejoin-icon svg{width:23px;height:23px;display:block}
 #join-form>#join-button{display:none}
 .mobile-join-footer{flex-shrink:0;padding:16px 20px max(20px,env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line)}
 #mobile-join-submit{width:100%;min-height:52px;font-size:16px}
 .gallery:not(.speaker-stage){grid-template-columns:1fr;grid-auto-rows:auto}
 .gallery:not(.speaker-stage) .profile-avatar__initials{font-size:clamp(24px,18cqw,76px)}
 .gallery:not(.speaker-stage) .tile-label{font-size:clamp(11px,4cqw,15px)}
 .gallery:not(.speaker-stage) .pin-button{font-size:10px;min-height:30px;padding:6px 9px}
}
@media(orientation:landscape) and (max-height:500px) and (min-width:701px){
 .control-bar{flex-wrap:nowrap;min-height:76px;gap:10px;padding:8px 16px max(8px,env(safe-area-inset-bottom))}
 .control-bar .media-controls{order:0;gap:8px;flex-shrink:0}
 .control-bar .group-controls{order:1;width:auto;flex:1;gap:6px;justify-content:center}
 .control-bar .leave{order:2;margin-left:0;min-width:64px}
 .control-bar button:not(.chevron):not(.leave){min-width:52px;font-size:10px;padding:5px}
 .sidebar,.focus-mode .sidebar{bottom:80px}
 .gallery:not(.speaker-stage){grid-auto-rows:auto}
}

.room-entry-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.room-entry-fields>div{min-width:0}.room-entry-fields label{display:block}
.room-entry-fields input{width:100%;min-width:0}.room-entry-fields input:disabled{opacity:.5;cursor:not-allowed}
.join-entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.join-entry-actions>button{width:100%;min-width:0;min-height:52px}
#entry .join-entry-actions #create{margin:0;order:0}
.join-entry-actions>button,.mobile-join-footer>button.start-new{font-size:16px;font-weight:700;text-align:center}
.device-check-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.device-check-actions button,#join-camera{width:auto;min-width:0;padding:12px 5px;font-size:12px;min-height:74px}
.device-check-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}
.prejoin-icon{display:block}.prejoin-icon svg{width:23px;height:23px;display:block}
@media(max-width:700px){
 #join-form>.join-entry-actions{display:none}
 .mobile-join-footer{display:flex;gap:12px}
 .mobile-join-footer>button,#mobile-join-submit{flex:1;width:0;min-width:0;min-height:52px;padding:10px 8px}
}
/* On phones, other participants belong in Everyone rather than Speaker. */
@media(max-width:700px),(max-width:950px) and (orientation:landscape) and (max-height:500px){
 .filmstrip,.strip-pager{display:none}
}

.music-panel .music-local-controls{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.music-panel input[type=range]{display:block;width:100%;margin:12px 0;accent-color:var(--accent)}.music-panel output{font-size:12px;color:var(--muted)}.music-panel .setting{display:flex;align-items:center;justify-content:space-between;gap:14px}.music-panel .dialog-actions{justify-content:flex-start}.music-panel .music-local-controls>button{border:1px solid var(--line);margin:12px 8px 12px 0}

.tile-label>span[role=button]{cursor:pointer}
/* Participant-only full screen keeps the name and video inside its frame. */
.tile:fullscreen,.tile.tile-fullscreen-fallback{width:100vw!important;height:100dvh!important;max-width:none;aspect-ratio:auto!important;border-radius:0;order:0!important;background:var(--bg)}
.tile.tile-fullscreen-fallback{position:fixed;inset:0;z-index:1000}
.tile .center-person{touch-action:manipulation}
.tile:fullscreen>.control-bar,.tile.tile-fullscreen-fallback>.control-bar{position:absolute;left:0;right:0;bottom:0;z-index:5}
@media(hover:hover) and (pointer:fine){
 .focus-mode .control-bar,.tile:fullscreen>.control-bar,.tile.tile-fullscreen-fallback>.control-bar{transition:opacity .2s ease,transform .2s ease}
 .control-bar.controls-idle{opacity:0;transform:translateY(16px);pointer-events:none}
 .control-bar.controls-idle:focus-within{opacity:1;transform:none;pointer-events:auto}
}
@media(prefers-reduced-motion:reduce){.control-bar{transition:none!important}}
.participant-fullscreen .control-bar{position:fixed;left:0;right:0;bottom:0;z-index:1001;transition:opacity .2s ease,transform .2s ease}
.control-bar.controls-idle{opacity:0;transform:translateY(16px);pointer-events:none}

.participant-fullscreen .sidebar{position:fixed;top:12px;right:12px;bottom:110px;left:auto;height:auto;width:min(360px,95vw);z-index:1002}
.participant-fullscreen .tile-label{bottom:110px;transition:bottom .2s ease}
@media(max-width:700px){.participant-fullscreen .sidebar{inset:0 0 80px;width:100%;height:auto}.participant-fullscreen .tile-label{bottom:86px}}

/* Mobile participant full screen keeps the same four primary controls. */
@media(max-width:700px),(max-width:950px) and (orientation:landscape) and (max-height:500px){
 .participant-fullscreen .control-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:80px;gap:0;padding:8px 12px max(8px,env(safe-area-inset-bottom))}
 .participant-fullscreen .control-bar .media-controls,.participant-fullscreen .control-bar .split-control,.participant-fullscreen .control-bar .group-controls{display:contents}
 .participant-fullscreen .control-bar .group-controls>button:not(#open-chat),.participant-fullscreen .control-bar .chevron,.participant-fullscreen .control-bar #leave{display:none!important}
 .participant-fullscreen .control-bar #microphone{order:0}.participant-fullscreen .control-bar #camera{order:1}.participant-fullscreen .control-bar #open-chat{order:2}.participant-fullscreen .control-bar #mobile-more{display:flex;order:3}
 .participant-fullscreen .mobile-room-title{display:flex!important}
 .participant-fullscreen #mobile-leave{display:block;position:fixed;top:calc(12px + env(safe-area-inset-top));right:12px;z-index:1003}
 .participant-fullscreen .sidebar{inset:60px 0 80px;width:100%;height:auto}
 .participant-fullscreen .tile-label{bottom:86px}
}
.participant-fullscreen #mobile-leave{transition:opacity .2s ease}
.participant-fullscreen.fullscreen-controls-idle #mobile-leave{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.participant-fullscreen #mobile-leave{transition:none}}
@media(max-width:700px),(max-width:950px) and (orientation:landscape) and (max-height:500px){
 .participant-fullscreen .room>.room-toolbar{display:flex!important}
}
@media(max-width:700px),(max-width:950px) and (orientation:landscape) and (max-height:500px){
 .participant-fullscreen .control-bar #mobile-more{display:flex!important}
}
/* Isolate the selected tile from grid and speaker redraws while full screen. */
.tile.tile-fullscreen-fallback{container-type:size;display:flex!important;margin:0;left:0;top:0;right:0;bottom:0}
.tile.tile-fullscreen-fallback .center-person>.avatar{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;border-width:2px;margin:0;transform:none}
.tile.tile-fullscreen-fallback .profile-avatar__initials{font-size:clamp(48px,20vmin,160px);line-height:1.1}
.tile.tile-fullscreen-fallback .tile-label{left:4px;right:4px;font-size:clamp(13px,3vmin,20px)}
/* Mobile exit uses the same footer action and confirmation as desktop. */
.leave-icon{display:none}
#mobile-leave{display:none!important}
@media(max-width:700px),(max-width:950px) and (orientation:landscape) and (max-height:500px){
 .control-bar #leave{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:52px;padding:6px 5px;border:0;background:transparent;color:var(--red);font-size:12px;margin-left:0}
 .control-bar #leave .leave-icon{display:inline-flex}
 .control-bar #leave svg{width:22px;height:22px}
 .participant-fullscreen .control-bar{grid-template-columns:repeat(5,minmax(0,1fr))}
 .participant-fullscreen .control-bar #leave{display:flex!important;order:4}
}
@media(max-width:700px){
 .control-bar{grid-template-columns:2fr 1fr 1fr 1fr}
 .control-bar #leave{order:3;width:100%}
 .participant-fullscreen .control-bar #leave{display:flex!important;order:4}
}

/* Match the mobile exit icon without changing the desktop toolbar layout. */
@media(min-width:701px){
 .control-bar #leave{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px;padding:6px 12px;border:0;background:transparent;color:var(--red);font-size:12px}
 .control-bar #leave .leave-icon{display:inline-flex}
 .control-bar #leave svg{width:22px;height:22px}
}
/* A familiar player, with room controls separated from personal listening. */
#dialog:has(.music-panel){width:min(520px,calc(100vw - 24px));padding:24px;border-radius:20px}
.music-panel{display:flex;flex-direction:column;gap:16px}
.music-intro,.music-status{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.music-now{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid #a57bb640;border-radius:16px;background:var(--surface)}
.music-art{display:grid;place-items:center;flex:0 0 64px;height:64px;border-radius:14px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
.music-art svg{width:32px;height:32px}
.music-kicker{font-size:11px;letter-spacing:.04em;color:var(--accent);margin:0 0 7px}
.music-now h3{font-size:20px;line-height:1.25;margin:6px 0 0}
.music-playlist-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.music-playlist-choices button{border:1px solid var(--line);border-radius:12px;padding:12px;font-size:14px;color:var(--muted)}
.music-playlist-choices button[aria-pressed=true]{color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent);border-color:color-mix(in srgb,var(--accent) 40%,transparent)}
.music-playlist-choices button:disabled,.music-song:disabled{opacity:1;cursor:default}
.music-song-list{display:flex;flex-direction:column;gap:8px}
.music-song{display:flex;align-items:center;gap:12px;text-align:left;min-height:68px;padding:12px;border:1px solid var(--line);border-radius:12px;width:100%;color:var(--text)}
.music-song[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 7%,transparent);border-color:color-mix(in srgb,var(--accent) 40%,transparent)}
.music-song-symbol{color:var(--accent);font-size:24px;width:28px;text-align:center;flex-shrink:0}
.music-song-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.music-song-copy strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.music-cover{font-size:11px;color:var(--muted)}.music-song-state{margin-left:auto;color:var(--accent);font-size:11px}
.music-host-controls{padding:16px;border-radius:14px;background:#ffffff05;border:1px solid var(--line)}
.music-playback{display:flex;justify-content:center;align-items:center;gap:10px;margin:8px 0 20px}
.music-playback button{min-height:46px;border:1px solid var(--line);border-radius:24px;padding:10px 24px;font-size:14px}.music-playback .primary{min-width:130px;border:0}
.music-panel label{font-size:13px}.music-panel .setting{font-size:13px;line-height:1.4;margin-top:16px}.music-panel .setting input{width:18px;height:18px;accent-color:var(--accent)}
.music-panel .music-local-controls{margin:0;padding-top:16px}.music-local-controls h3{font-size:16px;margin:0 0 14px}.music-panel .music-local-controls>button{padding:9px 14px;border-radius:10px;font-size:12px}
@media(max-width:700px){#dialog:has(.music-panel){padding:20px 16px}.music-now{padding:16px}.music-art{flex-basis:54px;height:54px}.music-now h3{font-size:18px}.music-song-state{font-size:10px}.music-host-controls{padding:14px}}
.music-panel button{font-family:inherit}
.music-panel .music-card-play{border:1px solid color-mix(in srgb,var(--accent) 33%,transparent);cursor:pointer;font-size:28px;color:var(--accent);padding:0}
.music-panel .music-card-play:disabled{cursor:default;opacity:.55}
.music-navigation{display:flex;justify-content:center;gap:12px}.music-navigation button{min-height:44px;padding:10px 24px;border:1px solid var(--line);border-radius:24px;font-size:14px}
.music-listening-controls{padding:18px;border:1px solid var(--line);border-radius:14px;background:#ffffff05}
.music-now .music-cover{display:block;margin-top:8px}
.music-card-play svg{width:26px;height:26px;fill:currentColor}
/* Compact player spacing and live percentage beside its label. */
.music-panel .music-now{padding:12px 16px}
.music-listening-controls{padding:16px 18px 12px}
.music-listening-controls .setting{margin:10px 0 0;min-height:28px}
.music-volume-control{display:block;margin-top:12px}.music-volume-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.music-panel .music-volume-heading output{font-size:13px;color:var(--muted)}
.music-panel .music-volume-control input[type=range]{margin:10px 0}
@media(max-width:700px){.music-panel .music-now{padding:10px 14px}.music-listening-controls{padding:14px 16px 10px}}
.scripture-card>span.eyebrow{font-family:inherit;font-size:10px}
.shared-screen>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.gallery:not(.speaker-stage):has(.shared-screen:not([hidden])){grid-auto-rows:max-content;align-content:start}
.gallery:not(.speaker-stage)>.shared-screen{aspect-ratio:16/9;min-height:0;flex:none}
#copy{display:inline-flex;align-items:center;justify-content:center;gap:7px}#copy svg{display:block}
/* Approved desktop gathering layout. Mobile retains its existing presentation. */
@media (min-width:701px) and (min-height:501px),(min-width:951px){
 .identity #identity-name{display:none}
 .brand-header{height:68px;padding:10px 28px}.meeting-title{display:block;min-width:0;max-width:40%}.meeting-title .eyebrow{display:none}.meeting-title h1{font-size:17px;line-height:1.25;overflow-wrap:anywhere}.room{height:calc(100dvh - 68px);min-height:0}.room-toolbar{padding:12px 28px;min-height:62px}
 .stage.has-participant-strip{flex-direction:row;gap:20px}.stage.has-participant-strip .stage-content{flex:1;min-width:0}.stage.has-participant-strip .filmstrip{flex:0 0 clamp(160px,18vw,250px);width:clamp(160px,18vw,250px);height:100%;display:flex;flex-direction:column;gap:14px;overflow-y:auto;overflow-x:hidden;padding-right:8px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.stage.has-participant-strip .filmstrip>.tile{width:100%;height:auto;aspect-ratio:16/9;flex:0 0 auto}.stage.has-participant-strip .strip-pager{display:none}
 .gallery.speaker-stage>.speaker-tile>.center-person>.avatar{position:absolute;inset:0;width:100%;height:100%;margin:0;border-radius:inherit;font-size:clamp(80px,12vw,160px);transform:none}
 .gallery:not(.speaker-stage){justify-content:center;align-content:center;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
 .control-bar{justify-content:center;gap:2px;padding:10px 16px;min-height:90px}.control-bar .media-controls,.control-bar .split-control,.control-bar .group-controls{display:contents}.control-bar .chevron{display:none}.control-bar button:not(.chevron){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:88px;min-height:62px;font-size:11px;padding:6px}.control-bar #microphone{order:0}.control-bar #camera{order:1}.control-bar #screen{order:2}.control-bar #hand{order:3}.control-bar #open-chat{order:4}.control-bar #open-people{order:5}.control-bar #open-waiting{order:6}.control-bar #open-music{order:7}.control-bar #picture-in-picture{order:8}.control-bar #fullscreen{order:9}.control-bar #leave{order:11;margin-left:8px}.control-bar #play{order:10}.control-bar #fullscreen{border:0;background:transparent}.control-bar #mobile-more{display:none!important}
}
@media(max-width:700px),(max-width:950px) and (max-height:500px){.control-bar #fullscreen{display:none}}
#identity-avatar[role=button]{cursor:pointer}#identity-avatar[aria-busy=true]{cursor:progress}
/* Prejoin branding uses the homepage's viewport edge spacing. */
body:has(#room[hidden]) .brand-header{width:100vw;margin-left:calc((100% - 100vw)/2);padding-left:1vmin;padding-right:1vmin}

/* Local camera viewing preference; the published stream is unchanged. */
video.camera-mirrored{transform:scaleX(-1)}
.control-bar #open-music.music-playing,.mobile-menu-row.music-playing{color:var(--accent)}
.music-needs-enable .control-icon,.mobile-menu-row.music-needs-enable>span:first-child{animation:music-enable-flash 5s ease-in-out infinite}
@keyframes music-enable-flash{0%,12%,100%{color:var(--text)}4%,8%{color:var(--accent)}}
@media(prefers-reduced-motion:reduce){.music-needs-enable .control-icon,.mobile-menu-row.music-needs-enable>span:first-child{animation:none;color:var(--accent)}}
@media(max-width:700px),(max-width:950px) and (max-height:500px){
 .brand-header .identity:not([hidden]){display:flex;margin-left:auto}
 .brand-header #identity-name{display:none}
 .brand-header #identity-avatar{width:44px;height:44px}
 .mobile-room-title{display:flex!important;gap:12px;min-width:0;min-height:48px}
 .mobile-room-home{display:flex;align-items:center;justify-content:center;flex:none;width:32px;min-height:44px;border-radius:6px}
 .mobile-room-home img{display:block;width:32px;height:44px;object-fit:contain}
 .mobile-room-home:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
 .mobile-room-title h1{flex:1;min-width:0;font-size:16px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
 .mobile-room-title #room-profile-avatar{position:relative;margin-left:auto;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;font-size:17px;cursor:pointer}
}
@media (min-width:701px) and (min-height:501px),(min-width:951px){
 .control-bar .chevron{display:flex;align-items:center;justify-content:center;width:26px;min-width:26px;min-height:44px;padding:0;font-size:18px}
 .control-bar #audio-settings{order:0}.control-bar #video-settings{order:1}
}

/* Everyone rows must grow with their tiles instead of sharing a constrained height. */
.gallery:not(.speaker-stage){grid-template-rows:none;grid-auto-rows:max-content;align-content:start}


/* Persistent action edges, independent of keyboard focus. */
button:hover:not(:disabled){border-color:var(--accent)}
.control-bar #leave{border:1px solid #aa737d}
.control-bar #fullscreen{border:1px solid var(--line)}
.music-playback .primary{border:1px solid var(--accent)}
#mobile-back{border:1px solid var(--line);padding-inline:12px}
.composer>div:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:3px}

/* Keep meeting actions borderless; keyboard focus retains its visible outline. */
.view-switch,.view-switch button,.control-bar button,.control-bar #leave,.control-bar #fullscreen{border-color:transparent}
.view-switch button:hover:not(:disabled),.control-bar button:hover:not(:disabled){border-color:transparent}
#open-chat.chat-unread{animation:chat-unread-pulse 1.8s ease-in-out infinite}
@keyframes chat-unread-pulse{0%,100%{color:var(--muted)}50%{color:#fff;text-shadow:0 0 8px #ffffff80}}
@media(prefers-reduced-motion:reduce){#open-chat.chat-unread{animation:none;color:#fff}}
.room-meta{border:0;background:transparent;padding:0;text-align:left;min-height:44px}
.gathering-details{display:grid;gap:10px;margin:12px 0 0;text-align:center}
#dialog .gathering-details p{margin:0}
.gathering-details dt{color:var(--muted)}
.gathering-details dd{margin:0;overflow-wrap:anywhere}
.raised-hand{position:absolute;top:12px;right:12px;z-index:3;display:grid;justify-items:center;gap:4px;color:var(--accent);pointer-events:none}
.raised-hand-icon{display:block;transform-origin:50% 85%;animation:hand-rise-wave 1.2s ease-out both;filter:drop-shadow(0 2px 3px #0008)}
.raised-hand-icon svg{display:block;width:70px;height:70px;stroke-width:1.3}
.raised-hand-caption{color:#fff;padding:3px 7px;border-radius:6px;background:var(--bg);font-size:11px;white-space:nowrap}
.hand-lowering{animation:hand-notice-fade .7s ease-in both;pointer-events:none}
.hand-lowering .raised-hand-icon{animation:hand-lower .7s ease-in both}
.person-hand{display:inline-flex;color:var(--accent);flex-shrink:0}
.person-hand svg{width:35px;height:35px}
.has-raised-hand small{color:var(--accent)}
.filmstrip .raised-hand{top:6px;right:6px}.filmstrip .raised-hand-icon svg{width:40px;height:40px}.filmstrip .raised-hand-caption{display:none}
@keyframes hand-rise-wave{0%{opacity:0;transform:translateY(35px) scale(.5)}25%{opacity:1;transform:translateY(-6px) rotate(0)}40%{transform:translateY(-6px) rotate(-20deg)}60%{transform:translateY(-6px) rotate(20deg)}80%{transform:translateY(-6px) rotate(-14deg)}100%{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes hand-lower{0%{opacity:1;transform:rotate(0)}25%{opacity:1;transform:rotate(-18deg)}50%{opacity:1;transform:rotate(18deg)}70%{opacity:.85;transform:rotate(-12deg)}100%{opacity:0;transform:translateY(28px) rotate(0) scale(.75)}}
@keyframes hand-notice-fade{0%,70%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.raised-hand-icon,.hand-lowering,.hand-lowering .raised-hand-icon{animation:none}.hand-lowering{visibility:hidden}}
.stage,.stage-content{position:relative}
.speaker-hand-notices{position:absolute;top:18px;left:50%;transform:translateX(-50%);z-index:4;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:80%;pointer-events:none}
.speaker-hand-notice{display:grid;justify-items:center;gap:4px;color:var(--accent);text-align:center}
.speaker-hand-notice .raised-hand-icon{width:70px;height:70px;justify-self:center}
.speaker-hand-notice svg{width:70px;height:70px;stroke-width:1.3}
.speaker-hand-notice .raised-hand-caption{max-width:180px;overflow:hidden;text-overflow:ellipsis}
.raised-hand{border:0;background:transparent;padding:0;min-height:0}
.raised-hand:disabled{opacity:1;cursor:default}
.raised-hand:not(:disabled){pointer-events:auto;cursor:pointer}
.raised-hand:hover{border:0;background:transparent}
.view-switch .has-raised-hands::before{content:'✋';margin-right:5px;color:var(--accent)}

/* Speaker names match the Everyone tile labels. */
.gallery.speaker-stage>.speaker-tile{container-type:size}
.gallery.speaker-stage>.speaker-tile .tile-label{font-size:clamp(10px,5cqw,18px)}
@media(max-width:700px){.gallery.speaker-stage>.speaker-tile .tile-label{font-size:clamp(11px,4cqw,15px)}}

.control-bar #fullscreen:hover:not(:disabled){background:var(--surface)}
.control-bar #fullscreen[aria-pressed=true]{color:var(--accent)}

/* A lone Everyone tile fills the available stage instead of overflowing at 16:9. */
.gallery.single-person:not(.speaker-stage){grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);align-content:stretch}
.gallery.single-person:not(.speaker-stage)>.tile{aspect-ratio:auto;height:100%;min-height:0;align-self:stretch}

.room-toolbar #headcount{display:none}
.room-toolbar .room-meta,.room-toolbar .view-switch button{font-size:16px}
@media(max-width:700px),(max-width:950px) and (max-height:500px){.room-toolbar .room-meta,.room-toolbar .view-switch button{font-size:14px}}

.room-toolbar .view-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.room-toolbar .view-switch button{width:100%;height:100%;white-space:nowrap}

.room-toolbar .room-meta{flex-shrink:0}
.room-toolbar #connection.connection-compact{font-size:0}
.room-toolbar #connection.connection-compact::before{content:'●';font-size:16px}

.side-tabs #close-side{display:grid;place-items:center;padding:0;width:44px;height:44px;min-width:44px;min-height:44px;flex-shrink:0;line-height:1}

.person-row .person-action{display:grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;flex-shrink:0}
.person-row .person-action svg{width:18px;height:18px}

.person-row .person-action+.person-action{margin-left:-6px}

.side-tabs{display:flex;align-items:stretch;gap:4px}
.side-tabs>button:not(#close-side){flex:1 1 0;min-width:0;min-height:44px;padding:6px 4px;white-space:nowrap}
.side-tabs #close-side{margin-left:4px;flex:0 0 44px}

#gathering-name[role=button]{cursor:pointer}

#dialog .gathering-rename-form input{display:block;width:100%;padding:.75rem;border:1px solid #ffffff40;border-radius:.5rem;background:#12082066;color:#fff;font:inherit;box-sizing:border-box}
#dialog .gathering-rename-form input::placeholder{color:#fff;opacity:1}
#dialog .gathering-rename-form input:focus::placeholder{opacity:.5}

.speaking.is-muted,.speaking.is-muted.is-talking{color:var(--red)}

.control-bar #copy{order:9;display:flex;flex-direction:column}
@media(max-width:700px),(max-width:950px) and (max-height:500px){.control-bar #copy{display:none}}

/* Tile audio controls distinguish source mute from listener-only mute. */
.tile .speaking{gap:5px;min-width:36px;min-height:36px;padding:6px;justify-content:center;border:1px solid #ffffff24}
.speaking .audio-status-icon{display:flex;align-items:center;justify-content:center}
.speaking .audio-status-icon svg{display:block;width:22px;height:22px}
.speaking:not(.is-muted):not(.is-locally-muted) .audio-status-icon{display:none}
.speaking.is-muted,.speaking.is-muted.is-talking{color:var(--muted)}
.speaking.is-locally-muted,.speaking.is-locally-muted.is-talking{color:#ff5f78}
.speaking.is-muted .sound-bars,.speaking.is-locally-muted .sound-bars{display:none}
.speaking:disabled{opacity:1;cursor:default}
.filmstrip .speaking{min-width:28px;min-height:28px;padding:4px;gap:3px}
.filmstrip .speaking .audio-status-icon svg{width:18px;height:18px}

/* Shared More menu and device settings in the meeting toolbar. */
.control-bar #audio-settings,.control-bar #video-settings,.control-bar #picture-in-picture,.control-bar #copy,.control-bar #fullscreen{display:none!important}
.control-bar #mobile-more{display:flex!important;order:6}
.control-bar #room-settings{order:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.control-bar #room-settings .prejoin-icon{display:flex}
.control-bar #room-settings svg{width:22px;height:22px}
@media(max-width:700px),(max-width:950px) and (max-height:500px){.control-bar #room-settings{display:none}}

.control-bar #room-settings{display:none!important}

@media(min-width:701px) and (min-height:501px),(min-width:951px){.control-bar #screen{order:6}.control-bar #mobile-more{order:7}}

.control-bar #mute-all{display:none!important}
.composer #chat-send,.composer #open-scripture{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;min-width:32px;padding:0;border:0;box-shadow:none}
.composer #chat-send>span,.composer #open-scripture>span{display:flex;align-items:center;justify-content:center}

/* Keep five evenly sized mobile controls after nesting More with group actions. */
@media(max-width:700px),(max-width:950px) and (max-height:500px){
 .control-bar,.participant-fullscreen .control-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;min-height:80px;padding:8px 12px max(8px,env(safe-area-inset-bottom));align-content:normal}
 .control-bar .media-controls,.control-bar .split-control,.control-bar .group-controls{display:contents}
 .control-bar .group-controls>#mobile-more,.participant-fullscreen .control-bar .group-controls>#mobile-more{display:flex!important}
 .control-bar #microphone{order:0}.control-bar #camera{order:1}.control-bar #open-chat{order:2}.control-bar #mobile-more{order:3}.control-bar #leave{order:4}
 .control-bar #microphone,.control-bar #camera,.control-bar #open-chat,.control-bar #mobile-more,.control-bar #leave{width:100%;min-width:0;margin:0;justify-self:stretch}
}

.music-navigation button{border-color:var(--muted);background:var(--surface)}
.music-panel .music-card-play{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.music-play-label{font-size:11px;line-height:1.2}
.participant-fullscreen.fullscreen-controls-idle .tile-label{bottom:8px}
@media(prefers-reduced-motion:reduce){.participant-fullscreen .tile-label,.participant-fullscreen .control-bar{transition:none}}

/* Secondary gathering actions live in More; music precedes More on desktop. */
.control-bar #open-people,.control-bar #screen{display:none!important}
@media(min-width:701px) and (min-height:501px),(min-width:951px){.control-bar #open-music{order:4}.control-bar #open-chat{order:5}.control-bar #mobile-more{order:7}}
.control-bar .group-controls>button#mobile-more,.participant-fullscreen .control-bar .group-controls>button#mobile-more{display:flex!important}
.camera-settings-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}

.select-trigger:after{content:none}
.select-trigger.has-select-options:after{content:'';display:block;flex:0 0 20px;width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px 20px no-repeat}

.host-offer-dialog{width:min(416px,calc(100vw - 32px));padding:24px;border:2px solid #ffffff33;border-radius:12px;background:color-mix(in srgb,var(--panel) 92%,transparent);box-shadow:0 12px 60px #0003}.host-offer-dialog::backdrop{background:color-mix(in srgb,var(--bg) 82%,transparent)}.host-offer-dialog h2{text-align:center;color:var(--accent);font:600 20px/1.25 system-ui,sans-serif}.host-offer-dialog .dialog-actions{justify-content:flex-end}

#gathering-name[role=button],#mobile-room-name[role=button]{cursor:pointer}
#dialog .gathering-rename-form{padding:6px}
@media(max-width:700px),(max-width:950px) and (max-height:500px){.room-toolbar{padding-top:4px;padding-left:5px;padding-right:5px}.mobile-room-title{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px}.mobile-room-title h1{text-align:center}.mobile-room-home{justify-self:center}}

@media(max-width:700px),(max-width:950px) and (max-height:500px){.mobile-room-title h1{font-size:20px;white-space:nowrap;overflow-wrap:normal}}

.gallery:not(.speaker-stage) .tile>.speaking{left:10px;top:8px}

#open-chat{position:relative}#open-chat.chat-arrival-pulse::after{content:'';position:absolute;inset:4px;border:2px solid #fff;border-radius:12px;pointer-events:none;animation:chat-arrival-ring .8s ease-out forwards}@keyframes chat-arrival-ring{from{opacity:.9;transform:scale(.8)}to{opacity:0;transform:scale(1.4)}}@media(prefers-reduced-motion:reduce){#open-chat.chat-arrival-pulse::after{animation:none;opacity:.7}}

.control-bar #open-people,.control-bar #open-waiting{display:none!important}

#open-chat .chat-waiting-badge{position:absolute;top:2px;right:5px;min-width:17px;height:17px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-size:10px;line-height:1;pointer-events:none}

#waiting-tab #waiting-count{display:none!important}#waiting-tab.has-waiting{color:var(--accent)}

#open-chat .chat-waiting-badge:not([hidden]){animation:chat-waiting-pulse 1.8s ease-in-out infinite}
@keyframes chat-waiting-pulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 #f2a64b80}50%{transform:scale(1.12);box-shadow:0 0 0 6px #f2a64b00}}
@media(prefers-reduced-motion:reduce){#open-chat .chat-waiting-badge:not([hidden]){animation:none}}

#open-chat[aria-pressed=true]{color:var(--accent);animation:none}

#dialog .gathering-details p{font-size:18px;line-height:1.5;color:#fff}

@media(max-width:700px){.gallery:not(.speaker-stage) .tile>.speaking{left:6px;top:5px}}

/* Match the microphone corner inset to each tile's name label. */
.gallery.speaker-stage>.tile>.speaking{left:10px;top:8px}
@media(max-width:700px){.gallery.speaker-stage>.tile>.speaking{left:4px;top:4px}}
.tile.tile-fullscreen-fallback>.speaking,.gallery>.tile.tile-fullscreen-fallback>.speaking{left:4px;top:4px}

#chat-draft::placeholder{color:#fff;opacity:.75}
#chat-draft:focus::placeholder{opacity:.5}

#dialog .scripture-book-picker input{width:100%;padding-right:48px}
#dialog .scripture-book-toggle{position:absolute;right:4px;top:4px;bottom:4px;width:40px;min-height:0;padding:8px;border:0;background:transparent;justify-content:center}
#dialog .scripture-book-toggle::after{color:inherit}
#dialog .scripture-books.select-options{margin:0;padding:5px;border-radius:9px}

#scripture-reference::placeholder{color:#fff;opacity:.75}
#scripture-reference:focus::placeholder{opacity:.5}

.scripture-footer{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.scripture-footer .eyebrow{margin-left:auto;text-align:right;letter-spacing:0;font-size:10px}
.scripture-footer .scripture-more{border:0;border-radius:0;background:transparent;min-height:0;padding:0;font-size:12px;white-space:nowrap}
.scripture-footer .scripture-more:hover{text-decoration:underline;background:transparent}

.gathering-exit-actions.host-exit-actions{justify-content:flex-start}
.host-exit-actions #cancel-end{margin-left:auto}

.control-bar #microphone,.control-bar #microphone[aria-pressed],.control-bar #camera,.control-bar #camera[aria-pressed]{color:var(--accent)}

@media(max-width:700px),(max-width:950px) and (orientation:landscape) and (max-height:500px){
 .participant-fullscreen:has(.meeting-body:not(.panel-closed)) .control-bar{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none}
}

@media(max-width:700px),(max-width:950px) and (orientation:landscape) and (max-height:500px){
 .participant-fullscreen .meeting-body:not(.panel-closed) .sidebar{box-shadow:0 -60px 0 var(--bg)}
}

@media(max-width:700px),(max-width:950px) and (orientation:landscape) and (max-height:500px){
 .participant-fullscreen.chat-keyboard-open .meeting-body:not(.panel-closed) .sidebar{top:calc(var(--chat-visible-top,0px) + 8px);bottom:auto;height:calc(var(--chat-visible-height,100dvh) - 16px)}
 .participant-fullscreen.chat-keyboard-open:has(.meeting-body:not(.panel-closed)) .control-bar{visibility:hidden;pointer-events:none}
}

.brand-header{position:relative}
.brand-header .meeting-title{position:absolute;left:50%;transform:translateX(-50%);text-align:center;width:40%;margin:0}
