/* ============================================================
   ChatBase — Discord-style General chat (dchat.js)
   Everything is scoped to #general.dc-on so other rooms keep their look.
   Many rules need !important to beat neo.css's bubble styling.
   ============================================================ */
#general.dc-on {
    --dc-side: #121214; --dc-chat: #1a1a1e; --dc-raise: #232328; --dc-line: #26262c;
    --dc-text: #dbdee1; --dc-head: #f2f3f5; --dc-muted: #949ba4; --dc-hover: rgba(255,255,255,.04);
    --dc-sel: rgba(255,255,255,.09); --dc-blurple: #5865f2; --dc-green: #23a55a; --dc-idle: #f0b232; --dc-off: #80848e;
    padding-top: 12px !important;
}
#general.dc-on > .content-header { display: none !important; }

.dc {
    display: grid; grid-template-columns: 240px minmax(0, 1fr) 240px;
    /* Fit the room the tab actually has: .app-container's 14px top+bottom (28) +
       .main-content's 90/30 padding (120) + #general's 12px = 160px. The old
       "min-height: 520px" made the box taller than the screen on short laptops
       (a Chromebook is only ~600px tall), so the newest messages and the message
       box sat below the fold and #general looked empty. */
    height: calc(100vh - 160px);
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--dc-line);
    background: var(--dc-chat);
    color: var(--dc-text);
    font-size: 15px;
}
.dc.dc-nomembers { grid-template-columns: 240px minmax(0, 1fr); }
.dc.dc-nomembers .dc-members { display: none; }
.dc button { font: inherit; color: inherit; }
.dc-muted { color: var(--dc-muted); font-size: 13px; }

/* Left: server + channels + me */
.dc-side { display: flex; flex-direction: column; min-height: 0; background: var(--dc-side); border-right: 1px solid var(--dc-line); }
.dc-server {
    display: flex; align-items: center; justify-content: space-between;
    height: 48px; flex: 0 0 auto; padding: 0 16px;
    border: 0; border-bottom: 1px solid var(--dc-line); background: transparent;
    font-size: 15px !important; cursor: pointer; text-align: left;
}
.dc-server:hover { background: var(--dc-hover); }
.dc-server b { color: var(--dc-head); }
.dc-chans { flex: 1; overflow-y: auto; padding: 8px 8px 12px; }
.dc-cat { display: flex; align-items: center; gap: 4px; margin: 16px 0 4px 2px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--dc-muted); }
.dc-cat:first-child { margin-top: 6px; }
.dc-cat span { font-size: 10px; }
.dc-chan {
    position: relative; display: flex; align-items: center; gap: 6px; width: 100%;
    height: 34px; padding: 0 8px; margin: 1px 0;
    border: 0; border-radius: 6px; background: transparent;
    color: var(--dc-muted) !important; font-size: 15px !important; font-weight: 500; text-align: left; cursor: pointer;
}
.dc-chan i { font-style: normal; width: 20px; text-align: center; font-size: 19px; color: var(--dc-muted); opacity: .8; }
.dc-chan span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-chan:hover { background: var(--dc-hover); color: var(--dc-text) !important; }
.dc-chan.on { background: var(--dc-sel); color: #fff !important; }
.dc-chan.unread { color: #fff !important; font-weight: 600; }
.dc-chan.unread::before { content: ''; position: absolute; left: -8px; width: 8px; height: 8px; border-radius: 0 4px 4px 0; background: #fff; }
.dc-unread:empty { display: none; }
.dc-unread { font-style: normal; min-width: 16px; padding: 0 5px; border-radius: 999px; background: #f23f43; color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
.dc-me { display: flex; align-items: center; gap: 8px; height: 56px; flex: 0 0 auto; padding: 0 8px; background: #0e0e10; }
.dc-me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.dc-me-t b { font-size: 14px; color: var(--dc-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-me-t small { font-size: 12px; color: var(--dc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-icon { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; font-size: 17px !important; cursor: pointer; opacity: .75; }
.dc-icon:hover, .dc-icon.on { opacity: 1; background: var(--dc-hover); }

/* Avatars + status dots (members list, me panel, added message avatars) */
.dc-mem-av { position: relative; flex: 0 0 auto; width: 32px; height: 32px; }
.dc-mem-av img, .dc-mem-av .dc-initial { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.dc-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--dc-side); background: var(--dc-off); }
.dc-st-on .dc-dot, .dc-me .dc-dot { background: var(--dc-green); }
.dc-st-idle .dc-dot { background: var(--dc-idle); }
.dc-me .dc-dot { border-color: #0e0e10; }

/* Middle: header + chat */
.dc-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dc-top { position: relative; display: flex; align-items: center; gap: 8px; height: 48px; flex: 0 0 auto; padding: 0 12px 0 16px; border-bottom: 1px solid var(--dc-line); }
.dc-hash { font-size: 24px; color: var(--dc-muted); font-weight: 300; }
.dc-top b { color: var(--dc-head); font-size: 16px; }
.dc-topic { flex: 1; min-width: 0; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--dc-line); color: var(--dc-muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-top-tools { display: flex; gap: 2px; }
.dc-turbo-btn { color: #c14bff; }
.dc-pins { position: absolute; top: 52px; right: 12px; z-index: 30; width: 320px; padding: 14px; border-radius: 10px; background: var(--dc-raise); border: 1px solid var(--dc-line); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.dc-pins[hidden] { display: none; }
.dc-pins p { margin: 8px 0 0; font-size: 14px; }
.dc-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }

#general.dc-on .chat-container {
    flex: 1; min-height: 0; display: flex !important; flex-direction: column;
    margin: 0 !important; padding: 0 !important; height: auto !important; max-height: none !important;
    background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
#general.dc-on .cb-search-btn { display: none !important; }   /* the header 🔍 opens it */
#general.dc-on .chat-messages {
    flex: 1; min-height: 0; height: auto !important; max-height: none !important;
    overflow-y: auto; padding: 16px 0 12px !important; margin: 0 !important;
    display: flex !important; flex-direction: column; background: transparent !important;
}
/* Newest message sits at the bottom, right above the message box (like Discord) */
#general.dc-on .chat-messages > * { flex-shrink: 0; }
#general.dc-on .chat-messages > :first-child { margin-top: auto !important; }

/* Messages: everyone on the left, avatar + header + body */
#general.dc-on .chat-messages .message {
    position: relative;
    display: grid !important; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 0 !important;
    max-width: none !important; width: auto !important;
    margin: 17px 0 0 !important; padding: 2px 48px 2px 0 !important;
    flex-direction: row !important; justify-content: flex-start !important;
    background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    animation: none !important; transform: none !important; filter: none !important; opacity: 1 !important;
}
#general.dc-on .chat-messages .message:hover { background: rgba(0,0,0,.18) !important; }
#general.dc-on .chat-messages .message.dc-grouped { margin-top: 0 !important; }
#general.dc-on .message .message-avatar {
    grid-column: 1; grid-row: 1 / span 2; justify-self: center;
    width: 40px !important; height: 40px !important; min-width: 40px; margin: 2px 0 0 !important;
    border-radius: 50% !important; overflow: hidden; cursor: pointer;
    display: flex !important; align-items: center; justify-content: center; font-size: 20px;
}
#general.dc-on .message .message-avatar img, #general.dc-on .message .dc-initial { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
#general.dc-on .message.dc-grouped .message-avatar, #general.dc-on .message.dc-grouped .dc-head { display: none !important; }
#general.dc-on .message .dc-gutter { grid-column: 1; grid-row: 1; justify-self: end; padding: 4px 10px 0 0; font-size: 11px; color: var(--dc-muted); visibility: hidden; display: none; }
#general.dc-on .message.dc-grouped .dc-gutter { display: block; }
#general.dc-on .message.dc-grouped:hover .dc-gutter { visibility: visible; }
#general.dc-on .message .message-content {
    grid-column: 2; min-width: 0; max-width: none !important; width: auto !important;
    margin: 0 !important; padding: 0 !important;
    background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    color: var(--dc-text) !important; text-align: left !important;
}
#general.dc-on .message .dc-head { display: flex; align-items: baseline; gap: 8px; line-height: 1.375; }
#general.dc-on .message .message-author { font-size: 16px !important; font-weight: 600 !important; color: var(--dc-head); margin: 0 !important; cursor: pointer; display: inline !important; }
#general.dc-on .message .message-author:hover { text-decoration: underline; }
#general.dc-on .message .dc-time { font-size: 12px; color: var(--dc-muted); font-weight: 500; }
#general.dc-on .message .message-time { display: none !important; }
#general.dc-on .message .message-content p { margin: 0 !important; font-size: 15px !important; line-height: 1.375 !important; color: var(--dc-text) !important; white-space: pre-wrap; overflow-wrap: anywhere; }
#general.dc-on .message .edited-tag { font-size: 10px; color: var(--dc-muted); }
#general.dc-on .message .dc-crown { font-size: 13px; }
#general.dc-on .message.gif-message img { display: block; max-width: min(320px, 100%); border-radius: 8px; margin-top: 4px; }
#general.dc-on .message .sticker-message { font-size: 48px; line-height: 1.2; }
#general.dc-on .message .reply-quote {
    position: relative; margin: 0 0 2px !important; padding: 0 0 0 4px !important;
    background: transparent !important; border: 0 !important;
    font-size: 13px !important; color: var(--dc-muted) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#general.dc-on .message .reply-quote strong { color: var(--dc-text); margin-right: 6px; }
#general.dc-on .message .poll-card { max-width: 440px; margin-top: 4px; }

/* Date divider (data-day set by dchat.js on the first message of a day) */
#general.dc-on .message.dc-newday { margin-top: 24px !important; }
#general.dc-on .message.dc-newday::before {
    content: attr(data-day);
    position: absolute; top: -21px; left: 16px; right: 14px; height: 16px;
    display: flex; justify-content: center; align-items: center;
    font-size: 12px; font-weight: 600; color: var(--dc-muted); line-height: 16px;
    background: linear-gradient(to right, var(--dc-line) 0 calc(50% - 80px), transparent calc(50% - 80px) calc(50% + 80px), var(--dc-line) calc(50% + 80px)) center / 100% 1px no-repeat;
}

/* Hover toolbar: reply / edit / delete + react */
#general.dc-on .message .message-actions {
    position: absolute; top: -18px; right: 16px; z-index: 5;
    display: none !important; gap: 0; padding: 2px;
    border-radius: 8px; border: 1px solid var(--dc-line); background: var(--dc-raise);
    box-shadow: 0 4px 12px rgba(0,0,0,.35); opacity: 1 !important;
}
#general.dc-on .message:hover .message-actions { display: flex !important; }
#general.dc-on .message .message-actions button { width: 32px; height: 30px; border: 0; border-radius: 6px; background: transparent !important; font-size: 15px; cursor: pointer; }
#general.dc-on .message .message-actions button:hover { background: var(--dc-hover) !important; }
#general.dc-on .message .react-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; opacity: 1 !important; }
#general.dc-on .message .react-btn-add { opacity: 0; border: 0; background: transparent; cursor: pointer; }
#general.dc-on .message:hover .react-btn-add { opacity: .8; }
#general.dc-on .message .reaction-chip { padding: 2px 8px !important; border-radius: 8px !important; background: var(--dc-raise) !important; border: 1px solid transparent !important; font-size: 13px; }
#general.dc-on .message .reaction-chip.mine, #general.dc-on .message .reaction-chip.active { border-color: var(--dc-blurple) !important; background: rgba(88,101,242,.15) !important; }

/* Composer */
#general.dc-on .reply-bar { margin: 0 16px; border-radius: 8px 8px 0 0; background: var(--dc-raise) !important; }
#general.dc-on .chat-input-container {
    position: relative;
    display: flex !important; align-items: center; gap: 2px;
    margin: 0 16px 20px !important; padding: 0 8px !important; min-height: 46px;
    border-radius: 10px !important; border: 1px solid var(--dc-line) !important;
    background: var(--dc-raise) !important; box-shadow: none !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
#general.dc-on .chat-input-container .chat-input {
    order: 1; flex: 1; min-width: 0; height: 44px;
    padding: 0 8px !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
    color: var(--dc-text) !important; font-size: 15px !important; outline: none;
}
#general.dc-on .chat-input-container .chat-input::placeholder { color: #6d6f78; }
#general.dc-on .chat-input-container .poll-tool-btn { order: 0; }
#general.dc-on .chat-input-container .chat-tool-btn {
    order: 2; width: 34px; height: 34px; padding: 0 !important;
    border: 0 !important; border-radius: 6px !important; background: transparent !important; box-shadow: none !important;
    font-size: 19px !important; opacity: .75; cursor: pointer;
}
#general.dc-on .chat-input-container .chat-tool-btn:hover { opacity: 1; background: var(--dc-hover) !important; }
#general.dc-on .chat-input-container .send-btn {
    order: 3; width: 34px; height: 34px; min-width: 0; padding: 0 !important;
    border: 0 !important; border-radius: 6px !important; background: transparent !important; box-shadow: none !important;
    font-size: 0 !important; color: var(--dc-muted) !important; cursor: pointer;
}
#general.dc-on .chat-input-container .send-btn::after { content: '➤'; font-size: 18px; }
#general.dc-on .chat-input-container .send-btn:hover { color: #fff !important; }

/* Right: members */
.dc-members { overflow-y: auto; padding: 8px 8px 16px; background: var(--dc-side); border-left: 1px solid var(--dc-line); }
.dc-members h4 { margin: 18px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--dc-muted); }
.dc-mem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.dc-mem:hover { background: var(--dc-hover); }
.dc-mem-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dc-mem-t b { font-size: 15px; font-weight: 500; color: var(--dc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-mem-t small { font-size: 12px; color: var(--dc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-mem.dc-st-off { opacity: .35; }
.dc-mem.dc-st-off:hover { opacity: 1; }
.dc-mem .dc-crown { font-size: 12px; }

@media (max-width: 1150px) {
    .dc { grid-template-columns: 220px minmax(0, 1fr); }
    .dc .dc-members { display: none; }
    .dc:not(.dc-nomembers) .dc-members { display: block; position: absolute; right: 0; top: 48px; bottom: 0; width: 240px; z-index: 20; box-shadow: -12px 0 30px rgba(0,0,0,.4); }
    .dc { position: relative; }
}
@media (max-width: 900px) {
    /* Phones: .main-content's padding is 82px top / 110px bottom (+ 12px on #general),
       and the bottom tab bar sits on top of that. */
    #general.dc-on .dc { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 204px); border-radius: 10px; }
    .dc .dc-side { display: none; }
    .dc-topic { display: none; }
    #general.dc-on .chat-messages .message { padding-right: 12px !important; grid-template-columns: 60px minmax(0, 1fr); }
}

/* ============================================================
   Discord-style Friends home + sidebar (dchome.js) — Messages tab
   ============================================================ */
.dm-layout.dch-on {
    --dc-side: #121214; --dc-chat: #1a1a1e; --dc-raise: #232328; --dc-line: #26262c;
    --dc-text: #dbdee1; --dc-muted: #949ba4; --dc-hover: rgba(255,255,255,.05); --dc-sel: rgba(255,255,255,.09);
    background: var(--dc-chat) !important; border-color: var(--dc-line) !important; border-radius: 14px !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
.dm-layout.dch-on .dm-side { background: var(--dc-side) !important; border-right: 1px solid var(--dc-line) !important; display: flex; flex-direction: column; }
.dm-layout.dch-on .dm-side-head { padding: 10px 10px 4px; }
.dm-layout.dch-on .dm-side-head h1 { display: none; }
.dm-layout.dch-on .gd-new-btn { display: none; }
.dm-layout.dch-on .dm-search { margin: 0 !important; width: 100%; height: 30px; padding: 0 10px !important; border-radius: 6px !important; background: #0b0b0d !important; border: 0 !important; font-size: 13.5px !important; }
.dm-layout.dch-on .dm-side > .dm-search { margin: 10px 10px 8px !important; width: calc(100% - 20px); }
.dch-links { padding: 8px 8px 0; border-top: 1px solid var(--dc-line); }
.dch-link { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 10px; margin: 1px 0; border: 0; border-radius: 6px; background: transparent; color: var(--dc-muted); font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; }
.dch-link i { font-style: normal; width: 22px; text-align: center; font-size: 18px; }
.dch-link:hover { background: var(--dc-hover); color: var(--dc-text); }
.dch-link.on { background: var(--dc-sel); color: #fff; }
.dch-link em { margin-left: auto; font-style: normal; min-width: 16px; padding: 0 5px; border-radius: 999px; background: #f23f43; color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
.dch-link em:empty { display: none; }
.dch-pill { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: linear-gradient(120deg, #c14bff, #5b8cff); color: #fff; font-size: 9.5px; font-weight: 900; letter-spacing: .06em; }
.dch-dm-label { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--dc-muted); }
.dch-dm-label button { width: 22px; height: 22px; border: 0; border-radius: 4px; background: transparent; color: var(--dc-muted); font-size: 16px; cursor: pointer; }
.dch-dm-label button:hover { color: #fff; }
.dch-me { display: flex; align-items: center; gap: 8px; height: 56px; flex: 0 0 auto; padding: 0 8px; background: #0e0e10; }
.dch-me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.dch-me-t b { font-size: 14px; color: #f2f3f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dch-me-t small { font-size: 12px; color: var(--dc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dch-icon { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; font-size: 17px; cursor: pointer; opacity: .75; }
.dch-icon:hover { opacity: 1; background: var(--dc-hover); }

/* Avatars with status dots */
.dch-av { position: relative; flex: 0 0 auto; width: 32px; height: 32px; }
.dch-av img, .dch-av .dch-init { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.dch-av i { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--dc-chat); background: #80848e; }
.dch-av.st-on i { background: #23a55a; }
.dch-av.st-idle i { background: #f0b232; }
.dch-me .dch-av i { border-color: #0e0e10; }

/* Pane: Friends home */
.dm-layout.dch-on .dm-pane { background: var(--dc-chat) !important; }
.dm-layout.dch-on .dm-empty { margin: 0 !important; width: 100%; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0 !important; text-align: left; height: 100%; }
.dm-layout.dch-on .dm-empty[hidden] { display: none; }
.dch-home { display: flex; flex-direction: column; height: 100%; min-height: 0; color: var(--dc-text); }
.dch-top { display: flex; align-items: center; gap: 14px; height: 52px; flex: 0 0 auto; padding: 0 16px; border-bottom: 1px solid var(--dc-line); }
.dch-title { font-weight: 700; color: #f2f3f5; font-size: 16px; }
.dch-sep { width: 4px; height: 4px; border-radius: 50%; background: #4e5058; }
.dch-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.dch-tabs button { position: relative; padding: 4px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--dc-muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.dch-tabs button:hover { background: var(--dc-hover); color: var(--dc-text); }
.dch-tabs button.on { background: var(--dc-sel); color: #fff; }
.dch-tabs .dch-add-tab { background: #5865f2; color: #fff; }
.dch-tabs .dch-add-tab.on { background: transparent; color: #23a55a; }
.dch-tabs em { margin-left: 6px; font-style: normal; padding: 0 5px; border-radius: 999px; background: #f23f43; color: #fff; font-size: 11px; font-weight: 800; }
.dch-tabs em:empty { display: none; }
.dch-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.dch-list { min-width: 0; overflow-y: auto; padding: 16px 20px 16px 30px; }
.dch-search { position: relative; margin-bottom: 18px; }
.dch-search input { width: 100%; box-sizing: border-box; height: 38px; padding: 0 36px 0 12px; border-radius: 8px; border: 1px solid var(--dc-line); background: #0b0b0d; color: var(--dc-text); font: inherit; font-size: 15px; outline: none; }
.dch-search span { position: absolute; right: 12px; top: 9px; font-size: 14px; opacity: .6; }
.dch-count { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--dc-muted); }
.dch-row { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 10px; margin: 0 -10px; border-top: 1px solid var(--dc-line); border-radius: 8px; cursor: pointer; }
.dch-row:hover { background: var(--dc-hover); border-top-color: transparent; }
.dch-row:hover + .dch-row { border-top-color: transparent; }
.dch-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.dch-row-t b { font-size: 16px; font-weight: 600; color: #f2f3f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dch-row-t small { font-size: 13.5px; color: var(--dc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dch-acts { display: flex; gap: 10px; }
.dch-act { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--dc-raise); color: var(--dc-text); font: inherit; font-size: 16px; cursor: pointer; }
.dch-row:hover .dch-act { background: #0e0e10; }
.dch-act.ok:hover { color: #23a55a; }
.dch-act.no:hover { color: #f23f43; }
.dch-act.ok { width: auto; min-width: 36px; padding: 0 10px; border-radius: 999px; }
.dch-btn { padding: 8px 14px; border: 0; border-radius: 6px; background: #5865f2; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.dch-tag { font-size: 13px; color: #23a55a; font-weight: 700; }
.dch-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; text-align: center; color: var(--dc-muted); }
.dch-empty span { font-size: 64px; margin-bottom: 14px; opacity: .8; }
.dch-muted { color: var(--dc-muted); font-size: 14px; }
.dch-add h2 { margin: 6px 0 4px; font-size: 18px; color: #f2f3f5; }
.dch-add > p { margin: 0 0 14px; color: var(--dc-muted); font-size: 14px; }
.dch-add-form { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; margin-bottom: 8px; border-radius: 10px; background: #0b0b0d; border: 1px solid var(--dc-line); }
.dch-add-form:focus-within { border-color: #00a8fc; }
.dch-add-form input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; color: var(--dc-text); font: inherit; font-size: 15px; outline: none; }
.dch-add-form button { padding: 0 16px; height: 34px; border: 0; border-radius: 6px; background: #5865f2; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dch-add-msg { margin: 0 0 10px; font-size: 14px; }
.dch-add-msg.ok { color: #23a55a; }
.dch-add-msg.bad { color: #f23f43; }
.dch-now { overflow-y: auto; padding: 18px 16px; border-left: 1px solid var(--dc-line); }
.dch-now h3 { margin: 0 0 16px; font-size: 20px; font-weight: 800; color: #f2f3f5; }
.dch-quiet { text-align: center; padding: 10px 4px; }
.dch-quiet b { display: block; margin-bottom: 6px; font-size: 16px; color: #f2f3f5; }
.dch-quiet p { margin: 0; font-size: 14px; color: var(--dc-muted); line-height: 1.45; }
.dch-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--dc-line); background: var(--dc-raise); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dch-card:hover { background: #2a2a30; }
.dch-card span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dch-card b { font-size: 14px; color: #f2f3f5; }
.dch-card small { font-size: 12.5px; color: var(--dc-muted); }
.dch-menu { position: fixed; z-index: 99990; display: flex; flex-direction: column; width: 180px; padding: 6px; border-radius: 8px; background: #111214; border: 1px solid var(--dc-line, #26262c); box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.dch-menu button { padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; color: #dbdee1; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.dch-menu button:hover { background: #5865f2; color: #fff; }
.dch-menu button.red { color: #f23f43; }
.dch-menu button.red:hover { background: #f23f43; color: #fff; }
@media (max-width: 1150px) { .dch-body { grid-template-columns: minmax(0, 1fr); } .dch-now { display: none; } }
@media (max-width: 760px) { .dch-me { display: none; } }

/* Use the whole width of the screen, like Discord (neo.css caps tabs at 1240px) */
#general.tab-content.dc-on { max-width: none !important; }
