/* Community chat (/xx/chat) */

.cx-wrapper {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.cx-db {
    flex: 1;
    min-height: 0;
    display: flex;
    padding: 0 16px 16px;
}
.cx-app {
    --cx-line: rgba(255, 255, 255, .07);
    position: relative;
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--s2);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ---------- buttons, fields ---------- */
.cx-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border: 0;
    border-radius: var(--rs);
    background: transparent;
    color: var(--tm);
    font-size: 17px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.cx-icon-btn:hover { background: var(--s4); color: var(--t); }
.cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--rm, 10px);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}
.cx-btn.primary { background: var(--pr, #10b3a4); color: #04221f; font-weight: 600; }
.cx-btn.primary:hover { background: var(--prd, #0d9e90); color: #04221f; }
.cx-btn.ghost { background: transparent; border-color: var(--bdh); color: var(--t); }
.cx-btn.ghost:hover { background: var(--s4); }
.cx-btn.danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.cx-btn.danger:hover { background: rgba(239, 68, 68, .22); }
.cx-field {
    width: 100%;
    padding: 10px 12px;
    background: var(--s3);
    border: 1px solid var(--bd);
    border-radius: var(--rs);
    color: var(--t);
    font: inherit;
    font-size: 14px;
    outline: none;
}
.cx-field:focus { border-color: var(--pr); }
.cx-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    vertical-align: middle;
}
.cx-badge.admin { background: rgba(16, 179, 164, .16); color: #5eead4; }
.cx-badge.pro { background: rgba(250, 204, 21, .14); color: #fde047; margin-left: 6px; }
.cx-badge.warn { background: rgba(239, 68, 68, .14); color: #fca5a5; text-transform: none; }
.cx-crown { color: #facc15; font-size: 11px; }

/* ---------- rooms column ---------- */
.cx-rooms {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--cx-line);
    background: #1a1a1a;
}
.cx-rooms-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px 8px 18px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--tf);
}
.cx-rooms-tools { display: flex; gap: 2px; }
.cx-rooms-tools .cx-icon-btn { width: 30px; height: 30px; font-size: 15px; }
.cx-room-list { flex: 1; overflow-y: auto; padding: 4px 8px; }
.db a.cx-room, .cx-room {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    margin-bottom: 2px;
    border-radius: var(--rs);
    color: var(--tm);
    font-size: 14.5px;
    cursor: pointer;
}
.db a.cx-room:hover { background: var(--s3); color: var(--t); }
.db a.cx-room.active { background: rgba(16, 179, 164, .12); color: var(--t); }
.cx-room.archived { opacity: .5; }
.cx-room-icon { width: 22px; text-align: center; font-size: 16px; flex: none; }
.cx-room-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-room .bi-megaphone { font-size: 12px; color: var(--tf); }
.cx-room-count { font-size: 11.5px; color: var(--tf); }
.cx-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--pr); flex: none; }
.cx-room-edit {
    display: none;
    border: 0;
    background: transparent;
    color: var(--tf);
    padding: 0 2px;
    cursor: pointer;
}
.cx-room:hover .cx-room-edit { display: block; }
.cx-room-edit:hover { color: var(--t); }
.cx-online {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid var(--cx-line);
    font-size: 13px;
    color: var(--tm);
}
.cx-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.cx-rules { margin: 0; padding: 0 18px 16px; font-size: 12px; line-height: 1.5; color: var(--tf); }

/* ---------- main column ---------- */
.cx-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cx-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 20px;
    border-bottom: 1px solid var(--cx-line);
}
.cx-rooms-toggle { display: none; }
.cx-head-info { flex: 1; min-width: 0; }
.cx-head-title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--t); }
.cx-head-desc { margin: 2px 0 0; font-size: 13px; color: var(--tm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--tf);
    white-space: nowrap;
}
.cx-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cx-status.live { color: #4ade80; }
.cx-status.connecting { color: #facc15; }
.cx-status.polling { color: #fb923c; }
.cx-status.offline { color: #f87171; }
.cx-here {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--bd);
    border-radius: 999px;
    background: transparent;
    color: var(--tm);
    font-size: 13px;
    cursor: pointer;
}
.cx-here:hover { color: var(--t); border-color: var(--bdh); }
.cx-pop {
    position: absolute;
    z-index: 30;
    background: var(--s3);
    border: 1px solid var(--bdh);
    border-radius: var(--rm);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.cx-here-pop { top: calc(100% - 4px); right: 16px; width: 240px; max-height: 320px; overflow-y: auto; padding: 8px; }
.cx-pop-title { padding: 4px 8px 8px; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--tf); }
.db a.cx-here-user { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--rs); font-size: 14px; }
.db a.cx-here-user:hover { background: var(--s4); color: var(--t); }

.cx-pinned {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 20px;
    border: 0;
    border-bottom: 1px solid var(--cx-line);
    background: rgba(16, 179, 164, .06);
    color: var(--tm);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}
.cx-pinned i { color: var(--pr); }
.cx-pinned span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- messages ---------- */
.cx-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 12px; }
.cx-older { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px; font-size: 13px; color: var(--tf); }
.cx-spinner { width: 14px; height: 14px; border: 2px solid var(--s4); border-top-color: var(--pr); border-radius: 50%; animation: cx-spin .8s linear infinite; }
@keyframes cx-spin { to { transform: rotate(360deg); } }

.cx-start { padding: 32px 20px 12px; color: var(--tm); }
.cx-start-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 16px; background: var(--s3); font-size: 26px; }
.cx-start p { margin: 0; font-size: 14px; }

.cx-day { display: flex; align-items: center; gap: 12px; margin: 16px 20px 8px; font-size: 12px; font-weight: 500; color: var(--tf); }
.cx-day::before, .cx-day::after { content: ''; flex: 1; height: 1px; background: var(--cx-line); }

.cx-msg {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    padding: 6px 20px 4px 12px;
    margin-top: 8px;
}
.cx-msg.grouped { margin-top: 0; padding-top: 2px; }
.cx-msg:hover { background: rgba(255, 255, 255, .025); }
.cx-msg.mentions-me { background: rgba(250, 204, 21, .06); box-shadow: inset 3px 0 0 #facc15; }
.cx-msg.is-hidden { opacity: .55; }
.cx-msg.flash { animation: cx-flash 1.6s ease-out; }
@keyframes cx-flash { 0%, 30% { background: rgba(16, 179, 164, .22); } 100% { background: transparent; } }
.cx-gutter { display: flex; justify-content: center; padding-top: 2px; }
.cx-av {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    user-select: none;
}
.cx-av.sm { width: 26px; height: 26px; font-size: 12px; }
.cx-time-mini { visibility: hidden; padding-top: 4px; font-size: 10.5px; color: var(--tf); }
.cx-msg:hover .cx-time-mini { visibility: visible; }
.cx-body { min-width: 0; }
.cx-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.db a.cx-name { font-weight: 600; font-size: 14.5px; color: var(--t); }
.db a.cx-name:hover { color: var(--pr); text-decoration: underline; }
.cx-time { font-size: 11.5px; color: var(--tf); }
.cx-pin-flag { font-size: 11px; color: var(--pr); }

.cx-text {
    font-size: 14.5px;
    line-height: 1.55;
    color: #e5e7eb;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.cx-text + .cx-text, .cx-codeblock + .cx-text { margin-top: 4px; }
.db a.cx-link { color: #5eead4; text-decoration: underline; text-underline-offset: 2px; }
.cx-mention { padding: 0 3px; border-radius: 4px; background: rgba(16, 179, 164, .15); color: #5eead4; font-weight: 500; }
.cx-mention.me { background: rgba(250, 204, 21, .2); color: #fde047; }
.cx-inline {
    padding: 1px 6px;
    border-radius: 5px;
    background: #2a2a2a;
    border: 1px solid var(--bd);
    color: #fda4af;
    font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cx-codeblock { margin: 6px 0; max-width: 760px; border: 1px solid var(--bd); border-radius: var(--rs); overflow: hidden; background: #282c34; }
.cx-codebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px 5px 12px;
    background: #21252b;
    font-size: 11.5px;
    color: var(--tf);
    text-transform: lowercase;
}
.cx-copy { border: 0; background: transparent; color: var(--tm); font-size: 12px; cursor: pointer; padding: 2px 6px; border-radius: 5px; }
.cx-copy:hover { background: var(--s4); color: var(--t); }
.cx-codeblock pre { margin: 0; max-height: 420px; overflow: auto; }
.cx-codeblock code {
    display: block;
    padding: 12px 14px;
    font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #abb2bf;
    background: transparent !important;
    white-space: pre;
    tab-size: 4;
}

.cx-quote {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    margin: 2px 0 4px;
    padding: 3px 10px 3px 8px;
    border: 0;
    border-left: 2px solid var(--pr);
    border-radius: 0 6px 6px 0;
    background: rgba(255, 255, 255, .04);
    color: var(--tm);
    font-size: 12.5px;
    text-align: left;
    cursor: pointer;
}
.cx-quote:hover { background: rgba(255, 255, 255, .07); }
.cx-quote i { color: var(--tf); }
.cx-quote strong { color: var(--t); font-weight: 600; flex: none; }
.cx-quote span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cx-hidden-note { font-size: 12px; color: #fca5a5; margin-bottom: 2px; }

.cx-img {
    display: block;
    max-width: min(360px, 100%);
    max-height: 320px;
    width: auto;
    height: auto;
    margin: 6px 0 2px;
    border-radius: var(--rs);
    border: 1px solid var(--bd);
    object-fit: contain;
    background: var(--s3);
    cursor: zoom-in;
}
.cx-img.sm { max-width: 160px; max-height: 120px; }

.db a.cx-codecard, .cx-codecard {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    margin: 6px 0 2px;
    padding: 8px;
    border: 1px solid var(--bd);
    border-radius: var(--rm);
    background: var(--s3);
    color: var(--t);
    text-align: left;
}
.db a.cx-codecard:hover { border-color: rgba(16, 179, 164, .5); color: var(--t); }
.cx-codecard img { width: 96px; height: 60px; object-fit: cover; border-radius: 6px; flex: none; background: var(--s4); }
.cx-codecard-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-codecard-info strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-codecard-info small { font-size: 12px; color: var(--tm); }
.cx-codecard-cta { font-size: 12px; color: var(--pr); font-weight: 500; }

.cx-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cx-reaction {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border: 1px solid var(--bd);
    border-radius: 999px;
    background: var(--s3);
    color: var(--tm);
    font-size: 13px;
    cursor: pointer;
}
.cx-reaction b { font-weight: 600; font-size: 12px; }
.cx-reaction:hover { border-color: var(--bdh); }
.cx-reaction.on { background: rgba(16, 179, 164, .14); border-color: rgba(16, 179, 164, .5); color: #5eead4; }

.cx-tools {
    position: absolute;
    top: -14px;
    right: 20px;
    display: none;
    gap: 2px;
    padding: 2px;
    background: var(--s3);
    border: 1px solid var(--bdh);
    border-radius: var(--rs);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    z-index: 5;
}
.cx-msg:hover .cx-tools, .cx-msg:focus-within .cx-tools { display: flex; }
.cx-tool { width: 30px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--tm); cursor: pointer; }
.cx-tool:hover { background: var(--s4); color: var(--t); }

.cx-jump {
    position: absolute;
    left: 50%;
    bottom: 120px;
    transform: translateX(-50%);
    z-index: 10;
    display: inline-flex;
    gap: 6px;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--pr);
    color: #04221f;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
    cursor: pointer;
}

/* ---------- composer ---------- */
.cx-typing { min-height: 20px; padding: 0 20px; font-size: 12px; font-style: italic; color: var(--tm); }
.cx-composer { padding: 0 16px 12px; }
.cx-composer.sending .cx-inputrow { opacity: .7; }
.cx-attach { margin-bottom: 6px; padding: 8px; border: 1px solid var(--bd); border-bottom: 0; border-radius: var(--rm) var(--rm) 0 0; background: #1a1a1a; }
.cx-attach-reply { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tm); }
.cx-attach-reply i { color: var(--pr); }
.cx-attach-reply span { flex: none; color: var(--t); }
.cx-attach-reply em { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--tf); }
.cx-attach-items { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-attach-reply + .cx-attach-items { margin-top: 8px; }
.cx-attach-item { position: relative; display: flex; align-items: flex-start; gap: 4px; }
.cx-attach-item .cx-codecard { margin: 0; }
.cx-attach-img img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--rs); border: 1px solid var(--bd); }
.cx-attach-x {
    flex: none;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: var(--s4);
    color: var(--tm);
    font-size: 11px;
    cursor: pointer;
}
.cx-attach-x:hover { background: #ef4444; color: #fff; }
.cx-attach-img .cx-attach-x { position: absolute; top: -8px; right: -8px; }

.cx-inputrow {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 6px;
    background: var(--s3);
    border: 1px solid var(--bd);
    border-radius: var(--rm);
}
.cx-inputrow:focus-within { border-color: rgba(16, 179, 164, .55); }
#cx-input {
    flex: 1;
    min-width: 0;
    min-height: 36px;
    max-height: 220px;
    padding: 8px 8px;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: var(--t);
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.45;
}
#cx-input::placeholder { color: var(--tf); }
.cx-send {
    width: 38px;
    height: 36px;
    flex: none;
    border: 0;
    border-radius: var(--rs);
    background: var(--pr);
    color: #04221f;
    cursor: pointer;
}
.cx-send:hover { background: var(--prd); }
.cx-send:disabled { opacity: .5; cursor: progress; }
.cx-hint { display: flex; justify-content: space-between; padding: 4px 4px 0; font-size: 11.5px; color: var(--tf); }
.cx-hint .warn { color: #f87171; }
.cx-locked { margin: 0 16px 16px; padding: 14px; border: 1px dashed var(--bdh); border-radius: var(--rm); text-align: center; font-size: 13.5px; color: var(--tm); }
.cx-drop {
    position: absolute;
    inset: 8px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed var(--pr);
    border-radius: var(--r);
    background: rgba(18, 18, 18, .88);
    color: var(--t);
    font-size: 15px;
    pointer-events: none;
}
.cx-drop i { font-size: 34px; color: var(--pr); }

/* ---------- floating bits ---------- */
.cx-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 1100;
    max-width: min(480px, calc(100vw - 32px));
    padding: 11px 16px;
    border-radius: var(--rm, 10px);
    background: #3f1d1d;
    border: 1px solid rgba(239, 68, 68, .4);
    color: #fecaca;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.cx-toast.good { background: #10302c; border-color: rgba(16, 179, 164, .45); color: #ccfbf1; }
.cx-menu {
    position: fixed;
    z-index: 1050;
    min-width: 200px;
    padding: 5px;
    background: #272727;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
    font-family: 'Poppins', sans-serif;
}
.cx-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #e5e7eb;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}
.cx-menu-item:hover { background: #2f2f2f; }
.cx-menu-item.danger { color: #fca5a5; }
.cx-react-picker { display: flex; gap: 2px; }
.cx-react-opt { width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; cursor: pointer; transition: transform .1s; }
.cx-react-opt:hover { background: #2f2f2f; transform: scale(1.15); }

.cx-modal {
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: #1e1e1e;
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.cx-modal-wide { width: min(720px, calc(100vw - 32px)); }
.cx-modal::backdrop { background: rgba(0, 0, 0, .6); }
.cx-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cx-modal-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.cx-modal .cx-field { --s3: #272727; --bd: rgba(255, 255, 255, .1); --t: #f0f0f0; --pr: #10b3a4; --rs: 8px; }
.cx-modal-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
.cx-modal-actions .cx-btn[hidden] + .cx-btn { margin-left: auto; }
.cx-label { display: flex; flex-direction: column; gap: 6px; flex: 1; margin-bottom: 12px; font-size: 13px; color: #9ca3af; }
.cx-label-icon { flex: 0 0 90px; }
.cx-label-sort { flex: 0 0 90px; }
.cx-row { display: flex; gap: 12px; align-items: flex-end; }
.cx-check { display: flex; align-items: center; gap: 8px; flex: 1; margin-bottom: 22px; font-size: 13.5px; color: #e5e7eb; }
.cx-choice-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.cx-choice {
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 9px;
    background: #272727;
    color: #e5e7eb;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.cx-choice:hover { border-color: #10b3a4; }
#cx-mute-reason { margin-bottom: 8px; }
.cx-code-results { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.cx-code-pick { padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.cx-code-pick .cx-codecard { max-width: none; margin: 0; background: #272727; border: 1px solid rgba(255, 255, 255, .08); color: #f0f0f0; }
.cx-code-pick:hover .cx-codecard { border-color: #10b3a4; }
.cx-modal .cx-codecard-info small { color: #9ca3af; }
.cx-empty { margin: 8px 0; color: #9ca3af; font-size: 14px; }
.cx-lightbox { width: auto; max-width: 94vw; padding: 0; background: transparent; border: 0; box-shadow: none; }
.cx-lightbox img { display: block; max-width: 94vw; max-height: 90vh; border-radius: 10px; }
.cx-subhead { margin: 18px 0 8px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #6b7280; }
.cx-mod-item { padding: 12px; margin-bottom: 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: #232323; }
.cx-mod-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; color: #9ca3af; }
.cx-mod-meta strong { color: #f0f0f0; }
.cx-mod-body .cx-text { font-size: 14px; }
.cx-mod-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.cx-mod-actions .cx-btn { padding: 6px 12px; font-size: 13px; }
.cx-mod-muted { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 13.5px; }
.cx-mod-muted span { flex: 1; color: #9ca3af; font-size: 12.5px; }
.cx-mod-muted .cx-btn { padding: 5px 12px; font-size: 12.5px; --bdh: rgba(255, 255, 255, .14); --t: #f0f0f0; }

.cx-setup { margin: 40px auto; max-width: 480px; padding: 40px; text-align: center; color: var(--tm); }
.cx-setup i { font-size: 34px; color: var(--pr); }

/* ---------- signed-out teaser ---------- */
.cx-guest { display: flex; justify-content: center; padding: 64px 16px 96px; }
.cx-guest-card {
    max-width: 520px;
    padding: 40px 32px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: #1b1b1b;
    color: #f0f0f0;
    text-align: center;
}
.cx-guest-icon { font-size: 44px; margin-bottom: 8px; }
.cx-guest-card h1 { font-size: 26px; font-weight: 700; margin: 0 0 10px; }
.cx-guest-card p { color: #9ca3af; margin: 0 0 22px; }
.cx-guest-card ul { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; display: inline-flex; flex-direction: column; gap: 10px; color: #d1d5db; }
.cx-guest-card li i { color: #10b3a4; margin-right: 10px; }
.cx-guest .cx-btn.primary { background: #10b3a4; padding: 12px 22px; font-size: 15px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
    .cx-db { padding: 0 8px 8px; }
    .cx-app { grid-template-columns: 1fr; }
    .cx-rooms {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        width: 260px;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: 12px 0 32px rgba(0, 0, 0, .5);
    }
    .cx-app.rooms-open .cx-rooms { transform: none; }
    .cx-rooms-toggle { display: inline-grid; }
    .cx-head { padding: 10px 12px; gap: 8px; }
    .cx-status { font-size: 0; }
    .cx-msg { grid-template-columns: 44px 1fr; padding-right: 12px; padding-left: 6px; }
    .cx-av { width: 32px; height: 32px; font-size: 13px; }
    .cx-tools { right: 10px; }
    .cx-composer { padding: 0 8px 8px; }
    .cx-hint span:first-child { display: none; }
    .cx-codecard img { width: 72px; height: 48px; }
}
@media (hover: none) {
    .cx-tools { display: flex; position: static; float: right; box-shadow: none; background: transparent; border: 0; opacity: .6; grid-column: 2; justify-self: end; margin-top: -4px; }
    .cx-msg:hover { background: transparent; }
    .cx-room-edit { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .cx-msg.flash { animation: none; }
    .cx-rooms { transition: none; }
}
