:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f2f3f5;background:#313338;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
button,input{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.primary{border:0;border-radius:5px;background:#5865f2;color:#fff;font-weight:700;transition:background .15s,transform .15s}
.primary:hover{background:#4752c4}
.primary:active{transform:translateY(1px)}
.primary:disabled{opacity:.55;cursor:not-allowed}
.secondary{border:0;border-radius:5px;background:#4e5058;color:#fff;font-weight:700}
.secondary:hover{background:#5d5f68}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.13em;color:#b5bac1}
.welcome-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 20%,#414888 0,transparent 30%),radial-gradient(circle at 85% 85%,#32366a 0,transparent 31%),#1e1f22}
.welcome-card{width:min(100%,440px);padding:38px;background:#313338;border:1px solid #484a51;border-radius:12px;box-shadow:0 24px 70px #0007}
.welcome-mark{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:#5865f2;font-size:29px;font-weight:900;margin-bottom:25px}
.welcome-card h1{font-size:30px;line-height:1.12;margin:7px 0 9px}
.welcome-copy{font-size:14px;color:#b5bac1;line-height:1.5;margin:0 0 27px}
label{display:block;color:#b5bac1;font-size:11px;font-weight:800;letter-spacing:.045em;margin:19px 0 8px}
input{width:100%;height:43px;border:1px solid transparent;border-radius:4px;background:#1e1f22;color:#f2f3f5;padding:0 12px;outline:none}
input:focus{border-color:#5865f2}
input::placeholder{color:#777b83}
.room-field{display:flex;gap:8px}
.room-field input{min-width:0;flex:1}
.room-field button{border:0;border-radius:4px;background:#4e5058;color:#fff;font-size:23px;width:45px;flex:none}
.room-field button:hover{background:#62646d}
.room-field .favorite-room{color:#e4e7ec}
.room-field .favorite-room[aria-pressed="true"]{color:#ffca55}
.room-field .favorite-room:disabled{opacity:.45;cursor:not-allowed}
.join-button{width:100%;height:44px;margin-top:26px}
.saved-rooms{display:grid;gap:15px;margin-top:22px;padding-top:18px;border-top:1px solid #484a51}
.saved-room-section h2{margin:0 0 8px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#b5bac1}
.saved-room-list{display:grid;gap:5px;max-height:190px;overflow-y:auto;scrollbar-width:thin}
.saved-room-item{display:flex;align-items:center;gap:6px;min-width:0}
.saved-room-code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left;padding:8px 10px;border:0;border-radius:4px;background:#292b30;color:#f2f3f5;font-size:13px;font-weight:700;letter-spacing:.04em}
.saved-room-code:hover,.saved-room-code:focus-visible{background:#41444c}
.saved-room-star{width:35px;height:35px;flex:none;border:0;border-radius:4px;background:transparent;color:#adb2bd;font-size:22px;line-height:1}
.saved-room-star[aria-pressed="true"]{color:#ffca55}
.saved-room-star:hover,.saved-room-star:focus-visible{background:#41444c;color:#ffca55}
.welcome-tip{font-size:12px;color:#949ba4;line-height:1.5;margin:20px 0 0}
.app{height:100vh;height:100dvh;min-height:0;display:grid;grid-template-columns:240px minmax(0,1fr)}
.app.sidebar-collapsed{grid-template-columns:72px minmax(0,1fr)}
.channel-sidebar{position:relative;z-index:2;background:#2b2d31;display:flex;flex-direction:column;min-width:0;min-height:0}
.server-title{height:49px;padding:0 10px 0 16px;box-shadow:0 1px 0 #202127;display:flex;align-items:center;justify-content:space-between;gap:6px;font-weight:800;white-space:nowrap}
.server-name{overflow:hidden;text-overflow:ellipsis}
.sidebar-toggle{display:grid;place-items:center;width:30px;height:30px;flex:none;border:0;border-radius:5px;background:transparent;color:#b5bac1}
.sidebar-toggle:hover,.sidebar-toggle:focus-visible{background:#404249;color:#fff}
.sidebar-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)}
.channel-content{padding:12px 8px;flex:1;overflow:auto}
.sidebar-label{font-size:11px;color:#949ba4;font-weight:800;letter-spacing:.035em;padding:0 10px;margin-bottom:7px}
.people-label{display:flex;justify-content:space-between;margin-top:4px}
.sidebar-members{display:grid;gap:2px}
.sidebar-member{position:relative;height:38px;display:flex;align-items:center;gap:9px;padding:0 9px;color:#b5bac1;font-size:14px;border-radius:4px}
.sidebar-member:hover{background:#35373c}
.sidebar-member .avatar{position:relative;width:26px;height:26px;font-size:12px;border-radius:50%}
.sidebar-member.is-streaming .avatar::after{content:"";position:absolute;right:-2px;bottom:-2px;width:8px;height:8px;border:2px solid #2b2d31;border-radius:50%;background:#ed4245}
.sidebar-member-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-wrap{position:relative;background:#232428;padding:6px 8px}
.profile-button{height:42px;width:100%;display:flex;align-items:center;gap:9px;border:0;border-radius:4px;background:transparent;color:#fff;text-align:left;padding:4px}
.profile-button:hover{background:#37383e}
.avatar{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:#5865f2;color:#fff;font-weight:800;text-transform:uppercase}
.self-avatar{background:#3ba57c}
.profile-text{min-width:0;display:flex;flex-direction:column}
.profile-text strong{max-width:115px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-text small{font-size:11px;color:#b5bac1}
.profile-dots{margin-left:auto;color:#b5bac1;letter-spacing:1px;font-size:10px}
.profile-menu{position:absolute;bottom:58px;left:8px;right:8px;padding:6px;background:#111214;border:1px solid #3a3c43;border-radius:7px;box-shadow:0 12px 25px #0008;z-index:5}
.profile-menu button{width:100%;height:36px;padding:0 10px;display:flex;align-items:center;gap:10px;background:none;border:0;border-radius:4px;color:#f2f3f5;text-align:left}
.profile-menu button:hover{background:#5865f2}
.main-panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:#313338}
.topbar{min-height:49px;flex:none;box-shadow:0 1px 0 #202127;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 21px}
.room-code-group{display:flex;align-items:center;gap:9px;min-width:0;flex:none}
.room-code-caption{color:#949ba4;font-size:11px;font-weight:800;letter-spacing:.07em;white-space:nowrap}
#room-code-label{font-size:15px;letter-spacing:.04em;white-space:nowrap;user-select:text}
.copy-code{display:grid;place-items:center;width:30px;height:30px;flex:none;border:0;border-radius:5px;background:transparent;color:#b5bac1}
.copy-code:hover,.copy-code:focus-visible{background:#404249;color:#fff}
.copy-code svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.main-scroll{padding:16px clamp(12px,2vw,28px) 14px;overflow:hidden;flex:1;min-height:0;display:flex;flex-direction:column}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;flex:none}
.section-heading h2{font-size:16px;margin:0;display:flex;align-items:center;gap:9px}
.count-badge{font-size:11px;min-width:20px;height:20px;padding:3px 6px;text-align:center;border-radius:20px;background:#45474f;color:#dbdee1}
.connection-label{font-size:12px;color:#949ba4}
.connection-label.online{color:#43b581}
.layout-actions{display:flex;align-items:center;gap:10px;min-width:0}
.layout-actions label{margin:0;color:#949ba4;font-size:11px;font-weight:700;letter-spacing:.02em}
.layout-actions select{max-width:185px;height:29px;padding:0 26px 0 9px;border:1px solid #4e5058;border-radius:5px;background:#25262b;color:#e6e8ef;font-size:12px;cursor:pointer}
.layout-actions select:focus-visible{outline:2px solid #8b94ff}
.streams-grid{position:relative;flex:1;min-height:0;min-width:0;overflow:auto;scrollbar-color:#666973 transparent}
.layout-surface{position:relative;min-width:100%;min-height:100%}
.stream-tile{position:absolute;display:flex;flex-direction:column;contain:layout paint;min-width:0;min-height:0;border-radius:8px;background:#232428;overflow:hidden;border:1px solid #42444b}
.stream-video-wrap{flex:1;min-height:0;background:#151619;position:relative;display:grid;place-items:center}
.stream-video-wrap video{width:100%;height:100%;min-height:0;object-fit:contain;display:block}
.stream-live{position:absolute;left:12px;top:11px;background:#ed4245;color:white;border-radius:3px;padding:4px 7px;font-size:10px;font-weight:900;letter-spacing:.04em;opacity:0;transition:opacity .16s;pointer-events:none}
.stream-overlay{position:absolute;left:0;right:0;bottom:0;z-index:1;background:linear-gradient(transparent,#111d 35%,#111f);opacity:0;pointer-events:none;transition:opacity .16s}
.stream-tile:hover .stream-overlay,.stream-tile:focus-within .stream-overlay,.stream-tile:hover .stream-live,.stream-tile:focus-within .stream-live{opacity:1}
.stream-tile:hover .stream-overlay,.stream-tile:focus-within .stream-overlay{pointer-events:auto}
.stream-diagnostic{position:absolute;z-index:2;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:20px;text-align:center;color:#f2f3f5;font-size:14px;line-height:1.45;background:#151619c9}
.stream-diagnostic span{max-width:460px}
.stream-diagnostic button{border:0;border-radius:5px;background:#5865f2;color:white;font-size:12px;font-weight:700;padding:8px 12px}
.stream-diagnostic button:hover{background:#4752c4}
@media(hover:none){.stream-overlay,.stream-live{opacity:1}.stream-overlay{pointer-events:auto}}
.stream-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 13px;flex:none}
.stream-footer strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stream-footer span{font-size:11px;color:#b5bac1;white-space:nowrap}
.empty-streams{flex:1;min-height:0;border:1px dashed #585b64;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#b5bac1;padding:28px}
.empty-icon{font-size:36px;color:#7a8091}
.empty-streams h3{color:#f2f3f5;font-size:15px;margin:10px 0 5px}
.empty-streams p{font-size:13px;margin:0;line-height:1.5}
.action-copy{display:flex;align-items:center;gap:9px;color:#b5bac1;font-size:12px;min-width:0;max-width:330px}
.action-copy span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-dot{width:8px;height:8px;border-radius:50%;background:#43b581;flex:none}
.action-copy.warning .live-dot{background:#faa61a}
.stream-button{padding:9px 15px;white-space:nowrap}
.stream-button.stop{background:#da373c}
.stream-button.stop:hover{background:#b72d32}
.name-dialog{width:min(90vw,390px);border:1px solid #50525a;border-radius:9px;background:#313338;color:#fff;padding:25px;box-shadow:0 20px 50px #0009}
.name-dialog::backdrop{background:#0009}
.name-dialog h2{margin:0 0 6px;font-size:21px}
.name-dialog p{margin:0;color:#b5bac1;font-size:13px}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
.dialog-actions button{padding:10px 16px}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:min(90vw,540px);padding:12px 17px;border-radius:6px;background:#111214;color:#fff;border:1px solid #5d6069;box-shadow:0 10px 30px #0007;font-size:13px;z-index:50;text-align:center}
@media(max-width:760px){.app,.app.sidebar-collapsed{grid-template-columns:72px minmax(0,1fr)}.channel-sidebar{width:240px;box-shadow:12px 0 25px #0005}.app.sidebar-collapsed .channel-sidebar{width:72px;box-shadow:none}.main-panel{grid-column:2;grid-row:1}}

/* Opções da transmissão */
.stream-dialog{width:min(94vw,660px);max-height:92vh;padding:0;border:1px solid #555861;border-radius:12px;background:#313338;color:#f2f3f5;box-shadow:0 24px 70px #000a}
.stream-dialog::backdrop{background:#000b}
.stream-dialog form{display:flex;flex-direction:column;max-height:92vh}
.stream-modal-header{display:flex;justify-content:space-between;gap:16px;padding:25px 28px 21px;border-bottom:1px solid #474951}
.stream-modal-header .eyebrow{margin:0 0 7px;color:#aeb6ff}
.stream-modal-header h2{font-size:24px;margin:0 0 7px}
.stream-modal-header p:last-child{font-size:13px;color:#b5bac1;margin:0}
.modal-close{align-self:flex-start;border:0;background:transparent;color:#b5bac1;font-size:29px;line-height:1;padding:0 2px}
.modal-close:hover{color:#fff}
.stream-modal-body{padding:21px 28px;overflow:auto}
.settings-fieldset{border:0;padding:0;margin:0}
.settings-fieldset legend,.bitrate-head label{color:#b5bac1;font-size:11px;font-weight:800;letter-spacing:.05em;margin:0 0 9px;padding:0}
.resolution-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.resolution-option{display:block;margin:0;cursor:pointer}
.resolution-option input,.segmented input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.resolution-option span{display:flex;flex-direction:column;gap:5px;min-height:67px;padding:12px;border-radius:6px;background:#26272c;border:1px solid #4b4d56}
.resolution-option strong{font-size:14px;color:#f2f3f5}
.resolution-option small{font-size:11px;color:#aeb1ba}
.resolution-option input:checked+span{background:#353c76;border-color:#7d89ff;box-shadow:inset 0 0 0 1px #7d89ff}
.resolution-option input:focus-visible+span,.segmented input:focus-visible+span{outline:2px solid #fff;outline-offset:2px}
.settings-columns{display:grid;grid-template-columns:1fr 1.5fr;gap:18px;margin-top:21px}
.segmented{display:flex;padding:3px;background:#232428;border-radius:6px;gap:3px}
.segmented label{flex:1;margin:0;cursor:pointer}
.segmented span{display:block;text-align:center;white-space:nowrap;padding:9px 5px;border-radius:4px;color:#b5bac1;font-size:12px;font-weight:700}
.segmented input:checked+span{background:#5865f2;color:#fff}
.bitrate-head{display:flex;justify-content:space-between;align-items:center;margin-top:22px}
.setting-badge{font-size:11px;color:#aeb6ff;background:#3a3e66;border-radius:20px;padding:4px 8px}
.setting-badge.custom{color:#ffd491;background:#5b4735}
.bitrate-controls{display:flex;align-items:center;gap:17px}
.bitrate-controls input[type=range]{flex:1;height:7px;padding:0;accent-color:#7d89ff;background:transparent;cursor:pointer}
.bitrate-number{display:flex;align-items:center;width:101px;border-radius:5px;background:#1e1f22;padding-right:10px}
.bitrate-number input{width:58px;text-align:right;padding:0 5px}
.bitrate-number span{font-size:12px;color:#b5bac1;white-space:nowrap}
.bitrate-foot{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:6px}
.bitrate-foot button{background:none;border:0;padding:0;color:#aeb6ff;font-size:12px}
.bitrate-foot button:hover{text-decoration:underline}
.bitrate-foot span{font-size:11px;color:#949ba4;text-align:right}
.settings-help{font-size:11px;line-height:1.5;color:#949ba4;margin:13px 0 0}
.stream-modal-footer{display:flex;justify-content:flex-end;gap:9px;padding:17px 28px;background:#2b2d31}
.stream-modal-footer button{padding:10px 15px}
.stream-modal-footer .primary{min-width:208px}

/* Controles independentes de cada vídeo */
.stream-controls{display:flex;align-items:center;gap:7px;padding:0 12px 12px;flex-wrap:wrap;flex:none}
.stream-controls button{height:29px;border:1px solid #4e5058;border-radius:4px;background:#383a40;color:#e5e6eb;padding:0 9px;font-size:11px;font-weight:700}
.stream-controls button:hover{background:#4b4e56}
.stream-controls button:focus-visible{outline:2px solid #8892ff}
.stream-controls .close-stream{margin-left:auto}
.stream-controls .volume-label{font-size:11px;color:#b5bac1}
.stream-controls .volume-slider{width:86px;height:6px;padding:0;accent-color:#8b94ff;cursor:pointer}
.stream-controls .volume-value{font-size:11px;color:#b5bac1;min-width:27px}
.member-watch{margin-left:auto;flex:none;border:0;border-radius:4px;background:#5865f2;color:#fff;font-size:11px;font-weight:700;padding:5px 8px}
.member-watch:hover{background:#4752c4}
.streams-grid.has-focus{overflow:auto}
.main-scroll.focus-mode{position:fixed;inset:0;z-index:30;width:100%;height:100vh;height:100dvh;padding:0;background:#111214;overflow:hidden}
.main-scroll.focus-mode .streams-grid{height:100%;overflow:hidden}
.main-scroll.focus-mode .stream-tile.is-focused{border:0;border-radius:0}
.main-scroll.focus-mode>.section-heading,.main-scroll.focus-mode>.empty-streams{display:none}
.layout-surface.is-previewing .stream-tile{transition:none}
.layout-surface.is-previewing .stream-tile.is-dragging{opacity:.5}
.tile-drag-handle{position:absolute;right:12px;top:10px;z-index:3;width:33px;height:29px;display:grid;place-items:center;border:1px solid #ffffff5c;border-radius:5px;background:#1d1e23d9;color:white;font-size:18px;line-height:1;cursor:grab;opacity:0;touch-action:none}
.tile-drag-handle:hover{background:#5865f2}
.stream-tile:hover .tile-drag-handle,.stream-tile:focus-within .tile-drag-handle{opacity:1}
.tile-drag-handle:active{cursor:grabbing}
.streams-grid.has-focus .tile-drag-handle{display:none}
.layout-divider{position:absolute;z-index:4;display:grid;place-items:center;touch-action:none}
.layout-divider.horizontal{cursor:col-resize}
.layout-divider.vertical{cursor:row-resize}
.layout-divider::after{content:"";display:block;border-radius:5px;background:#7d86ce88;opacity:0;transition:opacity .15s}
.layout-divider.horizontal::after{width:4px;height:46px;max-height:70%}
.layout-divider.vertical::after{height:4px;width:46px;max-width:70%}
.layout-divider:hover::after,.layout-divider:active::after{opacity:1}
.drag-ghost{position:fixed;z-index:50;pointer-events:none;padding:8px 12px;border:1px solid #aeb6ff;border-radius:6px;background:#292c50ed;color:white;font-size:12px;font-weight:700;box-shadow:0 8px 24px #0008;white-space:nowrap}
.focus-rail{position:absolute;left:0;right:0;bottom:14px;overflow-x:auto;overflow-y:hidden;scrollbar-color:#666973 transparent}
.focus-rail-inner{position:relative;height:100%}
.stream-tile.is-thumbnail .stream-overlay{opacity:1;pointer-events:none;background:linear-gradient(transparent,#111e)}
.stream-tile.is-thumbnail .stream-footer{padding:7px 10px}
.stream-tile.is-thumbnail .stream-footer span,.stream-tile.is-thumbnail .stream-controls{display:none}
.stream-tile.is-thumbnail{cursor:pointer}
.stream-tile.is-thumbnail:hover{border-color:#8792ff}
.stream-tile.is-thumbnail .stream-live{top:7px;left:8px}
.stream-tile:fullscreen{inset:0!important;width:100vw!important;height:100vh!important;display:flex;flex-direction:column;border:0;border-radius:0;background:#111}
@media(hover:none){.tile-drag-handle{opacity:1}}
@media(max-width:640px){.layout-actions label{display:none}.layout-actions select{max-width:135px}.connection-label{display:none}.section-heading h2{white-space:nowrap}}
.stream-tile:fullscreen{height:100vh;display:flex;flex-direction:column;border:0;border-radius:0;background:#111}
.stream-tile:fullscreen .stream-video-wrap{flex:1;min-height:0;aspect-ratio:auto}
.stream-tile:fullscreen video{object-fit:contain}
@media(max-width:640px){.stream-modal-header,.stream-modal-body,.stream-modal-footer{padding-left:18px;padding-right:18px}.resolution-options{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-columns{grid-template-columns:1fr}.bitrate-foot{align-items:flex-start;flex-direction:column}.stream-modal-footer .primary{min-width:0}}
.stream-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:none}
.stream-action{padding:9px 11px;white-space:nowrap;font-size:12px}



/* Barra de participantes recolhível */
.sidebar-collapsed .server-title{justify-content:center;padding:0}
.sidebar-collapsed .server-name,.sidebar-collapsed .sidebar-label,.sidebar-collapsed .sidebar-member-name,.sidebar-collapsed .profile-text,.sidebar-collapsed .profile-dots{display:none}
.sidebar-collapsed .channel-content{padding:10px 8px}
.sidebar-collapsed .sidebar-member{height:46px;justify-content:center;padding:0}
.sidebar-collapsed .sidebar-member .avatar{width:36px;height:36px;font-size:14px}
.sidebar-collapsed .sidebar-member .member-watch{position:absolute;right:0;bottom:1px;width:20px;height:20px;padding:0;overflow:hidden;font-size:0;border:2px solid #2b2d31;border-radius:50%}
.sidebar-collapsed .sidebar-member .member-watch::after{content:"▶";font-size:9px}
.sidebar-collapsed .profile-button{justify-content:center;padding:4px}
.sidebar-collapsed .profile-menu{left:calc(100% + 8px);right:auto;bottom:0;width:185px}

.native-audio-controls{margin-top:14px;padding:14px;border-radius:6px;background:#26272c}.native-audio-controls>label{display:block;font-size:11px;font-weight:700;color:#b5bac1;margin-bottom:8px}.audio-process-row{display:flex;gap:8px}.audio-process-row select{flex:1;min-width:0;background:#1e1f22;color:#f2f3f5;border:1px solid #4e5058;border-radius:4px;padding:9px}.audio-process-row button{flex:none}.native-audio-controls small{display:block;color:#b5bac1;margin-top:8px;line-height:1.4}


.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;margin-left:auto}
.profile-version{display:flex;flex-direction:column;gap:3px;border-top:1px solid #3a3c43;margin-top:5px;padding:9px 10px 5px;color:#949ba4;font-size:11px}
.profile-update{position:absolute;bottom:calc(100% + 7px);left:8px;right:8px;z-index:6;display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #6268a2;border-radius:8px;background:#252847;color:#fff;box-shadow:0 10px 28px #0009;animation:update-rise .2s ease-out}
.profile-update strong{font-size:12px;line-height:1.35}
.profile-update progress{width:100%;height:7px;accent-color:#8792ff}
.profile-update button{align-self:flex-start;border:0;border-radius:4px;background:#5865f2;color:white;font-size:11px;font-weight:700;padding:7px 10px}
.profile-update button:hover{background:#4752c4}
.profile-wrap:has(.profile-menu:not(.hidden)) .profile-update{display:none}
.sidebar-collapsed .profile-update{right:auto;width:220px}
@keyframes update-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
#update-app:disabled{opacity:.5;cursor:default}
@media(max-width:900px){.topbar{flex-wrap:wrap;padding:7px 15px}.header-actions{width:100%;margin-left:0}.action-copy{flex:1;max-width:none}}
@media(max-width:560px){.room-code-caption{display:none}.stream-actions{flex-wrap:wrap}.stream-action{white-space:normal}.action-copy{font-size:11px}}

.stream-tile.is-thumbnail:focus-visible{outline:2px solid #aeb6ff;outline-offset:-2px}
@media(max-width:420px){.layout-actions select{max-width:105px}}
.streams-grid:not(.has-focus) .stream-video-wrap video{cursor:grab}

.focus-exit{position:absolute;top:16px;right:18px;z-index:34;display:flex;align-items:center;gap:10px;padding:9px 13px;border:1px solid #ffffff55;border-radius:7px;background:#17181bd9;color:#fff;font-size:12px;font-weight:800;box-shadow:0 5px 20px #0008;opacity:0;pointer-events:none;transform:translateY(-5px);transition:opacity .16s,transform .16s}
.main-scroll.focus-mode:has(.stream-tile.is-focused:hover) .focus-exit,.focus-exit:hover,.focus-exit:focus-visible{opacity:1;pointer-events:auto;transform:none}
.focus-exit:hover,.focus-exit:focus-visible{background:#5865f2}
.focus-exit span{font-size:19px;line-height:1}
.focus-participants{position:absolute;left:14px;top:50%;transform:translateY(-50%);z-index:34;display:flex;flex-direction:column;align-items:center;gap:8px;max-height:calc(100% - 230px);padding:3px}
.focus-pin{width:42px;height:32px;flex:none;border:1px solid #777d9f;border-radius:7px;background:#252735e8;color:#fff;font-size:20px;line-height:1;cursor:pointer;box-shadow:0 3px 10px #0008;opacity:0;pointer-events:none;transform:translateY(-5px);transition:opacity .16s,transform .16s}
.focus-pin:hover,.focus-pin:focus-visible,.focus-participants.is-pinned .focus-pin{background:#5865f2}
.focus-participants:hover .focus-pin,.focus-participants:focus-within .focus-pin{opacity:1;pointer-events:auto;transform:none}
.focus-pin svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s}
.focus-participants:not(.is-pinned) .focus-pin svg{transform:rotate(40deg)}
.focus-participants:not(.is-pinned):not(:hover):not(:focus-within) .focus-members{opacity:0;visibility:hidden;pointer-events:none;transform:translateX(-10px)}
.focus-members{display:flex;flex-direction:column;gap:9px;max-height:calc(100dvh - 260px);overflow-y:auto;overflow-x:visible;padding:5px;scrollbar-width:thin;transition:opacity .16s,transform .16s,visibility .16s}
.focus-person{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px}
.focus-person .focus-avatar{width:42px;height:42px;display:grid;place-items:center;flex:none;border:2px solid #111214;border-radius:50%;color:#fff;font-size:14px;font-weight:800;box-shadow:0 3px 9px #0008}
.focus-person.is-focused .focus-avatar{outline:2px solid #9fa9ff}
.focus-person button.focus-avatar{cursor:pointer}
.focus-person button.focus-avatar:hover,.focus-person button.focus-avatar:focus-visible{border-color:#d5daff;transform:scale(1.05)}
.focus-person.is-streaming::after{content:"";position:absolute;right:1px;bottom:0;width:9px;height:9px;border:2px solid #111214;border-radius:50%;background:#ed4245;pointer-events:none}
.stream-controls .volume-icon{width:24px;height:26px;display:grid;place-items:center;padding:2px;border:0;background:transparent;color:#c9d1ff}
.stream-controls .volume-icon:hover,.stream-controls .volume-icon:focus-visible{background:#4b4e56}
.stream-controls .volume-icon.is-muted{color:#f3a2a4}
.stream-controls .volume-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.drop-guides{position:absolute;z-index:7;pointer-events:none;box-sizing:border-box;border:2px dashed #b8c1ff;background:linear-gradient(90deg,transparent calc(32% - 1px),#aeb6ff88 32%,transparent calc(32% + 1px),transparent calc(68% - 1px),#aeb6ff88 68%,transparent calc(68% + 1px)),linear-gradient(transparent calc(32% - 1px),#aeb6ff88 32%,transparent calc(32% + 1px),transparent calc(68% - 1px),#aeb6ff88 68%,transparent calc(68% + 1px))}
.drop-guides::before{content:"";position:absolute;background:#7986ff55}
.drop-guides[data-side="left"]::before{inset:0 68% 0 0}
.drop-guides[data-side="right"]::before{inset:0 0 0 68%}
.drop-guides[data-side="top"]::before{inset:0 0 68%}
.drop-guides[data-side="bottom"]::before{inset:68% 0 0}
.drop-guides[data-side="center"]::before{inset:32%}
.drop-guides::after{content:attr(data-label);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:6px 10px;border-radius:5px;background:#333c8de8;color:#fff;font-size:12px;font-weight:800;white-space:nowrap;box-shadow:0 3px 10px #0009}
@media(hover:none){.focus-participants:not(.is-pinned) .focus-members{visibility:visible;opacity:1;pointer-events:auto;transform:none}.focus-pin,.main-scroll.focus-mode .focus-exit{opacity:1;pointer-events:auto;transform:none}}
@media(max-width:640px){.focus-participants{left:8px}.focus-person .focus-avatar{width:34px;height:34px}.focus-pin{width:34px}.focus-exit{top:9px;right:9px}}
