/* ============================================================
   NextChat — Estilos do Chat (mIRC + SAP Fiori layout)
   ============================================================ */

/* Layout geral da sala */
.chat-app {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--shell-height));
}

.chat-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Área de mensagens */
.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--sap-surface);
    min-width: 0;
}

.chat-room-info {
    padding: 10px 20px;
    border-bottom: 1px solid var(--sap-border);
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--sap-surface);
}

.chat-room-info h2 {
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-room-info .room-desc {
    font-size: 12px;
    color: var(--sap-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--sap-bg);
}

/* Mensagens públicas — mesmo layout dos privados (bolhas) */
.chat-scroll > .dm-mobile__row:not(.dm-mobile__row--mine) {
    align-self: flex-start;
}

.chat-scroll .dm-mobile__text {
    white-space: pre-wrap;
}

/* Nick com cor da role no chat público */
.chat-scroll .dm-mobile__nick.msg-user--admin { color: var(--role-admin); }
.chat-scroll .dm-mobile__nick.msg-user--operator { color: var(--role-operator); }
.chat-scroll .dm-mobile__nick.msg-user--user { color: var(--sap-text-muted); }

/* Mensagens de sistema (centralizadas, como WhatsApp) */
.msg-line--system {
    display: block;
    text-align: center;
    color: var(--sap-text-muted);
    font-size: 12px;
    font-style: italic;
    padding: 6px;
    margin: 4px 0;
}

.msg-line--system .system-text {
    background: var(--sap-bg-secondary);
    color: var(--sap-text-muted);
    padding: 5px 12px;
    border-radius: 12px;
    font-style: normal;
    font-weight: 600;
    display: inline-block;
    max-width: 80%;
}

/* Cabeçalho das bolhas: nick clicável + ícone ⋮ de ações */
.dm-mobile__meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 2px 2px 4px;
    min-height: 16px;
}

.dm-mobile__meta-row .dm-mobile__nick { margin: 0; }

.dm-nick-link {
    cursor: pointer;
}

.dm-nick-link:hover {
    text-decoration: underline;
}

.dm-mobile__more {
    background: none;
    border: none;
    color: var(--sap-text-muted);
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s;
}

.dm-mobile__more:hover {
    color: var(--sap-brand);
    opacity: 1;
}

/* Menu contextual (⋮) */
.mod-menu {
    position: fixed;
    z-index: 3000;
    min-width: 190px;
    max-width: 260px;
    padding: 6px;
    background: var(--sap-surface);
    border: 1px solid var(--sap-border);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mod-menu__item {
    border: none;
    background: none;
    text-align: left;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sap-text);
    padding: 8px 10px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
}

.mod-menu__item:hover { background: var(--sap-bg-secondary); }

.mod-menu__item--danger { color: var(--sap-error); }

.mod-menu__item--danger:hover { background: rgba(201, 32, 39, 0.08); }

/* indicador de digitação */
.typing-indicator {
    padding: 0 14px 6px;
    font-size: 12px;
    color: var(--sap-text-muted);
    font-style: italic;
    min-height: 18px;
    background: var(--sap-bg);
}

/* --> separador de novas mensagens */
.msg-day-sep {
    text-align: center;
    color: var(--sap-text-muted);
    font-size: 11px;
    margin: 8px 0;
}

/* ============================================================
   Troca rápida de salas (desktop)
   ============================================================ */
.room-switcher {
    display: none;
}

@media (min-width: 801px) {
    .room-switcher {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-bottom: 1px solid var(--sap-border);
        background: var(--sap-surface);
        overflow-x: auto;
        flex-shrink: 0;
        visibility: hidden;
    }

    .room-switcher.room-switcher--ready { visibility: visible; }

    .room-switcher__item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 20px;
        border: 1px solid var(--sap-border-strong);
        background: var(--sap-surface);
        color: var(--sap-text);
        font-size: 12.5px;
        font-weight: 500;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.12s, border-color 0.12s;
    }

    .room-switcher__item:hover {
        background: var(--sap-bg-secondary);
        border-color: var(--sap-brand);
    }

    .room-switcher__item--active,
    .room-switcher__item--active:hover {
        background: var(--sap-brand);
        border-color: var(--sap-brand);
        color: #fff;
        cursor: default;
    }

    .room-switcher__icon { font-size: 11px; }
}

/* ============================================================
   BARRA DE ENTRADA
   ============================================================ */
.chat-input {
    padding: 10px 16px;
    border-top: 1px solid var(--sap-border);
    background: var(--sap-surface);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input .sap-textarea {
    flex: 1;
    min-height: 36px;
    max-height: 120px;
    border-color: var(--sap-border-strong);
}

/* ============================================================
   SIDEBAR DE MEMBROS
   ============================================================ */
.member-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--sap-bg);
    border-left: 1px solid var(--sap-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.member-sidebar__header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--sap-border);
    background: var(--sap-surface);
}

.member-sidebar__header h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sap-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.member-sidebar__count {
    background: var(--sap-brand);
    color: var(--sap-text-inverse);
    font-size: 11px;
    border-radius: 10px;
    padding: 1px 8px;
}

.member-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.member-group-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--sap-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 8px 4px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.12s;
    position: relative;
}

.member-item:hover {
    background: var(--sap-bg-secondary);
}

.member-item .member-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.member-item .member-nick {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-item .member-nick--link {
    cursor: pointer;
}

.member-item .member-nick--link:hover {
    text-decoration: underline;
}

/* Prefixos de role na sidebar */
.member-nick--admin::before { content: '@'; color: var(--role-admin); font-weight: 700; margin-right: 2px; }
.member-nick--operator::before { content: '#'; color: var(--role-operator); font-weight: 700; margin-right: 2px; }

.member-nick--admin { color: var(--role-admin); font-weight: 600; }
.member-nick--operator { color: var(--role-operator); font-weight: 600; }

.member-item .online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

.member-item .online-dot--on {
    background: var(--sap-success);
}

/* Menu contextual em hover (ações do admin) */
.member-actions {
    display: none;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    gap: 2px;
    background: var(--sap-surface);
    border: 1px solid var(--sap-border);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    padding: 2px;
}

.member-item:hover .member-actions {
    display: flex;
}

.member-action {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 6px;
    border-radius: 3px;
    color: var(--sap-text-muted);
    transition: color 0.12s;
}

.member-action:hover { color: var(--sap-brand); }
.member-action--kick:hover { color: var(--sap-error); }
.member-action--ban:hover { color: var(--sap-error); }
.member-action--timeout:hover { color: var(--sap-error); }
.member-action--mute:hover { color: var(--sap-error); }
.member-action--un:hover { color: var(--sap-positive, #107e3e); }

.member-action--more {
    font-size: 14px;
    padding: 2px 7px;
    letter-spacing: 1px;
}

/* ============================================================
   LOBBY
   ============================================================ */
.lobby-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.lobby-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.lobby-header h1 {
    font-size: 20px;
    font-weight: 600;
}

.room-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    cursor: pointer;
    background: var(--sap-surface);
    border: 1px solid var(--sap-border);
    border-radius: var(--radius-lg);
    min-height: 140px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.room-card:hover {
    border-color: var(--sap-brand);
    box-shadow: var(--shadow-md);
}

.room-card .room-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.room-card .room-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--sap-brand);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-card .room-desc {
    flex: 1;
    font-size: 13px;
    color: var(--sap-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.room-card .room-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: var(--sap-text-muted);
}

.room-card .room-foot .owner {
    color: var(--sap-text);
    font-weight: 500;
}

/* Modal */
.sap-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.sap-modal {
    background: var(--sap-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-in 0.2s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.sap-modal__header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--sap-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sap-modal__title {
    font-size: 18px;
    font-weight: 600;
}

.sap-modal__body {
    padding: 24px;
}

.sap-modal__footer {
    padding: 14px 24px;
    border-top: 1px solid var(--sap-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.sap-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--sap-text-muted);
    line-height: 1;
}

.sap-close-btn:hover { color: var(--sap-text); }

/* switch toggle SAP Fiori */
.sap-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.sap-switch input { display: none; }

.sap-switch .slider {
    position: absolute;
    inset: 0;
    background: #a8adb2;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.sap-switch .slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.sap-switch input:checked + .slider { background: var(--sap-brand); }
.sap-switch input:checked + .slider::before { transform: translateX(20px); }

.switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--sap-text-muted);
}

.empty-state .emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state h3 { font-size: 18px; color: var(--sap-text); margin-bottom: 6px; }

/* ============================================================
   SHELL: botões DM / God + badge de não-lidas
   ============================================================ */
.shell-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: var(--sap-text-inverse);
    font-size: 15px;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    cursor: pointer;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.shell-btn:hover { background: rgba(255, 255, 255, 0.22); }

.dm-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--sap-error);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.god-badge {
    background: #8f4b00;
    color: #ffe3c2;
    font-weight: 700;
}

/* ============================================================
   JANELAS FLUTUANTES DE DM (estilo mIRC)
   ============================================================ */
#mirc-windows {
    position: fixed;
    bottom: 0;
    right: 12px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-end;
}

.mirc-window {
    width: 290px;
    height: 330px;
    margin-bottom: 8px;
    background: var(--sap-surface);
    border: 1px solid var(--sap-border-strong);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 12.5px;
    position: relative;
    z-index: 1;
}

.mirc-window--active { box-shadow: var(--shadow-lg); }
.mirc-window--minimized { height: auto; }
.mirc-window--minimized .mirc-window__list,
.mirc-window--minimized .mirc-window__typing,
.mirc-window--minimized .mirc-window__input { display: none; }

.mirc-window__bar {
    background: var(--sap-brand);
    color: #fff;
    padding: 7px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    user-select: none;
    flex-shrink: 0;
}

.mirc-window--minimized .mirc-window__bar { cursor: pointer; }

.mirc-window__title {
    font-weight: 600;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.mirc-window__status {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.95;
    flex-shrink: 0;
}

.mirc-window__status--on {
    color: #aaffc8;
    font-weight: 700;
}

.mirc-window__badge {
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--sap-error);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.mirc-window__controls { display: flex; gap: 2px; flex-shrink: 0; }

.mirc-winfn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.mirc-winfn:hover { background: rgba(255, 255, 255, 0.3); }

.mirc-winfn--del:hover { background: var(--sap-error); }

.mirc-window__list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--sap-bg);
}

.dm-line { display: flex; gap: 5px; line-height: 1.4; padding: 1px 4px; border-radius: 3px; -webkit-touch-callout: none; }

.dm-line:hover { background: #eef4fb; }
.dm-line--mine { background: rgba(0, 112, 242, 0.05); }

.dm-line-time { color: var(--sap-text-muted); font-size: 10px; min-width: 42px; text-align: right; margin-top: 2px; flex-shrink: 0; }
.dm-line-nick { color: var(--sap-info); font-weight: 600; flex-shrink: 0; }
.dm-line--mine .dm-line-nick { color: var(--sap-brand); }
.dm-line-text { word-break: break-word; }

.mirc-window__typing {
    min-height: 16px;
    padding: 0 8px;
    font-style: italic;
    color: var(--sap-text-muted);
    font-size: 11px;
}

.mirc-window__input {
    border-top: 1px solid var(--sap-border);
    padding: 6px;
    display: flex;
}

.mirc-window__input .dm-input { height: 30px; font-size: 12.5px; }

/* Botão DM na sidebar de membros */
.member-action--dm { font-size: 13px; }

/* ============================================================
   PAINEL DM (inbox + busca)
   ============================================================ */
.dm-panel { max-width: 460px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; }

.dm-panel .sap-modal__body { overflow-y: auto; flex: 1; }

.dm-search-results { margin-top: 6px; }

.dm-search-hit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.dm-search-hit:hover { background: var(--sap-bg-secondary); }

.dm-panel-list { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }

.dm-panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
}

.dm-panel-item:hover { background: var(--sap-bg-secondary); }
.dm-panel-item--unread { background: #eaf4ff; border-color: #b5d7ff; }

.dm-panel-item__body { flex: 1; min-width: 0; }
.dm-panel-item__top { display: flex; align-items: center; justify-content: space-between; }
.dm-panel-item__nick { font-weight: 600; font-size: 13px; }
.dm-panel-item__count {
    background: var(--sap-brand);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.dm-panel-item__last { font-size: 11.5px; color: var(--sap-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dm-panel-item__del {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.4;
    padding: 4px;
    flex-shrink: 0;
    border-radius: 4px;
}
.dm-panel-item__del:hover { opacity: 1; color: var(--sap-error); background: rgba(255, 0, 0, 0.06); }

/* ============================================================
   GOD CONSOLE
   ============================================================ */
.god-console { max-width: 540px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; }
.god-console .sap-modal__header { background: #2b0a0a; color: #fff; }
.god-console .sap-modal__title { color: #ffd98a; }
.god-console .sap-close-btn { color: #ffd98a; }
.god-console .god-body { overflow-y: auto; flex: 1; }
.god-console .god-tabs .tab { color: var(--sap-text-muted); }
.god-console .god-tabs .tab--active { color: #8f4b00; border-bottom-color: #8f4b00; }

.god-room, .god-chat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--sap-border);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.god-room:hover, .god-chat:hover { border-color: #8f4b00; box-shadow: var(--shadow-sm); }

.god-room__name { font-weight: 600; font-size: 14px; }
.god-room__meta { font-size: 11.5px; color: var(--sap-text-muted); }
.god-chat__pair { font-size: 13px; }
.god-chat__last { font-size: 11.5px; color: var(--sap-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.room-card--god { border-color: #c79a3b; box-shadow: 0 0 0 1px rgba(199, 154, 59, 0.4); }

/* ============================================================
   FASE 2 — Tópico + ações da sala
   ============================================================ */
.room-topic {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--sap-text-muted);
    margin-top: 2px;
    min-width: 0;
}

.room-topic__icon { font-size: 11px; flex-shrink: 0; }

.room-topic__text {
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-topic__edit {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--sap-text-muted);
    font-size: 12px;
    padding: 0 2px;
}

.room-topic__edit:hover { color: var(--sap-brand); }

.room-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.room-btn { height: 30px; font-size: 12px; padding: 0 10px; }

/* ============================================================
   Mensagem de ação (/me)
   ============================================================ */
.msg-line--action {
    display: block;
    text-align: center;
    font-style: italic;
    color: var(--sap-text-muted);
    font-size: 12.5px;
    padding: 4px;
    margin: 2px 0;
}

.msg-line--action:hover { opacity: 0.9; }

.action-user { font-weight: 600; }
.action-user--admin { color: var(--role-admin); }
.action-user--operator { color: var(--role-operator); }
.action-user--user { color: var(--sap-text-muted); }

/* ============================================================
   FASE 2 — Convites no lobby
   ============================================================ */
.invite-box {
    background: #fff8e6;
    border: 1px solid #ffd98a;
    border-left: 4px solid #e9730c;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 18px;
}

.invite-box__title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    color: #8f4b00;
}

.invite-box__list { display: flex; flex-direction: column; gap: 6px; }

.invite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--sap-surface);
    border: 1px solid var(--sap-border);
    border-radius: var(--radius);
    padding: 8px 12px;
}

.invite-item__name { font-weight: 600; font-size: 14px; }
.invite-item__meta { font-size: 12px; color: var(--sap-text-muted); }
.invite-item__btn { height: 30px; font-size: 12px; padding: 0 12px; flex-shrink: 0; }

/* ============================================================
   FASE 2 — Lista de canais (/list) + modal de convite
   ============================================================ */
.chan-panel { max-width: 520px; }
.chan-body { display: flex; flex-direction: column; gap: 8px; }

.chan-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--sap-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.chan-item:hover { border-color: var(--sap-brand); box-shadow: var(--shadow-sm); }

.chan-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chan-item__name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-item__meta {
    font-size: 12px;
    color: var(--sap-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-panel { max-width: 460px; }
