.dc {
    display: flex;
    height: 100%;
    background: #313338;
    color: #dbdee1;
    font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.375;
    -webkit-font-smoothing: antialiased;
    text-align: left;
}

.dc svg { display: block; flex: none; width: 20px; height: 20px; }
.dc b { font-weight: 600; }

.dc-rail {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 72px;
    padding-top: 12px;
    background: #1e1f22;
}

.dc-home, .dc-guild {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #313338;
    color: #dbdee1;
    font-size: 16px;
    font-weight: 600;
}

.dc-home { border-radius: 16px; background: #5865f2; color: #fff; }
.dc-home svg { width: 26px; height: 26px; }
.dc-rail__sep { width: 32px; height: 2px; border-radius: 1px; background: #35363c; }
.dc-guild.is-on { position: relative; border-radius: 16px; background: #1a6dff; color: #fff; }

.dc-guild.is-on::before {
    position: absolute;
    top: 4px;
    left: -12px;
    width: 4px;
    height: 40px;
    border-radius: 0 4px 4px 0;
    background: #f2f3f5;
    content: "";
}

.dc-guild--add { color: #23a559; }

.dc-side { display: flex; flex: none; flex-direction: column; width: 240px; background: #2b2d31; }

.dc-guildname {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    box-shadow: 0 1px 0 rgba(4, 4, 5, .2), 0 1.5px 0 rgba(6, 6, 7, .05), 0 2px 0 rgba(4, 4, 5, .05);
    color: #f2f3f5;
    font-weight: 600;
}

.dc-guildname svg { width: 18px; height: 18px; }
.dc-chs { flex: 1; padding: 8px 8px 0; }

.dc-cat {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 16px 0 4px;
    color: #949ba4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.dc-cat:first-child { margin-top: 8px; }
.dc-cat svg { width: 12px; height: 12px; }

.dc-ch {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    margin-bottom: 2px;
    border-radius: 4px;
    padding: 0 8px;
    color: #80848e;
    font-weight: 500;
}

.dc-ch svg { width: 20px; height: 20px; color: #80848e; }
.dc-ch--0 { background: #404249; color: #fff; }

.dc-me { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px; background: #232428; }

.dc-me__ava {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0b232;
    color: #1e1f22;
    font-size: 14px;
    font-weight: 700;
}

.dc-me__ava i {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border: 3px solid #232428;
    border-radius: 50%;
    background: #23a559;
}

.dc-me__txt { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.2; }
.dc-me__txt b { color: #f2f3f5; font-size: 14px; }
.dc-me__txt small { color: #b5bac1; font-size: 12px; }
.dc-me__tools { display: flex; gap: 14px; padding-right: 6px; color: #b5bac1; }
.dc-me__tools svg { width: 18px; height: 18px; }

.dc-main { position: relative; flex: 1; min-width: 0; }

.dc-pane {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #313338;
    opacity: 0;
}

.dc-pane--0 { opacity: 1; }

.dc-top {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    box-shadow: 0 1px 0 rgba(4, 4, 5, .2), 0 1.5px 0 rgba(6, 6, 7, .05), 0 2px 0 rgba(4, 4, 5, .05);
    color: #80848e;
    font-size: 14px;
    white-space: nowrap;
}

.dc-top svg { width: 24px; height: 24px; }
.dc-top > b { color: #f2f3f5; font-size: 16px; }
.dc-top > i { width: 1px; height: 24px; margin: 0 4px; background: #3f4147; }
.dc-top > span:not(.dc-top__tools) { overflow: hidden; color: #b5bac1; text-overflow: ellipsis; }
.dc-top__tools { display: flex; align-items: center; gap: 16px; margin-left: auto; color: #b5bac1; }

.dc-search {
    width: 144px;
    height: 24px;
    border-radius: 4px;
    padding: 0 8px;
    background: #1e1f22;
    color: #949ba4;
    font-size: 14px;
    line-height: 24px;
}

.dc-log { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; padding: 16px 0 20px; }
.dc-intro { margin: 0 16px 8px; }
.dc-intro > span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #41434a; color: #fff; }
.dc-intro > span svg { width: 42px; height: 42px; }
.dc-intro b { display: block; margin-top: 8px; color: #f2f3f5; font-size: 32px; font-weight: 700; line-height: 1.25; }
.dc-intro p { margin: 6px 0 0; color: #b5bac1; }

.dc-day {
    display: flex;
    align-items: center;
    margin: 8px 16px 12px;
    color: #949ba4;
    font-size: 12px;
    font-weight: 600;
}

.dc-day::before, .dc-day::after { flex: 1; height: 1px; background: #3f4147; content: ""; }
.dc-day span { padding: 0 6px; }

.dc-msg { position: relative; min-height: 44px; margin-top: 17px; padding: 2px 48px 2px 72px; }
.dc-msg:first-of-type { margin-top: 0; }

.dc-ava {
    position: absolute;
    top: 4px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0b0e14;
}

.dc-ava img { width: 24px; height: 24px; object-fit: contain; }
.dc-ava--sm { position: static; width: 20px; height: 20px; }
.dc-ava--sm img { width: 12px; height: 12px; }
.dc-msg__head { display: flex; align-items: center; gap: 4px; }
.dc-bot { color: #1abc9c; font-weight: 500; }
.dc-msg__head .dc-bot { font-size: 16px; }

.dc-plus {
    background: linear-gradient(90deg, #2ee6f2, #9ffcff 22%, #2fd8c4 46%, #3cb8ff 72%, #2ee6f2) 0 0 / 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: #5eeaf2;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(46, 230, 242, .45));
}

@media (prefers-reduced-motion: no-preference) {
    .scn.is-live .dc-plus,
    .eco-pop .dc-plus { animation: dc-plus 4.5s linear infinite; }
}

@keyframes dc-plus {
    to { background-position: -200% 0; }
}

.dc-user { color: #e67e22; font-weight: 500; }

.dc-app {
    display: inline-flex;
    align-items: center;
    height: 15px;
    margin-left: 2px;
    border-radius: 4px;
    padding: 0 4px;
    background: #5865f2;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
}

.dc-msg__head time { margin-left: 4px; color: #949ba4; font-size: 12px; }
.dc-text { margin: 0; }

.dc-mention {
    border-radius: 3px;
    padding: 0 2px;
    background: rgba(88, 101, 242, .3);
    color: #c9cdfb;
    font-weight: 500;
}

.dc-embed {
    max-width: 520px;
    margin-top: 4px;
    border-left: 4px solid var(--bar);
    border-radius: 4px;
    padding: 8px 16px 16px 12px;
    background: #2b2d31;
    font-size: 14px;
}

.dc-embed__title { display: block; margin-top: 8px; color: #f2f3f5; font-size: 16px; font-weight: 600; }
.dc-embed__desc { margin-top: 8px; }
.dc-embed__desc p, .dc-box p { margin: 0; }
.dc-embed__desc ul { margin: 4px 0 4px; padding-left: 20px; }
.dc-embed__desc p + p, .dc-embed__desc ul + p { margin-top: 4px; }

.dc-embed code {
    border-radius: 4px;
    padding: 0 3px;
    background: #1e1f22;
    font-family: Consolas, "Andale Mono WT", monospace;
    font-size: 12px;
}

.dc-time { border-radius: 3px; padding: 0 2px; background: rgba(255, 255, 255, .06); }
.dc-embed__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; font-weight: 500; }

.dc-box {
    max-width: 520px;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    padding: 16px;
    background: #2b2d31;
}

.dc-box h4 { margin: 0 0 6px; color: #f2f3f5; font-size: 20px; font-weight: 700; line-height: 1.3; }
.dc-box small { display: block; margin-top: 6px; color: #949ba4; font-size: 12px; }
.dc-row { display: flex; gap: 8px; margin-top: 8px; }

.dc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    border-radius: 8px;
    padding: 0 16px;
    background: #4e5058;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.dc-btn svg { width: 16px; height: 16px; }

.dc-compose {
    display: flex;
    flex: none;
    align-items: center;
    gap: 16px;
    height: 44px;
    margin: 0 16px 24px;
    border-radius: 8px;
    padding: 0 16px;
    background: #383a40;
    color: #6d6f78;
}

.dc-compose__plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #b5bac1; color: #383a40; }
.dc-compose__plus svg { width: 16px; height: 16px; }

.dc--chat { display: block; height: auto; padding: 16px 0 20px; }
.dc--chat .dc-msg { padding-right: 16px; }
.dc--chat .dc-msg + .dc-msg { margin-top: 17px; }

.dc-box--v2 { border-left: 4px solid #1a6dff; border-radius: 8px; padding: 12px; }
.dc-media { display: block; width: 100%; height: auto; aspect-ratio: 800 / 282; border-radius: 4px; object-fit: cover; }
.dc-sep { display: block; height: 1px; margin: 12px 0; background: rgba(255, 255, 255, .08); }
.dc-box--v2 h4 { font-size: 20px; }
.dc-box--v2 p { font-size: 15px; }
.dc-box--v2 small { font-size: 13px; }
.dc-box--v2 .dc-row { margin-top: 0; }

.dc-reply {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin: 0 0 2px;
    color: #b5bac1;
    font-size: 14px;
    white-space: nowrap;
}

.dc-reply::before {
    position: absolute;
    top: 9px;
    left: -36px;
    width: 30px;
    height: 12px;
    border-top: 2px solid #4e5058;
    border-left: 2px solid #4e5058;
    border-top-left-radius: 6px;
    content: "";
}

.dc-reply > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.dc-reply .dc-plus { flex: none; font-weight: 500; }
.dc-ava--xs { position: static; flex: none; width: 16px; height: 16px; }
.dc-ava--xs img { width: 10px; height: 10px; }
.dc-msg--reply .dc-ava--user { top: 26px; }
.dc-ava--user { background: #5865f2; color: #fff; }
.dc-ava--user svg { width: 24px; height: 18px; }

@media (prefers-reduced-motion: no-preference) {
    .scn.is-watched .dc--chat .dc-msg { opacity: 0; }
    .scn.is-seen .dc--chat .dc-msg { animation: dc-arrive .6s cubic-bezier(.22, 1, .36, 1) .2s both; }
    .scn.is-seen .dc--chat .dc-msg:nth-child(2) { animation-delay: 1.1s; }
    .scn.is-seen .dc--chat .dc-msg:nth-child(3) { animation-delay: 2.3s; }
}

@keyframes dc-arrive {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
    .cmp--chat .scn.is-seen .dc--chat .dc-msg:not(.is-in) { animation: none; }
    .cmp--chat .scn.is-seen .dc--chat .dc-msg.is-in { animation-delay: .1s; }
}

@media (prefers-reduced-motion: no-preference) {
    .js .scn.is-live .dc-pane { animation: dc-pane 18s infinite both; }
    .js .scn.is-live .dc-pane--0 { animation-name: dc-pane-first; }
    .js .scn.is-live .dc-pane--1 { animation-delay: 6s; }
    .js .scn.is-live .dc-pane--2 { animation-delay: 12s; }
    .js .scn.is-live :is(.dc-ch--0, .dc-ch--1, .dc-ch--2) { animation: dc-ch 18s infinite both; }
    .js .scn.is-live .dc-ch--0 { animation-name: dc-ch-first; }
    .js .scn.is-live .dc-ch--1 { animation-delay: 6s; }
    .js .scn.is-live .dc-ch--2 { animation-delay: 12s; }
}

@keyframes dc-pane {
    0%, 100% { opacity: 0; }
    2%, 32% { opacity: 1; }
    35% { opacity: 0; }
}

@keyframes dc-pane-first {
    0%, 32% { opacity: 1; }
    35%, 98% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes dc-ch {
    0%, 100% { background: transparent; color: #80848e; }
    1%, 33.3% { background: #404249; color: #fff; }
    33.4% { background: transparent; color: #80848e; }
}

@keyframes dc-ch-first {
    0%, 33.3% { background: #404249; color: #fff; }
    33.4%, 99.9% { background: transparent; color: #80848e; }
    100% { background: #404249; color: #fff; }
}
