/* Components */
.gb-shell .channels-panel,
.gb-shell .admin-sidebar-panel,
.gb-shell .channels-modal-card,
.gb-shell .gb-context-panel {
    border: 0;
    border-radius: var(--gb-radius-panel);
    background: transparent;
    box-shadow: none;
}

.gb-shell .channels-utility-panel {
    padding: 0 0 8px;
}

.gb-shell .channels-browser-panel {
    padding: 0;
    overflow: visible;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gb-shell .channels-mission-panel {
    padding: 0;
    background: transparent;
    border: 0;
}

.gb-shell .channels-nav-cluster {
    padding: 0;
    gap: var(--gb-space-2);
}

.gb-shell .channels-nav-primary-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: var(--gb-space-2);
    align-items: center;
}

.gb-shell .cf-home-nav-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
}

.gb-shell .cf-friends-nav-button,
.gb-shell .gb-button {
    min-height: 34px;
    border: 0;
    border-radius: var(--gb-radius-pill);
    background:
        radial-gradient(90% 120% at 15% 50%, rgba(255, 216, 107, 0.12), transparent 62%),
        radial-gradient(110% 150% at 92% 50%, rgba(124, 255, 178, 0.12), transparent 64%),
        rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 22px rgba(155, 124, 255, 0.12);
    color: var(--gb-text);
    justify-content: flex-start;
    text-align: left;
}

.gb-shell .cf-friends-nav-button span {
    font-size: 12px;
    font-weight: 800;
}

.gb-shell .cf-friends-nav-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
}

.gb-shell .cf-friends-nav-button svg {
    position: static;
    width: 15px;
    height: 15px;
    min-width: 15px;
}

.gb-shell .cf-liquid-switcher {
    height: 34px;
    padding: 3px;
    border: 0;
    border-radius: var(--gb-radius-pill);
    background: rgba(255, 255, 255, 0.055);
}

.gb-shell .cf-liquid-switcher-option {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--gb-radius-pill);
    background: transparent;
    color: var(--gb-muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.gb-shell .cf-liquid-switcher-option.is-active {
    background: rgba(255, 255, 255, 0.105);
    color: var(--gb-text);
}

.gb-shell .admin-list-stack,
.gb-shell #joined-channel-list,
.gb-shell #room-member-list {
    gap: 5px;
}

.gb-shell #joined-channel-list,
.gb-shell #room-member-list,
.gb-shell .friends-workspace-list,
.gb-shell .channels-modal-list,
.gb-shell .cf-emoji-grid,
.gb-shell .cf-sticker-grid {
    overflow-y: auto;
}

.gb-shell #joined-channel-list {
    flex: 1;
    min-height: 0;
}

.gb-shell .channels-conversation-card,
.gb-shell .channels-member-card,
.gb-shell .friends-workspace-card,
.gb-shell .channels-notification-card,
.gb-shell .gb-card,
.gb-shell .gb-user-card,
.gb-shell .gb-pocket-card,
.gb-shell .gb-habitat-card,
.gb-shell .gb-nest-card,
.gb-shell .gb-knock-card {
    position: relative;
    min-height: var(--gb-card-height);
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    transform: none;
}

.gb-shell .channels-conversation-card::after,
.gb-shell .channels-member-card::after,
.gb-shell .friends-workspace-card::after,
.gb-shell .channels-notification-card::after,
.gb-shell .gb-card::after,
.gb-shell .gb-user-card::after,
.gb-shell .gb-pocket-card::after,
.gb-shell .gb-habitat-card::after,
.gb-shell .gb-nest-card::after,
.gb-shell .gb-knock-card::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 44%;
    pointer-events: none;
    background: transparent;
    opacity: 0;
}

.gb-shell .channels-conversation-card:hover,
.gb-shell .channels-member-card:hover,
.gb-shell .friends-workspace-card:hover,
.gb-shell .channels-notification-card:hover,
.gb-shell .gb-card:hover {
    background: rgba(116, 122, 132, 0.2);
}

.gb-shell .channels-conversation-card:hover::after,
.gb-shell .channels-member-card:hover::after,
.gb-shell .friends-workspace-card:hover::after,
.gb-shell .gb-card:hover::after {
    opacity: 0;
    background: transparent;
}

.gb-shell .channels-conversation-card.is-active::after,
.gb-shell .channels-member-card.is-active::after,
.gb-shell .gb-card.is-active::after {
    opacity: 0.92;
    background: linear-gradient(90deg, transparent, var(--conversation-start, var(--member-start, var(--gb-purple))), var(--conversation-end, var(--member-end, var(--gb-blue))));
}

.gb-shell .channels-conversation-button,
.gb-shell .channels-member-card-body {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: var(--gb-card-height);
    padding: 5px 7px;
    display: flex;
    align-items: center;
    gap: var(--gb-space-2);
    border: 0;
    background: transparent;
    text-align: left;
}

.gb-shell .channels-conversation-card .channels-favorite-btn {
    position: absolute;
    z-index: 2;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.32);
}

.gb-shell .channels-conversation-avatar,
.gb-shell .channels-member-avatar,
.gb-shell .channels-self-avatar,
.gb-shell .friends-workspace-avatar,
.gb-shell .avatar-pill,
.gb-shell .gb-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--gb-avatar-size);
    height: var(--gb-avatar-size);
    min-width: var(--gb-avatar-size);
    border-radius: 50%;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.gb-shell .channels-conversation-avatar img,
.gb-shell .channels-member-avatar img,
.gb-shell .channels-self-avatar img,
.gb-shell .friends-workspace-avatar img,
.gb-shell .avatar-pill img,
.gb-shell .gb-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.gb-shell .cf-avatar-badge {
    display: none;
}

.gb-shell .channels-conversation-meta,
.gb-shell .channels-member-copy,
.gb-shell .friends-workspace-card-copy,
.gb-shell .channels-self-copy {
    flex: 1;
    min-width: 0;
}

.gb-shell .channels-conversation-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: nowrap;
}

.gb-shell .channels-conversation-title-row .channels-conversation-title {
    flex: 1;
    min-width: 0;
}

.gb-shell .channels-conversation-title-row > :not(.channels-conversation-title) {
    flex-shrink: 0;
}

.gb-shell .channels-conversation-title,
.gb-shell .channels-member-name,
.gb-shell .friends-workspace-card-name,
.gb-shell .channels-self-name,
.gb-shell .gb-message-author {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-family: var(--gb-font-ui);
    font-size: 13px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--gb-text);
}

.gb-shell .channels-conversation-title span,
.gb-shell .channels-member-name span,
.gb-shell .friends-workspace-card-name span,
.gb-shell .channels-self-name span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gb-shell .channels-conversation-subtitle,
.gb-shell .channels-member-status,
.gb-shell .friends-workspace-card-handle,
.gb-shell .friends-workspace-card-bio,
.gb-shell .channels-self-activity {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.15;
    color: var(--gb-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gb-shell .channels-self-activity {
    font-size: 11px;
    line-height: 1.2;
    color: rgba(244, 247, 252, 0.78);
}

.gb-shell .cf-status-icon-circle,
.gb-shell .gb-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.gb-shell .cf-status-pill .cf-status-icon-circle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background:
        radial-gradient(circle at 78% 50%, color-mix(in srgb, var(--cf-phase-glow, var(--gb-yellow)) 36%, transparent), transparent 68%),
        rgba(0, 0, 0, 0.78);
}

.gb-shell .cf-status-icon-img,
.gb-shell .cf-state-icon-img,
.gb-shell .cf-time-state-icon {
    width: 78%;
    height: 78%;
    object-fit: contain;
    display: block;
    margin: auto;
}

.gb-shell .cf-time-state-icon {
    width: 15px;
    height: 15px;
    min-width: 15px;
}

.gb-shell .cf-status-pill,
.gb-shell .profile-presence-chip,
.gb-shell .gb-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--gb-space-2);
    min-height: 30px;
    padding: 3px 10px 3px 4px;
    border: 0;
    border-radius: var(--gb-radius-pill);
    background: rgba(0, 0, 0, 0.76);
    color: var(--gb-text);
}

.gb-shell .composer-bubble,
.gb-shell .gb-composer {
    width: 100%;
    max-width: min(960px, 50vw);
    min-height: 42px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(15, 18, 28, 0.72), rgba(8, 10, 18, 0.82));
    backdrop-filter: blur(32px) saturate(160%);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gb-shell .composer-bubble:focus-within,
.gb-shell .gb-composer:focus-within {
    border-color: rgba(168, 183, 255, 0.18);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(168, 183, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gb-shell .composer-textarea,
.gb-shell .chat-input,
.gb-shell .admin-soft-field,
.gb-shell .channels-sidebar-search,
.gb-shell #room-member-search,
.gb-shell .gb-input {
    border: 0;
    border-radius: var(--gb-radius-control);
    background: transparent;
    box-shadow: none;
    color: var(--gb-text);
}

.gb-shell .composer-textarea:focus,
.gb-shell .chat-input:focus,
.gb-shell .admin-soft-field:focus,
.gb-shell .channels-sidebar-search:focus,
.gb-shell #room-member-search:focus {
    background: transparent;
    box-shadow: none;
}

.gb-shell .composer-textarea::placeholder,
.gb-shell .chat-input::placeholder,
.gb-shell .channels-sidebar-search::placeholder,
.gb-shell #room-member-search::placeholder {
    color: var(--gb-faint);
}

.gb-shell .composer-attach-button,
.gb-shell .send-button,
.gb-shell .gb-icon-button,
.gb-shell .channels-self-voice-btn,
.gb-shell .cf-call-icon-button,
.gb-shell .channels-member-menu-btn,
.gb-shell .friends-workspace-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gb-muted);
    box-shadow: none;
}

.gb-shell .composer-emoji-icon {
    width: 17px;
    height: 17px;
    display: block;
    object-fit: contain;
    filter: brightness(0.58) saturate(0.12);
    opacity: 0.92;
}

.gb-shell .send-button {
    color: var(--gb-green);
}

.gb-shell .composer-bubble {
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 8px 12px;
}

.gb-shell .composer-textarea {
    min-height: 28px;
    max-height: 42vh;
    padding: 6px 11px;
    font-size: 13px;
    line-height: 1.4;
    overflow-y: auto;
    resize: none;
}

.gb-shell .reply-composer-state,
.gb-shell .composer-attachment-preview,
.gb-shell .gb-reply-preview,
.gb-shell .gb-upload-preview {
    width: 100%;
    max-width: 980px;
    margin: 0 auto var(--gb-space-2);
    border: 0;
    border-radius: var(--gb-radius-control);
    background: rgba(5, 6, 9, 0.72);
    backdrop-filter: blur(16px);
}

.gb-shell .reply-composer-state {
    border-left: 3px solid rgba(125, 211, 252, 0.6);
    background:
        linear-gradient(90deg, rgba(125, 211, 252, 0.06), transparent 40%),
        rgba(5, 6, 9, 0.72);
    animation: gb-reply-slide-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gb-reply-slide-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* reply-composer-state grid overridden above with accent border */

.gb-shell .reply-composer-state.hidden,
.gb-shell .reply-composer-state:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.gb-shell .reply-composer-copy {
    min-width: 0;
}

.gb-shell .reply-composer-kicker {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.56);
    font-family: var(--gb-font-ui);
}

.gb-shell .reply-composer-author {
    margin-top: 2px;
    color: rgba(246, 248, 255, 0.95);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-shell .reply-composer-preview {
    margin-top: 2px;
    color: rgba(246, 248, 255, 0.68);
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-shell .reply-composer-cancel-btn {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.74);
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

.gb-shell .composer-attachment-preview {
    padding: 9px 10px;
}

.gb-shell .composer-attachment-summary {
    color: rgba(246, 248, 255, 0.72);
    font-size: 10px;
    font-family: var(--gb-font-ui);
}

.gb-shell .composer-attachment-pills {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gb-shell .composer-attachment-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    max-width: 100%;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(247, 249, 255, 0.92);
}

.gb-shell .composer-attachment-pill-name,
.gb-shell .composer-attachment-pill-size {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-shell .composer-attachment-pill-remove {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.86);
    font-size: 10px;
    line-height: 1;
}

.gb-shell .channels-self-card-pill,
.gb-shell .gb-bottom-user-card {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--self-card-start, var(--gb-purple)) 42%, rgba(8, 9, 12, 0.92)),
            color-mix(in srgb, var(--self-card-end, var(--gb-blue)) 42%, rgba(8, 9, 12, 0.92))
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
    backdrop-filter: blur(18px) saturate(130%);
    box-shadow: none;
}

.gb-shell .channels-self-card-pill::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 44%;
    pointer-events: none;
    background: transparent;
    opacity: 0;
}

.gb-shell .channels-self-expanded {
    position: relative;
    z-index: 1;
    padding: var(--gb-space-2);
    border-bottom: 1px solid var(--gb-separator);
}

.gb-shell .channels-self-expanded-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gb-space-2);
    min-height: 38px;
    padding: var(--gb-space-2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.36);
}

.gb-shell .channels-self-profile-button {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: var(--gb-avatar-size) minmax(0, 1fr);
    gap: var(--gb-space-2);
    align-items: center;
    padding: 6px;
    border: 0;
    background: transparent;
    text-align: left;
}

.gb-shell .channels-self-voice-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--gb-space-1);
    padding: 0 6px 6px;
}

/* Voice Trail surface with stable inner participant boxes. */
.gb-shell .cf-call-surface {
    position: relative;
    z-index: 2;
    width: calc(100% - 30px);
    min-height: 56px;
    margin: 78px auto -66px;
    padding: 8px 10px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: rgba(6, 8, 12, 0.62);
    backdrop-filter: blur(24px) saturate(135%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.gb-shell .cf-call-surface.is-stage-bar {
    width: calc(100% - 30px);
    min-height: 56px;
    max-height: 74px;
}

.gb-shell .cf-call-surface.is-stage-panel {
    width: calc(100% - 32px);
    flex: 0 0 50%;
    min-height: 280px;
    max-height: calc(100vh - 220px);
    margin: 16px auto 0;
    resize: vertical;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
}

.gb-shell .cf-call-surface.is-stage-panel .cf-call-grid {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 4px;
}

.gb-shell .cf-call-surface.is-stage-panel::-webkit-resizer {
    background-color: transparent;
    background-image: 
        linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.2) 40%, rgba(255,255,255,0.2) 60%, transparent 60%),
        linear-gradient(0deg, transparent 40%, rgba(255,255,255,0.2) 40%, rgba(255,255,255,0.2) 60%, transparent 60%);
    background-size: 8px 8px;
    background-position: bottom right;
    background-repeat: no-repeat;
}

.gb-shell .cf-call-surface.is-stage-full {
    position: absolute;
    inset: 0;
    width: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    border-radius: 0;
    z-index: 40;
}

.gb-shell .cf-call-surface::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 38%;
    pointer-events: none;
    background: transparent;
    opacity: 0;
}

.gb-shell .cf-call-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--gb-space-2);
    min-height: 34px;
}

.gb-shell .cf-call-eyebrow {
    margin: 0;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    color: var(--gb-green);
    text-transform: uppercase;
    letter-spacing: 0;
}

.gb-shell .cf-call-title {
    margin: 2px 0 0;
    max-width: 360px;
    overflow: hidden;
    color: var(--gb-text);
    font-family: var(--gb-font-ui);
    font-size: 13px;
    line-height: 1.1;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gb-shell .cf-call-header-actions,
.gb-shell .cf-call-controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gb-shell .cf-call-surface:not(.is-expanded) .cf-call-grid,
.gb-shell .cf-call-surface:not(.is-expanded) .cf-call-controls-wrapper,
.gb-shell .cf-call-surface:not(.is-expanded) .cf-call-settings {
    display: none;
}

.gb-shell .cf-call-settings.hidden {
    display: none !important;
}

.gb-shell .cf-call-surface.is-stage-panel .cf-call-grid,
.gb-shell .cf-call-surface.is-stage-panel .cf-call-settings,
.gb-shell .cf-call-surface.is-stage-full .cf-call-grid,
.gb-shell .cf-call-surface.is-stage-full .cf-call-settings {
    display: grid;
}

.gb-shell .cf-call-surface.is-stage-panel .cf-call-controls-wrapper,
.gb-shell .cf-call-surface.is-stage-full .cf-call-controls-wrapper {
    display: flex;
}

.gb-shell .cf-call-surface:not(.is-expanded) #call-settings-btn,
.gb-shell .cf-call-surface:not(.is-expanded) #call-toggle-video,
.gb-shell .cf-call-surface:not(.is-expanded) #call-toggle-screen {
    display: none;
}

.gb-shell .cf-call-surface.is-expanded {
    width: calc(100% - 30px);
    border-radius: var(--gb-radius-card);
}

.gb-shell .cf-call-surface.is-stage-full.is-expanded {
    width: auto;
    border-radius: 0;
}

.gb-shell .cf-call-surface.is-expanded .cf-call-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: var(--gb-space-2);
}

.gb-shell .cf-call-grid.has-primary-layout {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
}

.gb-shell .cf-call-primary-wrap {
    width: 100%;
}

.gb-shell .cf-call-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(120px, 14vw, 168px);
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
}

.gb-shell .cf-call-strip::-webkit-scrollbar {
    height: 6px;
}

.gb-shell .cf-call-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.gb-shell .cf-call-participant {
    position: relative;
    min-height: 0;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(45, 74, 96, 0.74), rgba(23, 29, 41, 0.88));
}

.gb-shell .cf-call-participant.is-primary {
    width: 100%;
}

.gb-shell .cf-call-primary-wrap .cf-call-participant {
    max-height: min(46vh, 520px);
}

.gb-shell .cf-call-video-slot {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.64);
}

.gb-shell .cf-call-participant video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.88);
}

.gb-shell .cf-call-fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: rgba(5, 8, 14, 0.74);
    color: rgba(245, 248, 255, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.gb-shell .cf-call-participant:hover .cf-call-fullscreen-btn,
.gb-shell .cf-call-participant:focus-within .cf-call-fullscreen-btn {
    opacity: 1;
}

.gb-shell .cf-call-video-state {
    top: 8px;
    left: 8px;
    right: auto;
    bottom: auto;
}

.gb-shell .cf-call-participant.is-focused {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.28),
        0 0 0 1px color-mix(in srgb, var(--gb-purple) 56%, transparent);
}

.gb-shell .cf-call-surface.is-audio-only .cf-call-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.gb-shell .cf-call-surface.is-audio-only .cf-call-participant {
    min-width: 170px;
    min-height: 84px;
    height: 84px;
    aspect-ratio: auto;
    border-radius: 12px;
    background: rgba(10, 12, 18, 0.72);
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.gb-shell .cf-call-surface.is-audio-only .cf-call-name {
    position: static;
    left: auto;
    bottom: auto;
    max-width: none;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

.gb-shell .cf-call-avatar-shell {
    position: relative;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gb-shell .cf-call-surface.is-audio-only .cf-call-avatar-shell,
.gb-shell .cf-call-surface.is-audio-only .cf-call-avatar {
    width: 56px;
    height: 56px;
}

.gb-shell .cf-call-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.gb-shell .cf-call-avatar-state {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid rgba(8, 10, 14, 0.94);
    background: rgba(239, 36, 56, 0.94);
    color: #fff;
    display: inline-grid;
    place-items: center;
    z-index: 3;
}

.gb-shell .cf-call-avatar-state.is-deafened {
    background: rgba(216, 22, 45, 0.94);
}

.gb-shell .cf-call-controls-wrapper {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    padding: 12px 24px;
    background: transparent;
    border-radius: 24px;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.gb-shell .cf-call-surface.is-stage-panel .cf-call-controls-wrapper,
.gb-shell .cf-call-surface.is-stage-full .cf-call-controls-wrapper {
    display: flex;
}

.gb-shell .cf-call-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gb-shell .cf-call-controls-left { flex: 1; justify-content: flex-start; }
.gb-shell .cf-call-controls-center { flex: 0 0 auto; justify-content: center; gap: 12px; }
.gb-shell .cf-call-controls-right { flex: 1; justify-content: flex-end; }

.gb-shell .cf-call-name {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(8, 10, 15, 0.72);
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 700;
    color: rgba(245, 248, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gb-shell .cf-call-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gb-muted);
}

.gb-shell .cf-call-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: all 0.2s ease;
}

.gb-shell .cf-call-control:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.gb-shell .cf-call-controls-center .cf-call-control {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: rgba(255, 255, 255, 0.15);
}

.gb-shell .cf-call-controls-center .cf-call-control:hover {
    background: rgba(255, 255, 255, 0.22);
}

.gb-shell .cf-call-control-danger {
    background: #f23f43;
    color: #ffffff;
    width: 52px;
    height: 52px;
    min-width: 52px;
}

.gb-shell .cf-call-control-danger:hover {
    background: #d83539;
}

.gb-shell .cf-call-settings {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--gb-space-2);
    margin-top: var(--gb-space-2);
    padding: var(--gb-space-2);
    border: 0;
    border-radius: var(--gb-radius-control);
    background: rgba(0, 0, 0, 0.42);
}

.gb-shell .cf-call-settings label {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: var(--gb-muted);
    font-size: 10px;
}

.gb-shell .cf-call-settings select {
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--gb-text);
}

.gb-shell .message-group {
    position: relative;
    max-width: 100%;
    gap: 4px;
}

.gb-shell .message-meta-side,
.gb-shell [data-group-meta="true"] {
    min-height: 28px;
    padding: 0 4px;
    color: var(--gb-muted);
}

.gb-shell .message-author-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--gb-text);
    font-family: var(--gb-font-ui);
    font-size: 13px;
    line-height: 1.1;
    font-weight: 800;
}

.gb-shell .message-time-label {
    color: var(--gb-faint);
    font-size: 10px;
    font-weight: 700;
}

.gb-shell .message-shell {
    position: relative;
    max-width: min(680px, 82%);
}

.gb-shell .message-shell-system {
    max-width: 100%;
}

.gb-shell .message-bubble,
.gb-shell .message-plain {
    position: relative;
    border: 0;
    border-radius: var(--gb-radius-card);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
    color: var(--gb-text);
}

.gb-shell .message-plain {
    padding: 4px 6px;
    background: transparent;
}

.gb-shell .msg-bubble-user,
.gb-shell .msg-bubble-other {
    background: rgba(255, 255, 255, 0.048);
}

.gb-shell .message-bubble-mentioned,
.gb-shell .message-plain-mentioned {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--gb-yellow) 12%, transparent), transparent 72%),
        rgba(255, 255, 255, 0.052);
}

.gb-shell .message-text {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(247, 248, 252, 0.88);
}

.gb-shell .message-action-rail {
    position: absolute;
    top: -11px;
    right: 6px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--gb-ease);
}

.gb-shell .message-shell.is-right .message-action-rail {
    right: auto;
    left: 6px;
}

.gb-shell .message-shell:hover .message-action-rail,
.gb-shell .message-shell:active .message-action-rail {
    opacity: 1;
    pointer-events: auto;
}

.gb-shell .message-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--gb-radius-pill);
    background: rgba(8, 8, 10, 0.9);
    color: var(--gb-muted);
    font-size: 10px;
    font-weight: 800;
    box-shadow: none;
}

.gb-shell .message-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gb-text);
}

.gb-shell .message-action-btn svg {
    width: 14px;
    height: 14px;
}

.gb-shell .message-system-bubble {
    max-width: min(440px, 86%);
    margin: 4px auto;
    padding: 8px 14px;
    border: 0;
    border-radius: var(--gb-radius-pill);
    background: rgba(255, 255, 255, 0.055);
    color: var(--gb-muted);
    font-size: 12px;
    text-align: center;
}

.gb-shell .chat-day-separator {
    width: 100%;
    margin: 12px 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: rgba(235, 241, 248, 0.46);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gb-shell .chat-day-separator::before,
.gb-shell .chat-day-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(182, 192, 238, 0.28);
}

.gb-shell .channels-conversation-live-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.gb-shell .channels-conversation-live-tag .cf-live-icon {
    width: 11px;
    height: 11px;
}

.gb-shell .channels-conversation-live-tag .cf-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b8f;
}

.gb-shell .channels-member-count-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    min-width: 84px;
    margin-left: auto;
}

.gb-shell .channels-member-count-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.gb-shell .spotify-live-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    min-width: 14px;
}

.gb-shell .spotify-live-indicator-icon,
.gb-shell .spotify-live-indicator-tooltip-logo {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
}

.gb-shell .spotify-live-indicator-icon svg,
.gb-shell .spotify-live-indicator-tooltip-logo svg {
    width: 10px !important;
    height: 10px !important;
}

.gb-shell .spotify-live-indicator-tooltip {
    display: none !important;
}

.gb-shell .section-divider,
.gb-shell .splitter,
.gb-shell hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.gb-shell .message-reply-preview {
    width: 100%;
    margin-bottom: 8px;
    padding: 7px 9px;
    border: 0;
    border-radius: var(--gb-radius-control);
    background: rgba(0, 0, 0, 0.32);
    color: var(--gb-muted);
    text-align: left;
}

.gb-shell .message-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.gb-shell .message-image-attachment {
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.gb-shell .message-image-attachment img,
.gb-shell .message-image-attachment video {
    width: 100%;
    display: block;
}

.gb-shell .message-image-attachment.is-audio {
    padding: 8px;
}

.gb-shell .message-image-attachment.is-audio audio {
    width: 100%;
}

.gb-shell .message-image-expired {
    margin-top: 6px;
}

/* Sidebar and rail cleanup for the rebuilt shell. */
.gb-shell .channels-utility-panel {
    padding-top: 0 !important;
    padding-bottom: var(--gb-space-2) !important;
}

.gb-shell .channels-nav-cluster {
    display: grid;
    gap: var(--gb-space-2);
    padding: 0;
}

.gb-shell .channels-nav-primary-row {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 34px;
}

.gb-shell .cf-home-nav-button {
    position: relative;
    display: block;
    overflow: hidden;
}

.gb-shell .cf-home-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gb-shell .cf-home-icon-hover {
    opacity: 0;
}

.gb-shell .cf-home-nav-button:hover .cf-home-icon-raw {
    opacity: 0;
}

.gb-shell .cf-home-nav-button:hover .cf-home-icon-hover {
    opacity: 1;
}

.gb-shell .channels-nav-switcher {
    width: 100%;
    min-height: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.gb-shell .channels-browser-panel > .flex:first-child {
    margin-bottom: var(--gb-space-2);
    align-items: end;
}

.gb-shell #joined-channel-heading {
    margin: 0;
    padding-left: 4px;
    font-size: 13px;
    line-height: 1.15;
}

.gb-shell #joined-channel-subheading {
    margin-top: 4px;
    padding-left: 4px;
    max-width: 160px;
    font-size: 10px;
    line-height: 1.35;
}

.gb-shell .channels-conversation-card.is-active {
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--conversation-start, var(--gb-purple)) 34%, rgba(8, 9, 12, 0.9)),
            color-mix(in srgb, var(--conversation-end, var(--gb-blue)) 34%, rgba(8, 9, 12, 0.9))
        );
}

.gb-shell .channels-conversation-card.is-active:hover {
    background:
        linear-gradient(
            90deg,
            color-mix(in srgb, var(--conversation-start, var(--gb-purple)) 42%, rgba(8, 9, 12, 0.84)),
            color-mix(in srgb, var(--conversation-end, var(--gb-blue)) 42%, rgba(8, 9, 12, 0.84))
        );
}

.gb-shell .channels-conversation-card.is-active::after {
    opacity: 0;
    background: transparent;
}

.gb-shell .channels-member-card.is-active::after {
    opacity: 0;
    background: transparent;
}

.gb-shell .channels-member-card:hover::after {
    opacity: 0.78;
    background: linear-gradient(90deg, transparent, var(--member-start, var(--gb-purple)), var(--member-end, transparent));
}

.gb-shell .channels-self-panel {
    margin-top: auto;
}

.gb-shell .channels-self-card-pill {
    min-height: 0;
}

.gb-shell .channels-self-expanded {
    padding: 6px;
}

.gb-shell .channels-self-expanded-row {
    min-height: 32px;
    padding: 6px 7px;
}

.gb-shell .channels-self-expanded-kicker {
    display: block;
    color: var(--gb-muted);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.gb-shell .channels-self-expanded-title {
    display: block;
    margin-top: 3px;
    color: var(--gb-text);
    font-size: 13px;
    line-height: 1.15;
}

.gb-shell .channels-self-profile-button {
    padding: 5px 6px;
}

.gb-shell .channels-self-voice-row {
    padding: 0 6px 5px;
}

.gb-shell .channels-self-voice-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
}

.gb-shell .developer-badge,
.gb-shell .premium-badge,
.gb-shell .cf-role-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    height: 16px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--gb-radius-pill);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: var(--gb-muted);
    font-size: 8px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.gb-shell #server-auth-entry {
    display: none;
}

.gb-shell .cf-action-menu {
    position: fixed;
    z-index: 88;
    min-width: 164px;
    padding: 5px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
        rgba(7, 9, 13, 0.78);
    backdrop-filter: blur(22px) saturate(140%);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.3);
}

.gb-shell .cf-action-menu.hidden {
    display: none;
}

.gb-shell .cf-action-menu button {
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--gb-text);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.gb-shell .cf-action-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gb-shell .channels-member-menu-btn svg,
.gb-shell .friends-workspace-menu-btn svg,
.gb-shell .group-chat-toggle-btn svg {
    width: 13px;
    height: 13px;
    display: block;
}

.gb-shell .cf-action-menu-divider {
    height: 1px;
    margin: 4px 3px;
    background: rgba(255, 255, 255, 0.12);
}

.gb-shell .cf-action-menu-section {
    padding: 5px 9px 4px;
    color: var(--gb-faint);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.gb-shell .friends-workspace-shell {
    height: 100%;
    width: 100%;
    max-width: none;
    padding: 24px var(--gb-space-4) var(--gb-space-4);
    display: flex;
    flex-direction: column;
    gap: var(--gb-space-2);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(168, 132, 255, 0.04), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(100, 180, 255, 0.03), transparent 50%),
        transparent;
}

.gb-shell .friends-workspace-header,
.gb-shell .friends-workspace-tabs,
.gb-shell .friends-workspace-launch-card {
    border: 0;
    border-radius: var(--gb-radius-card);
    background: rgba(0, 0, 0, 0.62);
}

.gb-shell .friends-workspace-title {
    color: var(--gb-text);
}

.gb-shell .friends-workspace-kicker,
.gb-shell .friends-workspace-status {
    color: var(--gb-muted);
}

.gb-shell .friends-workspace-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--gb-space-2);
    padding: 10px 12px;
}

.gb-shell .friends-workspace-header-title-group {
    min-width: 0;
}

.gb-shell .friends-workspace-launchers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    align-items: center;
    gap: 6px;
    justify-content: end;
}

.gb-shell .friends-workspace-launch-btn {
    min-height: 31px;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(247, 249, 255, 0.9);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.gb-shell .friends-workspace-launch-btn:hover {
    background: rgba(125, 132, 144, 0.28);
}

.gb-shell .friends-workspace-launch-title {
    margin: 0 0 8px;
    color: rgba(245, 248, 255, 0.62);
    font-size: 11px;
    font-weight: 700;
}

.gb-shell .friends-workspace-launch-copy {
    margin: 0 0 10px;
    color: rgba(245, 248, 255, 0.46);
    font-size: 10px;
    line-height: 1.35;
}

.gb-shell .friends-workspace-launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 10px;
}

.gb-shell .friends-workspace-launch-card {
    padding: 12px 12px 11px;
    border-radius: 11px;
    background: rgba(6, 7, 10, 0.74);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.gb-shell .friends-workspace-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.gb-shell .friends-workspace-tab {
    min-height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--gb-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.gb-shell .friends-workspace-tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gb-text);
}

.gb-shell .friends-workspace-tab.is-active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    color: var(--gb-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gb-shell .friends-workspace-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 6px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.gb-shell .friends-workspace-card:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(168, 183, 255, 0.14);
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gb-shell .friends-workspace-card-main {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--gb-space-2);
    padding: var(--gb-space-2);
    border: 0;
    background: transparent;
    text-align: left;
}

.gb-shell .friends-workspace-card-side {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--gb-space-2);
    padding-right: var(--gb-space-2);
}

.gb-shell .friends-workspace-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}

.gb-shell .friends-workspace-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gb-shell .friends-workspace-section {
    display: flex;
    flex-direction: column;
    gap: var(--gb-space-2);
    min-height: 0;
}

.gb-shell .friends-workspace-card-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gb-shell .friends-workspace-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px;
    color: var(--gb-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.gb-shell .friends-workspace-letter-stack,
.gb-shell .friends-workspace-letter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gb-shell .friends-workspace-letter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 6px;
}

.gb-shell .friends-workspace-empty {
    border-radius: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--gb-muted);
    font-size: 12px;
}

.gb-shell .gb-knock-card {
    min-height: 64px;
}

.gb-shell .friends-workspace-card-state {
    border: 0;
    border-radius: var(--gb-radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: var(--gb-muted);
}

.gb-shell .friends-workspace-action-btn,
.gb-shell .admin-soft-button,
.gb-shell .channels-notification-read {
    border: 0;
    border-radius: var(--gb-radius-pill);
    background: rgba(255, 255, 255, 0.07);
    color: var(--gb-text);
}

/* Report modal + media lightbox */
.report-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(14px);
}

.report-modal-backdrop.hidden {
    display: none;
}

.report-modal {
    width: min(520px, calc(100vw - 28px));
    border: 0;
    border-radius: 14px;
    background: rgba(8, 10, 14, 0.92);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
    color: rgba(245, 248, 255, 0.92);
    overflow: hidden;
}

.report-modal .report-select,
.report-modal .report-field {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(245, 248, 255, 0.94);
    padding: 10px 12px;
    font: inherit;
}

.report-modal .report-field {
    min-height: 116px;
    resize: vertical;
}

.report-modal #report-modal-close {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 248, 255, 0.84);
}

.report-modal #report-cancel,
.report-modal #report-submit {
    border: 0;
    border-radius: 999px;
    min-height: 34px;
    padding: 0 14px;
    font-family: var(--gb-font-ui);
    font-size: 12px;
    font-weight: 700;
}

.report-modal #report-cancel {
    background: rgba(255, 255, 255, 0.09);
    color: rgba(245, 248, 255, 0.82);
}

.report-modal #report-submit {
    background: rgba(124, 255, 178, 0.2);
    color: rgba(220, 255, 234, 0.95);
}

.report-modal .suspension-reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.report-modal .suspension-reason-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(245, 248, 255, 0.86);
    cursor: pointer;
    user-select: none;
}

.report-modal .suspension-reason-chip input {
    accent-color: rgba(124, 255, 178, 0.9);
}

.report-modal .suspension-reason-chip span {
    font-size: 12px;
    line-height: 1.25;
}

.report-modal .uppercase,
.report-modal [class*="uppercase"] {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(14px);
    display: grid;
    place-items: center;
    padding: 18px;
}

.image-lightbox.hidden {
    display: none;
}

.image-lightbox-shell {
    position: relative;
    max-width: min(92vw, 1240px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(9, 11, 16, 0.84);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.44);
}

#image-lightbox-image {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.16s ease;
}

.image-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.52);
    color: rgba(245, 248, 255, 0.92);
    font-size: 20px;
    line-height: 1;
    display: inline-grid;
    place-items: center;
}

.gb-shell .message-image-attachment {
    cursor: zoom-in;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.gb-shell .message-image-attachment:hover {
    background: rgba(255, 255, 255, 0.08);
}

.gb-shell .cf-sticker-panel.hidden {
    display: none !important;
}

.gb-shell .cf-sticker-grid {
    min-height: 88px;
}

.gb-shell .cf-sticker-item {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.gb-shell .cf-sticker-item img {
    object-fit: contain;
    background: rgba(0, 0, 0, 0.18);
}

/* Remove caps-heavy visual voice in chat shell */
.gb-shell .uppercase,
.gb-shell [class*="uppercase"],
.gb-shell .channels-section-eyebrow,
.gb-shell .channels-member-count-label,
.gb-shell .cf-call-eyebrow,
.gb-shell .friends-workspace-kicker,
.gb-shell .friends-workspace-section-head,
.gb-shell .friends-workspace-letter {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}

.gb-shell *:not(.cf-gift-badge):not(.cf-gift-action):not(.cf-gift-kicker):not(.cf-gift-duration-badge) {
    text-transform: none !important;
}

.gb-shell .channels-member-count-wrap {
    justify-content: flex-end;
    text-align: right;
    margin-left: auto;
}

.gb-shell #room-member-panel > div:first-child {
    justify-content: space-between !important;
    gap: 8px;
}

.gb-shell #room-member-count {
    display: inline-block;
    min-width: 2ch;
    text-align: right;
}

.gb-shell .friends-workspace-action-btn.is-primary {
    background: rgba(150, 168, 255, 0.2);
    color: rgba(228, 234, 255, 0.96);
}

.gb-shell .channels-empty-card,
.gb-shell .gb-empty-state {
    border: 0;
    border-radius: var(--gb-radius-panel);
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.gb-shell .channels-empty-eyebrow {
    color: var(--gb-green);
}

.gb-shell .channels-empty-title {
    color: var(--gb-text);
}

.gb-shell .channels-empty-copy {
    color: var(--gb-muted);
}

.gb-shell .channels-modal {
    z-index: 80;
}

.gb-shell .channels-modal-card {
    background: var(--gb-frost-strong);
    backdrop-filter: blur(22px);
}

.gb-shell .channels-panel,
.gb-shell .admin-sidebar-panel,
.gb-shell .channels-member-search-panel {
    padding: 0;
}

.gb-shell #room-member-search,
.gb-shell .channels-sidebar-search {
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0);
    font-size: 11px;
}

.gb-shell .channels-modal-eyebrow {
    color: var(--gb-green);
}

.gb-shell .gb-sparks-list,
.gb-shell .channels-modal-list {
    display: flex;
    flex-direction: column;
    gap: var(--gb-space-2);
}

.gb-shell #friends-workspace {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
}

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

.gb-shell .friends-workspace-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.gb-shell .friends-workspace-list,
.gb-shell #joined-channel-list,
.gb-shell #room-member-list,
.gb-shell .cf-sticker-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.gb-shell .friends-workspace-list::-webkit-scrollbar,
.gb-shell #joined-channel-list::-webkit-scrollbar,
.gb-shell #room-member-list::-webkit-scrollbar,
.gb-shell .cf-sticker-panel::-webkit-scrollbar {
    width: 6px;
}

.gb-shell .friends-workspace-list::-webkit-scrollbar-thumb,
.gb-shell #joined-channel-list::-webkit-scrollbar-thumb,
.gb-shell #room-member-list::-webkit-scrollbar-thumb,
.gb-shell .cf-sticker-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.gb-shell .group-chat-toggle-btn {
    border: 0;
    border-radius: 999px;
    background: rgba(10, 12, 18, 0.72);
    color: rgba(245, 248, 255, 0.7);
    backdrop-filter: blur(18px);
}

.gb-shell .group-chat-toggle-btn.is-open,
.gb-shell .group-chat-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gb-text);
}

/* --- Ultra-Premium Voyager Gift Overhaul (Holo-Glass Edition) --- */

.gb-shell .cf-gift-surface {
    width: min(340px, 100%);
    margin-top: 16px;
    border-radius: 32px;
    border: 1px solid rgba(100, 220, 255, 0.35);
    background: 
        radial-gradient(ellipse 140% 100% at 50% 120%, rgba(0, 210, 255, 0.75) 0%, rgba(0, 140, 220, 0.4) 40%, transparent 70%),
        radial-gradient(ellipse 80% 80% at -10% 10%, rgba(0, 180, 255, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse 60% 60% at 110% 10%, rgba(100, 220, 255, 0.35) 0%, transparent 50%),
        linear-gradient(160deg, rgba(0, 40, 80, 0.88) 0%, rgba(0, 20, 50, 0.95) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(100, 220, 255, 0.4),
        inset 0 -1px 3px rgba(0, 180, 255, 0.1),
        0 0 50px rgba(0, 180, 255, 0.35),
        0 0 100px rgba(0, 140, 220, 0.15);
    padding: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    font-family: "Outfit", sans-serif;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
    animation: cfGiftFloat 4s ease-in-out infinite, cfGiftPulse 3s ease-in-out infinite;
}

@keyframes cfGiftPulse {
    0%, 100% { box-shadow: 0 24px 48px rgba(0,0,0,0.5), inset 0 1px 2px rgba(100,220,255,0.4), 0 0 50px rgba(0,180,255,0.3); }
    50% { box-shadow: 0 32px 64px rgba(0,0,0,0.6), inset 0 1px 2px rgba(100,220,255,0.6), 0 0 80px rgba(0,200,255,0.55), 0 0 120px rgba(0,140,220,0.2); }
}

@keyframes cfGiftFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.gb-shell .cf-gift-surface:hover {
    animation-play-state: paused;
    transform: perspective(1000px) rotateX(3deg) rotateY(-2deg) scale(1.03) translateY(-4px);
    box-shadow: 
        0 36px 64px rgba(0, 0, 0, 0.6),
        inset 0 1px 3px rgba(100, 220, 255, 0.6),
        0 0 70px rgba(0, 200, 255, 0.5),
        0 0 140px rgba(0, 140, 220, 0.2);
}

.gb-shell .cf-gift-shimmer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.1) 55%, transparent 80%);
    background-size: 250% 250%;
    animation: cfGiftShimmer 8s linear infinite;
    mix-blend-mode: overlay;
    border-radius: inherit;
}

@keyframes cfGiftShimmer {
    0% { background-position: 200% center; }
    20%, 100% { background-position: -100% center; }
}

.gb-shell .cf-gift-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.08;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
    mix-blend-mode: color-dodge;
}

.gb-shell .cf-gift-badge {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 24px;
    border: none;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.6);
    text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}

.gb-shell .cf-gift-badge::before {
    display: none;
}

.gb-shell .cf-gift-kicker {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gb-shell .cf-gift-duration-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 220, 255, 0.95);
    background: rgba(0, 220, 255, 0.12);
    border: 1px solid rgba(0, 220, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 220, 255, 0.5);
}

.gb-shell .cf-gift-title {
    position: relative;
    z-index: 3;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0;
    background: linear-gradient(to right, #fff 20%, #a0f0ff 40%, #00d4ff 60%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cfGiftTitleGlimmer 6s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    text-shadow: none;
}

.gb-shell .cf-gift-status {
    position: relative;
    z-index: 3;
    margin-top: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.gb-shell .cf-gift-action-wrap {
    position: relative;
    z-index: 3;
    margin-top: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.0));
    padding: 2px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.gb-shell .cf-gift-action {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #111;
    border: none;
    border-radius: 18px;
    font-weight: 900;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.gb-shell .cf-gift-action::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.gb-shell .cf-gift-action:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.8), 0 12px 24px rgba(255, 105, 180, 0.3);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.gb-shell .cf-gift-action:not(:disabled):hover::after {
    transform: translateX(100%);
}

.gb-shell .cf-gift-action:not(:disabled):active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 8px rgba(0,0,0,0.2);
}

.gb-shell .cf-gift-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.gb-shell .cf-gift-action:disabled::after {
    display: none;
}

.gb-shell .cf-gift-icon-wrap {
    display: none !important;
}

/* Ensure the SVG stroke color applies properly, falling back to white if gradient not present */
.gb-shell .cf-gift-icon-wrap svg path,
.gb-shell .cf-gift-icon-wrap svg rect,
.gb-shell .cf-gift-icon-wrap svg line,
.gb-shell .cf-gift-icon-wrap svg polyline {
    stroke: rgba(255, 255, 255, 0.8);
}



/* ===== DEAD STATES: Claimed / Expired / Invalid ===== */
.gb-shell .cf-gift-surface[data-gift-status="claimed"],
.gb-shell .cf-gift-surface[data-gift-status="expired"],
.gb-shell .cf-gift-surface[data-gift-status="invalid"] {
    background:
        linear-gradient(135deg, rgba(40, 40, 45, 0.9) 0%, rgba(25, 25, 30, 0.95) 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
    animation: none !important;
    filter: saturate(0.15) brightness(0.85);
}


.gb-shell .cf-gift-surface[data-gift-status="claimed"] .cf-gift-shimmer,
.gb-shell .cf-gift-surface[data-gift-status="expired"] .cf-gift-shimmer,
.gb-shell .cf-gift-surface[data-gift-status="invalid"] .cf-gift-shimmer {
    display: none !important;
}

.gb-shell .cf-gift-surface[data-gift-status="claimed"] .cf-gift-badge,
.gb-shell .cf-gift-surface[data-gift-status="expired"] .cf-gift-badge,
.gb-shell .cf-gift-surface[data-gift-status="invalid"] .cf-gift-badge {
    background: linear-gradient(135deg, #6b6b6b, #505050) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.gb-shell .cf-gift-surface[data-gift-status="claimed"] .cf-gift-title,
.gb-shell .cf-gift-surface[data-gift-status="expired"] .cf-gift-title,
.gb-shell .cf-gift-surface[data-gift-status="invalid"] .cf-gift-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.45) !important;
    animation: none !important;
    filter: none !important;
}

.gb-shell .cf-gift-surface[data-gift-status="claimed"] .cf-gift-icon-wrap,
.gb-shell .cf-gift-surface[data-gift-status="expired"] .cf-gift-icon-wrap,
.gb-shell .cf-gift-surface[data-gift-status="invalid"] .cf-gift-icon-wrap {
    opacity: 0.06 !important;
    filter: grayscale(1) !important;
}

.gb-shell .cf-gift-surface[data-gift-status="claimed"] .cf-gift-duration-badge,
.gb-shell .cf-gift-surface[data-gift-status="expired"] .cf-gift-duration-badge,
.gb-shell .cf-gift-surface[data-gift-status="invalid"] .cf-gift-duration-badge {
    color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    text-shadow: none !important;
}

.gb-shell .cf-gift-surface[data-gift-status="claimed"]:hover,
.gb-shell .cf-gift-surface[data-gift-status="expired"]:hover,
.gb-shell .cf-gift-surface[data-gift-status="invalid"]:hover {
    transform: none !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
}


.gb-shell .cf-emoji-picker {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translateX(-50%) scale(0.92) translateY(8px);
    width: min(440px, calc(100vw - 26px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background:
        radial-gradient(ellipse at 30% -10%, rgba(168, 132, 255, 0.14), transparent 48%),
        radial-gradient(ellipse at 70% 110%, rgba(100, 180, 255, 0.08), transparent 50%),
        rgba(8, 10, 18, 0.92);
    backdrop-filter: blur(36px) saturate(170%);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 22;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.gb-shell .cf-emoji-picker:not(.hidden) {
    transform: translateX(-50%) scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.gb-shell .cf-emoji-picker.hidden {
    display: none;
}

.gb-shell .cf-emoji-tabs,
.gb-shell .cf-emoji-nav,
.gb-shell .cf-emoji-recent {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gb-shell .cf-emoji-tabs button,
.gb-shell .cf-emoji-nav button,
.gb-shell .cf-emoji-recent button,
.gb-shell .cf-emoji-grid button {
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(245, 248, 255, 0.88);
    transition: all 0.15s ease;
}

.gb-shell .cf-emoji-tabs button:hover,
.gb-shell .cf-emoji-nav button:hover,
.gb-shell .cf-emoji-recent button:hover,
.gb-shell .cf-emoji-grid button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.gb-shell .cf-emoji-tabs button {
    min-height: 32px;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
}

.gb-shell .cf-emoji-tabs button.is-active {
    background: linear-gradient(135deg, rgba(168, 183, 255, 0.3), rgba(120, 140, 255, 0.2));
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(168, 183, 255, 0.25);
    border: 1px solid rgba(168, 183, 255, 0.18);
}

.gb-shell .cf-emoji-picker input {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(246, 248, 255, 0.95);
    padding: 0 14px;
    margin-bottom: 12px;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gb-shell .cf-emoji-picker input:focus {
    border-color: rgba(168, 183, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(168, 183, 255, 0.1);
    outline: none;
}

.gb-shell .cf-emoji-grid {
    max-height: 240px;
    display: grid;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
}

.gb-shell .cf-emoji-grid section div {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 8px;
}

.gb-shell .cf-emoji-grid button,
.gb-shell .cf-emoji-recent button {
    min-height: 36px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gb-shell .cf-sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-height: 240px;
    padding-right: 4px;
}

.gb-shell .cf-sticker-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 312px;
    overflow-y: auto;
}

.gb-shell .cf-sticker-item-wrap {
    position: relative;
}

.gb-shell .cf-sticker-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    padding: 0;
}

.gb-shell .cf-sticker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gb-shell .cf-sticker-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 999px;
    background: rgba(7, 9, 14, 0.72);
    color: rgba(255, 255, 255, 0.72);
    display: inline-grid;
    place-items: center;
}

.gb-shell .cf-sticker-empty {
    min-height: 26px;
    color: rgba(245, 248, 255, 0.72);
    font-size: 11px;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.gb-shell .cf-sticker-empty.is-note {
    color: rgba(245, 248, 255, 0.58);
}

.gb-shell .cf-sticker-upload {
    width: 100%;
    min-height: 30px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(246, 248, 255, 0.92);
    font-size: 11px;
    font-family: var(--gb-font-ui);
    font-weight: 700;
}

.gb-shell .channels-notification-card {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(245, 248, 255, 0.9);
}

.gb-shell .channels-notification-read {
    min-height: 24px;
    padding: 0 9px;
    font-size: 10px;
    font-family: var(--gb-font-ui);
}

.gb-shell .channels-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.gb-shell .channels-modal-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hard clamp icon + badge leaks from legacy style layers */
.gb-shell .developer-badge,
.gb-shell .cf-role-tag-developer {
    display: none !important;
}

.gb-shell .cf-music-icon,
.gb-shell .spotify-live-indicator .cf-music-icon,
.gb-shell .spotify-live-indicator-tooltip-logo .cf-music-icon {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    display: block;
}

.gb-shell #friends-workspace {
    width: 100%;
    height: 100%;
}
