:root{font-family:Inter,Arial,sans-serif;color:#26334a;background:#eceef0;color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header,main{max-width:1320px;margin:auto;padding:22px clamp(18px,4vw,62px)}header{display:flex;align-items:center;gap:18px;border-bottom:1px solid #bfc5cd}header img{width:138px;max-height:48px}header span{font-size:.9rem;font-weight:600}#status{margin-left:auto;border:1px solid #aeb5bf;border-radius:24px;padding:8px 15px}#status.on{background:#fff2ed;color:#a53321}#lobby{display:grid;grid-template-columns:1.2fr 1fr;gap:5vw;align-items:center;min-height:65vh}h1,h2,h3,button,summary{font-family:Montserrat,Arial,sans-serif}h1{font-size:clamp(38px,5vw,70px);line-height:1.04;letter-spacing:-.055em;margin:.4em 0}h1 span{color:#81900b}#lobby p{max-width:480px;line-height:1.6}form,aside,#results,#historyBox{background:#fafbfc;border:1px solid #cbd0d7;border-radius:18px;padding:clamp(16px,3vw,32px)}label{display:block;font-weight:600}input:not([type=checkbox]){border:1px solid #adb5bd;border-radius:8px;padding:13px;width:100%;font:inherit;margin:10px 0}input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:#26334a}.check{display:flex;gap:10px;font-size:.88rem;line-height:1.5;margin:12px 0 22px;font-weight:400}button,summary{cursor:pointer}button{border:1px solid #b9c1ca;background:#fff;border-radius:9px;color:#26334a;font-weight:700;padding:11px 15px;min-height:44px}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #667aa1;outline-offset:3px}button:disabled{opacity:.55;cursor:wait}#record,#join{font-size:1.05rem;border-color:#c2cd46;background:#dde85c;padding:14px 24px}#record.on{background:#ffeadf;border-color:#ae3c34;color:#8d221f}#record:before{content:'●';margin-right:8px}#record.on:before{content:'■'}#room h1{font-size:clamp(28px,4vw,48px)}.heading,.controls,#downloads{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.heading{justify-content:space-between}.layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:18px}.layout:has(aside[hidden]){grid-template-columns:1fr}#tiles,#compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile{background:#26334a;color:#eceef0;aspect-ratio:16/9;position:relative;overflow:hidden;border-radius:12px;display:grid;place-items:center}.tile img,.tile video{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.tile small{position:absolute;bottom:8px;left:8px;background:#182131e8;color:white;border-radius:5px;padding:4px 7px}.tile strong{font:600 26px Montserrat}.controls{margin-top:12px}#feedback,#message{color:#68521b}#notes,pre{white-space:pre-wrap;font:inherit;line-height:1.55;overflow-wrap:anywhere}pre{font-size:.9rem}aside{max-height:66vh;overflow:auto}h2{margin:0 0 14px;font-size:1.28rem}#results,#historyBox,#inviteBox{margin-top:18px}#compare article{border-top:1px solid #ccd0d3}a{color:#26334a;text-underline-offset:4px}#downloads a,#history button{margin:6px 12px 8px 0}small{font-size:.82rem}@media(max-width:760px){#lobby,.layout,#compare{grid-template-columns:1fr}#lobby{min-height:unset;gap:15px}header{gap:8px}header img{width:95px}header span{font-size:.75rem}#status{padding:6px 10px}aside{max-height:unset}.controls button{flex:1}.tile{aspect-ratio:4/3}main{padding-top:12px}}

#playback{width:min(100%,640px);display:block;background:#26334a;border-radius:10px}#compare .stamp{font:inherit;color:inherit;text-decoration:underline;background:none;border:0;padding:0;min-height:0}

header{min-height:76px}#lobby{gap:clamp(24px,4vw,64px);margin:22px 0;min-height:0}
.cover{align-self:stretch;min-height:390px;display:flex;align-items:flex-end;padding:clamp(24px,4vw,52px);border-radius:24px;color:#fff;background:linear-gradient(90deg,#121a26d9,#121a2615),linear-gradient(0deg,#101626d9,transparent 65%),url(studio.webp) center/cover no-repeat}
.cover h1{max-width:8em;margin:0}.cover h1 span{color:#e8ea72}.cover p{margin:12px 0 0;max-width:36ch!important;color:#f0f1e9}
.entry,#joinForm{background:#fafbfc;padding:clamp(20px,3vw,36px);border-radius:18px;border:1px solid #cbd0d7}
.entry form,#logout{background:none;padding:0;border:0}.entry h2,#joinForm h2{margin-bottom:1.3em}
.primary{background:#dde85c;border-color:#c8d057}.entry #message{line-height:1.5;color:#455166}
#logout button{background:none;font-family:Inter,sans-serif;text-decoration:underline;border:0;padding:8px}
.controls{display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px;background:#202631;border-radius:18px;padding:9px;width:fit-content;max-width:100%}
.controls button,#record{display:grid;justify-items:center;align-content:center;min-width:48px;height:48px;min-height:48px;padding:0 11px;flex:0 0 auto;border:0;border-radius:12px;background:#303b4d;color:#f4f5f6;position:relative}
.controls button:hover,.controls button:focus-visible{background:#435068}.controls button:focus-visible{outline:3px solid #e8ea72;outline-offset:2px}
.controls #record,.controls #invite{grid-auto-flow:column;align-items:center;gap:8px}
.controls #record{background:#e8ea72;color:#202631}.controls #record.on{background:#ffcfbf;color:#742d23}.controls #record:before{display:none}
.controls #leave{color:#ffc7bc}.controls button.selected{background:#e8ea72;color:#202631}
.glyph{width:24px;height:24px;display:block;background:currentColor;mask:var(--icon) center/contain no-repeat}
.controls .device-off .glyph{opacity:.62}.device-off:after{content:"";position:absolute;width:28px;height:2px;background:#ffd7c8;top:50%;left:50%;transform:translate(-50%,-50%) rotate(45deg);box-shadow:0 1px 0 #202631}
.caption{font:600 .83rem Inter,sans-serif}.controls button:not(#record):not(#invite) .caption{display:none}
#controlTip{position:fixed;z-index:20;width:max-content;max-width:min(320px,calc(100vw - 16px));background:#121a27;color:white;border-radius:12px;padding:12px 16px;font:600 17px/1.4 Inter,sans-serif;box-shadow:0 6px 24px #151a2833;pointer-events:none}
#tiles:has(.tile:only-child){grid-template-columns:1fr}
@media(max-width:760px){#lobby{gap:14px;margin:12px 0}.cover{min-height:170px;padding:22px;border-radius:16px;background-position:center,center,center 42%}.cover h1{font-size:38px}.cover h1 br{display:none}.cover p{margin-top:6px;font-size:.9rem}
#lobby input:not([type=checkbox]){font-size:16px}header{min-height:62px}.controls{width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(46px,1fr));gap:4px;padding:6px}.controls button,.controls #record,.controls #invite{width:100%;min-width:0;min-height:60px;height:auto;grid-auto-flow:row;gap:4px;padding:6px 1px}.controls button:not(#record):not(#invite) .caption{display:block}.caption{font-size:10px;line-height:1.15;text-align:center}.device-off:after{top:36%}.controls .glyph{width:22px;height:22px}}
.controls [data-icon="record"]{--icon:url("icon-record.svg")}
.controls [data-icon="invite"]{--icon:url("icon-invite.svg")}
.controls [data-icon="mic"]{--icon:url("icon-mic.svg")}
.controls [data-icon="camera"]{--icon:url("icon-camera.svg")}
.controls [data-icon="share"]{--icon:url("icon-share.svg")}
.controls [data-icon="leave"]{--icon:url("icon-leave.svg")}
.controls [data-icon="stop"] .glyph{mask:none;width:16px;height:16px;border-radius:3px}

.meeting-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 12px; }
.meeting-bar .controls { margin-top: 0; }
#waiting { flex: 1 1 215px; min-width: 0; display: grid; gap: 6px; }
#waiting:empty { display: none; }
.waiting-guest { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 9px; border-radius: 18px; background: #202631; color: #fff; }
.waiting-guest strong { font-size: .875rem; overflow-wrap: anywhere; }
.waiting-guest button { min-height: 48px; padding: 8px; border: 0; border-radius: 12px; }
.waiting-guest .admit { background: #c4edd6; color: #12472c; }
.waiting-guest .deny { background: #ffd8d3; color: #78271e; }
.waiting-guest button:hover { text-decoration: underline; }
.waiting-guest button:focus-visible { outline-color: #e8ea72; }

.meet-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.meet-brand .meet-mark { width: 42px; height: 42px; }
.meet-wordmark { display: grid; gap: 3px; }
.meet-wordmark strong { font: 700 28px/.95 Montserrat, Arial, sans-serif; letter-spacing: -.045em; }
.meet-wordmark small { font: 600 11px/1.2 Inter, Arial, sans-serif; color: #475772; }
.invite-line { display: flex; align-items: center; gap: 8px; }
.invite-line input { min-width: 0; flex: 1; }
#copyInvite { background: #26334a; color: white; border-color: transparent; }
#copyInvite:hover { background: #354767; }
.controls [data-icon="expand"] .glyph,.controls [data-icon="collapse"] .glyph {
  mask: none; background: linear-gradient(currentColor,currentColor) left top / 8px 2px,
    linear-gradient(currentColor,currentColor) left top / 2px 8px,
    linear-gradient(currentColor,currentColor) right top / 8px 2px,
    linear-gradient(currentColor,currentColor) right top / 2px 8px,
    linear-gradient(currentColor,currentColor) left bottom / 8px 2px,
    linear-gradient(currentColor,currentColor) left bottom / 2px 8px,
    linear-gradient(currentColor,currentColor) right bottom / 8px 2px,
    linear-gradient(currentColor,currentColor) right bottom / 2px 8px;
  background-repeat: no-repeat; width: 20px; height: 20px;
}
.controls [data-icon="collapse"] .glyph { width: 14px; height: 14px; }
.meet-expanded body { position: fixed; inset: 0; background: #151d2a; color: white; overflow: auto; }
.meet-expanded header { min-height: 0; max-width: none; background: #eceef0; color: #26334a; padding-block: 8px; }
.meet-expanded main { max-width: none; padding: 10px clamp(10px,2vw,28px); }
.meet-expanded .heading h1,.meet-expanded #results,.meet-expanded #historyBox,.meet-expanded #notebook { display: none; }
.meet-expanded .heading { justify-content: flex-end; font-size: .85rem; margin-bottom: 6px; }
.meet-expanded #room .layout { grid-template-columns: minmax(0,1fr); }
.meet-expanded #tiles { height: max(34vh,calc(100vh - 280px)); height: max(34dvh,calc(100dvh - 280px)); grid-auto-rows: minmax(0,1fr); }
.meet-expanded .tile { height: 100%; aspect-ratio: auto; }
.meet-expanded #inviteBox { margin-top: 8px; }
.meet-expanded #feedback { color: #e8ea72; }
@media(max-width:600px){
  header { flex-wrap: wrap; }
  .meet-brand { gap: 8px; }
  .meet-brand .meet-mark { width: 36px; height: 36px; }
  .meet-wordmark strong { font-size: 24px; }
}
