/* /Pages/Chat.razor.rz.scp.css */
.relay-shell[b-ngdbhysi0j] {
    display: grid;
    grid-template-columns: 388px minmax(0, 1fr) 280px;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(43, 75, 108, 0.18), transparent 24%),
        linear-gradient(180deg, #0c1219 0%, #101923 100%);
    color: #eef3f8;
}

.relay-shell--voice[b-ngdbhysi0j] {
    grid-template-columns: 388px minmax(0, 1fr);
}

.relay-left-panel[b-ngdbhysi0j] {
    display: grid;
    grid-template-columns: 72px 292px;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100vh;
    min-height: 0;
    padding: 8px;
    gap: 8px;
    border-right: 1px solid rgba(160, 175, 196, 0.08);
    background: rgba(8, 12, 18, 0.58);
}

.relay-server-rail[b-ngdbhysi0j],
.relay-sidebar[b-ngdbhysi0j],
.relay-content[b-ngdbhysi0j],
.relay-members[b-ngdbhysi0j] {
    min-height: 0;
}

.relay-server-rail[b-ngdbhysi0j] {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    overflow-y: auto;
    background: rgba(5, 8, 12, 0.76);
    border-right: 1px solid rgba(160, 175, 196, 0.1);
    border-radius: 24px;
}

.relay-rail-button[b-ngdbhysi0j],
.relay-server-pill[b-ngdbhysi0j] {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: none;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(19, 30, 42, 0.96);
    color: #eef3f8;
    text-decoration: none;
    transition: transform 0.16s ease, border-radius 0.16s ease, background 0.16s ease;
}

.relay-rail-button span[b-ngdbhysi0j] {
    font-size: 10px;
    line-height: 1;
}

.relay-rail-button :global(.mud-icon-root)[b-ngdbhysi0j] {
    font-size: 1.1rem;
}

.relay-rail-button:hover[b-ngdbhysi0j],
.relay-server-pill:hover[b-ngdbhysi0j] {
    transform: translateY(-2px);
    border-radius: 14px;
    background: rgba(34, 52, 71, 0.96);
}

.relay-rail-button--primary[b-ngdbhysi0j],
.relay-server-pill--active[b-ngdbhysi0j] {
    background: linear-gradient(180deg, #5b8cff 0%, #2f65ea 100%);
}

.relay-server-pill[b-ngdbhysi0j] {
    font-size: 18px;
    font-weight: 700;
}

.relay-server-pill--action[b-ngdbhysi0j] {
    cursor: pointer;
}

.relay-rail-divider[b-ngdbhysi0j] {
    width: 38px;
    height: 1px;
    background: rgba(154, 164, 178, 0.2);
    margin: 2px 0;
}

.relay-sidebar[b-ngdbhysi0j],
.relay-members[b-ngdbhysi0j] {
    background: rgba(10, 15, 22, 0.82);
    border-right: 1px solid rgba(160, 175, 196, 0.08);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

.relay-sidebar__grow[b-ngdbhysi0j] {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.relay-sidebar[b-ngdbhysi0j] {
    grid-column: 2;
    grid-row: 1;
    border-right: none;
    min-height: 0;
    border-radius: 24px;
}

.relay-members[b-ngdbhysi0j] {
    border-right: none;
    border-left: 1px solid rgba(160, 175, 196, 0.08);
}

.relay-members__list[b-ngdbhysi0j] {
    min-height: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.relay-sidebar__header[b-ngdbhysi0j],
.relay-members__header[b-ngdbhysi0j],
.relay-channel-header[b-ngdbhysi0j] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.relay-sidebar__header h1[b-ngdbhysi0j],
.relay-members__header h2[b-ngdbhysi0j],
.relay-channel-header h2[b-ngdbhysi0j] {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.relay-eyebrow[b-ngdbhysi0j] {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    color: #8f9bad;
    margin-bottom: 8px;
}

.relay-empty-panel[b-ngdbhysi0j],
.relay-state-card[b-ngdbhysi0j] {
    border: 1px solid rgba(160, 175, 196, 0.1);
    border-radius: 22px;
    background: rgba(15, 22, 31, 0.94);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.relay-channel-create[b-ngdbhysi0j] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.relay-channel-list[b-ngdbhysi0j] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: auto;
    min-height: 0;
    flex: 1;
}

.relay-channel-item[b-ngdbhysi0j] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    color: #c8d1dd;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.relay-channel-item:hover[b-ngdbhysi0j] {
    background: rgba(27, 39, 53, 0.9);
    border-color: rgba(160, 175, 196, 0.08);
}

.relay-channel-item--active[b-ngdbhysi0j] {
    background: rgba(45, 70, 99, 0.92);
    color: #f7fbff;
}

.relay-channel-item__icon[b-ngdbhysi0j] {
    width: 24px;
    display: flex;
    justify-content: center;
}

.relay-content[b-ngdbhysi0j] {
    min-width: 0;
    min-height: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.relay-message-scroll[b-ngdbhysi0j],
.relay-voice-stage[b-ngdbhysi0j] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 26px;
    border: 1px solid rgba(160, 175, 196, 0.08);
    background: rgba(11, 17, 24, 0.94);
    padding: 22px;
}

.relay-voice-stage[b-ngdbhysi0j] {
    justify-content: stretch;
    overflow: hidden;
}

.relay-voice-header[b-ngdbhysi0j] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
}

.relay-voice-header h2[b-ngdbhysi0j] {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
}

.relay-voice-header :global(.mud-icon-root)[b-ngdbhysi0j] {
    color: #9cc7ff;
}

.relay-voice-grid[b-ngdbhysi0j] {
    width: 100%;
    height: 100%;
}

.relay-message-scroll[b-ngdbhysi0j] {
    justify-content: flex-end;
    overflow: auto;
}

.relay-voice-controls[b-ngdbhysi0j] {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 0;
}

.relay-voice-controls :global(.mud-icon-button-root)[b-ngdbhysi0j] {
    background: rgba(15, 22, 31, 0.96);
    border: 1px solid rgba(160, 175, 196, 0.1);
    width: 36px;
    height: 36px;
    padding: 6px;
}

.relay-empty-messages[b-ngdbhysi0j] {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8f9bad;
}

.relay-day-divider[b-ngdbhysi0j] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 22px;
    color: #8f9bad;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.relay-day-divider[b-ngdbhysi0j]::before,
.relay-day-divider[b-ngdbhysi0j]::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(160, 175, 196, 0.12);
}

.relay-message-group[b-ngdbhysi0j] {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.relay-message-group__avatar[b-ngdbhysi0j] {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    overflow: hidden;
    background: #2a3442;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.relay-message-group__avatar img[b-ngdbhysi0j],
.relay-member-row__avatar img[b-ngdbhysi0j] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.relay-message-group__body[b-ngdbhysi0j] {
    min-width: 0;
}

.relay-message-group__header[b-ngdbhysi0j] {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.relay-message-group__author[b-ngdbhysi0j] {
    font-weight: 700;
    color: #f5f7fa;
}

.relay-message-group__timestamp[b-ngdbhysi0j] {
    font-size: 12px;
    color: #8f9bad;
}

.relay-message-group__messages[b-ngdbhysi0j] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.relay-message-line[b-ngdbhysi0j] {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.relay-message-line__content[b-ngdbhysi0j] {
    white-space: pre-wrap;
    line-height: 1.5;
    color: #d8e0eb;
}

.relay-message-line__meta[b-ngdbhysi0j] {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    color: #8f9bad;
    flex-shrink: 0;
}

.relay-message-line__state[b-ngdbhysi0j],
.relay-message-line__edited[b-ngdbhysi0j] {
    font-size: 12px;
    margin-top: 6px;
}

.relay-message-line__edit[b-ngdbhysi0j] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.relay-message-line__edit-actions[b-ngdbhysi0j] {
    display: flex;
    gap: 8px;
}

.relay-composer[b-ngdbhysi0j] {
    border-radius: 22px;
    border: 1px solid rgba(160, 175, 196, 0.1);
    background: rgba(15, 22, 31, 0.96);
    padding: 12px 14px;
}

.relay-composer__input[b-ngdbhysi0j] {
    display: block;
    width: 100%;
    min-height: calc(1.5em + 2px);
    max-height: 33vh;
    height: calc(1.5em + 2px);
    padding: 0;
    margin: 0;
    resize: none;
    overflow-y: hidden;
    border: none;
    outline: none;
    background: transparent;
    color: #f5f7fa;
    font: inherit;
    line-height: 1.5;
}

.relay-composer__input[b-ngdbhysi0j]::placeholder {
    color: #6f7b8a;
}

.relay-user-pane[b-ngdbhysi0j] {
    grid-column: 1 / span 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(160, 175, 196, 0.1);
    background: rgba(15, 22, 31, 0.96);
    position: relative;
    z-index: 1;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.relay-user-pane__main[b-ngdbhysi0j] {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.relay-user-pane__avatar[b-ngdbhysi0j] {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    overflow: hidden;
    background: #2a3442;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.relay-user-pane__avatar img[b-ngdbhysi0j] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.relay-user-pane__body[b-ngdbhysi0j] {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.relay-user-pane__name[b-ngdbhysi0j] {
    color: #f5f7fa;
    font-weight: 600;
}

.relay-user-pane__handle[b-ngdbhysi0j] {
    color: #8f9bad;
    font-size: 13px;
}

.relay-user-pane__actions[b-ngdbhysi0j] {
    display: flex;
    align-items: center;
    gap: 2px;
}

.relay-member-group[b-ngdbhysi0j] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.relay-member-group h3[b-ngdbhysi0j] {
    margin: 0;
    font-size: 12px;
    color: #8f9bad;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.relay-member-row[b-ngdbhysi0j] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.relay-member-row__avatar[b-ngdbhysi0j] {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    background: #2a3442;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.relay-member-row__body[b-ngdbhysi0j] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.relay-member-row__name[b-ngdbhysi0j] {
    color: #f5f7fa;
}

.relay-member-row__handle[b-ngdbhysi0j] {
    color: #8f9bad;
    font-size: 13px;
}

.relay-settings-backdrop[b-ngdbhysi0j] {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 9, 14, 0.42);
    backdrop-filter: blur(8px);
}

.relay-settings-modal[b-ngdbhysi0j] {
    width: min(520px, 100%);
    border-radius: 24px;
    border: 1px solid rgba(160, 175, 196, 0.12);
    background: rgba(12, 18, 25, 0.98);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.4);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.relay-settings-modal__body[b-ngdbhysi0j] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.relay-settings-modal__actions[b-ngdbhysi0j] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 1400px) {
    .relay-shell[b-ngdbhysi0j] {
        grid-template-columns: 358px minmax(0, 1fr) 240px;
    }

    .relay-left-panel[b-ngdbhysi0j] {
        grid-template-columns: 72px 262px;
    }
}

@media (max-width: 1100px) {
    .relay-shell[b-ngdbhysi0j] {
        grid-template-columns: 358px minmax(0, 1fr);
    }

    .relay-members[b-ngdbhysi0j] {
        display: none;
    }
}

@media (max-width: 860px) {
    .relay-shell[b-ngdbhysi0j] {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .relay-left-panel[b-ngdbhysi0j] {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        padding: 8px;
        gap: 8px;
        border-right: none;
    }

    .relay-server-rail[b-ngdbhysi0j],
    .relay-sidebar[b-ngdbhysi0j],
    .relay-members[b-ngdbhysi0j] {
        min-height: auto;
    }

    .relay-server-rail[b-ngdbhysi0j] {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        justify-content: flex-start;
        overflow: auto;
        border-right: none;
        border-bottom: 1px solid rgba(160, 175, 196, 0.1);
        border-radius: 24px;
    }

    .relay-sidebar[b-ngdbhysi0j] {
        grid-column: 1;
        grid-row: 2;
    }

    .relay-user-pane[b-ngdbhysi0j] {
        grid-column: 1;
        grid-row: 3;
    }

    .relay-rail-divider[b-ngdbhysi0j] {
        width: 1px;
        height: 38px;
    }

    .relay-sidebar[b-ngdbhysi0j] {
        border-right: none;
        border-bottom: 1px solid rgba(160, 175, 196, 0.08);
    }
}
