
  .discord-messages,
  .discord-app,
  .discord-theme {
    --d-bg: #323339;
    --d-surface: #393a41;
    --d-surface-higher: #3c3d45;
    --d-text: #f3f3f4;
    --d-strong: #ffffff;
    --d-muted: #abacb2;
    --d-time: #9d9ea5;
    --d-subtle: #c5c6ca;
    --d-link: #76aff6;
    --d-brand: #5865f2;
    --d-spine: #595a63;
    --d-border-subtle: rgba(148, 148, 156, 0.122);
    --d-border-normal: rgba(150, 150, 160, 0.2);
    --d-mod-muted: rgba(153, 153, 153, 0.078);
    --d-mod-subtle: rgba(148, 148, 156, 0.122);
    --d-mod-normal: rgba(149, 149, 162, 0.161);
    --d-mod-strong: rgba(150, 150, 160, 0.2);
    --d-code-bg: rgba(89, 102, 242, 0.078);
    --d-mention-fg: #cdd7ff;
    --d-mention-bg: rgba(88, 100, 242, 0.239);
    --d-spoiler: #7d7e87;
    --d-spoiler-hover: #9d9ea5;
    --d-font: "gg sans", "Source Sans 3", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --d-code: "gg mono", "Source Code Pro", Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "DejaVu Sans Mono", "Liberation Mono", Monaco, "Courier New", monospace;
    --d-base-lowest: #2c2d32;
    --d-base-low: #36373e;
    --d-channel: #999aa1;
    --d-interactive: #c5c6ca;
    --d-hover: rgba(148, 148, 156, 0.122);
    --d-selected: rgba(150, 150, 160, 0.2);
    --d-border-muted: rgba(153, 153, 153, 0.039);
    --d-positive: #7ecb94;
    --d-status-positive: #23a55a;
    --d-critical: #ffa09b;
    --d-red-glow: rgba(214, 41, 58, 0.122);
    --d-red-glow-hover: rgba(209, 46, 59, 0.239);
  }

  .discord-messages {
    background: var(--d-bg);
    color: var(--d-text);
    font-family: var(--d-font);
    /* Source Sans 3 runs 2% narrower than gg sans at 16px; a larger x-height matches it. At 14px it already matches. */
    font-size-adjust: 0.495;
    font-size: 16px;
    line-height: 1.375;
    padding-bottom: 24px;
    text-rendering: optimizeLegibility;
  }

  body > .discord-messages {
    min-height: 100vh;
  }

  .discord-export-footer {
    padding: 16px 0 0;
    font-size: 14px;
    color: var(--d-muted);
    text-align: center;
  }

  .discord-messages *,
  .discord-messages *::before,
  .discord-messages *::after {
    box-sizing: border-box;
  }

  .discord-messages a {
    color: var(--d-link);
    text-decoration: none;
    word-break: break-word;
  }

  .discord-messages a:hover {
    text-decoration: underline;
  }

  /* Channel bar and the welcome at the top of a channel */
  .discord-channel-bar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    height: 49px;
    padding: 0 8px 0 16px;
    border-bottom: 1px solid var(--d-border-subtle);
    font-size: 16px;
    font-size-adjust: 0.495;
    font-weight: 600;
    color: var(--d-strong);
  }

  .discord-channel-bar > svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--d-channel);
  }

  .discord-channel-bar-topic {
    min-width: 0;
    padding-left: 12px;
    border-left: 1px solid var(--d-border-normal);
    font-size: 14px;
    font-weight: 500;
    color: var(--d-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .discord-welcome {
    margin: 16px;
  }

  .discord-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-top: 16px;
    border-radius: 50%;
    background: var(--d-mod-muted);
    color: var(--d-strong);
  }

  .discord-welcome-icon svg {
    width: 42px;
    height: 42px;
  }

  .discord-welcome-title {
    margin: 8px 0;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--d-strong);
  }

  .discord-welcome-description {
    margin: 0;
    color: var(--d-text);
  }

  .discord-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0;
    margin: 24px 16px 0;
    border-top: 1px solid var(--d-border-subtle);
  }

  .discord-divider span {
    margin-top: -1px;
    padding: 2px 4px;
    border-radius: 8px;
    background: var(--d-bg);
    font-size: 12px;
    font-weight: 600;
    line-height: 13px;
    color: var(--d-muted);
  }

  /* Messages */
  .discord-message {
    position: relative;
    min-height: 1.375rem;
    padding: 2px 16px 2px 72px;
    word-wrap: break-word;
  }

  .discord-message:hover {
    background: var(--d-mod-muted);
  }

  .discord-message--group-start {
    min-height: 2.75rem;
    margin-top: 1.0625rem;
  }

  .discord-message--mentioned {
    background: rgba(242, 166, 0, 0.078);
  }

  .discord-message--mentioned:hover {
    background: rgba(255, 153, 0, 0.039);
  }

  .discord-message--mentioned::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: #fcb529;
    pointer-events: none;
  }

  .discord-message--ephemeral {
    background: rgba(88, 101, 242, 0.05);
  }

  .discord-message--ephemeral:hover {
    background: rgba(88, 101, 242, 0.1);
  }

  .discord-message--ephemeral::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: var(--d-brand);
    pointer-events: none;
  }

  .discord-message--ephemeral .discord-accessories {
    margin-top: -4px;
  }

  .discord-message--ephemeral .discord-accessories:empty + .discord-ephemeral-note {
    margin-top: 0;
  }

  .discord-ephemeral-note {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: var(--d-muted);
  }

  .discord-ephemeral-note svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: text-bottom;
  }

  .discord-ephemeral-note button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--d-link);
    cursor: pointer;
  }

  .discord-ephemeral-note button:hover {
    text-decoration: underline;
  }

  .discord-avatar {
    position: absolute;
    left: 16px;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    border-radius: 50%;
    object-fit: cover;
  }

  .discord-message-header {
    display: block;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    min-height: 1.375rem;
    line-height: 1.375rem;
    color: var(--d-muted);
    white-space: break-spaces;
  }

  .discord-username:hover {
    text-decoration: underline;
    cursor: pointer;
  }

  .discord-username {
    display: inline;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.375rem;
    color: var(--d-strong);
  }

  .discord-role-icon {
    position: relative;
    top: 1px;
    width: 20px;
    height: 20px;
    margin-left: 0.25rem;
    vertical-align: top;
  }

  .discord-app-tag {
    position: relative;
    top: 0.1rem;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 0.9375rem;
    margin-top: 0.2em;
    margin-left: 0.25rem;
    padding: 0 0.275rem;
    border-radius: 4px;
    background: var(--d-brand);
    color: #fff;
    vertical-align: top;
    text-indent: 0;
  }

  .discord-app-tag svg {
    width: 1rem;
    height: 1rem;
    margin-left: -0.2rem;
    margin-top: -0.02rem;
  }

  .discord-app-tag span {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 0.9375rem;
    text-transform: uppercase;
  }

  .discord-timestamp {
    display: inline-block;
    height: 1.25rem;
    margin-left: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.375rem;
    color: var(--d-time);
    vertical-align: baseline;
  }

  .discord-hover-time {
    position: absolute;
    left: 0;
    width: 56px;
    height: 1.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.375rem;
    color: var(--d-time);
    text-align: right;
    opacity: 0;
  }

  .discord-message:hover .discord-hover-time {
    opacity: 1;
  }

  .discord-edited {
    margin-left: 0.25rem;
    font-size: 0.625rem;
    font-weight: 400;
    line-height: 1;
    color: var(--d-time);
  }

  .discord-accessories {
    position: relative;
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    justify-items: start;
    row-gap: 0.25rem;
    min-width: 0;
    padding: 0.125rem 0;
  }

  .discord-accessories:empty {
    display: none;
  }

  .discord-accessories > * {
    max-width: 100%;
  }

  /* Replies and command lines above a message */
  .discord-reply,
  .discord-command {
    position: relative;
    display: flex;
    align-items: center;
    height: 1.125rem;
    margin-bottom: 4px;
    font-size: 0.875rem;
    line-height: 1.125rem;
    color: var(--d-text);
    white-space: pre;
  }

  .discord-reply::before,
  .discord-command::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    bottom: 0;
    left: -36px;
    margin: -1px 4px 0 0;
    border-top: 2px solid var(--d-spine);
    border-left: 2px solid var(--d-spine);
    border-top-left-radius: 6px;
  }

  .discord-reply-avatar {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
    border-radius: 50%;
  }

  .discord-reply .discord-app-tag,
  .discord-command .discord-app-tag,
  .discord-thread-preview .discord-app-tag {
    top: 0;
    margin: 0 0.25rem 0 0;
  }

  .discord-reply-username {
    flex-shrink: 0;
    margin-right: 0.25rem;
    font-weight: 500;
    color: var(--d-strong);
    opacity: 0.64;
  }

  .discord-reply-content {
    flex: 0 1 auto;
    min-width: 0;
    max-height: 1.25em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }

  .discord-messages .discord-reply-content *,
  .discord-messages .discord-thread-preview-content * {
    white-space: nowrap;
  }

  .discord-reply-content br {
    display: none;
  }

  .discord-reply-placeholder {
    font-style: italic;
    color: var(--d-muted);
  }

  .discord-reply-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    color: var(--d-subtle);
  }

  .discord-command-name {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 2px;
    border-radius: 3px;
    background: var(--d-mention-bg);
    font-weight: 500;
    color: var(--d-link);
  }

  .discord-command-name svg {
    width: 12px;
    height: 12px;
  }

  /* Markup */
  .discord-markup {
    font-size: 1rem;
    line-height: 1.375rem;
    color: var(--d-text);
    white-space: break-spaces;
    word-wrap: break-word;
  }

  .discord-markup strong {
    font-weight: 700;
  }

  .discord-markup em {
    font-style: italic;
  }

  .discord-markup h1,
  .discord-markup h2,
  .discord-markup h3 {
    margin: 16px 0 8px;
    font-weight: 700;
    line-height: 1.375em;
    color: var(--d-strong);
    white-space: break-spaces;
  }

  .discord-markup h1 { font-size: 1.5rem; }
  .discord-markup h2 { font-size: 1.25rem; }
  .discord-markup h3 { font-size: 1rem; }

  .discord-markup h1:first-child,
  .discord-markup h2:first-child {
    margin-top: 8px;
  }

  .discord-markup h3:first-child {
    margin-top: 4px;
  }

  .discord-markup small {
    display: block;
    font-size: 0.875rem;
    line-height: 1.20313rem;
    color: var(--d-subtle);
  }

  .discord-markup ul,
  .discord-markup ol {
    margin: 4px 0 0 16px;
    padding: 0;
    list-style-position: outside;
  }

  .discord-markup ul { list-style-type: disc; }
  .discord-markup ul ul,
  .discord-markup ol ul { list-style-type: circle; }

  .discord-markup ol {
    margin-left: calc(0.4em + var(--total-characters, 1) * 0.6em);
    list-style-type: decimal;
  }

  .discord-markup li {
    margin-bottom: 4px;
    white-space: break-spaces;
  }

  .discord-markup li ul,
  .discord-markup li ol {
    margin-bottom: 0;
  }

  .discord-messages code,
  .discord-messages pre,
  .discord-audio-time,
  .discord-embed-description,
  .discord-embed-field,
  .discord-container .discord-text-display {
    font-size-adjust: none;
  }

  .discord-messages code {
    border: 1px solid var(--d-border-normal);
    background: var(--d-code-bg);
    font-family: var(--d-code);
    font-size: 0.875rem;
    line-height: 1.125rem;
    white-space: pre-wrap;
  }

  .discord-messages code.discord-inline-code {
    margin: -0.2em 0;
    padding: 0 0.2em;
    border-radius: 4px;
    font-size: 85%;
  }

  .discord-markup pre {
    box-sizing: border-box;
    /* Discord also caps code at half its window, which is the chat plus about 338px of sidebars. */
    max-width: min(90%, calc(50vw + 169px));
    margin: 6px 0 0;
    padding: 0;
    border-radius: 4px;
    font-family: var(--d-code);
    font-size: 0.75rem;
    line-height: 1rem;
    white-space: pre-wrap;
  }

  .discord-markup pre code {
    display: block;
    padding: 0.5em;
    border-radius: 4px;
    overflow-x: auto;
    color: #ffffff;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  .hljs-doctag, .hljs-keyword, .hljs-template-tag, .hljs-template-variable, .hljs-variable.language_ { color: #ffbdb9; }
  .hljs-type, .hljs-built_in { color: #ffb6ed; }
  .hljs-title, .hljs-title.class_, .hljs-title.function_ { color: #bccaff; }
  .hljs-literal, .hljs-params, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-id, .hljs-variable { color: #ffffff; }
  .hljs-attr, .hljs-attribute { color: #abcfff; }
  .hljs-meta { color: #ffc252; }
  .hljs-property { color: #8edae1; }
  .hljs-number { color: #fcc0a1; }
  .hljs-operator { color: #ffcfcd; }
  .hljs-string, .hljs-meta .hljs-string { color: #96dda9; }
  .hljs-regexp { color: #96dda9; }
  .hljs-symbol { color: #ffc252; }
  .hljs-comment, .hljs-code, .hljs-formula { color: #abacb2; }
  .hljs-name, .hljs-quote, .hljs-selector-pseudo, .hljs-selector-tag { color: #ffb6ed; }
  .hljs-section { color: #ffbdb9; font-weight: 700; }
  .hljs-bullet, .hljs-link { color: #abcfff; }
  .hljs-emphasis { font-style: italic; }
  .hljs-strong { font-weight: 700; }
  .hljs-addition { background: rgba(0, 132, 66, 0.122); color: #99e0ad; }
  .hljs-deletion { background: rgba(214, 41, 58, 0.122); color: #ffbdb9; }

  .discord-quote {
    display: flex;
    margin: 4px 0;
  }

  .discord-quote-divider {
    min-width: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--d-spine);
  }

  .discord-quote blockquote {
    box-sizing: border-box;
    max-width: 90%;
    margin: 0;
    padding: 0 8px 0 12px;
    color: var(--d-subtle);
    text-indent: 0;
  }

  .discord-spoiler {
    border-radius: 4px;
    background: var(--d-spoiler);
    color: transparent;
    cursor: pointer;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .discord-spoiler:hover {
    background: var(--d-spoiler-hover);
  }

  .discord-spoiler > *,
  .discord-spoiler img {
    opacity: 0;
  }

  .discord-spoiler--revealed {
    border-radius: 4px;
    background: var(--d-mod-subtle);
  }

  .discord-mention {
    padding: 0 2px;
    border-radius: 3px;
    background: var(--d-mention-bg);
    font-weight: 500;
    color: var(--d-mention-fg);
    unicode-bidi: plaintext;
  }

  .discord-mention:hover {
    text-decoration: underline;
  }

  .discord-mention svg {
    width: 1em;
    height: 1em;
    margin-right: 2px;
    vertical-align: -0.125em;
  }

  .discord-time {
    padding: 0 2px;
    border-radius: 3px;
    background: var(--d-mod-normal);
  }

  .discord-emoji {
    width: 1.375em;
    height: 1.375em;
    object-fit: contain;
    vertical-align: bottom;
  }

  .discord-emoji--jumbo {
    width: 3rem;
    height: 3rem;
    min-height: 3rem;
  }

  .discord-embed .discord-emoji {
    width: 18px;
    height: 18px;
  }

  /* Embeds */
  .discord-embed {
    position: relative;
    display: grid;
    max-width: max-content;
    border: 1px solid var(--d-border-subtle);
    border-left: 4px solid var(--d-border-normal);
    border-radius: 4px;
    background: var(--d-surface);
  }

  .discord-embed-grid {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    max-width: 516px;
    overflow: hidden;
    padding: 0.125rem 1rem 1rem 0.75rem;
  }

  .discord-embed-grid--thumbnail {
    grid-template-columns: minmax(0, 1fr) min-content;
  }

  .discord-embed-grid > * {
    grid-column: 1 / 1;
    min-width: 0;
  }

  .discord-embed-provider,
  .discord-embed-author,
  .discord-embed-title,
  .discord-embed-description,
  .discord-embed-footer {
    margin-top: 8px;
  }

  .discord-embed-provider {
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--d-text);
  }

  .discord-embed-provider a {
    color: var(--d-subtle);
  }

  .discord-embed-author {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.125rem;
    color: var(--d-strong);
  }

  .discord-embed-author img {
    flex: none;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 50%;
    object-fit: contain;
  }

  .discord-embed-author a {
    color: var(--d-strong);
  }

  .discord-embed-title {
    display: inline-block;
    /* Semibold Source Sans 3 runs 2% narrower than gg sans. */
    font-size-adjust: 0.505;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.375rem;
    color: var(--d-strong);
  }

  .discord-embed-description,
  .discord-embed-field-value {
    font-size: 0.875rem;
    line-height: 1.125rem;
    color: var(--d-text);
    white-space: pre-line;
  }

  .discord-embed .discord-markup {
    font-size: 0.875rem;
    line-height: 1.125rem;
    white-space: pre-line;
  }

  .discord-embed pre {
    max-width: 100%;
    border: none;
  }

  .discord-embed blockquote {
    max-width: 100%;
  }

  .discord-embed code {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .discord-embed-fields {
    display: grid;
    gap: 8px;
    margin-top: 8px;
  }

  .discord-embed-field {
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.125rem;
  }

  .discord-embed-field-name {
    margin-bottom: 2px;
    font-weight: 600;
    color: var(--d-strong);
  }

  .discord-embed-thumbnail {
    grid-column: 2 / 2;
    grid-row: 1 / 8;
    justify-self: end;
    flex-shrink: 0;
    margin: 8px 0 0 16px;
  }

  .discord-embed-thumbnail img {
    display: block;
    border-radius: 4px;
  }

  .discord-embed-media {
    margin-top: 16px;
    border-radius: 4px;
    contain: paint;
  }

  .discord-embed-grid--thumbnail .discord-embed-media,
  .discord-embed-grid--thumbnail .discord-embed-footer {
    grid-column: 1 / 3;
  }

  .discord-embed-media img,
  .discord-embed-media video {
    display: block;
    max-width: 100%;
    border-radius: 4px;
  }

  .discord-embed-video {
    position: relative;
    display: flex;
    max-width: 100%;
  }

  .discord-embed-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .discord-embed-media > img {
    height: auto;
  }

  .discord-video-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .discord-video-actions > div {
    display: flex;
    gap: 4px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.6);
  }

  .discord-video-actions a {
    display: flex;
    color: #fff;
    opacity: 0.6;
  }

  .discord-video-actions a:hover {
    opacity: 1;
    text-decoration: none;
  }

  .discord-video-actions svg {
    width: 24px;
    height: 24px;
  }

  .discord-embed-footer {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    color: var(--d-text);
  }

  .discord-embed-footer img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    object-fit: contain;
  }

  .discord-embed-footer-separator {
    display: inline-block;
    margin: 0 4px;
    font-weight: 500;
  }

  /* Media: one item at its own shape, several as Discord's mosaic */
  .discord-mosaic {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 550px;
  }

  .discord-mosaic--v2 {
    max-width: 600px;
  }

  .discord-mosaic-single {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
  }

  .discord-mosaic-row {
    display: flex;
    gap: 4px;
    max-height: 280px;
  }

  .discord-mosaic-row--three {
    max-height: 350px;
  }

  .discord-mosaic-row > * {
    flex: 1;
    min-width: 0;
  }

  .discord-mosaic-row--three > :first-child {
    flex: 2;
  }

  .discord-mosaic-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .discord-mosaic-column > * {
    flex: 1;
    min-height: 0;
  }

  .discord-mosaic-square {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
    max-height: 350px;
  }

  .discord-mosaic-thirds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .discord-mosaic-thirds > * {
    aspect-ratio: 1 / 1;
  }

  .discord-mosaic > * + * {
    margin-top: 4px;
  }

  .discord-media {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
  }

  .discord-media > img,
  .discord-media > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .discord-mosaic-single .discord-media > img,
  .discord-mosaic-single .discord-media > video {
    object-fit: contain;
  }

  .discord-media--spoiler > img,
  .discord-media--spoiler > video {
    filter: blur(44px);
  }

  .discord-media--spoiler {
    background: var(--d-spoiler);
    cursor: pointer;
  }

  .discord-media--revealed {
    background: none;
  }

  .discord-mosaic-row:not(.discord-mosaic-row--three) .discord-media > video {
    object-fit: contain;
  }

  .discord-media-spoiler-label {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
  }

  .discord-media--revealed > img,
  .discord-media--revealed > video {
    filter: none;
  }

  .discord-media--revealed .discord-media-spoiler-label {
    display: none;
  }

  .discord-media-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    font-size: 28px;
    font-weight: 600;
    color: #fff;
  }

  .discord-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    padding: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
  }

  .discord-video-play svg {
    width: 24px;
    height: 24px;
  }

  .discord-media--playing .discord-video-play {
    display: none;
  }

  .discord-non-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .discord-mosaic + .discord-non-visual,
  .discord-mosaic-single + .discord-non-visual {
    margin-top: 8px;
  }

  .discord-non-visual > * {
    width: fit-content;
    max-width: 100%;
  }

  /* Files */
  .discord-file {
    display: flex;
    align-items: center;
    width: 432px;
    max-width: 100%;
    padding: 16px;
    border: 1px solid var(--d-border-subtle);
    border-radius: 8px;
    background: var(--d-surface);
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
  }

  .discord-file-icon {
    flex-shrink: 0;
    width: 30px;
    height: 40px;
    margin-right: 8px;
  }

  .discord-file-inner {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .discord-file-name {
    display: block;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.25;
    text-overflow: ellipsis;
  }

  .discord-file-size {
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--d-muted);
  }

  .discord-file-download {
    display: flex;
    flex-shrink: 0;
    margin-left: 8px;
    color: var(--d-subtle);
    opacity: 0;
  }

  .discord-file:hover .discord-file-download {
    opacity: 1;
  }

  .discord-messages .discord-file-download:hover {
    color: var(--d-strong);
  }

  /* Text file previews */
  .discord-text-preview {
    display: grid;
    width: fit-content;
    min-width: min(302px, 100%);
    max-width: min(100%, calc(50vw + 169px));
  }

  .discord-text-preview-body {
    min-height: 118px;
    max-height: 126px;
    overflow: hidden;
    border: 1px solid var(--d-border-subtle);
    border-radius: 8px 8px 0 0;
    background: var(--d-bg);
  }

  .discord-text-preview--expanded .discord-text-preview-body {
    max-height: 500px;
    overflow: auto;
  }

  .discord-text-preview-body pre {
    min-height: 100px;
    margin: 8px 8px 0;
    padding: 8px;
    font-family: var(--d-code);
    font-size: 0.875rem;
    line-height: 1rem;
    color: #ffffff;
    white-space: pre;
    tab-size: 4;
  }

  .discord-text-preview-footer {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--d-border-subtle);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: var(--d-surface);
    font-size: 0.875rem;
    color: var(--d-text);
  }

  .discord-text-preview-name {
    min-width: 0;
    overflow: hidden;
  }

  .discord-text-preview-name a {
    display: block;
    overflow: hidden;
    color: var(--d-text);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-text-preview-name span {
    font-size: 0.75rem;
    color: var(--d-muted);
  }

  .discord-text-preview-gap {
    flex: 200 0 auto;
    min-width: 16px;
  }

  .discord-text-preview-footer button,
  .discord-text-preview-footer a.discord-icon-button {
    display: flex;
    margin-left: 16px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--d-subtle);
    cursor: pointer;
  }

  .discord-text-preview-footer button:hover,
  .discord-text-preview-footer a.discord-icon-button:hover {
    color: var(--d-strong);
  }

  .discord-text-preview-footer svg {
    width: 20px;
    height: 20px;
  }

  /* Audio */
  .discord-audio {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 432px;
    max-width: 100%;
    padding: 16px;
    border: 1px solid var(--d-border-subtle);
    border-radius: 8px;
    background: var(--d-bg);
  }

  .discord-audio-meta {
    display: flex;
    min-width: 0;
  }

  .discord-audio-meta .discord-file-icon {
    width: 24px;
    margin-right: 0;
  }

  .discord-audio-meta > div {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 8px;
    overflow: hidden;
    white-space: nowrap;
  }

  .discord-audio-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    height: 32px;
    margin-top: 4px;
    padding: 0 4px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
  }

  .discord-audio-controls button {
    display: flex;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
  }

  .discord-audio-controls button:hover {
    opacity: 1;
  }

  .discord-audio-controls svg {
    width: 24px;
    height: 24px;
  }

  .discord-audio-time {
    flex: 0 0 auto;
    margin: 0 4px;
    font-family: var(--d-code);
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    color: #fff;
  }

  .discord-audio-bar {
    position: relative;
    flex: 1;
    height: 6px;
    margin: 0 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
  }

  .discord-audio-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    min-width: 6px;
    border-radius: 3px;
    background: var(--d-brand);
  }

  /* Reactions */
  .discord-reactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 0.125rem;
  }

  .discord-reaction {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin: 0 4px 4px 0;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--d-mod-subtle);
  }

  .discord-reaction img {
    width: 20px;
    height: 20px;
    margin: 2px 0;
    object-fit: contain;
  }

  .discord-reaction span {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--d-subtle);
    text-align: center;
  }

  /* Threads */
  .discord-message--has-thread::after,
  .discord-system-message--has-thread::after {
    content: "";
    position: absolute;
    left: 35px;
    bottom: 29px;
    width: 29px;
    border-left: 2px solid var(--d-spine);
    border-bottom: 2px solid var(--d-spine);
    border-bottom-left-radius: 8px;
  }

  .discord-message--has-thread::after {
    top: 3rem;
  }

  .discord-message--has-thread.discord-message--has-reply::after {
    top: 4.375rem;
  }

  .discord-system-message--has-thread::after {
    top: 1.75rem;
  }

  .discord-thread {
    min-width: 0;
    max-width: min(100%, 480px);
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--d-border-subtle);
    border-radius: 4px;
    background: var(--d-surface);
    font-size: 0.875rem;
    line-height: 1.125rem;
  }

  .discord-accessories > .discord-thread {
    margin-top: 4px;
  }

  .discord-thread-top {
    display: flex;
  }

  .discord-thread-name {
    margin-right: 8px;
    overflow: hidden;
    font-weight: 600;
    color: var(--d-strong);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-thread-cta {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--d-link);
  }

  .discord-thread-preview {
    display: flex;
    align-items: center;
    height: 18px;
    margin-top: 2px;
    min-width: 0;
    color: var(--d-text);
  }

  .discord-thread-preview > img {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 50%;
  }

  .discord-thread-preview .discord-reply-username {
    opacity: 1;
  }

  .discord-thread-preview-content {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-thread-preview-content code {
    white-space: pre;
  }

  .discord-thread-preview-time {
    flex-shrink: 0;
    margin-left: 8px;
    font-size: 0.875rem;
    color: var(--d-muted);
  }

  .discord-thread-empty {
    margin-top: 2px;
    color: var(--d-text);
  }

  /* System messages */
  .discord-system-message {
    position: relative;
    min-height: 1.375rem;
    margin-top: 1.0625rem;
    padding: 2px 16px 2px 72px;
    font-size: 1rem;
    line-height: 1.375rem;
    color: var(--d-muted);
  }

  .discord-system-message:hover {
    background: var(--d-mod-muted);
  }

  .discord-system-message-icon {
    position: absolute;
    top: 5px;
    left: 28px;
    width: 16px;
    height: 16px;
    color: var(--d-muted);
  }

  .discord-system-message--join .discord-system-message-icon {
    color: #3d9e60;
  }

  .discord-system-message--boost .discord-system-message-icon {
    color: #ff73fa;
  }

  .discord-system-message-name {
    font-weight: 500;
    color: var(--d-strong);
  }

  .discord-system-message b {
    font-weight: 500;
    color: var(--d-strong);
  }

  .discord-system-message [data-goto] {
    cursor: pointer;
  }

  .discord-system-message [data-goto]:hover {
    text-decoration: underline;
  }

  .discord-system-message .discord-timestamp {
    margin-left: 0.25rem;
  }

  .discord-system-message .discord-accessories {
    padding-top: 0;
  }

  .discord-poll-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 400px;
    max-width: 100%;
    margin-top: 8px;
    padding: 8px 12px 8px 8px;
    border: 1px solid var(--d-border-subtle);
    border-radius: 8px;
    background: var(--d-surface);
  }

  .discord-poll-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--d-bg);
    color: var(--d-strong);
  }

  .discord-poll-result-icon svg {
    width: 24px;
    height: 24px;
  }

  .discord-poll-result-text {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.125rem;
    color: var(--d-strong);
  }

  .discord-poll-result-text small {
    display: block;
    font-weight: 500;
    color: var(--d-muted);
  }

  /* Forwarded messages */
  .discord-forward {
    position: relative;
    display: grid;
    gap: 4px;
    padding-left: 12px;
  }

  .discord-forward::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: var(--d-spine);
  }

  .discord-forward-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.125rem;
    color: var(--d-muted);
  }

  .discord-forward-label svg {
    width: 16px;
    height: 16px;
  }

  .discord-forward-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.125rem;
    color: var(--d-muted);
  }

  /* Polls */
  .discord-poll {
    width: 472px;
    max-width: 100%;
    margin: 4px 0;
    padding: 16px;
    border: 1px solid var(--d-border-subtle);
    border-radius: 8px;
    background: var(--d-surface);
  }

  .discord-poll-question {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--d-strong);
  }

  .discord-poll-hint {
    margin-top: 4px;
    font-size: 0.875rem;
    color: var(--d-muted);
  }

  .discord-poll-answers {
    display: grid;
    gap: 8px;
    margin-top: 8px;
  }

  .discord-poll-answer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--d-mod-muted);
    overflow: hidden;
  }

  .discord-poll-answer > * {
    position: relative;
  }

  .discord-poll-answer-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--d-mod-subtle);
  }

  .discord-poll-answer--victor .discord-poll-answer-fill {
    background: rgba(35, 165, 90, 0.2);
  }

  .discord-poll-answer-emoji {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .discord-poll-answer-text {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--d-strong);
  }

  .discord-poll-answer-votes {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--d-strong);
  }

  .discord-poll-answer-share {
    font-size: 1rem;
    font-weight: 600;
    color: var(--d-strong);
  }

  .discord-poll-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 27px;
    font-size: 0.875rem;
    line-height: 1.125rem;
    color: var(--d-muted);
  }

  .discord-poll-footer strong {
    font-weight: 600;
    color: var(--d-strong);
  }

  /* Stickers */
  .discord-sticker {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: contain;
  }

  .discord-sticker-name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    color: var(--d-muted);
  }

  /* Components */
  .discord-components {
    display: flex;
    flex-direction: column;
    row-gap: 6px;
    width: 100%;
  }

  .discord-components--v2 {
    align-items: stretch;
    row-gap: 8px;
    width: fit-content;
    max-width: min(600px, 100%);
  }

  .discord-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .discord-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--d-border-subtle);
    border-radius: 8px;
    background: var(--d-surface);
  }

  .discord-container--accent::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
  }

  .discord-container--spoiler > * {
    filter: blur(44px);
  }

  .discord-text-display {
    font-size: 1rem;
    line-height: 1.375rem;
  }

  .discord-container .discord-text-display {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .discord-container .discord-text-display small {
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .discord-text-display h1,
  .discord-text-display h2,
  .discord-text-display h3 {
    margin-bottom: 4px;
  }

  .discord-text-display > :first-child {
    margin-top: 0;
  }

  .discord-separator {
    width: 100%;
  }

  .discord-separator--divider {
    border-bottom: 1px solid var(--d-mod-strong);
  }

  .discord-separator--large {
    margin: 8px 0;
  }

  .discord-section {
    display: flex;
    gap: 12px;
    justify-content: space-between;
  }

  .discord-section-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    row-gap: 4px;
    min-width: 0;
  }

  .discord-section-accessory {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
  }

  .discord-section-accessory--thumbnail {
    align-items: flex-start;
    max-width: calc(50% - 12px);
  }

  .discord-thumbnail {
    display: block;
    width: 85px;
    height: 85px;
    border-radius: 8px;
    object-fit: cover;
  }

  .discord-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    min-width: 60px;
    padding: 2px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    color: #fff;
    white-space: nowrap;
    user-select: none;
  }

  .discord-messages a.discord-button {
    color: #fff;
  }

  .discord-messages a.discord-button:hover {
    text-decoration: none;
  }

  .discord-button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  .discord-button svg {
    width: 16px;
    height: 16px;
  }

  .discord-button--primary { background: #5865f2; border-color: #5865f2; }
  .discord-button--secondary { background: var(--d-mod-subtle); }
  .discord-button--success { background: #008545; border-color: #008545; }
  .discord-button--danger { background: #d22d39; border-color: #d22d39; }
  .discord-button--disabled { opacity: 0.5; cursor: not-allowed; }

  .discord-theme {
    font-family: var(--d-font);
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 1.375;
    color: var(--d-text);
    text-rendering: optimizeLegibility;
  }

  .discord-theme *,
  .discord-theme *::before,
  .discord-theme *::after {
    box-sizing: border-box;
  }

  .discord-theme a {
    color: var(--d-link);
    text-decoration: none;
  }

  .discord-theme a:hover {
    text-decoration: underline;
  }

  button.discord-button {
    margin: 0;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.17s ease, border-color 0.17s ease;
  }

  /* A scripted demo marks a button data-hovered or data-pressed to show a pointer that isn't there. */
  button.discord-button--secondary:hover, button.discord-button--secondary[data-hovered] { background: rgba(149, 149, 162, 0.161); }
  button.discord-button--secondary:active, button.discord-button--secondary[data-pressed] { background: var(--d-mod-strong); }
  button.discord-button--primary:hover, button.discord-button--primary[data-hovered] { background: #4452bb; border-color: #4452bb; }
  button.discord-button--primary:active, button.discord-button--primary[data-pressed] { background: #3a48a3; border-color: #3a48a3; }

  .discord-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 400px;
    max-width: 100%;
    height: 40px;
    padding: 0 8px 0 12px;
    border: 1px solid var(--d-border-normal);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.078);
    font-size: 16px;
    font-weight: 500;
    color: var(--d-text);
  }

  .discord-select-placeholder {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--d-subtle);
  }

  .discord-select svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #c5c6ca;
    transition: transform 0.2s ease;
  }

  .discord-select--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  button.discord-select {
    margin: 0;
    font-family: inherit;
    text-align: start;
    cursor: pointer;
  }

  button.discord-select:hover {
    border-color: rgba(150, 150, 160, 0.4);
  }

  .discord-select--open svg {
    transform: rotate(180deg);
  }

  .discord-select-menu {
    width: 400px;
    max-width: 100%;
    /* Five options show before it scrolls */
    max-height: calc(5 * 56px + 2px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--d-border-subtle);
    border-radius: 8px;
    background: #3c3d45;
    font-size: 16px;
    line-height: 20px;
  }

  .discord-select-menu::-webkit-scrollbar {
    width: 8px;
  }

  .discord-select-menu::-webkit-scrollbar-thumb {
    min-height: 40px;
    border: 2px solid transparent;
    border-radius: 4px;
    background-clip: padding-box;
    background-color: #767780;
  }

  .discord-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    color: var(--d-subtle);
    cursor: pointer;
  }

  .discord-select-option--focused {
    background: var(--d-hover);
    color: var(--d-strong);
  }

  .discord-select-option-emoji {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  .discord-select-option-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 14px;
    line-height: 18px;
  }

  .discord-select-option-label,
  .discord-select-option-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-select-option-label {
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--d-strong);
  }

  .discord-select-option-description {
    color: var(--d-interactive);
  }

  /* App chrome: title bar, server rail, channel list and the panels under them */
  .discord-app {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--d-base-lowest);
    color: var(--d-text);
    font-family: var(--d-font);
    font-size: 14px;
    line-height: 18px;
    text-rendering: optimizeLegibility;
  }

  .discord-app *,
  .discord-app *::before,
  .discord-app *::after {
    box-sizing: border-box;
  }

  :where(.discord-app button) {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
  }

  .discord-titlebar {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    height: 32px;
    padding-inline-end: 12px;
  }

  .discord-titlebar-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    pointer-events: none;
  }

  .discord-titlebar-title img {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 5px;
  }

  .discord-titlebar-trailing {
    position: relative;
    display: flex;
    gap: 16px;
    color: var(--d-muted);
  }

  .discord-titlebar-trailing svg {
    width: 20px;
    height: 20px;
  }

  .discord-app-body {
    display: flex;
    flex: 1;
    min-height: 0;
  }

  .discord-sidebar {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 312px;
    min-height: 0;
  }

  .discord-sidebar-main {
    display: flex;
    flex: 1;
    min-height: 0;
  }

  .discord-page {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    border-top: 1px solid var(--d-border-subtle);
    background: var(--d-bg);
  }

  .discord-rail {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    width: 72px;
  }

  .discord-rail-item {
    position: relative;
    display: flex;
    justify-content: center;
    width: 72px;
  }

  .discord-rail-pill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 8px;
    overflow: hidden;
    pointer-events: none;
  }

  .discord-rail-pill::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    margin-inline-start: -4px;
    border-radius: 0 4px 4px 0;
    background: var(--d-strong);
    opacity: 0;
    transform: translateX(-4px);
    transition: height 0.2s ease-out, opacity 0.2s ease-out, transform 0.2s ease-out;
  }

  .discord-rail-item:hover .discord-rail-pill::before {
    height: 20px;
    opacity: 1;
    transform: none;
  }

  .discord-rail-item--selected .discord-rail-pill::before,
  .discord-rail-item--selected:hover .discord-rail-pill::before {
    height: 40px;
    opacity: 1;
    transform: none;
  }

  .discord-rail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 12px;
    color: var(--d-text);
    cursor: pointer;
    transition: background-color 0.15s ease-out, color 0.15s ease-out;
  }

  .discord-rail-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .discord-rail-icon--action {
    background: var(--d-mod-subtle);
  }

  .discord-rail-icon--action:hover,
  .discord-rail-item--selected .discord-rail-icon--action {
    background: var(--d-brand);
    color: var(--d-strong);
  }

  .discord-rail-icon svg {
    width: 20px;
    height: 20px;
  }

  .discord-rail-icon .discord-rail-home {
    width: 24px;
    height: 24px;
  }

  .discord-rail-badge {
    position: absolute;
    top: 0;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 0 0 1.5px var(--d-base-lowest);
    color: var(--d-strong);
    pointer-events: none;
  }

  .discord-rail-badge--connected {
    background: var(--d-status-positive);
  }

  .discord-rail-badge svg {
    width: 12px;
    height: 12px;
  }

  .discord-rail-separator {
    width: 32px;
    height: 1px;
    border-radius: 1px;
    background: var(--d-border-subtle);
  }

  .discord-channel-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    border-top: 1px solid var(--d-border-subtle);
    border-left: 1px solid var(--d-border-subtle);
    border-top-left-radius: 12px;
  }

  .discord-server-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    height: 49px;
    padding: 0 8px 0 16px;
    border-bottom: 1px solid var(--d-border-subtle);
  }

  .discord-server-header-name {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 2px;
    min-width: 0;
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 20px;
    font-weight: 600;
    color: var(--d-strong);
  }

  .discord-server-header-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-server-header-name svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
  }

  .discord-server-header-name .discord-server-badge {
    display: flex;
    flex-shrink: 0;
    margin-inline-end: 6px;
    overflow: visible;
  }

  .discord-header-button {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--d-strong);
    transition: background-color 0.1s ease-out;
  }

  .discord-header-button:hover {
    background: var(--d-hover);
  }

  .discord-header-button svg {
    width: 20px;
    height: 20px;
  }

  .discord-channel-scroller {
    padding: 0 8px 8px;
  }

  .discord-category {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    height: 24px;
    margin-top: 16px;
    padding: 0 8px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--d-channel);
  }

  .discord-category:hover {
    color: var(--d-strong);
  }

  .discord-category span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-category svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease-out;
  }

  .discord-category--collapsed svg {
    transform: rotate(-90deg);
  }

  .discord-channel {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 2px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--d-channel);
    transition: background-color 0.1s ease-out, color 0.1s ease-out;
  }

  .discord-channel-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 20px;
    font-weight: 500;
  }

  .discord-channel-main svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }

  .discord-channel-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  button.discord-channel:hover {
    background: var(--d-hover);
    color: var(--d-strong);
  }

  .discord-channel--selected {
    background: var(--d-selected);
    color: var(--d-strong);
  }

  .discord-channel--active .discord-channel-main svg {
    color: var(--d-positive);
  }

  .discord-channel--status {
    padding-bottom: 4px;
  }

  .discord-channel-timer {
    flex-shrink: 0;
    font-family: var(--d-code);
    font-size: 12px;
    font-size-adjust: none;
    line-height: 16px;
    font-weight: 500;
    color: var(--d-positive);
  }

  .discord-channel-actions {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    color: var(--d-strong);
  }

  .discord-channel-main .discord-channel-actions svg {
    width: 18px;
    height: 18px;
    color: inherit;
  }

  .discord-channel--connected .discord-channel-actions,
  button.discord-channel:hover .discord-channel-actions {
    display: flex;
  }

  .discord-channel--connected .discord-channel-timer,
  button.discord-channel:hover .discord-channel-timer {
    display: none;
  }

  .discord-channel--connected .discord-channel-name {
    color: var(--d-strong);
  }

  .discord-channel-status {
    margin-top: 2px;
    margin-inline-start: 28px;
    overflow: hidden;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--d-channel);
  }

  .discord-channel-status .discord-emoji {
    width: 16px;
    height: 16px;
    margin: 0 4px 0 0;
  }

  .discord-voice-users {
    margin-inline-start: 28px;
    padding-bottom: 8px;
  }

  .discord-voice-user {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--d-channel);
    cursor: pointer;
  }

  .discord-voice-user:hover {
    background: var(--d-hover);
  }

  .discord-voice-user:hover .discord-voice-user-name,
  .discord-voice-user--speaking .discord-voice-user-name {
    color: var(--d-strong);
  }

  .discord-voice-user-avatar {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
  }

  .discord-voice-user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  .discord-voice-user-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px transparent, inset 0 0 0 3px transparent;
    transition: box-shadow 0.1s ease-out;
  }

  .discord-voice-user--speaking .discord-voice-user-avatar::after {
    box-shadow: inset 0 0 0 2px var(--d-status-positive), inset 0 0 0 3px var(--d-base-lowest);
  }

  .discord-voice-user-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-voice-user-icons {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
  }

  .discord-voice-user-icons svg {
    width: 16px;
    height: 16px;
  }

  .discord-panels {
    position: relative;
    flex-shrink: 0;
    margin: 0 8px 8px;
    border: 1px solid var(--d-border-muted);
    border-radius: 8px;
    background: var(--d-base-low);
  }

  .discord-voice-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--d-border-muted);
  }

  .discord-voice-connection {
    display: flex;
    align-items: center;
    height: 32px;
  }

  .discord-voice-ping {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-inline-end: 8px;
    padding: 7px;
    border-radius: 8px;
    background: var(--d-mod-muted);
    box-shadow: inset 0 0 0 1px var(--d-border-muted);
    color: var(--d-positive);
  }

  .discord-voice-ping svg {
    display: block;
    width: 18px;
    height: 18px;
  }

  .discord-voice-labels {
    flex: 1;
    min-width: 0;
  }

  .discord-voice-title {
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 20px;
    font-weight: 600;
    color: var(--d-positive);
  }

  .discord-voice-channel {
    overflow: hidden;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--d-interactive);
  }

  .discord-voice-actions {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 8px;
  }

  .discord-voice-action {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 8px;
    background: var(--d-mod-subtle);
    color: var(--d-strong);
  }

  .discord-voice-action svg {
    width: 20px;
    height: 20px;
  }

  .discord-voice-action--disabled {
    opacity: 0.3;
  }

  .discord-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 56px;
    padding: 0 10px;
    font-weight: 500;
  }

  .discord-account-user {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-inline-start: -4px;
    padding: 5px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .discord-account-user:hover {
    background: var(--d-mod-normal);
  }

  .discord-account-avatar {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
  }

  .discord-account-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  .discord-account-status {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 16px;
    height: 16px;
    border: 3px solid var(--d-base-low);
    border-radius: 50%;
    background: var(--d-status-positive);
    transition: border-color 0.2s ease;
  }

  .discord-account-user:hover .discord-account-status {
    border-color: #45464e;
  }

  .discord-account-names {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .discord-account-name,
  .discord-account-sub > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-account-name {
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 20px;
    font-weight: 600;
    color: var(--d-strong);
  }

  .discord-account-sub {
    display: grid;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--d-interactive);
  }

  .discord-account-status-text {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .discord-account-status-text svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    color: #45a366;
  }

  .discord-account-sub > span {
    grid-area: 1 / 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .discord-account-tag {
    opacity: 0;
    transform: translateY(4px);
  }

  .discord-account-user:hover .discord-account-status-text {
    opacity: 0;
    transform: translateY(-4px);
  }

  .discord-account-user:hover .discord-account-tag {
    opacity: 1;
    transform: none;
  }

  .discord-account-buttons {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
  }

  .discord-panel-button {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--d-interactive);
    transition: background-color 0.2s ease;
  }

  .discord-panel-button:hover {
    background: var(--d-mod-normal);
    color: var(--d-strong);
  }

  .discord-panel-button svg {
    width: 20px;
    height: 20px;
  }

  .discord-panel-button--red,
  .discord-panel-button--red:hover {
    color: var(--d-critical);
  }

  .discord-audio-button {
    display: flex;
  }

  .discord-audio-button > .discord-panel-button {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
  }

  .discord-audio-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 32px;
    margin-inline-start: 1px;
    border-radius: 0 8px 8px 0;
    color: var(--d-interactive);
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .discord-audio-chevron svg {
    width: 16px;
    height: 16px;
  }

  .discord-audio-button:hover > * {
    background: var(--d-mod-muted);
  }

  .discord-audio-button:hover > :hover {
    background: var(--d-mod-strong);
  }

  .discord-audio-chevron:hover {
    color: var(--d-strong);
  }

  /* ? Rendered inside the app's tooltip, outside the themed tree, so it sets no colours. */
  .discord-server-tooltip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
  }

  .discord-server-tooltip-badge {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
  }

  /* ? Also outside the themed tree, so it names Discord's own white and muted grey. */
  .discord-server-badge-tooltip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #abacb2;
  }

  .discord-server-badge-tooltip-title {
    font-weight: 600;
    color: #ffffff;
  }

  .discord-audio-button--red > *,
  .discord-audio-button--red:hover > * {
    background: var(--d-red-glow);
  }

  .discord-audio-button--red:hover > :hover {
    background: var(--d-red-glow-hover);
  }

  .discord-page .discord-channel-bar {
    container: discord-channel-bar / inline-size;
  }

  .discord-channel-toolbar {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    padding-inline-start: 8px;
    font-weight: 500;
  }

  .discord-toolbar-button {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--d-muted);
    cursor: pointer;
  }

  .discord-toolbar-button:hover {
    color: var(--d-interactive);
  }

  .discord-channel-toolbar svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }

  .discord-search {
    display: flex;
    flex: 0 1 240px;
    align-items: center;
    min-width: 0;
    height: 32px;
    margin-inline-start: 4px;
    padding-inline: 8px 4px;
    border: 1px solid var(--d-border-normal);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.078);
    font-size: 14px;
    font-size-adjust: none;
    line-height: 18px;
    color: #a4a5ab;
    cursor: text;
  }

  .discord-search span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-channel-toolbar .discord-search svg {
    width: 18px;
    height: 18px;
    color: var(--d-interactive);
  }

  @container discord-channel-bar (max-width: 439px) {
    .discord-search {
      display: none;
    }
  }

  /* Message box and the slash command picker */
  .discord-composer {
    position: relative;
    flex-shrink: 0;
    margin: 0 8px 8px;
    container: discord-composer / inline-size;
  }

  .discord-composer-box {
    overflow: hidden;
    border: 1px solid var(--d-border-subtle);
    border-radius: 8px;
    background: var(--d-surface);
  }

  .discord-composer-row {
    display: flex;
    align-items: flex-start;
    min-height: 56px;
    padding-inline-start: 11px;
  }

  .discord-composer-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 37px;
    padding: 0 12px 0 16px;
    border-bottom: 1px solid var(--d-border-subtle);
    background: var(--d-surface-higher);
    white-space: nowrap;
  }

  .discord-composer-bar-name {
    flex-shrink: 0;
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 20px;
    font-weight: 600;
    color: var(--d-strong);
  }

  .discord-composer-bar-description {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    text-overflow: ellipsis;
    color: var(--d-interactive);
  }

  .discord-composer-bar-close {
    display: flex;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--d-interactive);
    cursor: pointer;
  }

  .discord-composer-bar-close:hover {
    color: var(--d-strong);
  }

  .discord-composer-bar-close svg {
    width: 16px;
    height: 16px;
  }

  .discord-composer-app {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
  }

  .discord-composer-attach,
  .discord-composer-button {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--d-interactive);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }

  .discord-composer-attach {
    margin-top: 12px;
  }

  .discord-composer-attach:hover,
  .discord-composer-button:hover {
    background: var(--d-selected);
    color: var(--d-strong);
  }

  .discord-composer-attach svg,
  .discord-composer-button svg {
    width: 20px;
    height: 20px;
  }

  /* Discord's emoji button: grey like the buttons beside it at rest, a coloured emoji on hover. */
  .discord-emoji-button svg {
    transition: transform 0.1s ease;
  }

  .discord-emoji-button path,
  .discord-emoji-button circle {
    transition: fill 0.1s ease;
  }

  .discord-emoji-button .discord-emoji-button-features {
    fill: transparent;
  }

  .discord-emoji-button:hover svg {
    transform: scale(1.15);
  }

  .discord-emoji-button:hover path {
    fill: var(--emoji-colour, #fcc145);
  }

  .discord-emoji-button:hover .discord-emoji-button-features {
    fill: #020202;
  }

  .discord-composer-editor {
    flex: 1;
    min-width: 0;
    max-height: 144px;
    margin-inline-start: 20px;
    padding: 17px 0;
    overflow-y: auto;
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 22px;
    color: var(--d-text);
    overflow-wrap: anywhere;
  }

  .discord-composer-input {
    min-width: 4px;
    outline: 0;
    white-space: pre-wrap;
    caret-color: var(--d-text);
  }

  .discord-composer-editor > .discord-composer-input {
    display: block;
  }

  /* ? An empty inline-block has no line box, and Chrome won't type into a zero-height editor. */
  .discord-command-input-name + .discord-composer-input {
    display: inline-block;
    max-width: 100%;
    min-height: 22px;
    vertical-align: top;
  }

  .discord-composer-input:empty::before {
    content: attr(data-placeholder);
    display: block;
    overflow: hidden;
    color: #6d6f78;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
  }

  .discord-composer-buttons {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    height: 56px;
    margin-inline: 8px 6px;
  }

  @container discord-composer (max-width: 439px) {
    .discord-composer-button--wide-only {
      display: none;
    }
  }

  .discord-command-input-name {
    margin-inline-end: 4px;
    font-weight: 600;
  }

  .discord-command-input-hint {
    margin-inline-start: 4px;
    color: var(--d-muted);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
  }

  .discord-option-pill {
    display: inline-flex;
    max-width: calc(100% - 30px);
    margin: -2px 4px -2px 0;
    overflow: hidden;
    vertical-align: top;
    border: 1px solid var(--d-base-lowest);
    border-radius: 4px;
    background: var(--d-mod-normal);
  }

  .discord-option-pill:focus-within,
  .discord-option-pill.discord-option-pill--active {
    border-color: Highlight;
  }

  .discord-option-pill.discord-option-pill--error {
    border-color: #da3e44;
  }

  .discord-option-pill-key {
    flex-shrink: 0;
    padding: 1px 8px;
    border-start-start-radius: 4px;
    border-end-start-radius: 4px;
    background: var(--d-surface);
    user-select: none;
  }

  .discord-option-pill .discord-composer-input {
    min-width: 12px;
    padding: 1px 8px;
    overflow-wrap: break-word;
  }

  .discord-option-pill-value {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 8px;
    white-space: nowrap;
  }

  .discord-option-pill-value .discord-emoji {
    width: 18px;
    height: 18px;
  }

  .discord-command-picker {
    position: absolute;
    inset-inline: 0 8px;
    bottom: calc(100% + 8px);
    z-index: 2;
    display: flex;
    max-height: 420px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--d-surface);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.24);
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
  }

  .discord-command-picker-rail {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 8px;
    width: 48px;
    padding: 16px 8px 0;
    background: var(--d-base-lowest);
  }

  .discord-command-picker-section {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--d-text);
    transition: background-color 0.1s ease-in-out;
  }

  .discord-command-picker-section:hover {
    background: var(--d-hover);
  }

  .discord-command-picker-section--selected,
  .discord-command-picker-section--selected:hover {
    background: var(--d-base-low);
  }

  .discord-command-picker-section img {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  .discord-command-picker-section svg {
    width: 24px;
    height: 24px;
  }

  .discord-command-picker-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
  }

  .discord-command-picker-scroller {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 0;
  }

  .discord-command-picker-scroller::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .discord-command-picker-scroller::-webkit-scrollbar-thumb {
    min-height: 40px;
    border: 2px solid transparent;
    border-radius: 4px;
    background-clip: padding-box;
    background-color: #767780;
  }

  .discord-command-picker-scroller::-webkit-scrollbar-track {
    background: transparent;
  }

  @supports not selector(::-webkit-scrollbar) {
    .discord-command-picker-scroller {
      scrollbar-color: #767780 transparent;
      scrollbar-width: thin;
    }
  }

  .discord-command-picker-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 16px;
    background: var(--d-surface);
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: var(--d-text);
  }

  .discord-command-picker-header svg,
  .discord-command-picker-header img {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--d-interactive);
  }

  .discord-command-picker-header img {
    border-radius: 50%;
  }

  .discord-command-picker-title {
    padding: 12px 8px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: var(--d-interactive);
  }

  .discord-command-picker-title:first-child {
    margin-top: -8px;
  }

  .discord-command-row + .discord-command-picker-header {
    margin-top: 16px;
  }

  .discord-command-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 8px;
    padding: 8px;
    border-radius: 3px;
    color: var(--d-interactive);
    cursor: pointer;
  }

  .discord-command-row--selected {
    background: var(--d-hover);
  }

  .discord-command-row-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  .discord-command-row-text {
    flex: 0 1 auto;
    min-width: 10ch;
    overflow: hidden;
  }

  .discord-command-row-name,
  .discord-command-row-description,
  .discord-command-row-app {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-command-row-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .discord-command-row-name {
    min-width: 0;
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 20px;
    color: var(--d-strong);
  }

  .discord-command-row-option,
  .discord-command-row-optional {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
  }

  .discord-command-row-option {
    padding: 0 4px;
    border-radius: 4px;
    background: #121214;
    color: var(--d-strong);
  }

  .discord-command-row-optional {
    color: var(--d-muted);
  }

  .discord-command-row-option + .discord-command-row-optional {
    padding-inline-start: 8px;
    border-inline-start: 1px solid var(--d-border-subtle);
  }

  .discord-command-row-description {
    margin-top: 4px;
    font-size: 12px;
    line-height: 16px;
    color: var(--d-interactive);
  }

  .discord-command-row-app {
    flex: 1 0 10ch;
    font-size: 12px;
    text-align: end;
    color: var(--d-interactive);
  }

  .discord-option-suggestions {
    flex-direction: column;
  }

  .discord-option-suggestions--empty {
    align-items: center;
    justify-content: center;
    height: 208px;
  }

  .discord-option-suggestions-empty {
    font-weight: 600;
    color: #84858d;
  }

  .discord-option-suggestions .discord-command-picker-scroller {
    padding-top: 0;
  }

  .discord-option-suggestions-title {
    padding: 12px 8px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: var(--d-interactive);
  }

  .discord-option-suggestion {
    margin: 0 8px;
    padding: 8px;
    overflow: hidden;
    border-radius: 3px;
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 20px;
    color: var(--d-strong);
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }

  .discord-option-suggestion--selected {
    background: var(--d-hover);
  }

  .discord-option-list {
    inset-inline: 8px 16px;
  }

  .discord-option-suggestion--described {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .discord-option-suggestion-name {
    flex-shrink: 0;
  }

  .discord-option-suggestion-description {
    flex: 1;
    min-width: 0;
    margin-inline-end: 8px;
    overflow: hidden;
    font-size: 12px;
    line-height: 16px;
    text-align: end;
    text-overflow: ellipsis;
    color: var(--d-interactive);
  }

  /* Context menus, such as a message's right click menu and its submenus */
  .discord-menu {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 188px;
    max-width: 320px;
    padding: 8px;
    border: 1px solid var(--d-border-subtle);
    border-radius: 8px;
    background: var(--d-surface-higher);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    font-family: var(--d-font);
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 20px;
    font-weight: 500;
    color: var(--d-strong);
    cursor: default;
    user-select: none;
  }

  .discord-menu--fixed {
    width: 220px;
  }

  .discord-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 36px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
  }

  .discord-menu-item:hover,
  .discord-menu-item--focused {
    background: var(--d-hover);
  }

  .discord-menu-item-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord-menu-item-icon,
  .discord-menu-item-end {
    display: flex;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--d-interactive);
  }

  .discord-menu-item-icon {
    margin-inline-end: 8px;
  }

  .discord-menu-item-end {
    margin-inline-start: 8px;
  }

  .discord-menu-item-icon svg,
  .discord-menu-item-icon img,
  .discord-menu-item-end svg {
    width: 100%;
    height: 100%;
  }

  .discord-menu-item-icon img {
    border-radius: 50%;
    object-fit: cover;
  }

  .discord-menu-item-caret {
    color: var(--d-muted);
  }

  /* ? Child selectors, so a focused item's colours don't reach into the submenu it holds. */
  .discord-menu-item:hover > .discord-menu-item-icon,
  .discord-menu-item:hover > .discord-menu-item-end,
  .discord-menu-item--focused > .discord-menu-item-icon,
  .discord-menu-item--focused > .discord-menu-item-end {
    color: var(--d-strong);
  }

  .discord-menu-item--danger,
  .discord-menu-item--danger > .discord-menu-item-icon,
  .discord-menu-item--danger:hover > .discord-menu-item-icon,
  .discord-menu-item--danger.discord-menu-item--focused > .discord-menu-item-icon {
    color: var(--d-critical);
  }

  .discord-menu-item--danger:hover,
  .discord-menu-item--danger.discord-menu-item--focused {
    background: var(--d-red-glow);
  }

  /* ? Its first item level with the item that opened it, overlapping the parent's edge as Discord's do. */
  .discord-menu-submenu {
    position: absolute;
    z-index: 1;
    top: -9px;
    inset-inline-start: calc(100% + 5px);
    cursor: default;
  }

  .discord-menu-separator {
    margin: 8px 0;
    border-bottom: 1px solid var(--d-border-subtle);
  }

  .discord-menu-separator--bleed {
    margin-inline: -8px;
  }

  .discord-menu-heading {
    padding: 8px;
    font-size: 14px;
    font-size-adjust: none;
    line-height: 20px;
    color: var(--d-muted);
  }

  .discord-menu-search {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-width: 188px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--d-border-normal);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--d-strong);
    cursor: text;
  }

  .discord-menu-search svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
  }

  .discord-menu-search input {
    flex: 1;
    width: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    font: inherit;
    color: var(--d-text);
  }

  .discord-menu-search input::placeholder {
    color: #a4a5ab;
    opacity: 1;
  }

  /* Getting-started steps under a channel's welcome */
  .discord-guide {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 440px;
    margin: 0 16px 16px;
  }

  .discord-guide-step {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 12px 16px 12px 12px;
    border: 1px solid var(--d-border-subtle);
    border-radius: 8px;
    background: var(--d-surface);
    font-family: inherit;
    text-align: start;
    color: var(--d-text);
    transition: background-color 0.15s ease;
  }

  button.discord-guide-step {
    cursor: pointer;
  }

  button.discord-guide-step:hover {
    background: #3f4047;
  }

  .discord-guide-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--d-mod-normal);
    color: var(--d-strong);
  }

  .discord-guide-icon svg {
    width: 22px;
    height: 22px;
  }

  .discord-guide-icon img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .discord-guide-step--done .discord-guide-icon {
    background: var(--d-status-positive);
  }

  .discord-guide-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
  }

  .discord-guide-title {
    font-size: 16px;
    font-size-adjust: 0.495;
    line-height: 20px;
    font-weight: 600;
    color: var(--d-strong);
  }

  .discord-guide-description {
    margin-top: 2px;
    font-size: 14px;
    line-height: 18px;
    color: var(--d-interactive);
  }

  .discord-guide-step--todo .discord-guide-title {
    color: var(--d-interactive);
  }

  .discord-guide-step--done .discord-guide-title {
    color: var(--d-muted);
  }

  .discord-guide-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--d-interactive);
  }
