.dc-message {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 8px 16px;
    color: #dbdee1;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.dc-message:hover { background: rgba(255, 255, 255, 0.025); }

.dc-avatar {
    width: 40px;
    height: 40px;
    margin-top: 2px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-main));
}

.dc-body { min-width: 0; }

.dc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.dc-author { color: #fff; font-weight: 600; }
.dc-app-tag {
    display: inline-flex;
    align-items: center;
    height: 15px;
    padding: 0 5px;
    border-radius: 4px;
    background: #5865f2;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}
.dc-time { color: #949ba4; font-size: 12px; margin-left: 4px; }

.dc-content { margin-bottom: 2px; word-wrap: break-word; }

.dc-mention {
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(88, 101, 242, 0.3);
    color: #c9cdfb;
    font-weight: 500;
}
.dc-code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #1e1f22;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.9em;
}

.dc-embed {
    display: flex;
    gap: 16px;
    max-width: 520px;
    margin-top: 6px;
    padding: 8px 16px 16px 12px;
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 4px solid var(--embed-color, var(--accent-main));
    border-radius: 4px;
}
.dc-embed-main { flex: 1; min-width: 0; }
.dc-embed-author { margin-top: 8px; font-size: 14px; font-weight: 600; color: #f2f3f5; }
.dc-embed-title { margin-top: 8px; font-size: 16px; font-weight: 700; color: #f2f3f5; }
.dc-embed-desc { margin-top: 8px; font-size: 14px; line-height: 1.5; }

.dc-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 8px;
}
.dc-field { grid-column: 1 / -1; }
.dc-field.is-inline { grid-column: span 1; }
.dc-field-name { font-size: 14px; font-weight: 700; color: #f2f3f5; }
.dc-field-value { font-size: 14px; }

.dc-embed-footer { margin-top: 10px; font-size: 12px; color: #b5bac1; }

.dc-embed-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    margin-top: 8px;
    border-radius: 8px;
    object-fit: cover;
}
.dc-embed-thumb--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-main));
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}

.dc-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 520px;
    margin-top: 8px;
}
.dc-row { display: flex; flex-wrap: wrap; gap: 8px; }

.dc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 2px 16px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font: 600 14px/1 inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.dc-btn:active:not(:disabled) { transform: scale(0.97); }
.dc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.dc-btn--primary { background: #5865f2; }
.dc-btn--primary:hover:not(:disabled) { background: #4752c4; }
.dc-btn--secondary,
.dc-btn--link { background: #4e5058; }
.dc-btn--secondary:hover:not(:disabled),
.dc-btn--link:hover { background: #6d6f78; }
.dc-btn--success { background: #248046; }
.dc-btn--success:hover:not(:disabled) { background: #1a6334; }
.dc-btn--danger { background: #da373c; }
.dc-btn--danger:hover:not(:disabled) { background: #a12828; }

.dc-btn.is-on { box-shadow: inset 0 0 0 2px var(--accent-main); }
.dc-btn-count { font-variant-numeric: tabular-nums; opacity: 0.9; }
.dc-btn-ext { opacity: 0.8; }

.dc-select { position: relative; width: 100%; max-width: 520px; }

.dc-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 0 10px 0 12px;
    border: 1px solid #1e1f22;
    border-radius: 4px;
    background: #1e1f22;
    color: #949ba4;
    font: 400 14px/1.3 inherit;
    text-align: left;
    cursor: pointer;
}
.dc-select-trigger:hover:not(:disabled) { border-color: #3f4147; }
.dc-select.is-chosen .dc-select-trigger { color: #dbdee1; }
.dc-select-chevron { flex-shrink: 0; transition: transform 0.15s ease; }
.dc-select.is-open .dc-select-chevron { transform: rotate(180deg); }

.dc-select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 300px;
    margin: 0;
    padding: 8px;
    overflow-y: auto;
    list-style: none;
    background: #111214;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.dc-select-menu[hidden] { display: none; }
.dc-select.opens-up .dc-select-menu { top: auto; bottom: calc(100% + 4px); }

.dc-select-menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: #dbdee1;
}
.dc-select-menu li:hover,
.dc-select-menu li:focus-visible,
.dc-select-menu li[aria-selected="true"] { background: #35373c; outline: none; }
.dc-opt-text { display: flex; flex-direction: column; min-width: 0; }
.dc-opt-text strong { font-size: 14px; font-weight: 600; }
.dc-opt-text small { font-size: 12px; color: #949ba4; }

.dc-emoji { font-size: 16px; line-height: 1; }

.dc-btn:focus-visible,
.dc-select-trigger:focus-visible { outline: 2px solid var(--accent-main); outline-offset: 2px; }

@media (max-width: 520px) {
    .dc-message { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 8px 10px; }
    .dc-avatar { width: 36px; height: 36px; }
    .dc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dc-embed-thumb { width: 48px; height: 48px; }
}