Files
Kronic-Krusaders/CSS/borg_shell.css
T
2026-11-25 20:29:47 -06:00

455 lines
30 KiB
CSS

/* Stage 2 visual shell. Do not re-style existing media cards or player. */
:root{--borg-rail:170px;--borg-call:58px;--borg-top:60px}
body{background:#0c111a}
.borg-shell{position:fixed;inset:var(--borg-top) 0 0 0;display:flex;z-index:10;pointer-events:none}
.borg-rail{pointer-events:auto;display:flex;flex-direction:column;gap:5px;padding:12px 8px;background:#111a26;border-right:1px solid #2b394b;width:var(--borg-rail);box-sizing:border-box;overflow:auto}
.borg-brand{padding:11px;color:#e5efff;font-weight:800;letter-spacing:1.3px}
.borg-nav{display:flex;gap:10px;align-items:center;text-align:left;background:transparent;color:#c0cfe1;border:0;border-radius:11px;padding:12px 11px;font-size:14px;cursor:pointer;min-height:43px}
.borg-nav:hover,.borg-nav:focus-visible{background:#27374a;color:#fff}
.borg-selected{background:#2c466a;color:#fff}
.borg-rail-spacer{flex:1}
.borg-workspace{min-width:0;flex:1;display:flex;flex-direction:column;padding:12px;pointer-events:auto}
.borg-room-background{border:1px solid #26364b;background:radial-gradient(circle at 65% 30%,#1b2e41,#121d2a 67%);border-radius:17px;flex:1;display:flex;flex-direction:column;min-height:0}
.borg-room-heading{padding:13px 16px;display:flex;gap:15px;align-items:center;justify-content:space-between;color:#e2efff}
#borgChatStatus{font-size:12px;color:#9eafc3}
.borg-avatar-placeholder{margin:auto;text-align:center;color:#c9d7e9;padding:20px;max-width:480px}
.borg-avatar-placeholder h2{font-size:22px;margin:10px 0}
.borg-avatar-placeholder p{font-size:13px;color:#9db0c5}
.borg-avatar-circle{display:grid;place-items:center;width:74px;height:74px;border-radius:50%;background:#314a70;color:#e4edff;margin:auto;font-size:35px}
.borg-call-strip{height:var(--borg-call);min-height:var(--borg-call);display:flex;justify-content:space-between;gap:10px;align-items:center;background:#172434;border:1px solid #2b4059;border-radius:12px;padding:0 15px;margin-top:10px;color:#d1dced}
.borg-notice{font-size:12px;color:#9fb1c5}
.borg-window-wrap{position:fixed;top:calc(var(--borg-top) + 16px);left:calc(var(--borg-rail) + 19px);width:calc(100vw - var(--borg-rail) - 40px);height:calc(100dvh - var(--borg-top) - var(--borg-call) - 52px);z-index:30;background:#111923;border:1px solid #39516e;border-radius:16px;box-shadow:0 20px 65px #0009;display:flex;flex-direction:column;overflow:hidden;resize:both;min-width:320px;min-height:260px}
.borg-window-wrap[hidden]{display:none!important}
.borg-window-header{height:47px;min-height:47px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#1c2a3b;color:#e8f2ff;padding:0 12px;cursor:grab;touch-action:none;user-select:none}
.borg-window-header:active{cursor:grabbing}
.borg-window-actions{display:flex;gap:6px}.borg-window-actions button{min-width:34px;min-height:34px;border:0;background:#304258;color:white;border-radius:8px;cursor:pointer;font-size:20px}
.borg-window-wrap .page-container{position:relative!important;inset:auto!important;width:auto!important;max-width:none!important;flex:1;overflow:auto!important;min-height:0;margin:0!important;padding:12px!important;box-sizing:border-box}
.borg-window-wrap.borg-max{top:calc(var(--borg-top) + 5px)!important;left:calc(var(--borg-rail) + 5px)!important;width:calc(100vw - var(--borg-rail) - 10px)!important;height:calc(100dvh - var(--borg-top) - var(--borg-call) - 13px)!important;resize:none}
/* The original topbar and player overlay remain untouched. */
@media(max-width:700px){:root{--borg-rail:57px;--borg-top:55px;--borg-call:52px}.borg-rail{padding:6px 3px}.borg-brand{font-size:13px;padding:11px 4px}.borg-brand span,.borg-nav span{display:none}.borg-nav{justify-content:center;font-size:20px;padding:9px 3px;min-height:45px}.borg-workspace{padding:6px}.borg-room-heading{font-size:12px}.borg-call-strip{padding:0 8px}.borg-notice{font-size:10px;max-width:140px}.borg-window-wrap{left:62px;top:calc(var(--borg-top) + 5px);width:calc(100vw - 67px);height:calc(100dvh - var(--borg-top) - var(--borg-call) - 12px);min-width:0;min-height:150px;resize:none;border-radius:11px}.borg-window-wrap .page-container{padding:6px!important}.borg-window-wrap.borg-max{left:60px!important;width:calc(100vw - 62px)!important}}
/* Room media chooser: compact, independent, and non-modal on desktop. */
@media (min-width:701px) {
.borg-window-wrap:not(.borg-max) {
width:min(780px, calc((100vw - var(--borg-rail))*0.53));
height:min(650px, calc(100dvh - var(--borg-top) - var(--borg-call) - 42px));
max-width:calc(100vw - var(--borg-rail) - 24px);
max-height:calc(100dvh - var(--borg-top) - 18px);
}
}
/* Kronic window manager: chat and media browser are independent, non-modal panels. */
.borg-room-background {min-width:350px;}
.borg-split-layout .borg-room-background {width:50%; flex:0 0 50%; resize:horizontal; overflow:hidden; max-width:100%;}
.borg-split-layout .borg-call-strip {width:100%;}
.borg-window-wrap:not(.borg-max) {left:auto;right:18px;top:calc(var(--borg-top) + 12px);width:min(50vw,800px);height:min(72vh,690px);}
.borg-window-wrap[data-size="small"]:not(.borg-max) {width:min(27vw,490px);height:min(63vh,560px);}
.borg-window-wrap[data-size="wide"]:not(.borg-max) {width:min(71vw,1100px);height:min(82vh,790px);}
.borg-window-wrap[data-moved="1"] {right:auto;}
.borg-window-wrap .borg-window-header {cursor:grab;}
.borg-window-size-tools {display:flex;gap:4px;margin-left:auto;}
.borg-window-size-tools button {font-size:13px;min-width:30px;min-height:30px;border:1px solid #445a72;border-radius:7px;color:#ddeaff;background:#26374b;cursor:pointer;}
.borg-window-size-tools button:hover {background:#3b5674;}
.borg-window-header #borgWindowBack {margin-right:8px;flex-shrink:0;min-height:32px;padding:0 10px;background:#304258;color:white;border:1px solid #485d73;border-radius:7px;cursor:pointer;}
.borg-room-menu-trigger,.borg-room-quick-actions button {border:1px solid #425b76;border-radius:9px;background:#263c56;color:#ecf4ff;padding:9px 13px;cursor:pointer;}
.borg-room-quick-actions {display:flex;gap:6px;margin-right:auto;}
.borg-room-quick-actions #borgRoomLeave {background:#71313b;}
.borg-call-strip {justify-content:flex-start;}
.borg-call-strip .borg-notice {margin-left:auto;}
@media(max-width:900px){.borg-split-layout .borg-room-background{width:100%;flex:1;resize:none}.borg-window-wrap:not(.borg-max),.borg-window-wrap[data-size]:not(.borg-max){left:calc(var(--borg-rail) + 5px);right:5px;width:calc(100vw - var(--borg-rail) - 10px);height:60dvh}.borg-room-quick-actions{gap:3px}.borg-room-quick-actions button{padding:6px}}
/* Separate stacking and layout boundaries for every floating player. */
#borgWindowWrap {isolation:isolate;}
#playerWindow,.youtube-player-window,#twitchPlayerWindow,.music-player-window {isolation:isolate;contain:layout style;}
#kronicSiteBack[hidden]{display:none!important;}
.borg-player-size-tools{display:inline-flex;gap:3px;align-items:center;margin-right:7px}
.borg-player-size-tools button{padding:5px 7px;min-width:27px;background:#283d53;border:1px solid #49617c;color:#e9f4ff;border-radius:6px;font-size:12px;cursor:pointer}
@media(max-width:700px){.borg-player-size-tools{display:none}}
/* Compact unified header and room stage — no second lounge header. */
:root{--borg-top:52px;--borg-call:49px;}
body > .topbar {height:var(--borg-top)!important;min-height:var(--borg-top)!important;padding:5px 16px!important;position:relative!important;}
body > .topbar .site-title {font-size:19px!important;}
body > .topbar .topbar-left {width:100%;position:relative;justify-content:flex-end;}
body > .topbar .site-title {position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;z-index:1;}
body > .topbar .main-nav {margin-right:auto;}
.borg-room-heading {display:none!important;}
.borg-chat-host {height:100%;}
.borg-workspace {padding:6px 10px!important;}
.borg-room-background {flex:1;min-height:0;}
.borg-call-strip {margin-top:6px!important;padding:0 10px!important;gap:8px!important;}
.borg-audio-group {display:flex;align-items:center;gap:5px;min-width:0;}
.borg-audio-trigger {border:1px solid #425b76;border-radius:8px;background:#263c56;color:#e8f1fd;padding:7px 10px;cursor:pointer;white-space:nowrap;}
.borg-audio-trigger[aria-expanded="true"] {background:#425c83;}
@media(max-width:850px){body > .topbar .site-title{position:static;transform:none;font-size:15px!important}.borg-audio-trigger{padding:6px;font-size:11px}.borg-call-strip .borg-notice{display:none}}
@media(max-width:600px){.borg-audio-group{overflow-x:auto;max-width:65%;}.borg-room-quick-actions button{font-size:11px;padding:5px}.borg-workspace{padding:3px!important}}
/* Kronic 2026-11-04: one title bar, maximum usable room space. */
body > .topbar .site-title {pointer-events:auto;}
.borg-room-background {border-radius:12px;}
.borg-call-strip {flex-shrink:0;}
.borg-room-quick-actions #borgRoomLeave {background:#81333e;color:#fff;}
.borg-audio-trigger:focus-visible {outline:2px solid #90baff;outline-offset:2px;}
@media (max-width:1050px) {
body > .topbar .site-title {position:static;transform:none;margin-right:12px;font-size:16px!important;}
body > .topbar .topbar-left {justify-content:flex-start;}
body > .topbar .main-nav {margin-right:0;}
}
@media (max-width:700px) {
.borg-call-strip {overflow-x:auto;scrollbar-width:thin;white-space:nowrap;}
.borg-audio-group {flex-shrink:0;max-width:none;}
.borg-room-quick-actions {flex-shrink:0;}
}
/* 2026-11-04: stable split-room dimensions and left-aligned title. */
body > .topbar .topbar-left {
position:relative!important; display:flex!important; flex:1 1 auto!important;
width:auto!important; min-width:0!important; align-items:center!important;
justify-content:flex-start!important; gap:18px!important;
}
body > .topbar .site-title {
position:static!important; left:auto!important; top:auto!important;
transform:none!important; order:-1!important; z-index:auto!important;
display:inline-block!important; flex:0 0 auto!important;
margin:0 8px 0 0!important; font-size:19px!important; line-height:1.2!important;
}
body > .topbar .main-nav {margin:0!important; min-width:0; flex:0 1 auto;}
.borg-workspace {
flex:1 1 0!important; min-height:0!important; height:auto!important;
align-self:stretch!important; display:flex!important; flex-direction:column!important;
}
.borg-room-background {
position:relative!important; flex:1 1 auto!important; min-height:0!important;
width:100%; max-width:100%; min-width:0!important;
}
.borg-split-layout .borg-room-background {
flex:1 1 auto!important; align-self:flex-start!important;
width:50%; max-width:100%; height:auto!important; min-height:0!important;
resize:none!important; overflow:hidden!important;
}
.borg-call-strip {
flex:0 0 var(--borg-call)!important; width:100%!important;
margin-top:6px!important; margin-bottom:0!important;
box-sizing:border-box!important; align-self:stretch!important;
}
.borg-room-resize-grip {
position:absolute; right:0; top:50%; transform:translateY(-50%);
width:15px; height:85px; z-index:8;
display:none; place-items:center; border:1px solid #48627d;
background:#304963; border-radius:8px 0 0 8px;
color:#e5f0ff; cursor:ew-resize; touch-action:none;
box-shadow:-2px 0 12px #0005; user-select:none;
}
.borg-room-resize-grip::after {content:'⋮';font-size:21px;line-height:1;}
.borg-split-layout .borg-room-resize-grip {display:grid;}
@media(max-width:900px) {
.borg-split-layout .borg-room-background {
width:100%!important; flex:1 1 auto!important; align-self:stretch!important;
}
.borg-room-resize-grip {display:none!important;}
}
@media(max-width:700px) {
body > .topbar .topbar-left {gap:6px!important;}
body > .topbar .site-title {font-size:14px!important;margin-right:2px!important;}
}
/* Personal outgoing media-share switch in the fixed room-controls dock. */
.borg-media-share-toggle {
display:inline-flex; align-items:center; gap:8px; flex:0 0 auto;
padding:5px 10px; border:1px solid #48627d; border-radius:9px;
background:#263c56; color:#e8f1fd; cursor:pointer;
font-size:12px; line-height:1.2; white-space:nowrap; user-select:none;
}
.borg-media-share-toggle input {
position:absolute; width:1px; height:1px; opacity:0; pointer-events:none;
}
.borg-media-share-track {
position:relative; display:inline-block; width:34px; height:19px;
background:#256e56; border:1px solid #43ad82; border-radius:99px;
flex:0 0 34px; transition:background .15s ease;
}
.borg-media-share-thumb {
position:absolute; top:2px; left:17px; width:13px; height:13px;
background:#fff; border-radius:50%; transition:left .15s ease;
}
.borg-media-share-toggle.is-off .borg-media-share-track {background:#526070;border-color:#748398;}
.borg-media-share-toggle.is-off .borg-media-share-thumb {left:2px;}
.borg-media-share-toggle input:focus-visible + .borg-media-share-track {
outline:2px solid #a6c7ff; outline-offset:3px;
}
.borg-media-share-label {font-family:inherit;}
@media(max-width:850px) { .borg-media-share-toggle {padding:5px 7px;} }
/* Room split: one stable 50/50 desktop view, independent of media type. */
@media (min-width:901px) {
.borg-split-layout .borg-room-background {width:var(--borg-chat-width, 50%)!important;flex:1 1 auto!important;min-height:0!important;align-self:flex-start!important;min-width:0!important;max-width:75%!important;}
.borg-split-layout .borg-window-wrap:not(.borg-max):not([data-moved="1"]) {left:calc(var(--borg-rail) + (100vw - var(--borg-rail))/2 + 8px);right:8px;width:calc((100vw - var(--borg-rail))/2 - 16px);}
}
/* Mobile room/library views are screens, not desktop windows squeezed into a phone. */
.borg-mobile-navigation-button {display:none;}
@media(max-width:700px) {
:root {--borg-top:54px;--borg-rail:0px;--borg-call:112px;}
.borg-mobile-navigation-button {display:block;position:fixed;top:9px;left:8px;z-index:122;padding:7px 12px;border-radius:9px;border:1px solid #425b76;background:#263c56;color:#fff;}
body>.topbar {padding-left:94px!important;gap:4px!important;}
body>.topbar .main-nav,body>.topbar .search-form {display:none!important;}
.borg-rail {display:none;position:fixed;top:54px;left:0;bottom:0;z-index:120;width:min(85vw,285px);padding:12px!important;box-shadow:12px 0 40px #0009;}
.borg-mobile-navigation-open .borg-rail {display:flex;}
.borg-rail .borg-brand span,.borg-rail .borg-nav span {display:inline!important;}
.borg-rail .borg-nav {justify-content:flex-start;font-size:15px;}
.borg-shell {left:0;}
.borg-workspace {width:100%;padding:4px!important;}
.borg-room-background {min-width:0!important;width:100%!important;}
.borg-call-strip {height:auto!important;min-height:105px!important;flex-wrap:wrap;align-content:center;overflow-x:auto;gap:4px!important;padding:6px!important;}
.borg-audio-group {max-width:none!important;overflow-x:auto;}
.borg-call-strip .borg-notice {display:none;}
.borg-window-wrap:not(.borg-max),.borg-window-wrap[data-size]:not(.borg-max),.borg-window-wrap.borg-max {position:fixed!important;left:0!important;right:0!important;top:54px!important;width:100vw!important;height:calc(100dvh - 54px)!important;max-width:none!important;max-height:none!important;border-radius:0!important;resize:none!important;z-index:85!important;min-width:0!important;}
.borg-window-header {touch-action:auto!important;}
.borg-window-size-tools {display:none!important;}
.borg-mobile-media-view .borg-room-background {visibility:hidden;}
.borg-window-wrap .page-container {overflow:auto!important;overscroll-behavior:contain;}
.borg-window-wrap .media-grid,.borg-window-wrap .twitch-channel-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.borg-window-wrap button,.borg-window-wrap select {min-height:36px;}
}
/* Twitch uses its existing pointer-driven resize grip, and browser resize as a fallback. */
.twitch-player-overlay .youtube-player-window {resize:both!important;overflow:hidden!important;min-width:min(320px,90vw);min-height:220px;max-width:96vw;max-height:92dvh;}
.twitch-player-overlay .twitch-player-resize-handle {display:block!important;pointer-events:auto!important;z-index:5;}
.kronic-recording-dialog {width:min(470px,calc(100vw - 24px));max-width:100%;padding:20px;background:#172231;color:#edf3ff;border:1px solid #425b76;border-radius:14px;box-shadow:0 14px 60px #000a;}
.kronic-recording-dialog::backdrop {background:#0009;}
.kronic-recording-form {display:flex;flex-direction:column;gap:14px;}
.kronic-recording-form label {display:flex;flex-direction:column;gap:8px;}
.kronic-recording-form input {padding:10px;background:#263648;color:#fff;border:1px solid #576780;border-radius:8px;color-scheme:dark;}
.kronic-dialog-actions {display:flex;gap:8px;justify-content:flex-end;}
.kronic-scheduled-list {display:flex;flex-direction:column;gap:7px;margin-top:12px;}
.kronic-scheduled-item {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border:1px solid #3d4d61;border-radius:8px;}
/* Stable 50/50 stage: width changes may not collapse the vertically stacked room. */
@media (min-width:901px) {
.borg-workspace {height:calc(100dvh - var(--borg-top))!important;min-height:0!important;}
.borg-split-layout .borg-room-background {
width:var(--borg-chat-width, 50%)!important;
flex-grow:1!important;flex-shrink:1!important;flex-basis:0%!important;
min-height:0!important;height:auto!important;
}
.borg-call-strip {flex-grow:0!important;flex-shrink:0!important;}
}
/* Mobile window correction: preserve the real header and every media toolbar. */
@media (max-width:700px) {
:root { --borg-top:48px; --borg-rail:0px; }
.borg-shell { overflow:visible!important; }
.borg-mobile-navigation-button {top:5px!important;left:5px!important;z-index:400!important;}
body>.topbar {min-height:48px!important;height:48px!important;padding-left:100px!important;}
body>.topbar .site-title {font-size:13px!important;white-space:nowrap!important;}
.borg-rail {top:48px!important;z-index:390!important;}
.borg-window-wrap:not(.borg-max),
.borg-window-wrap[data-size]:not(.borg-max),
.borg-window-wrap.borg-max {
top:54px!important;left:6px!important;right:6px!important;
width:calc(100vw - 12px)!important;
height:calc(100dvh - 116px)!important;
max-height:calc(100dvh - 116px)!important;
border-radius:12px!important;z-index:230!important;
display:flex!important;flex-direction:column!important;
}
.borg-window-wrap[hidden] {display:none!important;}
.borg-window-header {flex:0 0 auto!important;position:sticky!important;top:0!important;min-height:44px!important;z-index:5!important;display:flex!important;align-items:center!important;}
.borg-window-header button {min-width:35px!important;min-height:35px!important;touch-action:manipulation!important;}
.borg-window-wrap .page-container {min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;}
.borg-mobile-media-view .borg-room-background {visibility:visible!important;}
.borg-call-strip {z-index:240!important;}
.borg-window-wrap .media-grid,.borg-window-wrap .twitch-channel-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.borg-window-wrap .toolbar {position:relative!important;top:auto!important;}
}
.kronic-role-dialog {border:1px solid #536b84;border-radius:12px;background:#232c38;color:#f5f7fa;max-width:min(450px,90vw);padding:20px;}
.kronic-role-dialog::backdrop {background:#0008;}
/* Kronic mobile navigation v3 — deliberately scoped to phones; desktop unchanged. */
.borg-mobile-audio-toggle {display:none;}
@media (max-width:700px) {
:root {--borg-top:52px!important;--borg-rail:0px!important;--borg-call:64px!important;}
html,body {overflow-x:hidden!important;}
body>.topbar {
position:fixed!important;inset:0 0 auto 0!important;
width:100%!important;height:52px!important;min-height:52px!important;
padding:0 12px 0 60px!important;display:flex!important;
align-items:center!important;justify-content:flex-start!important;
z-index:300!important;box-sizing:border-box!important;
}
body>.topbar .topbar-left {width:auto!important;min-width:0!important;flex:1!important;justify-content:flex-start!important;align-items:center!important;}
body>.topbar .site-title {position:static!important;transform:none!important;max-width:100%!important;font-size:16px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body>.topbar .main-nav,body>.topbar .search-form {display:none!important;}
.borg-mobile-navigation-button {
display:flex!important;align-items:center!important;justify-content:center!important;
position:fixed!important;top:5px!important;left:7px!important;width:42px!important;height:42px!important;
min-height:42px!important;padding:0!important;font-size:0!important;
border-radius:11px!important;z-index:450!important;
}
.borg-mobile-navigation-button::after {content:'☰';font-size:22px;line-height:1;}
.borg-rail {top:52px!important;bottom:0!important;width:min(82vw,310px)!important;z-index:440!important;overflow-y:auto!important;}
.borg-rail .borg-nav {min-height:48px!important;}
.borg-shell {inset:52px 0 0!important;height:calc(100dvh - 52px)!important;overflow:hidden!important;}
.borg-workspace {
height:100%!important;min-height:0!important;padding:6px 6px calc(70px + env(safe-area-inset-bottom,0px))!important;
box-sizing:border-box!important;overflow:hidden!important;
}
.borg-room-background {height:100%!important;flex:1 1 0!important;min-height:0!important;border-radius:12px!important;overflow:hidden!important;}
.borg-chat-host,.borg-chat-host iframe {min-height:0!important;}
.borg-call-strip {
position:fixed!important;left:0!important;right:0!important;bottom:0!important;
height:calc(62px + env(safe-area-inset-bottom,0px))!important;
min-height:0!important;margin:0!important;padding:6px 9px calc(6px + env(safe-area-inset-bottom,0px))!important;
box-sizing:border-box!important;display:flex!important;flex-wrap:nowrap!important;
align-items:center!important;justify-content:space-between!important;gap:7px!important;
overflow:visible!important;border-radius:13px 13px 0 0!important;z-index:360!important;
background:#172434!important;box-shadow:0 -6px 24px #0007!important;
}
.borg-mobile-audio-toggle {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 1 0!important;min-width:0!important;height:46px!important;border:1px solid #425b76;border-radius:10px;background:#263e5a;color:#fff;font:inherit;font-size:14px!important;white-space:nowrap!important;}
.borg-call-strip .borg-audio-group {
display:none!important;position:absolute!important;left:8px!important;right:8px!important;
bottom:calc(100% + 8px)!important;max-width:none!important;padding:10px!important;
border:1px solid #455b74!important;border-radius:13px!important;
background:#1b2939!important;box-shadow:0 12px 36px #000a!important;
white-space:normal!important;overflow:visible!important;z-index:4!important;
}
.borg-mobile-audio-open .borg-call-strip .borg-audio-group {display:grid!important;grid-template-columns:1fr!important;gap:7px!important;}
.borg-audio-group .borg-audio-trigger {width:100%!important;min-height:46px!important;padding:10px 13px!important;text-align:left!important;font-size:14px!important;}
.borg-media-share-toggle {flex:1.15 1 0!important;min-width:0!important;min-height:46px!important;justify-content:center!important;padding:4px 7px!important;gap:6px!important;white-space:normal!important;}
.borg-media-share-label {font-size:12px!important;line-height:1.2!important;}
.borg-room-quick-actions {display:flex!important;flex:0.8 1 0!important;min-width:0!important;gap:0!important;}
.borg-room-quick-actions #borgRoomMute {min-height:46px!important;width:100%!important;font-size:13px!important;}
.borg-room-quick-actions #borgRoomLeave {display:none!important;}
.borg-mobile-audio-open .borg-room-quick-actions #borgRoomLeave {
display:block!important;position:absolute!important;right:10px!important;bottom:calc(100% + 175px)!important;
min-height:40px!important;z-index:6!important;
}
.borg-call-strip .borg-notice {display:none!important;}
.borg-window-wrap:not(.borg-max),.borg-window-wrap[data-size]:not(.borg-max),.borg-window-wrap.borg-max {
display:flex!important;flex-direction:column!important;position:fixed!important;
top:52px!important;left:0!important;right:0!important;bottom:calc(62px + env(safe-area-inset-bottom,0px))!important;
width:100vw!important;height:auto!important;max-height:none!important;max-width:none!important;
margin:0!important;padding:0!important;border-radius:0!important;min-height:0!important;
z-index:320!important;resize:none!important;
}
.borg-window-wrap[hidden] {display:none!important;}
.borg-window-header {height:auto!important;min-height:52px!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:6px!important;padding:5px 8px!important;box-sizing:border-box!important;position:relative!important;top:auto!important;overflow:visible!important;}
.borg-window-header .borg-window-label {flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.borg-window-actions {display:flex!important;gap:6px!important;flex-shrink:0!important;}
.borg-window-actions button {min-width:42px!important;min-height:42px!important;}
.borg-window-size-tools {display:none!important;}
.borg-window-wrap .page-container {flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:10px!important;}
.borg-window-wrap .toolbar {position:relative!important;top:auto!important;max-width:100%!important;}
.borg-window-wrap .media-grid,.borg-window-wrap .twitch-channel-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.borg-mobile-media-view .borg-room-background {visibility:visible!important;}
}
@media (max-width:380px) {
.borg-media-share-label {font-size:11px!important;}
.borg-call-strip {gap:4px!important;padding-left:5px!important;padding-right:5px!important;}
.borg-window-wrap .media-grid,.borg-window-wrap .twitch-channel-grid {grid-template-columns:minmax(0,1fr)!important;}
}
/* Mobile drawer account actions and header: scoped to phones only. */
.borg-mobile-account-actions {display:none;}
@media(max-width:700px) {
.borg-mobile-navigation-button {display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:1002!important;}
.borg-rail {z-index:1001!important;}
.borg-mobile-account-actions {display:flex!important;flex-direction:column;gap:5px;padding:9px 0 5px;border-top:1px solid #33465c;}
.borg-mobile-account-actions .borg-nav {display:flex!important;width:100%!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;}
.borg-mobile-account-actions .borg-nav span {display:inline!important;}
.borg-logout-action {color:#ffb9b9!important;}
body>.topbar {padding-left:64px!important;}
/* Keep the drawer button above the header without hiding the menu it opens. */
.borg-mobile-navigation-open::before {content:'';position:fixed;inset:52px 0 0;z-index:998;background:#0008;pointer-events:none;}
}
/* One mobile header row: hamburger | title | Media.
Keep all three in normal grid layout instead of floating them on top of each other. */
.borg-mobile-media-quick {display:none;}
@media (max-width:700px) {
:root {--borg-top:52px!important;}
body > .topbar {
display:grid!important;
grid-template-columns:44px minmax(0,1fr) auto!important;
grid-template-rows:52px!important;
align-items:center!important;
justify-content:stretch!important;
gap:8px!important;
position:fixed!important;
inset:0 0 auto 0!important;
box-sizing:border-box!important;
width:100%!important;
height:52px!important;
min-height:52px!important;
padding:0 10px!important;
z-index:900!important;
}
body > .topbar #borgMobileNavigation {
grid-column:1!important;
grid-row:1!important;
position:static!important;
width:44px!important;
height:44px!important;
min-height:44px!important;
margin:0!important;
padding:0!important;
z-index:auto!important;
display:flex!important;
align-items:center!important;
justify-content:center!important;
visibility:visible!important;
opacity:1!important;
}
body > .topbar .topbar-left {
grid-column:2!important;
grid-row:1!important;
display:flex!important;
width:auto!important;
min-width:0!important;
max-width:100%!important;
margin:0!important;
padding:0!important;
justify-content:center!important;
align-items:center!important;
}
body > .topbar .site-title {
position:static!important;
display:block!important;
margin:0!important;
padding:0!important;
transform:none!important;
max-width:100%!important;
font-size:clamp(12px,3.7vw,16px)!important;
line-height:1.2!important;
text-align:center!important;
overflow:hidden!important;
text-overflow:ellipsis!important;
white-space:nowrap!important;
}
body > .topbar #borgMobileMediaQuick {
grid-column:3!important;
grid-row:1!important;
display:inline-flex!important;
position:static!important;
align-items:center!important;
justify-content:center!important;
width:auto!important;
min-width:68px!important;
height:42px!important;
min-height:42px!important;
margin:0!important;
padding:0 10px!important;
border:1px solid #526781!important;
border-radius:9px!important;
background:#29415e!important;
color:#fff!important;
font-size:13px!important;
white-space:nowrap!important;
}
body > .topbar .main-nav,
body > .topbar .search-form {display:none!important;}
.borg-rail {z-index:1100!important;}
.borg-window-wrap {z-index:320!important;}
body.borg-mobile-navigation-open::before {z-index:950!important;}
}