
/* ---- screen-size fit pass: every control fully on screen from a 360 px app window to a 34" ultrawide, in every theme ---- */
/* voice panel above the user bar: "Voice Connected" never gets cut. The panel measures itself and drops the decorative
   icon, then the signal icon, as the channel list narrows (the title opens the call either way). */
.voice-connected-dock { container: vdock / inline-size; }
@container vdock (max-width: 232px) { .voice-dock-sig { display: none !important; } .voice-dock-top { gap: 6px !important; } }
@container vdock (max-width: 196px) { .voice-ping-ico { display: none !important; } .voice-connected-dock .voice-status-title { font-size: 14px !important; } }
/* five buttons sit in one row while they fit, instead of one lonely button on a second row */
@container vdock (min-width: 196px) { .voice-dock-tiles:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px !important; } }
/* side panes grow a little on big monitors, so lists, names and the voice panel are not squeezed while the chat has 1600+ px */
@media (min-width: 1800px) and (min-height: 800px) { .app > .channels-pane, .app > .members-pane:not(.dm-profile) { width: 264px; } }
@media (min-width: 2400px) and (min-height: 1000px) { .app > .channels-pane, .app > .members-pane:not(.dm-profile) { width: 288px; } }
/* the small call window sits above the message box by default (it covered the Send and emoji buttons); dragging still moves it anywhere */
@media (min-width: 901px) {
  #vmini:not(.moved) { bottom: calc(104px + var(--desk-bot, 0px)); }
  body:has(#vmini.on.nop:not(.moved)) #stream-mini { bottom: calc(210px + var(--desk-bot, 0px)); }
}
/* user bar under the channel list: on a narrow list (half-screen window, small laptop) the device carets give their room to the name */
.user-status-bar { container: ubar / inline-size; }
/* a 240 px list (System24, glass, Discord's own width) had room for one letter of the name: the usage-profile button moves to
   the user menu (it already has a row there) and the device carets get slimmer, so the name shows */
@container ubar (max-width: 300px) { .user-status-bar .ux-chip { display: none !important; } .user-status-bar .ub-caret { width: 13px !important; padding: 0 !important; overflow: hidden; } }
@container ubar (max-width: 210px) { .user-status-bar .ub-caret { display: none !important; } .user-status-bar .user-quick-controls .quick-icon-btn { width: 28px !important; min-width: 28px !important; } }
/* call screen in a narrow main pane: the corner buttons (invite, pop out, full screen) move up above the call controls instead of sitting under them */
#voice-call-screen { container: vcs / inline-size; }
@container vcs (max-width: 720px) { #voice-call-screen .vc-corner-r, #voice-call-screen .vc-inv { bottom: 112px !important; } }
/* desktop app: the profile card fits between the title bar and the bottom edge */
@media (min-width: 701px) { html.desk-tb #member-action-dialog .profile-pop { max-height: calc(100vh - 32px - var(--desk-bot, 0px) - 20px); overflow-y: auto; } }
