:root{--server-bg:#fffaf3;--server-paper:#fffefb;--server-ink:#4c2930;--server-edge:#d6c3b5;--server-accent:#9c2847;--server-soft:#f4e6d7}
html body #bottomPanelShell>.bottom-right-floating{flex-direction:row!important;height:88px!important;gap:8px!important}
.board-dock-tools{display:flex;align-items:center;gap:5px;min-height:76px;flex:none}
.board-dock-lesson{display:flex;align-items:center;gap:8px;flex:none;min-width:0;width:max-content;padding-left:8px;border-left:1px solid var(--server-edge);box-sizing:border-box}
#bottomPanelShell .bottom-floating{position:relative!important;inset:auto!important;left:auto!important;bottom:auto!important;max-width:none!important;min-width:0;flex:1;box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important;gap:5px!important}
#bottomPanelShell .bottom-floating .slides-wrapper{flex:none;max-width:240px}
#bottomPanelShell #rtcHlBar{position:static!important;inset:auto!important;left:auto!important;bottom:auto!important;transform:none!important;flex:none;max-width:230px;background:transparent!important;border:0!important;box-shadow:none;backdrop-filter:none;padding:0}
#bottomPanelShell .bottom-floating>.board-scale-corner{display:none!important}
#bottomPanelShell .bottom-floating button{font-size:17px!important;min-height:32px;padding:5px 10px!important}
#bottomPanelShell #rtcHlToggle{font-size:17px;min-height:32px;padding:4px 7px}
#bottomPanelShell #rtcHlBar .server-control-art{width:28px;height:28px}
#bottomPanelShell #rtcHlClear{flex-basis:34px;width:34px;height:34px}
:root[data-board-theme=clay]{--server-bg:#fcf8ff;--server-paper:#fffcff;--server-ink:#463254;--server-edge:#c7afd9;--server-accent:#79549e;--server-soft:#eee2f6}
#collabPanel{width:440px!important;max-width:calc(100vw - 24px);max-height:calc(100dvh - 140px);background:var(--server-bg)!important;border:2px solid var(--server-edge)!important;color:var(--server-ink)!important;padding:10px!important;gap:6px!important;font-size:13px!important}
#collabPanel #chatMessages{min-height:80px;overflow:auto;flex:1}
#collabPanel{box-sizing:border-box;max-height:var(--call-panel-height,calc(100dvh - 190px));overflow-y:auto!important;overflow-x:hidden!important}
#collabPanel>*{flex-shrink:0;min-width:0}
#collabPanel input:not([type=file]){min-width:0;font-size:12px;margin-bottom:0!important}
#collabPanel #joinRoomId{padding:6px!important}
#collabPanel #studentLinkDisplay{overflow-wrap:anywhere}
#collabPanel :is(#btnCreateRoom,#btnJoinRoom){padding:6px!important;font-size:12px!important}
#collabPanel :is(#collabStatus,#rtcStatus){margin-top:0!important;padding:4px!important}
#rtcCallBlock>div:has(>#rtcBtnCall){flex-wrap:wrap;gap:5px}
#collabPanel #rtcBtnCall{flex:1 1 130px!important;min-width:0}
#collabPanel :is(#rtcBtnMic,#rtcBtnCam,#rtcBtnScreen,#rtcBtnReconn){flex:0 0 32px;width:32px!important;height:32px!important;padding:3px!important;display:inline-flex;align-items:center;justify-content:center}
#rtcCallBlock .server-control-art{width:20px;height:20px;margin:0}
#collabPanel #chatInput{min-width:0}
#collabPanel [data-edge=e]{right:0}#collabPanel [data-edge=w]{left:0}#collabPanel [data-edge=n]{top:0}#collabPanel [data-edge=s]{bottom:0}
#collabPanel>.board-scale-corner{right:0!important;bottom:0!important}
#collabPanel #chatArea{min-height:135px;flex:0 0 auto}#rtcCallBlock{flex:0 0 auto}
#collabPanel button,#rtcHlBar button{background:var(--server-soft)!important;color:var(--server-ink)!important;border:1px solid var(--server-edge)!important;border-radius:9px}
#collabPanel #rtcBtnCall{background:var(--server-accent)!important;color:#fff!important}
.server-control-art{width:23px;height:23px;object-fit:contain;vertical-align:middle;pointer-events:none;margin-right:3px}
#rtcHlBar{left:8px!important;right:auto!important;bottom:8px!important;top:auto!important;transform:none!important;background:var(--server-bg)!important;border:2px solid var(--server-edge)!important;color:var(--server-ink)!important;max-width:min(184px,calc(100vw - 16px));box-sizing:border-box;padding:4px;gap:4px;flex-wrap:nowrap;align-items:center}
#rtcHlBar #rtcHlToggle{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:30px;white-space:normal;line-height:1.15;font-size:11px;padding:3px 6px}
#rtcHlBar #rtcHlClear{flex:0 0 30px;width:30px;height:30px;padding:3px;font-size:0}
#rtcHlBar .server-control-art{width:20px;height:20px;flex:none;margin:0}
#toolbarScaleShell>.left-toolbar{max-height:min(var(--toolbar-base-max-height),var(--hl-toolbar-max-height,100000px))!important}
#auth-topbar{top:60px!important;right:8px!important;max-width:calc(100vw - 125px);flex-wrap:wrap;justify-content:flex-end}
#active-student-badge{top:60px!important;max-width:calc(100vw - 130px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#student-lessons-btn{top:60px!important;right:8px!important}
#boards-box,#admin-box,#custom-board-modal-overlay>div{background:var(--server-paper)!important;color:var(--server-ink)!important;border:2px solid var(--server-edge)!important;position:relative;max-height:calc(100dvh - 40px);overflow:auto}
#boards-modal,#admin-modal{z-index:200100!important}
#boards-box input,#boards-box select,#admin-box input,#admin-box select{background:var(--server-bg)!important;color:var(--server-ink)!important;border-color:var(--server-edge)!important}
.bottom-floating{display:flex!important;position:fixed!important;bottom:88px!important;left:170px!important;z-index:900!important;background:var(--server-bg)!important;color:var(--server-ink)!important;border:2px solid var(--server-edge)!important;max-width:calc(100vw - 210px);gap:6px!important;padding:6px!important}
.bottom-floating .slides-wrapper{margin:0;min-width:0;overflow-x:auto}.bottom-floating .slide-btn{border:1px solid var(--server-edge);background:var(--server-paper);color:var(--server-ink)}.bottom-floating .slide-btn.active{background:var(--server-accent);color:#fff;border-color:var(--server-accent)}
#collabPanel>.board-scale-corner{min-height:0!important;border:0!important;border-radius:0!important;background:linear-gradient(135deg,var(--server-paper),var(--server-edge))!important}
@media(max-width:650px){#auth-topbar{top:46px!important}.bottom-floating{left:8px!important;max-width:calc(100vw - 26px);bottom:72px!important}#collabPanel{left:auto!important;right:8px!important;top:92px!important;max-height:calc(100dvh - 180px)}}
.volna-server-overlay{z-index:200200!important}.volna-server-dialog{background:var(--server-paper)!important;color:var(--server-ink)!important;border:2px solid var(--server-edge)!important;position:relative}
:is(#boards-box,#admin-box,#custom-board-modal-overlay>div,.volna-server-dialog)>.board-scale-corner{right:10px;bottom:10px;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:linear-gradient(135deg,var(--server-paper),var(--server-edge))!important}
:is(#boards-box,#admin-box,.volna-server-dialog) button:not(.board-scale-corner){border:1px solid var(--server-edge)!important;border-radius:9px!important;background:var(--server-soft)!important;color:var(--server-ink)!important}
#boards-box #board-save-btn{background:var(--server-accent)!important;color:#fff!important}
#boards-box .board-item{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2.2fr);gap:10px;align-items:center;background:var(--server-bg)!important;color:var(--server-ink)}
#boards-box .board-item-info{min-width:0;overflow-wrap:anywhere}
#boards-box,#admin-box,.volna-server-dialog{box-sizing:border-box;overflow-x:hidden!important}
@media(max-width:600px){#boards-box .board-item{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){#active-student-badge{top:106px!important;left:8px!important;right:auto!important}#student-lessons-btn{top:46px!important;right:8px!important;max-width:calc(100vw - 24px)}}
