:root{color-scheme:dark;--bg:#0b0a10;--surface:#13121b;--surface2:#1a1924;--line:#2a2837;--muted:#9691a9;--text:#f5f3fb;--purple:#914cff;--purple2:#b785ff;--green:#36d9a2;--red:#fb5b73;--radius:16px}
[hidden]{display:none!important}
.chat-pane-head{display:flex;align-items:center;gap:5px;padding:7px 9px;border-bottom:1px solid var(--line);min-height:34px}.chat-pane-head strong{font-size:10px}.chat-pane-head .spacer{flex:1}.chat-pane-head .icon-button{width:23px;height:23px;border:0;background:transparent}.chat-pane-head .icon-button svg{width:13px;height:13px}.floating-chat{position:fixed;z-index:65;min-width:260px;min-height:280px;resize:both;overflow:hidden;border:1px solid #74539a;border-radius:12px;background:#17141f;box-shadow:0 20px 60px #000b;display:flex}.floating-chat .chat-pane{height:100%;border:0}.floating-chat .chat-pane-head{cursor:move;background:#292033}.compact .chat-messages{line-height:1.25;padding:7px}.compact .message{margin-bottom:2px}.compact .chat-compose{padding:5px}
.picker-cats{display:flex;gap:3px;overflow:auto;padding:0 6px 6px}.picker-cats button{border:0;border-radius:5px;background:#312b3b;color:#aaa1b6;font-size:9px;padding:5px 7px;white-space:nowrap}.picker-cats button.active{background:#6f3daf;color:white}.picker-cell{position:relative;min-width:0}.picker-cell .picker-item{width:100%}.picker-star{position:absolute;top:1px;right:1px;background:#252032bf;border:0;border-radius:4px;color:#746880;font-size:10px}.picker-star.active{color:#e5c06b}
.auth-notice{margin:12px 0;padding:10px 12px;border:1px solid #8a5cc0;border-radius:8px;background:#352247;color:#f1ddff;font-size:12px;line-height:1.5}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}i[data-lucide],svg.lucide{width:18px;height:18px;stroke-width:1.8;flex:none}.app{min-height:100vh;display:flex}.sidebar{width:224px;flex:none;background:#101018;border-right:1px solid #24222e;display:flex;flex-direction:column;padding:24px 13px 18px;position:sticky;top:0;height:100vh;z-index:30}.brand{display:flex;gap:10px;align-items:center;padding:0 8px 33px}.brand-mark{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#8c42ed,#b674ff);display:grid;place-items:center;font:700 22px 'Space Grotesk';position:relative;box-shadow:0 6px 22px #8c42ed55}.brand-mark span{font-size:12px;position:absolute;right:3px;top:3px}.brand-word{font:700 20px 'Space Grotesk';letter-spacing:-1.2px;line-height:1}.brand-word>span{color:#b685ff}.brand-word small{display:block;color:#696477;font:700 8px 'DM Sans';letter-spacing:2px;margin-top:6px}.nav-label{color:#625e72;font-size:10px;font-weight:700;letter-spacing:1.8px;padding:0 15px;margin:2px 0 10px}.nav-item{border:0;background:transparent;color:#a7a3b8;width:100%;height:43px;display:flex;align-items:center;gap:13px;padding:0 13px;border-radius:9px;text-align:left;font-size:13px;font-weight:600;margin:2px 0;transition:.16s}.nav-item:hover{background:#201d2d;color:white}.nav-item.active{background:#35224d;color:#cfadff}.nav-item.active svg{color:#aa70ff}.nav-count{margin-left:auto;background:#242130;color:#bbb5ca;padding:2px 6px;border-radius:6px;font-size:10px}.sidebar-bottom{margin-top:auto}.account{margin:19px 3px 0;border-top:1px solid var(--line);padding:18px 7px 0;display:flex;align-items:center;gap:9px;cursor:pointer}.account-avatar,.profile-button{display:grid;place-items:center;background:#2b243a;border:1px solid #493363;color:#be92ff;border-radius:10px;width:34px;height:34px;flex:none;overflow:hidden}.account-avatar img,.profile-button img{width:100%;height:100%;object-fit:cover}.account strong{font-size:11px;display:block}.account small{font-size:9px;color:var(--muted);display:block;margin-top:2px}.account>svg:last-child{width:13px;margin-left:auto;color:#777}.main{min-width:0;flex:1}.topbar{height:65px;border-bottom:1px solid #22202b;display:flex;align-items:center;justify-content:space-between;padding:0 35px;position:sticky;top:0;background:#0b0a10ec;backdrop-filter:blur(18px);z-index:20}.crumb{color:#5e5a6b;font-size:11px;letter-spacing:1.5px;font-weight:700;display:flex;align-items:center;gap:10px}.crumb svg{width:12px}.crumb span{color:#d8d4e1}.top-actions{display:flex;align-items:center;gap:14px}.status-pill{font-size:10px;color:#aaa5b9;font-weight:700;letter-spacing:.2px;display:flex;align-items:center;gap:6px}.status-dot{width:7px;height:7px;background:#6d687a;border-radius:50%}.status-pill.connected .status-dot{background:var(--green);box-shadow:0 0 8px var(--green)}.button{border:1px solid #3a3447;border-radius:9px;background:#22202d;color:#eeeaf6;padding:9px 13px;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;transition:.15s}.button:hover{border-color:#7047a5;background:#30263d}.button svg{width:15px;height:15px}.button-primary{background:var(--purple);border-color:var(--purple);color:white;box-shadow:0 5px 20px #7a39dd29}.button-primary:hover{background:#a45fff;border-color:#a45fff}.button-quiet{background:transparent;border-color:var(--line)}.button-danger{color:#ff9bad;border-color:#64404a}.profile-button{border-radius:50%;cursor:pointer}.view{padding:30px 35px 60px;max-width:1900px;margin:auto}.eyebrow{font-size:10px;color:#b68cff;font-weight:800;letter-spacing:2px;text-transform:uppercase}.page-title{font:700 clamp(24px,3vw,34px) 'Space Grotesk';letter-spacing:-1.3px;margin:5px 0 6px}.page-sub{color:#9691a7;font-size:13px;margin:0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:27px 0 14px}.section-head h2{font:700 16px 'Space Grotesk';margin:0}.section-head p{font-size:11px;color:var(--muted);margin:5px 0 0}.section-head a,.text-button{color:#ba91ff;font-size:11px;font-weight:700;background:none;border:0}.hero{min-height:207px;border:1px solid #4a346e;background:radial-gradient(circle at 84% 34%,#5a318366,transparent 38%),linear-gradient(115deg,#21142f,#191325 72%);border-radius:19px;display:flex;justify-content:space-between;overflow:hidden;position:relative;padding:30px 35px}.hero h1{font:700 clamp(27px,3vw,41px) 'Space Grotesk';letter-spacing:-1.8px;line-height:1.1;margin:11px 0 10px}.hero h1 span{color:#c392ff}.hero p{font-size:12px;color:#b4aac4;max-width:500px;line-height:1.6;margin:0 0 19px}.hero-actions{display:flex;gap:9px}.hero-art{width:260px;height:160px;position:relative;align-self:center;margin-right:45px}.hero-art .screen{position:absolute;border:2px solid #7d4ec4;background:#1f1830;border-radius:9px;box-shadow:0 17px 40px #08050e99}.hero-art .screen.one{width:172px;height:100px;left:24px;top:10px;transform:rotate(-10deg)}.hero-art .screen.two{width:172px;height:100px;left:94px;top:50px;transform:rotate(8deg);background:linear-gradient(140deg,#5a328c,#252035)}.hero-art .screen:before{content:'';position:absolute;left:11px;top:11px;width:45%;height:5px;border-radius:5px;background:#9769d5}.hero-art .screen:after{content:'▶';display:grid;place-items:center;position:absolute;left:40%;top:35%;width:34px;height:34px;background:#ab6bff;border-radius:50%;font-size:14px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.stat{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:17px 18px;min-height:90px}.stat-top{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.stat-icon{width:30px;height:30px;border-radius:8px;background:#2f2141;color:#b98bff;display:grid;place-items:center}.stat-icon svg{width:16px}.stat strong{font:700 24px 'Space Grotesk';display:block;margin-top:8px}.stat small{color:var(--muted);font-size:10px}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:13px}.channel-card,.event-card,.layout-card{background:var(--surface);border:1px solid var(--line);border-radius:13px;overflow:hidden;transition:.18s}.channel-card:hover,.event-card:hover,.layout-card:hover{border-color:#6a488b;transform:translateY(-2px)}.channel-cover{height:115px;background:linear-gradient(140deg,#322045,#171723);position:relative;display:grid;place-items:center;overflow:hidden}.channel-cover img{width:100%;height:100%;object-fit:cover}.channel-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 55%,#0d0b16b0)}.live-tag,.offline-tag{position:absolute;z-index:1;left:10px;top:10px;background:#fa4169;color:white;font-size:9px;font-weight:800;padding:4px 7px;border-radius:5px;letter-spacing:.5px}.offline-tag{background:#4d4858}.viewers{position:absolute;z-index:1;right:10px;bottom:8px;font-size:10px;background:#101019bf;padding:3px 5px;border-radius:4px}.channel-body{padding:13px}.channel-row{display:flex;gap:10px;align-items:center}.avatar{width:30px;height:30px;background:#352648;color:#c29afa;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:800;overflow:hidden;flex:none}.avatar img{width:100%;height:100%;object-fit:cover}.channel-body strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.channel-body p{color:#b3aebf;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:3px 0 0}.channel-footer{display:flex;gap:7px;margin-top:12px}.channel-footer .button{flex:1;padding:7px}.icon-button{width:33px;height:33px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:#23202e;color:#bcb5cd;flex:none}.icon-button:hover,.icon-button.selected{color:#d5b5ff;border-color:#8c59c5}.icon-button svg{width:16px;height:16px}.empty{border:1px dashed #393246;border-radius:14px;background:#14121b;text-align:center;padding:42px 25px;color:var(--muted)}.empty svg{width:28px;height:28px;color:#b184eb;margin-bottom:9px}.empty h3{font:700 17px 'Space Grotesk';color:white;margin:0 0 6px}.empty p{font-size:12px;max-width:400px;margin:0 auto 15px;line-height:1.6}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:19px 0 15px}.toolbar .spacer{flex:1}.select,.field{border:1px solid #363141;border-radius:9px;background:#1b1925;color:#eeeaf6;padding:9px 11px;outline:none;font-size:12px}.field:focus,.select:focus,textarea:focus{border-color:#9459d3}.search-field{position:relative}.search-field svg{position:absolute;left:11px;top:10px;width:15px;color:#817a91}.search-field input{padding-left:33px;width:min(300px,70vw)}.workspace{display:flex;gap:13px;min-height:520px}.stream-area{flex:1;min-width:0}.stream-grid{display:grid;gap:11px;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.stream-grid[data-count="1"]{grid-template-columns:1fr}.stream-grid[data-count="3"]{grid-template-columns:repeat(2,1fr)}.stream-grid[data-count="3"] .stream-card:first-child{grid-row:span 2}.stream-grid[data-count="5"]{grid-template-columns:repeat(3,1fr)}.stream-grid[data-count="5"] .stream-card:first-child{grid-row:span 2;grid-column:span 2}.stream-grid[data-count="6"]{grid-template-columns:repeat(3,1fr)}.stream-grid[data-count="8"],.stream-grid[data-count="12"]{grid-template-columns:repeat(4,1fr)}.stream-grid[data-count="9"]{grid-template-columns:repeat(3,1fr)}.stream-grid.focus-grid{grid-template-columns:repeat(4,1fr)}.stream-grid.focus-grid .stream-card.focused{grid-column:span 3;grid-row:span 3}.stream-card{border:1px solid #343043;border-radius:12px;background:#15121c;overflow:hidden;min-width:0;position:relative}.stream-card.dragging{opacity:.5}.stream-head{height:41px;display:flex;align-items:center;gap:7px;padding:0 10px;background:#1d1a28;cursor:grab}.stream-head strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stream-head .avatar{width:22px;height:22px;font-size:9px}.stream-head .live-dot{width:6px;height:6px;border-radius:50%;background:#fa4669}.stream-head .spacer{flex:1}.stream-head button{border:0;background:none;color:#a9a0b9;padding:3px;display:grid;place-items:center}.stream-head button:hover,.stream-head button.active{color:#c99dff}.stream-head svg{width:14px;height:14px}.stream-player{aspect-ratio:16/9;min-height:215px;background:#07070a;position:relative}.stream-player>div{width:100%;height:100%;position:absolute;inset:0}.stream-player iframe{width:100%;height:100%;border:0}.stream-info{padding:9px 11px;display:flex;align-items:center;gap:9px}.stream-info .meta{min-width:0;flex:1}.stream-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.stream-info small{color:var(--muted);font-size:9px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.stream-info input[type=range]{width:65px;accent-color:#aa69ff}.chat-dock{width:330px;flex:none;border:1px solid var(--line);border-radius:12px;background:#14121c;display:flex;flex-direction:column;min-height:510px;max-height:calc(100vh - 180px)}.chat-dock.wide{width:500px}.dock-top{display:flex;align-items:center;justify-content:space-between;padding:11px;border-bottom:1px solid var(--line);gap:8px}.dock-top strong{font:700 12px 'Space Grotesk'}.chat-tabs{display:flex;gap:4px;overflow:auto;padding:7px;border-bottom:1px solid var(--line)}.chat-tab{border:0;border-radius:6px;padding:6px 8px;background:transparent;color:#8f899f;font-size:10px;white-space:nowrap}.chat-tab.active{background:#332444;color:#d1b0ff}.chat-content{display:flex;flex:1;min-height:0}.chat-pane{display:flex;flex-direction:column;flex:1;min-width:0;border-right:1px solid var(--line)}.chat-pane:last-child{border:0}.chat-messages{overflow-y:auto;flex:1;padding:10px;font-size:var(--chat-size,12px);line-height:1.55}.message{margin-bottom:6px;word-break:break-word}.message.mod{border-left:2px solid #7e61d4;padding-left:6px}.message.mention{background:#3b2847;border-radius:4px;padding:3px}.message time{color:#696476;font-size:9px;margin-right:5px}.message .name{font-weight:800;margin-right:5px}.message img.emote{height:1.8em;max-width:90px;vertical-align:middle;object-fit:contain}.message img.badge{width:16px;height:16px;vertical-align:middle;margin-right:2px}.chat-system{color:#a08fac;font-style:italic;margin:8px 0}.chat-compose{border-top:1px solid var(--line);padding:8px;position:relative}.chat-compose form{display:flex;gap:5px}.chat-compose input{min-width:0;flex:1;border:1px solid #393344;border-radius:7px;background:#211e2b;color:#fff;padding:8px;font-size:11px}.chat-compose button{border:0;background:#6f3db4;color:white;border-radius:7px;width:29px;display:grid;place-items:center}.chat-compose button svg{width:15px}.chat-hint{font-size:9px;color:#857d93;margin:6px 0 0}.chat-empty{display:grid;place-content:center;text-align:center;flex:1;padding:18px;color:#918a9e;font-size:11px}.chat-empty svg{margin:auto auto 9px;color:#b186e8}.picker{position:absolute;bottom:44px;left:8px;right:8px;max-height:300px;background:#262231;border:1px solid #66527d;border-radius:10px;box-shadow:0 10px 30px #0008;z-index:15;display:flex;flex-direction:column}.picker-head{padding:8px;display:flex;gap:6px}.picker-head input{width:100%;background:#15121d;color:white;border:1px solid #433b4f;border-radius:6px;padding:6px}.picker-list{overflow:auto;padding:5px;display:grid;grid-template-columns:repeat(5,1fr);gap:3px}.picker-item{background:transparent;border:0;color:#bbb4c8;display:grid;justify-items:center;gap:3px;padding:5px 2px;border-radius:5px;overflow:hidden}.picker-item:hover,.picker-item:focus{background:#443453}.picker-item img{height:27px;max-width:37px;object-fit:contain}.picker-item small{font-size:8px;overflow:hidden;max-width:100%;white-space:nowrap}.multistream-full .sidebar,.multistream-full .topbar{display:none}.multistream-full .view{max-width:none;padding:10px}.multistream-full .chat-dock{max-height:calc(100vh - 20px)}.custom-canvas{position:relative;min-height:690px;border:1px dashed #524664;border-radius:12px;background-image:radial-gradient(#393044 1px,transparent 1px);background-size:18px 18px}.custom-canvas .stream-card{position:absolute;width:48%;height:320px}.custom-canvas .stream-player{height:calc(100% - 86px);aspect-ratio:auto;min-height:0}.custom-canvas .resize-grip{position:absolute;right:0;bottom:0;width:18px;height:18px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 50%,#9e70d4 52%)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-row{display:flex;flex-direction:column;gap:6px}.form-row label{font-size:11px;color:#b8b1c5;font-weight:700}.form-row input,.form-row textarea,.form-row select{width:100%;background:#1c1926;border:1px solid #383142;border-radius:8px;color:#fff;padding:10px;font-size:12px;outline:none}.form-row textarea{min-height:82px;resize:vertical}.panel{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:19px;margin:16px 0}.panel h3{font:700 15px 'Space Grotesk';margin:0 0 7px}.panel p{font-size:11px;color:var(--muted);line-height:1.6}.event-card{padding:16px}.event-card h3{font:700 16px 'Space Grotesk';margin:8px 0 5px}.event-card p{font-size:11px;color:var(--muted);min-height:34px}.event-card .event-icon{width:39px;height:39px;background:#422b61;border-radius:9px;color:#d6b7ff;display:grid;place-items:center}.event-card .event-footer{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:#8b849a;font-size:10px}.event-select-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:9px;margin-top:16px}.event-select{border:1px solid var(--line);border-radius:9px;padding:10px;background:#191720;display:flex;align-items:center;gap:8px}.event-select strong{font-size:11px}.event-select small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.event-select input{accent-color:#9657d8}.layout-card{padding:15px;cursor:pointer}.layout-preview{height:98px;border-radius:8px;background:#201b2a;display:grid;gap:3px;padding:8px;margin-bottom:12px}.layout-preview span{background:#6e469d;border-radius:3px}.layout-card strong{font-size:12px}.layout-card small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.modal-backdrop{position:fixed;inset:0;background:#000b;display:grid;place-items:center;z-index:80;padding:15px}.modal{width:min(490px,100%);background:#191621;border:1px solid #55436b;border-radius:16px;padding:21px;box-shadow:0 20px 80px #000b;max-height:90vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.modal-head h2{font:700 20px 'Space Grotesk';margin:0}.modal-head button{background:none;border:0;color:#aba3b9}.modal .form-row{margin-bottom:12px}.modal-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:15px}.modal-results{max-height:260px;overflow:auto}.result-row{display:flex;align-items:center;gap:9px;padding:8px;border-bottom:1px solid #2b2634}.result-row>span{flex:1;font-size:11px}.result-row small{display:block;color:var(--muted)}.toast-area{position:fixed;right:18px;bottom:18px;z-index:100;display:grid;gap:8px}.toast{background:#2b2237;border:1px solid #6b4a8d;color:white;border-radius:9px;padding:11px 15px;box-shadow:0 10px 30px #0008;font-size:12px;max-width:340px}.toast.error{border-color:#9c405a}.mobile-only{display:none}.muted{color:var(--muted)}.split{display:flex;justify-content:space-between;align-items:center;gap:12px}.checkline{display:flex;align-items:center;gap:8px;font-size:11px;color:#c3bbcf}.checkline input{accent-color:#9d64eb}.loading{opacity:.6}.divider{height:1px;background:var(--line);margin:16px 0}
@media(max-width:1100px){.sidebar{width:65px;padding:20px 8px}.brand{padding:0 6px 35px}.brand-word,.nav-label,.nav-item span,.account span:not(.account-avatar),.account>svg:last-child{display:none}.nav-item{justify-content:center;padding:0}.account{justify-content:center}.view{padding:25px}.topbar{padding:0 25px}.chat-dock{width:300px}.hero-art{margin-right:0}}
@media(max-width:760px){.sidebar{position:fixed;width:230px;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar .brand-word,.sidebar .nav-label,.sidebar .nav-item span,.sidebar .account span:not(.account-avatar),.sidebar .account>svg:last-child{display:block}.sidebar .nav-item{justify-content:flex-start;padding:0 13px}.mobile-only{display:grid}.topbar{height:58px;padding:0 14px}.crumb{margin-right:auto;margin-left:10px}.status-pill{display:none}.top-actions{gap:7px}.top-actions .button span{display:none}.view{padding:17px 14px 45px}.hero{padding:24px;min-height:0}.hero-actions{flex-wrap:wrap}.hero-art{display:none}.stats{grid-template-columns:repeat(2,1fr)}.workspace{display:block}.chat-dock,.chat-dock.wide{width:100%;margin-top:12px;height:450px;max-height:none}.stream-grid,.stream-grid[data-count],.stream-grid.focus-grid{grid-template-columns:1fr}.stream-grid[data-count="3"] .stream-card:first-child,.stream-grid[data-count="5"] .stream-card:first-child,.stream-grid.focus-grid .stream-card.focused{grid-column:auto;grid-row:auto}.stream-player{min-height:0}.form-grid{grid-template-columns:1fr}.custom-canvas .stream-card{min-width:280px}.toolbar .spacer{display:none}}

/* Free layout uses one bounded stage, including in theater mode. */
.custom-only[hidden],.resize-handle[hidden]{display:none!important}
.custom-hint{font-size:11px}
.custom-canvas{height:clamp(520px,72dvh,850px);min-height:0;overflow:hidden;touch-action:none}
.custom-canvas .stream-card{min-width:0;min-height:0;display:flex;flex-direction:column}
.custom-canvas .stream-head{flex:none;cursor:move;touch-action:none}
.custom-canvas .stream-player{height:auto;min-height:0;flex:1}
.custom-canvas .stream-info{flex:none}
.resize-handle{position:absolute;z-index:5;width:22px;height:22px;touch-action:none}
.resize-handle.nw{top:0;left:0;cursor:nwse-resize}
.resize-handle.ne{top:0;right:0;cursor:nesw-resize}
.resize-handle.sw{bottom:0;left:0;cursor:nesw-resize}
.resize-handle.se{bottom:0;right:0;cursor:nwse-resize}
.resize-handle::after{content:"";position:absolute;inset:5px;border:2px solid #c99dff;opacity:.85}
.resize-handle.nw::after{border-right:0;border-bottom:0}
.resize-handle.ne::after{border-left:0;border-bottom:0}
.resize-handle.sw::after{border-right:0;border-top:0}
.resize-handle.se::after{border-left:0;border-top:0}
.multistream-full .view{height:100dvh;max-width:none;margin:0;padding:10px;display:flex;flex-direction:column;overflow:hidden}
.multistream-full .view>.split{flex:none}
.multistream-full .page-title{font-size:23px}
.multistream-full .page-sub{display:none}
.multistream-full .toolbar{flex:none;margin:6px 0 9px}
.multistream-full .workspace{flex:1;min-height:0;overflow:hidden}
.multistream-full .stream-area{min-height:0;overflow:hidden}
.multistream-full .custom-canvas{height:100%;min-height:0}
.multistream-full .stream-grid{height:100%;min-height:0;grid-auto-rows:minmax(0,1fr);align-content:stretch;overflow:hidden}
.multistream-full .stream-grid .stream-card{min-height:0;display:flex;flex-direction:column}
.multistream-full .stream-grid .stream-player{height:auto;min-height:0;aspect-ratio:auto;flex:1}
.multistream-full .stream-grid .stream-info{flex:none}
.multistream-full .chat-dock{height:100%;min-height:0;max-height:none}
@media(max-width:760px){.custom-canvas .stream-card{min-width:0}.multistream-full .workspace{display:flex;flex-direction:column}.multistream-full .chat-dock{display:none}}

.brand-logo{width:38px;height:38px;object-fit:contain;flex:none;border-radius:11px}
.main{display:flex;flex-direction:column;min-height:100vh}
.main>.view{width:100%;flex:1;margin:0 auto}
.site-footer{width:calc(100% - 70px);max-width:1830px;margin:28px auto 20px;padding:17px 0 0;border-top:1px solid var(--line);color:#868195;font-size:10px;line-height:1.55}
.site-footer h2{margin:0 0 10px;color:#c8c2d4;font:700 12px 'Space Grotesk'}
.site-footer p{margin:0 0 8px}
.site-footer strong{color:#aaa3b9}
.site-footer a{color:#b992ef;text-decoration:underline;text-underline-offset:2px}
.impressum-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px}
.multistream-full .site-footer{display:none}
.multistream-full .main{height:100dvh;min-height:0}
.multistream-full .main>.view{flex:1;min-height:0}
@media(max-width:1100px){.site-footer{width:calc(100% - 50px)}.impressum-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.site-footer{width:calc(100% - 28px);margin-top:16px}.impressum-grid{grid-template-columns:1fr;gap:3px}}

/* Twitch requires at least 400 × 300 px for reliable embedded autoplay. */
.autoplay-notice{color:#d6b7ff;background:#2c203c;border:1px solid #60427b;border-radius:8px;padding:8px 10px;font-size:11px;line-height:1.3}
.tv-player-button{display:none}
.stream-grid .stream-player{width:100%;min-height:300px}
.multistream-full .stream-grid .stream-player{min-height:0}

/* Keep Twitch's normal 400 px player width on tablets and narrow desktops. */
.stream-area{container-type:inline-size}
@container (max-width:1620px){
  body:not(.multistream-full) .stream-grid[data-count="8"],body:not(.multistream-full) .stream-grid[data-count="12"]{grid-template-columns:repeat(3,minmax(0,1fr))}
  body:not(.multistream-full) .stream-grid.focus-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body:not(.multistream-full) .stream-grid.focus-grid .stream-card.focused{grid-column:span 2;grid-row:auto}
}
@container (max-width:1220px){
  body:not(.multistream-full) .stream-grid[data-count="5"],body:not(.multistream-full) .stream-grid[data-count="6"],body:not(.multistream-full) .stream-grid[data-count="8"],body:not(.multistream-full) .stream-grid[data-count="9"],body:not(.multistream-full) .stream-grid[data-count="12"]{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (max-width:820px){
  body:not(.multistream-full) .stream-grid,body:not(.multistream-full) .stream-grid[data-count],body:not(.multistream-full) .stream-grid.focus-grid{grid-template-columns:1fr}
  body:not(.multistream-full) .stream-grid[data-count="3"] .stream-card:first-child,body:not(.multistream-full) .stream-grid[data-count="5"] .stream-card:first-child,body:not(.multistream-full) .stream-grid.focus-grid .stream-card.focused{grid-column:auto;grid-row:auto}
}

/* Phone layout: keep every control reachable and scale Twitch's 400 px iframe. */
.nav-backdrop{display:none}
@media(max-width:760px){
  .app,.main{width:100%;min-width:0}
  .sidebar{z-index:61;width:min(82vw,300px);padding-top:max(20px,env(safe-area-inset-top))}
  .sidebar.open{box-shadow:12px 0 40px #000a}
  .nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:60;border:0;background:#000b}
  .topbar{position:sticky;top:0;z-index:20;background:#101018ee;backdrop-filter:blur(14px);padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .topbar .icon-button,.topbar .profile-button,.topbar #top-add{width:42px;height:42px;min-width:42px}
  .topbar .crumb{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .view{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .view>.split{flex-direction:column;align-items:flex-start;gap:10px}
  .view>.split>div{max-width:100%}
  .view>.split>.button{min-height:42px}
  .page-title{overflow-wrap:anywhere}
  .toolbar{gap:8px}
  .toolbar .button{min-height:42px}
  .toolbar .select{flex:1 1 100%;width:100%;min-height:44px}
  .toolbar .icon-button{width:42px;height:42px}
  .toolbar #stream-summary{margin-left:auto}
  .stream-head{padding:0 7px;gap:4px}
  .stream-head button{width:28px;height:30px;place-items:center}
  .stream-head strong{min-width:0}
  .stream-grid .stream-player{width:100%;height:300px;min-height:300px;aspect-ratio:auto}
  .chat-dock.empty{height:auto;min-height:0}
  .chat-dock.empty .chat-empty{min-height:150px;padding:18px}
  .chat-dock:not(.empty){height:min(68dvh,540px);min-height:320px}
  .dock-top [data-action="chat-mode"],.chat-pane-head [data-action="float-chat"]{display:none}
  .floating-chat{display:none}
  .chat-tab{min-height:38px;padding:9px 11px}
  .chat-compose input{font-size:16px}
  .event-select{flex-wrap:wrap}
  .event-select>div{min-width:0}
  .event-select .checkline{min-height:36px}
  .modal-backdrop{padding:12px}
  .modal{padding:16px;max-height:calc(100dvh - 24px)}
  .form-row input,.form-row textarea,.form-row select{font-size:16px}
  .multistream-full .view{height:100dvh;overflow-y:auto;overscroll-behavior:contain;padding:10px 12px 24px}
  .multistream-full .workspace{display:block;flex:none;overflow:visible}
  .multistream-full .stream-area,.multistream-full .stream-grid{height:auto;overflow:visible}
  .multistream-full .stream-grid{grid-auto-rows:auto}
  .multistream-full .stream-grid .stream-player{min-height:300px}
}

/* Ten-foot UI is opt-in with ?tv=1 and shares the normal website state. */
.tv-mode{font-size:18px}
.tv-mode .sidebar{position:sticky;top:0;transform:none;width:208px;height:100vh;padding:24px 12px}
.tv-mode .brand-word,.tv-mode .nav-label,.tv-mode .nav-item span,.tv-mode .account span:not(.account-avatar){display:block}
.tv-mode .nav-item{justify-content:flex-start;min-height:57px;height:auto;padding:9px 12px;font-size:16px}
.tv-mode .topbar{height:70px}
.tv-mode .view{max-width:none;padding:25px 30px 50px}
.tv-mode .toolbar{gap:12px}
.tv-mode .button,.tv-mode .select{min-height:48px;font-size:16px;padding:10px 15px}
.tv-mode .icon-button{width:48px;height:48px}
.tv-mode .stream-head{height:52px}
.tv-mode .stream-head strong{font-size:16px}
.tv-mode .stream-head button{min-width:40px;min-height:40px}
.tv-mode .stream-head svg{width:20px;height:20px}
.tv-mode .stream-info{min-height:56px}
.tv-mode .stream-info strong{font-size:15px}
.tv-mode .stream-info small{font-size:12px}
.tv-mode .tv-player-button{display:inline-flex;min-height:40px;font-size:13px;padding:7px 10px}
.tv-mode .stream-grid[data-count="3"] .stream-card:first-child,.tv-mode .stream-grid[data-count="5"] .stream-card:first-child{grid-row:auto;grid-column:auto}
.tv-mode .chat-dock{width:320px}
.tv-mode .modal{width:min(660px,90vw)}
.tv-mode .form-row input,.tv-mode .form-row textarea{font-size:18px;min-height:52px}
.tv-mode :is(button,a,input,select,textarea,iframe):focus-visible{outline:4px solid #d8a5ff;outline-offset:3px;z-index:2}
@media(max-width:1350px){.tv-mode .workspace{display:block}.tv-mode .chat-dock{width:100%;height:380px;max-height:none;margin-top:16px}.tv-mode .stream-grid,.tv-mode .stream-grid[data-count]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.tv-mode .sidebar{width:75px}.tv-mode .brand-word,.tv-mode .nav-label,.tv-mode .nav-item span,.tv-mode .account span:not(.account-avatar){display:none}.tv-mode .nav-item{justify-content:center}.tv-mode .stream-grid,.tv-mode .stream-grid[data-count]{grid-template-columns:1fr}.tv-mode .view{padding:18px}}
@media(max-width:350px){.stats{grid-template-columns:1fr}.topbar .crumb{font-size:10px}.stream-head button{width:26px}}
