/* Layout */
.gb-shell #chat-view {
    width: 100vw;
    max-width: none;
    height: 100vh;
    border: 0;
    border-radius: 0;
    background: var(--gb-bg);
    box-shadow: none;
}

.gb-shell #channels-shell,
.gb-shell .gb-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--gb-sidebar-width) minmax(0, 1fr) var(--gb-right-width);
    min-height: 0;
    height: 100%;
    width: 100%;
    background: transparent;
    overflow: hidden;
}

.gb-shell #channels-shell.is-right-collapsed {
    grid-template-columns: var(--gb-sidebar-width) minmax(0, 1fr) 0;
}

.gb-shell #channel-sidebar,
.gb-shell .gb-sidebar {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 8px;
    border: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: none;
    overflow-y: auto;
    overflow-x: visible;
    border-radius: 0;
}

.gb-shell #channel-sidebar .channels-panel,
.gb-shell #channel-sidebar .channels-browser-panel {
    border-radius: 0;
    overflow: visible;
}

.gb-shell .channels-left-main {
    gap: var(--gb-space-2);
    min-height: 0;
}

.gb-shell .channels-center-shell,
.gb-shell .gb-main {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.78);
    overflow: hidden;
}

.gb-shell .channels-center-shell.is-friends-view {
    display: flex;
    flex-direction: column;
}

.gb-shell .chat-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.gb-shell #chat-messages {
    min-height: 0;
    padding: 82px 24px 18px;
    gap: var(--gb-space-3);
    background: transparent;
}

.gb-shell #admin-sidebar,
.gb-shell .gb-right-panel {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 17px 8px 8px;
    border: 0;
    background: rgba(13, 13, 14, 0.96);
    overflow: hidden;
}

.gb-shell #admin-sidebar:not(.hidden) {
    display: flex;
    flex-direction: column;
    gap: var(--gb-space-2);
}

.gb-shell #channels-shell.call-stage-full {
    grid-template-columns: var(--gb-sidebar-width) minmax(0, 1fr) 0;
}

.gb-shell #channels-shell.call-stage-full #admin-sidebar {
    display: none !important;
}

.gb-shell #admin-sidebar.hidden {
    display: none;
}

.gb-shell #channel-header-bar,
.gb-shell .gb-top-menu {
    position: absolute;
    top: 23px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: min(560px, calc(100vw - 24px));
    pointer-events: auto;
}

.gb-shell #channel-header-bar > div {
    min-height: 30px;
    max-height: 40px;
    border: 0;
    border-radius: var(--gb-radius-pill);
    background: rgba(7, 9, 13, 0.56);
    backdrop-filter: blur(22px) saturate(128%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.gb-shell #channel-header-bar button {
    border: 0;
    box-shadow: none;
}

.gb-shell #call-start-join-btn {
    width: auto;
    min-width: 68px;
    padding: 0 10px;
}

.gb-shell #call-start-join-label {
    max-width: 58px;
    overflow: hidden;
    line-height: 1;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gb-shell .composer-shell {
    position: relative;
    z-index: 3;
    padding: 0 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.gb-shell #friends-workspace:not(.hidden) {
    display: flex;
    flex: 1;
    min-height: 0;
}

.gb-shell #empty-chat-state {
    inset: 0;
    padding: 120px 24px;
}
