
:root{color-scheme:dark;--bg:#101114;--surface:#191b1e;--elev:#222428;--line:#323438;--muted:#81848c;--white:#eeeef0;--accent:#ed792d;--green:#7acba3;--red:#eb7771}*{box-sizing:border-box}body{margin:0;font:13px/1.45 'Segoe UI',Arial,sans-serif;background:#0c0d0f;color:var(--white)}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button:disabled{opacity:.45;cursor:not-allowed}.shell{min-height:100dvh;display:grid;place-items:center;padding:32px;position:relative;background:linear-gradient(180deg,rgba(7,8,11,.36),rgba(7,8,11,.58)),url("/media/asset-1.webp") center center/cover fixed no-repeat}.window{width:min(890px,100%);min-height:585px;background:var(--bg);border:1px solid #3b3e41;box-shadow:0 35px 100px #000b;display:flex;flex-direction:column;position:relative;overflow:hidden}.titlebar{height:51px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#17181b;border-bottom:1px solid #292b2f;flex:none}.logo{display:flex;align-items:center;gap:10px;font-weight:850;letter-spacing:2.4px;font-size:11px}.sigil{width:23px;height:26px;background:var(--accent);clip-path:polygon(50% 0%,96% 19%,86% 76%,50% 100%,14% 76%,4% 19%);display:grid;place-items:center;color:#22170d;font-size:14px;font-weight:900;letter-spacing:0}.topright{display:flex;gap:15px;align-items:center;color:#888b93;font-size:10px;letter-spacing:1.5px}.topright b{color:#aaa;font-weight:600}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:7px;vertical-align:1px}.utility{background:none;border:0;color:#96989f;padding:6px}@media(hover:hover){.utility:hover{color:white}}.icon{width:17px;height:17px;display:block;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.utility .icon{width:17px;height:17px}.content{min-height:445px;flex:1;position:relative;display:flex;flex-direction:column;background:#111215;isolation:isolate}.content:before{content:"";inset:0;position:absolute;z-index:-1;background:radial-gradient(ellipse at 50% 10%,#303131 0%,#111215 74%);background-position:center;background-size:cover;opacity:.68}.content:after{content:"";inset:0;position:absolute;z-index:-1;background:linear-gradient(180deg,#10111440 0%,#101114bf 55%,#101114 100%)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.4px;color:var(--accent)}.idle{margin:auto;max-width:490px;width:100%;text-align:center;padding:46px 24px 50px}.mark{margin:0 auto 23px;display:grid;place-items:center;width:70px;height:78px;background:linear-gradient(135deg,#f18b43,#ab481b);clip-path:polygon(50% 0%,94% 19%,88% 75%,50% 100%,12% 75%,6% 19%);color:#1b1410;font-weight:900;font-size:36px;text-shadow:0 1px #ffffff40}.idle h1{font-size:29px;font-weight:600;letter-spacing:-.9px;margin:10px 0 8px}.idle p{color:#989ba3;line-height:1.7;font-size:12px;margin:0 0 29px}.actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.btn{height:38px;border:1px solid #505257;border-radius:3px;background:#27292d;color:#dddfe3;padding:0 17px;font-weight:650;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:9px;letter-spacing:.15px}@media(hover:hover){.btn:hover{background:#35373a}}.btn.primary{background:var(--accent);border-color:var(--accent);color:#201912}@media(hover:hover){.btn.primary:hover{background:#ff974e}}.btn.danger{border-color:#70403b;background:#442724;color:#fac3b9}.btn .icon{width:15px;height:15px}.idle .under{margin-top:30px;color:#6d717a;font-size:10px;letter-spacing:.7px}.session{padding:29px 33px 18px;display:none;flex:1;flex-direction:column}.session.active{display:flex}.roomline{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.roomline h2{font-size:21px;font-weight:600;letter-spacing:-.5px;margin:8px 0 3px}.sub{font-size:11px;color:#9599a1}.roomright{text-align:right}.timer{font-size:13px;color:#aeb0b6;font-variant-numeric:tabular-nums;letter-spacing:1.3px;margin-bottom:5px}.codebtn{background:#25272bcc;border:1px solid #48494d;color:#e3e3e5;border-radius:2px;padding:8px 10px;font-size:10px;letter-spacing:1.7px;margin-top:8px}.people{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:auto 0;min-height:188px;align-items:stretch;padding:18px 0}.person{border:1px solid #49494b80;background:#191b1dc9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:23px 12px;position:relative;min-height:175px}.person.waiting{border-style:dashed;background:#17191aaa}.avatar{width:72px;height:72px;border:1px solid #6b5c51;background:#252527;display:block;image-rendering:auto;border-radius:50%;object-fit:cover}.person .name{font-size:13px;font-weight:650}.person .role{font-size:10px;color:#9da0a6}.person .role .dot{width:5px;height:5px}.person .stateicon{position:absolute;right:13px;top:12px;color:#81868c}.person.speaking{border-color:#76bd90;box-shadow:inset 0 0 0 1px #76bd9050}.signal{display:flex;justify-content:center;gap:3px;height:12px;align-items:end}.signal i{width:3px;height:4px;background:#7ccaa4;border-radius:1px}.signal i:nth-child(2){height:9px}.signal i:nth-child(3){height:6px}.signal i:nth-child(4){height:11px}.controls{min-height:94px;background:#1c1e21;border-top:1px solid #36383b;display:flex;align-items:center;justify-content:space-between;padding:15px 25px;gap:16px;flex-wrap:wrap}.status{display:flex;align-items:center;gap:12px;min-width:145px}.status strong{display:block;font-size:11px;font-weight:650}.status small{display:block;color:#777b83;font-size:10px;margin-top:3px}.status-graphic{width:26px;height:26px;border:1px solid #404447;display:grid;place-items:center;color:#73c39b}.buttons{display:flex;gap:7px}.ctrl{height:39px;min-width:43px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;background:#2a2c30;border:1px solid #414347;color:#ced0d2;border-radius:3px;font-size:11px}@media(hover:hover){.ctrl:hover{background:#383a40}}.ctrl.on{background:#50302d;border-color:#865048;color:#ffb3a9}.ctrl.emphasis{color:#fca196;border-color:#67403d}.ctrl .icon{width:17px;height:17px}.shortcut{font-size:10px;color:#737780;text-align:right;min-width:110px}.shortcut b{color:#a2a5ab;font-weight:600}.strip{border-top:1px solid #303136;min-height:27px;background:#141519;display:flex;align-items:center;justify-content:space-between;padding:5px 24px;color:#696d74;font-size:9px;letter-spacing:1px}.strip .orange{color:var(--accent)}.viewer{background:#0c0d0f;border:1px solid #55585e;margin:0 0 13px;position:relative;max-height:330px;overflow:hidden}.viewer video{display:block;width:100%;max-height:315px;object-fit:contain}.viewer .viewtop{position:absolute;left:10px;top:8px;background:#0e1012c9;padding:5px 8px;color:#ddd;font-size:10px}.viewer .expand{position:absolute;right:10px;top:8px}.hidden{display:none!important}.overlay{position:fixed;inset:0;z-index:10;background:#07080ad9;display:none;align-items:center;justify-content:center;padding:15px}.overlay.open{display:flex}.modal{max-height:min(88vh,780px);overflow:auto;width:min(470px,100%);background:#1d1f22;border:1px solid #45474a;border-top:2px solid var(--accent);padding:25px 28px;box-shadow:0 18px 75px #000a}.modal.wide{width:min(585px,100%)}.modal header{display:flex;justify-content:space-between;align-items:center}.modal h3{font-weight:650;font-size:16px;letter-spacing:-.2px;margin:0}.modal .description{margin:10px 0 22px;color:#8e9299;font-size:11px;line-height:1.6}.field{display:block;margin:16px 0}.field span{display:block;margin-bottom:7px;font-size:10px;color:#b4b7bc;letter-spacing:.4px}.field input,.field select{width:100%;background:#111316;border:1px solid #414449;color:#e4e6e9;padding:10px 11px;outline:none;border-radius:2px}.field input:focus,.field select:focus{border-color:var(--accent)}.modalfoot{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.notice{margin-top:13px;background:#332b21;border:1px solid #675037;padding:10px;color:#e8bc8e;font-size:10px;line-height:1.6}.avatargrid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-top:16px}.avpick{background:#292b2f;border:1px solid #414347;padding:7px 3px 5px;color:#a9abb1;font-size:9px;cursor:pointer}.avpick.selected{border-color:var(--accent);background:#3c3029}.avpick img{width:54px;height:54px;max-width:100%;display:block;margin:0 auto 5px}.wallgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.wallpick{padding:5px;background:#292a2d;border:1px solid #424347;text-align:left;color:#b9bbc1;font-size:10px;cursor:pointer}.wallpick.selected{border-color:var(--accent)}.wallthumb{height:63px;display:block;margin-bottom:7px;background:var(--thumb);background-size:cover;background-position:center}.wallpick b{display:block;padding:0 4px 3px;font-weight:500}.tabs{display:flex;gap:20px;border-bottom:1px solid #3e4043;margin:17px 0}.tab{background:none;border:0;padding:0 0 10px;color:#92959e;border-bottom:2px solid transparent}.tab.selected{color:var(--accent);border-color:var(--accent)}.toast{position:fixed;right:25px;bottom:24px;max-width:340px;background:#27292e;border:1px solid #5c5c60;padding:13px 17px;z-index:30;box-shadow:0 10px 30px #0008;font-size:11px}.previewbadge{font-size:9px;border:1px solid #73593b;background:#2e241b;color:#f3bd82;padding:3px 7px}.full{width:100%}.separator{border-top:1px solid #373a3d;margin:17px 0}.switchrow{display:flex;align-items:center;justify-content:space-between;margin:16px 0;color:#afb1b8;font-size:11px}.switchrow input{accent-color:var(--accent)}@media(max-width:650px){.shell{padding:0}.window{min-height:100dvh;border:0}.session{padding:19px}.people{gap:8px}.person{padding:13px 5px}.controls{padding:12px;justify-content:center}.status,.shortcut{display:none}.roomline h2{font-size:18px}.avatargrid{grid-template-columns:repeat(4,1fr)}.topright b{display:none}.modal{padding:20px}.titlebar{padding:0 16px}}

/* Cursed Voices / Refined: restrained glow, desktop utility */
:root{--bg:#111318;--surface:#1b1e24;--elev:#24272e;--line:#343944;--muted:#9296a0;--white:#edf0f3;--accent:#f18a4f;--green:#76c5a0;--red:#ee7575}
body{background:radial-gradient(ellipse at 48% 12%,#1e2027 0%,#101116 48%,#08090c 100%);font-family:'Segoe UI Variable','Segoe UI',Inter,system-ui,sans-serif}
.shell{padding:34px 20px}
.window{width:min(900px,100%);min-height:580px;border-radius:10px;border:1px solid #383d48;background:#13161b;box-shadow:0 30px 105px #000a,0 0 0 1px #ffffff05;overflow:hidden}
.titlebar{height:57px;padding:0 27px;background:linear-gradient(180deg,#202329 0%,#181b20 100%);border-bottom:1px solid #393c45}
.logo{font-weight:750;letter-spacing:2.15px;font-size:11px;color:#f0eee9}
.sigil{width:27px;height:29px;clip-path:none;border-radius:6px;background:linear-gradient(140deg,#ec995a,#c55b37);color:#fff7ee;box-shadow:0 2px 13px #eb82402a;font-size:14px}
.topright{gap:12px}.previewbadge{border-color:#69513d;background:#322a24;color:#dfa979;border-radius:3px}
.content{background:#14171c}
.content:before{opacity:.51;background:var(--wall,radial-gradient(ellipse at 50% 15%,#282f37 0%,#111419 78%))}
.content:after{background:linear-gradient(180deg,#171a1f35 0%,#16191cbf 64%,#15171c 100%)}
.idle{max-width:520px;padding-top:38px}.mark{width:62px;height:65px;margin-bottom:26px;clip-path:none;border:1px solid #ba704a;border-radius:15px;background:linear-gradient(150deg,#332821,#191e25);color:#f49a63;box-shadow:inset 0 1px 0 #ffffff12,0 0 36px #f2862622;text-shadow:0 0 16px #f2862640;font-size:31px}
.eyebrow{color:#e9a074;letter-spacing:2.2px;font-size:9px}
.idle h1{font-size:30px;font-weight:650;letter-spacing:-.95px;margin:11px 0 10px}
.idle p{font-size:12px;color:#a3a6ad;max-width:390px;margin:0 auto 27px}
.btn{border-radius:5px;height:40px;background:linear-gradient(180deg,#2c3038,#22262c);border-color:#454952;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}@media(hover:hover){
.btn:hover{background:linear-gradient(180deg,#363b43,#292d33);border-color:#69707a}}
.btn.primary{background:linear-gradient(115deg,#f3a364,#e87a43);border:1px solid #ed9a65;color:#1c1613;box-shadow:0 2px 15px #ef884438;font-weight:750}@media(hover:hover){
.btn.primary:hover{background:linear-gradient(115deg,#fab37a,#ee8851);box-shadow:0 3px 23px #f28b4752}}
.btn.danger{background:#3d2828;border-color:#704242}
.idle .under{color:#747c86;letter-spacing:1px}
.controls{background:linear-gradient(180deg,#202329,#1b1e23);border-top-color:#383c45;min-height:91px}
.ctrl{border-radius:6px;background:linear-gradient(180deg,#31353c,#292d33);border-color:#464b54;height:41px;min-width:44px}@media(hover:hover){
.ctrl:hover{background:#3c424a;border-color:#5b626c}}
.ctrl.on{background:#46302c;border-color:#a9694c;color:#ffc29e}
.ctrl.emphasis{color:#f2a49d;border-color:#6c4546}@media(hover:hover){
.ctrl.emphasis:hover{background:#4e2a2d}}
.strip{background:#16191e;color:#77808b;border-top:1px solid #30353e}
.status-graphic{border-radius:5px;border-color:#45534f;background:#25342d}
.person{border-radius:7px;background:#1d2127cf;border-color:#42475088;min-height:180px;box-shadow:inset 0 1px #ffffff04}
.person.waiting{background:#171a20bf}
.person.speaking{border-color:#7bbd98;box-shadow:0 0 0 1px #7bbd9830,0 0 24px #7bbd9819}
.avatar{border:2px solid #a46c4e;box-shadow:0 0 0 4px #e7843212,0 0 22px #ed80361b;width:73px;height:73px}
.codebtn{border-radius:4px;background:#252930;border-color:#4b505b}
.modal{border-radius:9px;border:1px solid #464b55;border-top:2px solid #db8754;background:#20242a;box-shadow:0 25px 90px #000b}
.field input,.field select{border-radius:5px;background:#171a20;border-color:#444a55}
.avpick,.wallpick{border-radius:6px;background:#282c33}.avpick.selected,.wallpick.selected{border-color:#db8b5d;box-shadow:0 0 0 1px #ed884340}
.toast{border-radius:6px}.tabs .selected{color:#efa36a}
@media(max-width:650px){.shell{padding:0}.window{border-radius:0;min-height:100dvh}.titlebar{padding:0 16px}.idle h1{font-size:26px}}

/* Cursed Voices refined desktop utility pass */
.window{width:min(940px,100%);min-height:610px;border:1px solid #65402b;border-radius:9px;background:#101216;box-shadow:0 38px 100px #000c,0 0 0 1px #f59a3a16;overflow:hidden}
.titlebar{height:68px;min-height:68px;background:#101115;border-bottom:1px solid #363135;padding:0 28px}
.brand-logo{width:181px;height:54px;filter:drop-shadow(0 1px 5px #f6934020)}
.topright{gap:16px}
.content{background:#121418!important;min-height:424px}
.content:before{background:radial-gradient(ellipse at 50% 10%,#29201c 0%,#17191d 46%,#121418 82%)!important;opacity:1!important}
.content:after{background:linear-gradient(180deg,#11131818,#11131872)!important}
.idle{max-width:520px;padding:30px 24px 42px}
.mark-logo{height:118px;margin-bottom:5px}
.mark-logo img{max-width:350px;filter:drop-shadow(0 5px 20px #f18a3215)}
.idle h1{font-size:25px;font-weight:650;letter-spacing:-.55px}
.idle p{font-size:12px;color:#b1b1b7}
.btn{height:41px;border-radius:6px;font-weight:650;letter-spacing:.2px;background:#25262c;border-color:#4a4140}
.btn.primary{background:linear-gradient(180deg,#f39139,#c65c18);border:1px solid #faab5b;color:#18100b;box-shadow:0 2px 14px #eb7d282b}@media(hover:hover){
.btn.primary:hover{background:linear-gradient(180deg,#ff9f46,#d96b20)}}
.session{padding:29px 34px 24px}
.roomline{align-items:center}
.roomline h2{font-size:23px;margin:5px 0 3px}
.eyebrow{color:#f6a24f}
.codebtn{border-radius:6px;background:#23242a;border:1px solid #6b4b34;color:#ffcf9b;padding:9px 14px;font-weight:700;letter-spacing:2px}
.people{gap:14px;padding:24px 0;min-height:214px}
.person{border:1px solid #3d3c42;background:linear-gradient(145deg,#202125,#181a1f);border-radius:8px;min-height:192px;padding:20px 12px;gap:12px;transition:border-color .15s,box-shadow .15s}
.person:not(.waiting){border-color:#ae743f;box-shadow:inset 0 0 0 1px #cc73241e,0 0 24px #dd7a1510}
.person.waiting{background:#191b1e;border-style:solid;border-color:#36383f}
.avatar{width:80px;height:80px;border:2px solid #cc7c35;box-shadow:0 0 0 4px #c7792214;background:#24272c}
.person .name{font-size:14px;color:#f4eee9}
.person .role{color:#a8a9b0}
.controls{min-height:95px;background:#16181c;border-top:1px solid #353336;padding:18px 30px}
.ctrl{height:46px;min-width:46px;border-radius:50%;padding:0 13px;background:#24262c;border:1px solid #4b4648;color:#e5e4e4;gap:6px;box-shadow:0 2px 7px #0004}@media(hover:hover){
.ctrl:hover{background:#32343a;border-color:#9b7051}}
.ctrl.on{background:#4e2826;border-color:#a25e48;color:#ffd0bd}
.ctrl.emphasis{background:#412422;border-color:#99534a;color:#ffb9ab}
.status-graphic{border-color:#5f523f;color:#d99450;border-radius:7px}
.strip{background:#111316;border-top-color:#2b2d32}
.modal{border-radius:8px;background:#1d1f25;border-color:#51433b}
.viewer{border-radius:7px}
@media(max-width:650px){.window{border-radius:0}.titlebar{padding:0 15px}.brand-logo{width:140px;height:43px}.person{min-height:166px}.avatar{width:64px;height:64px}.controls{padding:14px}}

/* Quality & contacts extensions */
.cv-advanced{border-top:1px solid #464047;margin:14px 0;padding-top:12px}
.cv-advanced h4{color:#f5ddc7;letter-spacing:.7px;font-size:11px;margin:10px 0}
.cv-help{color:#acadb5;font-size:10px;line-height:1.55;margin:6px 0 13px}
.cv-stats{background:#13161bcf;border:1px solid #494346;padding:12px;color:#d8dce1;font:11px/1.65 Consolas,monospace;white-space:pre-line;border-radius:5px;margin:12px 0}
.cv-contacts{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:20px auto;max-width:480px}
.cv-contact{border:1px solid #574d47;background:#222428dd;border-radius:4px;padding:7px 12px;color:#e2d1c6;font-size:11px}
.cv-contact small{color:#a3a4ac}
/* Cursed Voices Voice Engine 2.0 */
.cv-voice-engine{margin:16px 0 12px;padding:13px;background:#141619;border:1px solid #343332;border-radius:10px;display:grid;gap:10px}
.cv-ve-heading{display:flex;align-items:center;justify-content:space-between;color:#efc197;font-size:11px;letter-spacing:.085em}
#veState{color:#a6abb1;letter-spacing:normal;font-size:11px;font-weight:400}
.cv-voice-engine .field{margin:0}.cv-voice-engine select,.cv-voice-engine input[type="range"]{width:100%}
.cv-ve-meter{height:7px;background:#303238;border-radius:5px;overflow:hidden}.cv-ve-meter span{display:block;width:0%;height:100%;background:linear-gradient(90deg,#b05d28,#ef9649);transition:width .08s linear}
.cv-ve-note{font-size:11px;line-height:1.5;color:#979ba2;margin:0}.cv-ve-preview{display:grid;gap:8px}.cv-ve-preview audio{width:100%;height:35px;accent-color:#dd7c39}
#micTestStatus{font-size:11px;color:#afb1b8}
#settingsModal .modalfoot{position:sticky;bottom:-28px;z-index:3;background:#202126;padding:12px 0;margin-top:12px;border-top:1px solid #383638}


.logo{flex-shrink:0;min-width:0;letter-spacing:normal}.brand-logo{width:150px;height:43px;object-fit:contain;object-position:left center;display:block}.mark-logo{display:flex;justify-content:center;align-items:center;height:114px;margin:0 auto 6px}.mark-logo img{width:min(340px,100%);height:108px;object-fit:contain;filter:drop-shadow(0 7px 19px rgba(238,111,37,.15))}.titlebar{min-height:58px;height:58px}.titlebar .logo{align-self:stretch;display:flex;align-items:center}.window{border-color:#493b32}.btn.primary{background:linear-gradient(180deg,#f69440,#db6925);border-color:#f09a54;box-shadow:0 3px 19px rgba(231,115,37,.12)}@media(hover:hover){.btn.primary:hover{background:linear-gradient(180deg,#ffae62,#e97b2d)}}@media(max-width:450px){.brand-logo{width:124px;height:39px}.topright{gap:6px}.mark-logo img{width:min(290px,100%)}}


.window{width:min(1200px,calc(100vw - 32px));min-height:640px;border:1px solid #5e4c37;border-radius:10px;box-shadow:0 28px 110px #000d;overflow:hidden}
.titlebar{height:65px;background:#141519;border-bottom:1px solid #51402d;user-select:none}
.titlebar .brand-logo{max-height:51px;max-width:205px;object-fit:contain}
.session:not(.active){display:none!important}.session{display:grid!important;grid-template-columns:minmax(260px,1fr);grid-template-rows:auto minmax(220px,1fr) auto;column-gap:18px;row-gap:14px;align-items:stretch}
.session.has-screen{grid-template-columns:minmax(245px,.85fr) minmax(350px,1.65fr)}
.session .roomline{grid-column:1/-1}
.people{grid-column:1;grid-row:2;display:flex;flex-direction:column;min-height:250px;margin:0;padding:0;gap:12px}
.person{min-height:122px;flex:1;display:grid;grid-template-columns:65px 1fr;grid-template-rows:auto auto auto auto;align-content:center;column-gap:14px;justify-items:start;padding:13px 17px;background:#1b1d21;border:1px solid #353536;border-radius:8px}
.person.speaking{border-color:#cf8539}
.person .avatar{grid-column:1;grid-row:1/5;width:61px;height:61px;align-self:center;border-radius:50%;border:2px solid #65513a}
.person .name{grid-column:2;grid-row:1;font-size:15px}
.person .role{grid-column:2;grid-row:2;min-height:16px}
.person .stateicon{top:10px;right:11px}
.userFlags{grid-column:2;grid-row:3;color:#e49a57;font-size:10px;min-height:13px;letter-spacing:.05em}
.gainLabel{grid-column:2;grid-row:4;display:flex;align-items:center;gap:8px;font-size:9px;color:#b7b7b9;margin-top:5px;white-space:nowrap;width:100%}
.gainLabel input{width:100%;max-width:150px;accent-color:#eb8b3f}
.gainLabel output{min-width:33px;color:#f5e4d3;font-size:10px}
.viewer{grid-column:2;grid-row:2;position:relative;min-height:300px;background:#0b0c0e;border:1px solid #55412e;border-radius:8px;overflow:hidden;display:flex;align-items:center}
.viewer.hidden{display:none!important}
.viewer video{display:block;width:100%;height:100%;max-height:560px;object-fit:contain;background:#090a0c}
.viewActions{position:absolute;top:8px;right:8px;display:flex;gap:7px;z-index:2}
.viewer .viewtop{top:12px;left:13px;right:auto}
.chatPane{grid-column:1/-1;grid-row:3;display:flex;flex-direction:column;background:#15171a;border:1px solid #343438;border-radius:8px;min-height:105px;max-height:245px;overflow:hidden}
.chatPane.collapsed{display:none}
.chatTitle{font-size:10px;font-weight:750;letter-spacing:1.2px;color:#efa15e;padding:9px 13px;border-bottom:1px solid #303136;display:flex;justify-content:space-between}
.chatTitle span{color:#7c8088;font-weight:400;letter-spacing:0}
.chatMessages{flex:1;min-height:43px;max-height:140px;overflow:auto;padding:8px 13px;font-size:12px}
.chatMessage{margin:3px 0;overflow-wrap:anywhere;white-space:pre-wrap}
.chatMessage strong{color:#eea15b}
.chatMessage .chatTime{color:#767982;font-size:10px;padding-right:6px}
.chatForm{display:flex;gap:7px;padding:8px;border-top:1px solid #303136}
.chatForm input{flex:1;min-width:0;background:#24262a;border:1px solid #434448;border-radius:5px;color:#eee;padding:9px}
.chatForm button{background:#da7b32;color:#1d1108;border:0;border-radius:5px;font-size:11px;font-weight:800;padding:0 18px}
.buttons{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px}
.controls .ctrl{height:40px;border-radius:6px;min-width:68px;justify-content:center;padding:0 12px}
.controls .ctrl#deafen,.controls .ctrl#screen{min-width:48px}
#joinShare{background:#5d3c21;border-color:#d18a44;color:#ffe9cc}
.controls #leave{background:#92332d;border:1px solid #d1544a;color:white;min-width:133px;font-weight:800}@media(hover:hover){
.controls #leave:hover{background:#b6382f}}
.window.screen-theatre .session.has-screen{grid-template-columns:minmax(205px,.52fr) minmax(400px,2.1fr)}
.window.screen-theatre .viewer video{max-height:690px}
@media(max-width:800px){.window{width:100%;min-height:0}.session.has-screen{grid-template-columns:1fr}.session.has-screen .viewer{grid-column:1;grid-row:3;min-height:230px}.session.has-screen .chatPane{grid-row:4}.session:not(.has-screen) .chatPane{grid-row:3}.session .people{min-height:0}.controls{flex-wrap:wrap;gap:10px}.controls .status,.controls .shortcut{display:none}.buttons{width:100%}}


/* Chat is docked BELOW the call controls, not inside the session's participant grid. */
.window{transition:transform .24s ease,box-shadow .24s ease;max-height:calc(100dvh - 32px)}
.bottomChatDock{flex:0 0 auto;display:grid;grid-template-rows:0fr;opacity:0;min-height:0;transition:grid-template-rows .25s ease,opacity .2s ease;background:#121416}
.bottomChatDock.open{grid-template-rows:1fr;opacity:1;border-top:1px solid #61462b}
.bottomChatDock .chatPane{display:flex!important;grid-column:auto;grid-row:auto;min-height:0;max-height:none;height:auto;overflow:hidden;border:0;border-radius:0;background:#131518}
.bottomChatDock:not(.open) .chatPane{visibility:hidden;padding:0;border:0;min-height:0}
.bottomChatDock .chatMessages{height:136px;min-height:136px;max-height:136px;overflow-y:auto}
.bottomChatDock .chatTitle{padding:10px 17px;background:#1b1d20}
.bottomChatDock .chatForm{padding:10px 14px 12px}
.bottomChatDock .chatForm input{border-radius:6px}
.bottomChatDock .chatForm button{border-radius:6px}
/* Keep the live video/voice stage sized as chat expands; opening grows the app upwards. */
.window:has(.bottomChatDock.open){transform:translateY(-18px)}
.window:has(.bottomChatDock.open) .content{min-height:0}
.window:has(.bottomChatDock.open) .session{padding-top:18px;padding-bottom:12px;min-height:0}
.window:has(.bottomChatDock.open) .session .people{min-height:190px}
.window:has(.bottomChatDock.open) .session .viewer{min-height:190px}
#toggleChat.on{background:#4b3523;border-color:#be7b3c;color:#ffca93}
#friendVolume{accent-color:#f29d4d}
@media(max-height:760px){.window:has(.bottomChatDock.open) .content{overflow-y:auto}.bottomChatDock .chatMessages{height:88px;min-height:88px;max-height:88px}}
@media(prefers-reduced-motion:reduce){.window,.bottomChatDock{transition:none}}


.preAvatar{margin:12px 0 16px}
.preAvatar>span{display:block;color:#e5b77e;font-size:10px;font-weight:750;letter-spacing:1px;margin-bottom:10px}
.avatarChoices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.avatarOption{border:1px solid #4a4340;background:#212126;padding:4px;border-radius:8px;aspect-ratio:1;overflow:hidden;transition:border-color .15s,transform .15s}@media(hover:hover){
.avatarOption:hover{border-color:#ec9f59;transform:translateY(-1px)}}
.avatarOption.chosen{border:2px solid #ffa64c;box-shadow:0 0 0 1px #ef8c3d55,0 0 17px #f18b3830}
.avatarOption img{width:100%;height:100%;object-fit:cover;border-radius:5px;display:block}
.avatarUpload{margin-top:12px;display:flex;align-items:center;justify-content:center;border:1px dashed #876346;border-radius:7px;padding:12px;color:#e9b17a;font-weight:650;cursor:pointer;font-size:12px;background:#30251d66}@media(hover:hover){
.avatarUpload:hover{background:#48311f90}}
.avatarUpload{position:relative}.avatarUpload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.avatarTip{font-size:10px;color:#8e8f93;margin:7px 0 0}
#createModal .modal,#joinModal .modal{width:min(480px,calc(100vw - 20px))}
@media(max-width:430px){.avatarChoices{grid-template-columns:repeat(4,1fr)}}


.profilePortability{border:1px solid #4b433a;border-radius:8px;background:#211d1b;padding:14px;margin:12px 0 19px}
.profilePortability strong{color:#efa86b;letter-spacing:1.2px;font-size:10px}
.profilePortability p{font-size:11px;color:#bcb2ab;line-height:1.5}
.profileActions{display:flex;gap:8px;flex-wrap:wrap}
.profileImport{cursor:pointer;margin:0}


/* Both participants can broadcast and view independently; selected stream receives emphasis. */
.window{width:min(1260px,calc(100vw - 28px))}
.session.has-screen{grid-template-columns:minmax(225px,.65fr) minmax(420px,1.8fr);align-items:start}
.session.has-screen .people{grid-column:1;grid-row:2;align-self:stretch}
.session.has-screen .viewer{grid-column:2;grid-row:2;min-height:338px;display:flex;flex-direction:column;background:#0c0d0f;padding:55px 10px 10px;border:1px solid #54422f;border-radius:9px}
.streamGrid{display:grid;grid-template-columns:1fr;gap:10px;width:100%;flex:1;min-height:220px}
.viewer.dual .streamGrid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.streamTile{position:relative;background:#090a0c;border:1px solid #54402b;border-radius:7px;overflow:hidden;min-width:0;min-height:210px;display:flex;align-items:center;justify-content:center}
.streamTile.hidden{display:none!important}
.streamTile video{width:100%!important;height:100%!important;max-height:560px;object-fit:contain;display:block;background:#090a0c}
.streamBar{position:absolute;bottom:0;left:0;right:0;padding:12px 9px 8px;display:flex;align-items:center;gap:7px;justify-content:flex-end;background:linear-gradient(transparent,#07080add);font-size:10px;font-weight:750;letter-spacing:.55px}
.streamBar span{margin-right:auto;color:#ffe4c9;text-shadow:0 1px 3px #000}
.streamBar button{background:#242021e8;color:#f6e4cf;border:1px solid #9e774f;border-radius:5px;font-weight:700;padding:8px;cursor:pointer;font-size:10px}@media(hover:hover){
.streamBar button:hover{background:#714b29}}
.viewActions{top:10px!important;right:10px!important;left:10px;display:flex!important;justify-content:flex-end;gap:8px}
.viewActions button{border-radius:6px;font-size:11px;letter-spacing:.35px;padding:10px 14px;font-weight:850;cursor:pointer}
.theaterBtn{background:#9c602e;color:#fff2dd;border:1px solid #eea05b}
.fullscreenMain{background:#282a31;color:#fff;border:1px solid #a2a3ab}@media(hover:hover){
.theaterBtn:hover,.fullscreenMain:hover{filter:brightness(1.18)}}
.window.screen-theatre{width:min(1530px,calc(100vw - 20px));min-height:calc(100dvh - 26px)}
.window.screen-theatre .session.has-screen{grid-template-columns:minmax(255px,.43fr) minmax(520px,1.9fr);grid-template-rows:auto minmax(490px,1fr)}
.window.screen-theatre .session.has-screen .viewer{min-height:490px;grid-column:2;grid-row:2}
.window.screen-theatre .viewer.dual .streamGrid{display:flex;flex-direction:column}
.window.screen-theatre .viewer.dual .streamTile{flex:1;min-height:150px}
.window.screen-theatre .viewer.dual .streamTile:not(.hidden){order:2}
.window.screen-theatre .viewer.dual[data-focus="local"] #localTile,.window.screen-theatre .viewer.dual[data-focus="remote"] #remoteTile{order:1;flex:3;min-height:300px;border-color:#e5a363}
.window.screen-theatre .viewer.dual[data-focus="local"] #remoteTile,.window.screen-theatre .viewer.dual[data-focus="remote"] #localTile{flex:1;max-height:160px}
.window.screen-theatre .bottomChatDock.open{width:29%;max-width:395px;margin:0;position:absolute;bottom:58px;left:14px;z-index:4;box-shadow:0 12px 55px #0009}
.window.screen-theatre .bottomChatDock.open .chatPane{max-height:270px}
.window.screen-theatre .controls{position:relative;z-index:5}
@media(max-width:850px){.session.has-screen,.window.screen-theatre .session.has-screen{grid-template-columns:1fr;grid-template-rows:auto auto auto}.session.has-screen .people,.window.screen-theatre .session.has-screen .people{grid-column:1;grid-row:2}.session.has-screen .viewer,.window.screen-theatre .session.has-screen .viewer{grid-column:1;grid-row:3;min-height:280px}.viewer.dual .streamGrid{grid-template-columns:1fr 1fr}.window.screen-theatre .bottomChatDock.open{position:static;width:auto;max-width:none;margin:0}.window.screen-theatre{min-height:0}}
@media(max-width:590px){.viewer.dual .streamGrid{grid-template-columns:1fr}.viewActions button{font-size:9px;padding:8px}}


/* Theater layout: left rail holds participants, chat and the second active screen. */
.window.screen-theatre .session.has-screen{grid-template-columns:minmax(245px,320px) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch}
.window.screen-theatre .theaterSidebar{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:11px;min-height:0;max-height:calc(100dvh - 200px);overflow:auto;padding-right:2px}
.window.screen-theatre .theaterSidebar .people{display:flex;flex:0 0 auto;grid-column:auto;grid-row:auto;min-height:0;gap:8px}
.window.screen-theatre .theaterSidebar .person{min-height:96px;padding:10px}
.window.screen-theatre .theaterSidebar .bottomChatDock{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;margin:0!important;flex:0 0 auto;box-shadow:none!important;border:1px solid #3d3530;border-radius:8px;overflow:hidden}
.window.screen-theatre .theaterSidebar .bottomChatDock.open .chatPane{min-height:195px;max-height:300px;display:flex}
.window.screen-theatre .theaterSidebar .bottomChatDock .chatMessages{height:115px;min-height:115px;max-height:150px}
.window.screen-theatre .theaterSecondary{display:none;flex:0 0 auto;flex-direction:column;gap:8px;padding:10px;border:1px solid #594430;background:#111215;border-radius:8px}
.window.screen-theatre .theaterSecondary.visible{display:flex}
.window.screen-theatre .theaterSecondaryTitle{font-size:10px;font-weight:800;letter-spacing:1px;color:#ebb17d}
.window.screen-theatre .theaterSecondary .streamTile{display:flex!important;flex:0 0 auto;min-height:0;width:100%;aspect-ratio:16/9;max-height:260px;order:initial!important}
.window.screen-theatre .theaterSecondary .streamTile video{max-height:260px}
.window.screen-theatre .session.has-screen .viewer{grid-column:2;grid-row:2;min-height:400px;max-height:calc(100dvh - 200px)}
.window.screen-theatre .viewer .streamGrid{display:flex!important;flex-direction:column;min-height:0}
.window.screen-theatre .viewer .streamTile{flex:1!important;max-height:none!important;min-height:300px!important;order:initial!important}
.window.screen-theatre .viewer .streamTile video{max-height:none;min-height:0}
@media(max-width:850px){.window.screen-theatre .session.has-screen{grid-template-columns:1fr;grid-template-rows:auto auto auto}.window.screen-theatre .theaterSidebar{grid-column:1;grid-row:3;max-height:none;overflow:visible}.window.screen-theatre .session.has-screen .viewer{grid-column:1;grid-row:2;min-height:260px;max-height:none}.window.screen-theatre .theaterSecondary .streamTile{max-height:300px}}


#toggleChat.hasUnread{background:#b96b25!important;color:#fff!important;border-color:#f6aa63!important;box-shadow:0 0 0 2px #f8b56a33}
.speaking-avatar{box-shadow:0 0 0 calc(2px + var(--speaking)*7px) rgba(244,149,60,.55),0 0 25px rgba(253,170,68,.45)!important;transition:box-shadow .09s linear}
.window.screen-theatre{width:min(1800px,calc(100vw - 12px))!important;max-width:none;min-height:min(900px,calc(100dvh - 12px));}
.window.screen-theatre .content,.window.screen-theatre .session{width:100%;max-width:none}
.window.screen-theatre .session.has-screen{grid-template-columns:minmax(260px,25%) minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr);padding:16px}
.window.screen-theatre .session.has-screen .viewer{grid-column:2;grid-row:2;min-width:0;min-height:0;width:100%;aspect-ratio:16/9;height:auto;max-height:calc(100dvh - 155px)}
.window.screen-theatre .streamTile{aspect-ratio:auto!important;min-width:0}
.window.screen-theatre .viewer video{width:100%;height:100%;object-fit:contain;max-height:none!important}
.window.screen-theatre .session.has-screen .people{grid-column:1;grid-row:2;align-self:start}
.window.screen-theatre .theatreSide .streamTile{aspect-ratio:16/9!important;min-height:0!important}
[data-full]{background:#a35a2f!important;color:#fff!important;border:1px solid #f0a15c!important;font-size:12px!important;font-weight:800!important;padding:10px 15px!important}
@media(max-width:850px){.window.screen-theatre .session.has-screen{grid-template-columns:1fr!important}.window.screen-theatre .session.has-screen .viewer{grid-column:1;grid-row:3;width:100%;height:auto;aspect-ratio:16/9}.window.screen-theatre .session.has-screen .people{grid-column:1;grid-row:2}}


.window.screen-theatre .theaterSidebar{grid-column:1!important;grid-row:2!important;display:flex!important;flex-direction:column;gap:10px;min-width:0}
.window.screen-theatre .theaterSidebar[hidden]{display:none!important}
.window.screen-theatre .theaterSidebar .bottomChatDock{order:2}
.window.screen-theatre .theaterSidebar .theaterSecondary{order:3;width:100%;aspect-ratio:16/9;flex-shrink:0;min-height:0}
.window.screen-theatre .theaterSidebar .theaterSecondary video{width:100%;height:100%;object-fit:contain}
.window.screen-theatre .viewer .streamGrid{height:100%;width:100%;display:flex}
.window.screen-theatre .viewer .streamGrid .streamTile{width:100%;height:100%;flex:1}
.window.screen-theatre .viewer .streamTile video{width:100%;height:100%;object-fit:contain}


/* Normal mode stays compact. Theater consumes the browser's actual usable viewport. */
.shell:has(.window.screen-theatre){
 padding:4px!important;display:flex!important;align-items:stretch!important;justify-content:center!important;
 min-height:100dvh!important;height:100dvh!important;overflow:hidden;
}
.window.screen-theatre{
 width:calc(100vw - 8px)!important;max-width:none!important;
 height:calc(100dvh - 8px)!important;min-height:0!important;max-height:none!important;
 border-radius:8px!important;display:flex!important;flex-direction:column!important;
 overflow:hidden!important;transform:none!important;
}
.window.screen-theatre .titlebar{height:47px!important;min-height:47px!important;flex-shrink:0!important}
.window.screen-theatre .content{
 min-height:0!important;max-height:none!important;flex:1!important;
 display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
.window.screen-theatre .session.has-screen{
 flex:1!important;min-height:0!important;height:auto!important;overflow:hidden!important;
 display:grid!important;grid-template-columns:clamp(240px,21vw,355px) minmax(0,1fr)!important;
 grid-template-rows:auto minmax(0,1fr)!important;
 column-gap:10px!important;row-gap:10px!important;padding:10px!important;
}
.window.screen-theatre .roomline{grid-column:1/-1!important;grid-row:1!important;padding:0 3px!important;min-height:0!important}
.window.screen-theatre .roomline h2{font-size:14px!important;margin:2px 0!important}
.window.screen-theatre .roomline .eyebrow{font-size:9px!important}
.window.screen-theatre .theaterSidebar{
 grid-column:1!important;grid-row:2!important;min-height:0!important;max-height:none!important;
 overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column!important;
 gap:9px!important;padding:0 3px 0 0!important;align-self:stretch!important;
}
.window.screen-theatre .theaterSidebar .people{
 flex:0 0 auto!important;display:flex!important;flex-direction:column!important;
 min-height:0!important;gap:7px!important;padding:0!important;margin:0!important;
}
.window.screen-theatre .theaterSidebar .person{
 flex:0 0 auto!important;min-height:82px!important;padding:8px 10px!important;
 grid-template-columns:46px minmax(0,1fr)!important;gap:5px 9px!important;
}
.window.screen-theatre .theaterSidebar .avatar{width:43px!important;height:43px!important}
.window.screen-theatre .theaterSidebar .bottomChatDock{
 width:100%!important;max-width:none!important;position:relative!important;inset:auto!important;
 margin:0!important;flex:0 0 auto!important;box-shadow:none!important;
}
.window.screen-theatre .theaterSidebar .bottomChatDock.open .chatPane{min-height:150px!important;max-height:32dvh!important}
.window.screen-theatre .theaterSidebar .theaterSecondary{
 order:3!important;min-height:0!important;width:100%!important;flex:0 0 auto!important;
 padding:7px!important;gap:5px!important;
}
.window.screen-theatre .theaterSidebar .theaterSecondary .streamTile{
 width:100%!important;height:auto!important;aspect-ratio:16/9!important;
 min-height:0!important;max-height:none!important;flex:0 0 auto!important;
}
.window.screen-theatre .theaterSidebar .theaterSecondary .streamTile video{
 width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;
}
.window.screen-theatre .session.has-screen .viewer{
 grid-column:2!important;grid-row:2!important;width:100%!important;height:100%!important;
 min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
 aspect-ratio:auto!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;
 background:#08090b!important;padding:0!important;border:1px solid #4d3b29!important;
 border-radius:5px!important;
}
.window.screen-theatre .viewer .streamGrid{
 flex:1!important;height:100%!important;width:100%!important;min-height:0!important;
 display:flex!important;flex-direction:column!important;gap:0!important;
 align-items:stretch!important;justify-content:center!important;overflow:hidden!important;
}
.window.screen-theatre .viewer .streamTile{
 flex:1 1 auto!important;width:100%!important;height:100%!important;
 min-height:0!important;max-height:none!important;border:0!important;border-radius:0!important;
 background:#08090b!important;overflow:hidden!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
.window.screen-theatre .viewer .streamTile video{
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 max-width:100%!important;max-height:100%!important;object-fit:contain!important;
}
.window.screen-theatre .viewer .viewActions{
 position:absolute!important;z-index:10!important;top:9px!important;right:10px!important;
 left:auto!important;width:auto!important;pointer-events:none;
}
.window.screen-theatre .viewer .viewActions button{pointer-events:auto!important}
.window.screen-theatre .streamBar{
 opacity:.18;transition:opacity .2s ease;padding:8px 12px!important;
}@media(hover:hover){
.window.screen-theatre .streamTile:hover .streamBar,.window.screen-theatre .streamTile:focus-within .streamBar{opacity:1}}
.window.screen-theatre .controls{flex:0 0 auto!important;min-height:55px!important;padding:7px 15px!important}
.window.screen-theatre .strip{flex:0 0 auto!important;min-height:18px!important}
.window.screen-theatre > .bottomChatDock{display:none!important}
@media(max-width:760px){
 .shell:has(.window.screen-theatre){height:auto!important;min-height:100dvh!important;overflow:auto!important}
 .window.screen-theatre{height:auto!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important}
 .window.screen-theatre .content{overflow:visible!important}
 .window.screen-theatre .session.has-screen{
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;
  overflow:visible!important;
 }
 .window.screen-theatre .session.has-screen .viewer{
  grid-column:1!important;grid-row:2!important;aspect-ratio:16/9!important;height:auto!important;
 }
 .window.screen-theatre .theaterSidebar{grid-column:1!important;grid-row:3!important;max-height:none!important;overflow:visible!important}
}
@media(prefers-reduced-motion:reduce){.window.screen-theatre .streamBar{transition:none!important}}


.screenAudioVolume{display:flex;align-items:center;gap:7px;padding:5px 8px;background:rgba(12,14,18,.88);border:1px solid #715338;border-radius:6px;color:#f0d2b1;font:600 10px/1.2 'Segoe UI',sans-serif;white-space:nowrap}
.screenAudioVolume[hidden]{display:none!important}
.screenAudioVolume input{width:90px;accent-color:#ef923e;cursor:pointer}
.screenAudioVolume output{width:33px;text-align:right;font-variant-numeric:tabular-nums}
.window.screen-theatre .streamTile .streamBar:has(.screenAudioVolume:not([hidden])){opacity:.95!important;pointer-events:auto}
@media(max-width:650px){.screenAudioVolume{gap:4px;font-size:9px;padding:4px}.screenAudioVolume input{width:60px}}

.chatMessage.systemMessage{font-size:11px;color:#dda871;font-style:italic}.chatMessage.systemMessage strong{color:#e9a35a}#toggleChat{display:inline-flex}

.share-preset-modal{width:min(610px,calc(100vw - 24px))!important}
.streamProfileHeading{color:#e5a36a;letter-spacing:1.5px;font-size:10px;font-weight:800;margin:0 0 10px}
.streamProfiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.streamProfile{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;min-width:0;background:linear-gradient(150deg,#28282c,#1b1c20);border:1px solid #46413e;padding:12px;border-radius:8px;color:#ddd7d0;cursor:pointer;transition:border-color .15s,background .15s}
.streamProfile strong{font-size:11px;letter-spacing:1px;color:#eee}
.streamProfile span{font-size:12px;color:#f0a66c;font-weight:650}
.streamProfile small{font-size:10px;line-height:1.4;color:#aaa6a5}@media(hover:hover){
.streamProfile:hover{border-color:#b87a45}}
.streamProfile[aria-pressed="true"]{border-color:#eea45e;background:linear-gradient(135deg,#443021,#282320);box-shadow:0 0 0 1px #f0a86650 inset}
.streamProfile[aria-pressed="true"] strong{color:#ffe9ce}
.streamProfileStatus{color:#eac6a0;background:#241e1c;border:1px solid #5a4436;border-radius:6px;padding:10px 12px;font-size:11px;line-height:1.55;margin:10px 0}
.streamManualFields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.streamManualFields.locked{opacity:.56}
.streamManualFields.locked select{pointer-events:none}
.share-preset-modal .field{margin:9px 0}
#streamEncodingNote{font-size:10px;color:#aba3a0;line-height:1.65}
@media(max-width:540px){.streamProfiles{grid-template-columns:1fr}.streamManualFields{grid-template-columns:1fr}}


#statsModal .modal{width:min(1000px,calc(100vw - 28px));max-height:min(90vh,940px);overflow-y:auto;padding-bottom:18px}
#statsModal .description{margin:7px 0 14px;color:#adabb0}
#statsModal .cv-stats{background:transparent;border:0;border-radius:0;padding:0;color:#e8e1db;font-family:inherit;white-space:normal;margin:0}
.cv-stats-summary{border:1px solid #4d4138;background:#1b1c20;border-radius:10px;padding:14px 16px;margin:0 0 15px}
.cv-stats-health{display:flex;gap:12px;align-items:flex-start}
.cv-stats-health-dot{width:11px;height:11px;margin-top:5px;flex-shrink:0;border-radius:50%;background:#96979c;box-shadow:0 0 0 4px #8882}
.cv-stats-health.good .cv-stats-health-dot{background:#70cb9d;box-shadow:0 0 0 4px #70cb9d20}
.cv-stats-health.warn .cv-stats-health-dot{background:#f2b46a;box-shadow:0 0 0 4px #f2b46a20}
.cv-stats-health.bad .cv-stats-health-dot{background:#e77373;box-shadow:0 0 0 4px #e7737320}
.cv-stats-health strong{font-size:16px;letter-spacing:.25px;color:#f4e7d9}
.cv-stats-health p{font-size:11px;line-height:1.6;color:#aaa7ab;margin:3px 0 12px}
.cv-stats-network{border-top:1px solid #373439;padding-top:8px;display:grid;gap:6px}
.cv-stat-netline{display:grid;grid-template-columns:minmax(70px,1fr) 100px 100px 120px;gap:12px;align-items:center;font:11px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;color:#b4b0b3}
.cv-stat-netline strong{color:#e4d1bf;font-size:10px;font-weight:650}
.cv-stat-netline>span:first-child{color:#d9dce0}
.cv-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cv-stat-card{border:1px solid #494143;background:#1b1d21;border-radius:10px;min-width:0;overflow:hidden}
.cv-stat-card header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0;padding:12px 14px;border-bottom:1px solid #393538;background:#242327}
.cv-stat-card h4{font-size:12px;font-weight:750;letter-spacing:.35px;color:#e8d6c4;margin:0}
.cv-stat-card header small{display:block;margin-top:2px;color:#a18a75;font-weight:700;font-size:9px;letter-spacing:1.2px}
.cv-stat-tag{font:700 9px/1.5 ui-monospace,Consolas,monospace;padding:3px 7px;border:1px solid #605447;border-radius:999px;color:#d3bb9e;white-space:nowrap}
.cv-stat-tag.ok{color:#91d7a9;border-color:#3e6652}.cv-stat-tag.muted{color:#b7ada8}
.cv-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.cv-stat-item{display:flex;flex-direction:column;padding:12px 14px;min-width:0;border-top:1px solid #2c2e33}
.cv-stat-item:nth-child(-n + 2){border-top:0}
.cv-stat-item:nth-child(even){border-left:1px solid #2c2e33}
.cv-stat-item>span{font-size:10px;color:#a49ca0;line-height:1.4}
.cv-stat-item strong{font:600 14px/1.5 ui-monospace,Consolas,monospace;color:#f0d6b8;word-break:break-word;margin-top:5px}
.cv-stat-item small{font-size:9px;color:#818087;line-height:1.4;margin-top:3px}
.cv-stat-absence,.cv-stat-empty,.cv-stat-error{padding:23px 14px;color:#aba9af;font-size:12px;line-height:1.6}
.cv-stat-empty{background:#1b1c20;border:1px solid #494143;border-radius:10px;text-align:center}
.cv-stat-error{background:#382322;border:1px solid #804640;border-radius:8px;margin:8px 0;color:#eab0a4}
.cv-stat-footnote{font-size:10px;line-height:1.65;color:#939093;margin:14px 1px 0}
@media(max-width:700px){#statsModal .modal{width:calc(100vw - 16px);max-height:94vh}.cv-stats-grid{grid-template-columns:1fr}.cv-stat-netline{grid-template-columns:1fr 1fr;gap:0 10px;padding:5px 0;border-bottom:1px solid #2d2b30}}


.audioCaptureTip{margin:11px 0;padding:10px 12px;background:#181919;border:1px solid #4a3728;border-radius:7px;color:#c5b8aa;font-size:11px;line-height:1.55}
.audioCaptureTip strong{color:#eeae6b}
.captureAudioBadge{font-size:9px;color:#dfb58c;letter-spacing:.04em}
.captureAudioNotice{order:1;flex:0 0 auto;padding:10px 12px;font-size:11px;line-height:1.5;color:#f0c6a0;background:#251d17;border:1px solid #8b5b36;border-radius:7px}
.captureAudioNotice[hidden]{display:none!important}
.shareAudioDock{order:2;flex:0 0 auto;min-height:0}
.shareAudioDock[hidden]{display:none!important}
.screenAudioVolume{width:auto;max-width:100%;min-width:0;display:flex;flex-wrap:wrap;gap:8px;padding:9px 10px;border:1px solid #594633;border-radius:7px;background:#191b1e;color:#efd5b4}
.screenAudioVolume[hidden]{display:none!important}
.shareAudioHeading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;width:100%;font-size:10px}
.shareAudioHeading strong{color:#e8a66b;font-size:10px;letter-spacing:.4px}
.shareAudioHeading small{color:#afaaa5;font-size:10px;line-height:1.3;white-space:normal}
.shareAudioControls{display:flex;align-items:center;gap:9px;width:100%}
.screenAudioVolume .shareAudioControls input{flex:1 1 75px;min-width:30px;width:auto;accent-color:#f09c54}
.screenAudioVolume .shareAudioControls input:disabled{opacity:.35}
.shareAudioControls output{flex:0 0 39px;text-align:right;font-variant-numeric:tabular-nums;color:#eee1d3}
#enableShareAudio{flex:0 0 auto;cursor:pointer;border:1px solid #c88742;background:#a36132;color:#fff0db;border-radius:5px;padding:6px 8px;font-size:10px;font-weight:700}
#enableShareAudio[hidden]{display:none!important}
.window.screen-theatre .theaterSidebar{overflow:hidden!important}
.window.screen-theatre .theaterSidebar .bottomChatDock{order:3!important;display:grid!important;min-height:0!important}
.window.screen-theatre .theaterSidebar .theaterSecondary{order:4!important}
/* A single share gives the chat ALL remaining vertical space instead of a fixed 115px. */
.window.screen-theatre .theaterSidebar:not(.two-shares) .bottomChatDock.open{flex:1 1 auto!important;min-height:180px!important;height:auto!important;max-height:none!important}
.window.screen-theatre .theaterSidebar:not(.two-shares) .bottomChatDock.open .chatPane{height:100%!important;min-height:0!important;max-height:none!important}
.window.screen-theatre .theaterSidebar:not(.two-shares) .bottomChatDock.open .chatMessages{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important}
/* Two shares: chat shrinks gracefully; second screen keeps a 16:9 preview. */
.window.screen-theatre .theaterSidebar.two-shares .bottomChatDock.open{flex:1 1 170px!important;min-height:150px!important;max-height:32dvh!important}
.window.screen-theatre .theaterSidebar.two-shares .bottomChatDock.open .chatPane{height:100%!important;min-height:0!important;max-height:none!important}
.window.screen-theatre .theaterSidebar.two-shares .bottomChatDock.open .chatMessages{flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important}
.window.screen-theatre .theaterSidebar .theaterSecondary.visible{flex:0 1 auto!important;min-height:0!important;overflow:hidden!important}
.window.screen-theatre .theaterSidebar .theaterSecondary.visible .streamTile{flex:0 1 auto!important;max-height:clamp(110px,29dvh,260px)!important}
.window.screen-theatre .theaterSidebar .theaterSecondary.visible .streamTile video{max-height:clamp(110px,29dvh,260px)!important}
.window.screen-theatre .theaterSidebar .screenAudioVolume{width:100%;background:#16181b}
.window.screen-theatre .streamTile .streamBar:has(.screenAudioVolume:not([hidden])){opacity:1!important}
@media(max-height:700px){.window.screen-theatre .theaterSidebar{overflow-y:auto!important}.window.screen-theatre .theaterSidebar.two-shares .bottomChatDock.open{min-height:120px!important}}
@media(max-width:760px){.window.screen-theatre .theaterSidebar{overflow:visible!important}.window.screen-theatre .theaterSidebar:not(.two-shares) .bottomChatDock.open{min-height:225px!important;max-height:480px!important}}


.q-modal{width:min(720px,calc(100vw - 22px))!important;max-height:90dvh!important;overflow-y:auto!important}
.q-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.q-sections section{border:1px solid #443b35;background:#191b1d;padding:13px;border-radius:8px;display:flex;flex-direction:column;gap:9px;color:#d9d4cd;font:12px/1.4 'Segoe UI',sans-serif}
.q-sections h4{font-size:11px;color:#edac69;margin:0 0 4px;letter-spacing:.08em}.q-sections p{margin:3px 0;line-height:1.55;color:#b8b5b3}
.q-sections label{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.q-sections label:has(input[type=range]){display:flex;flex-direction:column;align-items:stretch}
.q-sections input[type=range]{width:100%;accent-color:#dc8539}.q-sections input[type=checkbox]{accent-color:#dd8c45}
.q-sections select{max-width:100%;background:#101114;border:1px solid #514539;padding:7px;color:#e8e0d6;border-radius:5px}
.q-sections output{color:#f2b77c}.q-inline{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.q-invite{border:1px solid #755037;color:#ffc08c;background:#241b17;border-radius:5px;font-size:10px;padding:6px 10px;margin-top:5px;cursor:pointer}
.q-attach{float:left;margin-right:5px;height:31px;color:#edaa70;background:#252528;border:1px solid #68513b;border-radius:4px;width:27px;min-width:27px;cursor:pointer;font-size:19px;line-height:1}
.q-file-stage{display:flex;align-items:center;gap:9px;padding:7px 8px;color:#f2c79d;background:#22201e;border:1px solid #69513a;border-radius:6px;margin-bottom:5px;font-size:10px;line-height:1.5}
.q-file-stage[hidden],#qUpdateBanner[hidden]{display:none!important}
.q-file-stage img{max-width:64px;max-height:54px;object-fit:contain;border-radius:3px}.q-file-stage span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.q-file-stage button{background:none;color:#eabe92;border:0;cursor:pointer}
.q-attachment{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:5px 0 5px 16px;font-size:10px}
.q-attachment img{max-width:min(100%,280px);max-height:210px;object-fit:contain;border:1px solid #54402e;border-radius:5px;cursor:zoom-in}
.q-attachment a{color:#edb075;max-width:100%;overflow-wrap:anywhere}.q-attachment small{color:#ada69f}
.chatMessages{overflow-y:auto;overflow-x:hidden}.bottomChatDock[data-fontsize=compact] .chatMessage{font-size:10px!important}.bottomChatDock[data-fontsize=normal] .chatMessage{font-size:12px!important}.bottomChatDock[data-fontsize=large] .chatMessage{font-size:14px!important}
.chatPane.q-dragging{outline:2px dashed #f39a52;outline-offset:-4px}
.window.screen-theatre .session.has-screen{grid-template-columns:var(--qSidebarWidth,320px) minmax(0,1fr)!important}
:root[data-q-video-fit=cover] .window.screen-theatre .viewer .streamTile video{object-fit:cover!important}
.q-auto-hide .window.screen-theatre .controls{opacity:.20;transition:opacity .2s ease}@media(hover:hover){
.q-auto-hide .window.screen-theatre .controls:hover,.q-auto-hide .window.screen-theatre .controls:focus-within{opacity:1}}
#qPiP,#qReactions{margin-right:7px}#qReactions.q-active{background:#995c2b;color:#fff}
.q-marker{position:absolute;z-index:17;transform:translate(-50%,-50%);font-size:28px;pointer-events:none;filter:drop-shadow(0 1px 4px #000);animation:qPop 1.8s ease-out forwards}
.q-point-mode #screenVideo{cursor:crosshair!important}
@keyframes qPop{0%{opacity:0;transform:translate(-50%,-50%) scale(.6)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.2)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,-65%) scale(.8)}}
.q-update-banner{position:fixed;left:50%;top:10px;transform:translateX(-50%);z-index:2000;background:#292017;border:1px solid #b77d43;box-shadow:0 5px 25px #0009;border-radius:7px;color:#f8d7b6;padding:10px;display:flex;align-items:center;gap:12px;font:11px/1.5 'Segoe UI',sans-serif;max-width:95vw}
.q-update-banner button{background:#a66632;color:#fff1e1;border:0;border-radius:4px;padding:6px 10px;cursor:pointer}
@media(max-width:800px){.q-sections{grid-template-columns:1fr}.window.screen-theatre .session.has-screen{grid-template-columns:1fr!important}.viewActions{flex-wrap:wrap}}


/* Only the ordinary call window without any screen sharing is vertically resizable. */
#qChatResizeHandle{display:none;align-items:center;justify-content:center;flex:0 0 auto;min-width:69px;height:23px;padding:0 7px;margin-left:9px;border:1px solid #5f4b39;border-radius:4px;background:#252321;cursor:ns-resize;touch-action:none;user-select:none;color:#e4b481;transition:background .12s}
#qChatResizeHandle::before{content:"↕ RESIZE";font:700 9px/1 'Segoe UI',sans-serif;letter-spacing:.035em;white-space:nowrap}@media(hover:hover){
#qChatResizeHandle:hover,#qChatResizeHandle:focus-visible,#qChatResizeHandle.dragging{background:#2a231f}}@media(hover:hover){
#qChatResizeHandle:hover::before,#qChatResizeHandle:focus-visible::before,#qChatResizeHandle.dragging::before{background:#ef9b53}}
.window:not(.screen-theatre):not(:has(.session.has-screen)) > #bottomChatDock.open #qChatResizeHandle{display:flex}
.window:not(.screen-theatre):not(:has(.session.has-screen)) > #bottomChatDock.open .chatMessages{
 height:var(--cv-chat-messages-height,136px)!important;
 min-height:var(--cv-chat-messages-height,136px)!important;
 max-height:var(--cv-chat-messages-height,136px)!important;
 flex:0 0 var(--cv-chat-messages-height,136px)!important;
}
/* Let the window grow downwards with the enlarged chat; avoid clipping it at viewport height. */
.window:not(.screen-theatre):not(:has(.session.has-screen)):has(> #bottomChatDock.open){max-height:none!important}
.window.screen-theatre #qChatResizeHandle{display:none!important}
@media(prefers-reduced-motion:reduce){#qChatResizeHandle{transition:none}}

.cv-connection[hidden],.cv-admission[hidden],#cvRetry[hidden]{display:none!important}
.cv-connection{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 22px;background:#211d18;border-bottom:1px solid #59432b;font-size:12px}
.cv-connection strong,.cv-connection span{display:block}.cv-connection span{margin-top:3px;color:#c6c1b9;font-size:11px;line-height:1.5}
.cv-connection[data-state="connected"]{background:#18241f;border-color:#365b47}
.cv-connection[data-state="failed"]{background:#35201e;border-color:#8c5143}
.cv-admission{padding:18px 22px;border-bottom:1px solid #8f673d;background:#30251c}
.cv-admission p{color:#c7b9a9;font-size:12px}.cv-admission>div{display:flex;gap:10px;flex-wrap:wrap}
.cv-details{margin:20px 0;border:1px solid #51443b;border-radius:7px;padding:13px}
.cv-details summary{cursor:pointer;color:#e8c6a5;font-size:12px;min-height:25px}
.cv-preflight{margin:18px 0 12px;font-size:11px;color:#edc8a3}
.cv-preflight meter{display:block;width:100%;height:16px;margin:9px 0}
.cv-preflight p{font-size:11px;color:#b9b6b2;line-height:1.6}
.cv-ve-preview{margin:10px 0 18px}#cvConnection .btn{flex-shrink:0}
@media(max-width:650px){.cv-connection{padding:12px 16px}.cv-admission{padding:16px}.cv-details{padding:10px}.modal{max-height:88dvh}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
