/* Peer-assisted screen share UI. Shows seed upload explicitly before opt-in. */
#screen-swarm{margin:19px 0 14px;padding:16px 12px;border:1px solid #bca88a44;
  border-radius:12px;background:linear-gradient(135deg,#11232ac9,#101a25b3)}
#screen-swarm h3{margin:0 0 12px!important;font-size:13px;letter-spacing:.02em;color:#e5cdaa}
.screen-swarm-source{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  padding:12px 10px;border:1px solid #af9f7c4d;border-radius:9px;background:#1b2b37}
.screen-swarm-source strong{flex:1;font-size:12px;color:#eff2f2;overflow-wrap:anywhere}
.screen-swarm-source small{font-size:10px;color:#8bc8ae}
.screen-swarm-source button{flex:1 1 100%;cursor:pointer;border-radius:7px;min-height:36px;
  border:1px solid #bcab864a;background:#c7ad80;color:#17252b;font-size:11px;font-weight:700}
.screen-swarm-source button:hover{background:#e1cc9f}
.screen-swarm-empty{margin:0 0 10px;color:#8cacc0;font-size:11px}
.screen-swarm-info{margin:11px 0 0;color:#90a6b3;font-size:10px;line-height:1.6}
#share:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:780px){#screen-swarm{margin:12px 0}}

#screen-swarm h3{display:flex;align-items:center;justify-content:space-between;gap:6px}
#screen-swarm .screen-info-trigger{flex:0 0 22px;width:22px;height:22px;min-height:0;padding:0;border:1px solid #72938e;border-radius:50%;background:transparent;color:inherit;font-weight:700;line-height:20px;cursor:pointer}
.screen-info-dialog{max-width:min(420px,90vw);color:#d4e4e3;background:#14272b;border:1px solid #42635e;border-radius:12px;padding:18px}
.screen-info-dialog p{line-height:1.6}
.screen-output-label{display:block;font-size:12px;margin:8px 0;color:inherit}
.screen-output-label select{display:block;width:100%;max-width:100%;margin-top:4px;background:#102522;color:#d4e4e3;border:1px solid #42635e;border-radius:7px;padding:6px}
.screen-output-label option{background:#102522;color:#d4e4e3}

/* Viewer-only output routing, beside Close; native video fullscreen remains. */
.stream-viewer .gl-viewer-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:10px;width:100%;min-width:0}
.stream-viewer .gl-viewer-toolbar #gl-viewer-close{flex:0 0 auto;min-height:36px}
.stream-viewer .gl-viewer-toolbar .gl-viewer-audio-output{display:flex;align-items:center;gap:8px;flex:1 1 260px;max-width:520px;margin:0;min-width:0;font-size:12px;line-height:1.3}
.stream-viewer .gl-viewer-toolbar .gl-viewer-audio-output select{flex:1 1 140px;width:auto;min-width:0;margin:0;min-height:36px;padding:6px 9px}
.stream-viewer .gl-viewer-toolbar .gl-viewer-audio-output[hidden]{display:none!important}
body[data-gl-theme=light] .stream-viewer .gl-viewer-audio-output select{background:#eef5f2;color:#254f43;border-color:#a6c7bb}
@media(max-width:480px){.stream-viewer .gl-viewer-toolbar .gl-viewer-audio-output{flex-wrap:wrap;flex-basis:100%}.stream-viewer .gl-viewer-toolbar .gl-viewer-audio-output select{flex-basis:100%}}
