/* ---------- House chrome: ink on cream (see viama/roadie) ---------- */
:root {
  --bg: #efece3; --surface: #efece3; --surface-2: #e6e2d6;
  --line: #d5cfc1; --line-strong: #14100c;
  --text: #14100c; --text-2: #6b6355; --muted: #8c8577; --accent: #7d2b2b;
  --serif: Archivo, system-ui, sans-serif;
  --sans: Archivo Narrow, system-ui, sans-serif;
  --dc-font: gg sans, Noto Sans, Helvetica Neue, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
.chrome, .chrome *, .chrome *::before, .chrome *::after, .card, .card > .eyebrow { border-radius: 0 !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--sans); font-weight: 600; background: var(--surface-2); padding: 0 3px; }

.top { display: flex; align-items: center; gap: 24px; padding: 12px 20px; border-bottom: 2px solid var(--line-strong); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.mark { width: 28px; height: 28px; display: block; }
.wordmark { font: 800 18px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.tabs { display: flex; margin-left: auto; border: 1px solid var(--line-strong); }
.tabs button { background: transparent; border: 0; border-left: 1px solid var(--line-strong); padding: 7px 14px; font: 700 11px/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.tabs button:first-child { border-left: 0; }
.tabs button:hover { color: var(--accent); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--bg); }

.layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 56px); }
.controls { overflow-y: auto; border-right: 2px solid var(--line-strong); padding: 4px 20px 32px; }
.stage { overflow: auto; padding: 24px; container-type: inline-size; }

.eyebrow { font: 700 11px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.group:last-child { border-bottom: 0; }
.field { display: block; margin: 0 0 14px; }
.field > span { display: flex; justify-content: space-between; font: 700 12px/1 var(--serif); letter-spacing: .06em; margin-bottom: 6px; }
.field small, .note { display: block; color: var(--text-2); font-size: 13px; margin-top: 6px; }
input[type=text], textarea { width: 100%; background: transparent; border: 1px solid var(--line-strong); padding: 7px 9px; font: 15px/1.4 var(--sans); color: var(--text); }
input[type=text]:focus, textarea:focus, .drop:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--text); }

.seg { display: flex; border: 1px solid var(--line-strong); }
.seg button { flex: 1; background: transparent; border: 0; border-left: 1px solid var(--line-strong); padding: 7px 4px; font: 700 11px/1 var(--serif); letter-spacing: .1em; text-transform: uppercase; }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--accent); }
.seg button.on { background: var(--text); color: var(--bg); }

.btn { background: transparent; border: 1px solid var(--line-strong); padding: 7px 12px; font: 700 11px/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.danger { color: var(--accent); }

.drop { position: relative; border: 1px dashed var(--muted); min-height: 120px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--bg) 0 50%) 0 0 / 16px 16px; }
.drop:hover, .drop.over { border-color: var(--accent); border-style: solid; }
.drop-empty { text-align: center; font: 700 12px/1.5 var(--serif); letter-spacing: .06em; background: var(--bg); padding: 8px 12px; }
.drop-empty small { font: 400 13px var(--sans); color: var(--text-2); letter-spacing: 0; }
.crop { position: relative; overflow: hidden; display: none; }
.crop img { display: block; width: 100%; height: 100%; }
.crop-frame { position: absolute; border: 1px solid #fff; box-shadow: 0 0 0 9999px rgba(20,16,12,.6); pointer-events: none; }
.crop-circle { position: absolute; inset: 0; border: 1px dashed rgba(255,255,255,.85); border-radius: 50% !important; }
.slot.has .drop { min-height: 0; padding: 10px; }
.slot.has .drop-empty { display: none; }
.slot.has .crop { display: block; }
.slot .info, .slot .checks, .slot .pos, .slot .clear { display: none; }
.slot.has .info, .slot.has .checks, .slot.has .pos { display: block; }
.slot.has .clear { display: inline-block; }
.slot.simple .crop-frame { display: none; }
.crop-band { position: absolute; left: 0; right: 0; border-top: 1px dashed #fff; border-bottom: 1px dashed #fff; background: rgba(255,255,255,.1); }
.crop-band b { position: absolute; right: 4px; bottom: 2px; font: 600 10px/1 var(--sans); color: #fff; text-shadow: 0 1px 2px #000; }
.preset-row { display: flex; gap: 8px; }
.preset-row select { flex: 1; min-width: 0; background: transparent; border: 1px solid var(--line-strong); padding: 6px 8px; font: 600 14px var(--sans); color: var(--text); }
.syntax code { white-space: nowrap; }

.info { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 10px 0 0; font-size: 14px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.checks li { padding: 4px 0 4px 22px; position: relative; border-top: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 2px; font-weight: 700; }
.checks li.warn { color: var(--accent); }
.checks li.warn::before { content: "!"; left: 6px; }
.checks li.tip { color: var(--text-2); }
.checks li.tip::before { content: "·"; left: 6px; }
.pos { margin-top: 10px; }
.pos label { display: grid; grid-template-columns: 52px 1fr; align-items: center; font: 700 11px var(--serif); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.slot .clear { margin-top: 10px; }

.panel { display: none; }
.panel.on { display: block; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; align-items: start; }
.card { border: 2px solid var(--line-strong); padding: 16px; background: var(--bg); min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.card .eyebrow { color: var(--text); }
.cap { color: var(--text-2); font-size: 13px; margin: 10px 0 0; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; height: auto; }
  .controls { border-right: 0; border-bottom: 2px solid var(--line-strong); overflow: visible; }
  .stage { padding: 16px; overflow: visible; }
  .top { padding: 12px 16px; }
  .tabs { margin-left: 0; width: 100%; }
  .tabs button { flex: 1; padding: 9px 4px; }
}

/* ---------- Discord mock ---------- */
.dc {
  --rail: #1e1f22; --side: #2b2d31; --chat: #313338; --mem: #2b2d31; --userbar: #232428;
  --t-normal: #dbdee1; --t-head: #f2f3f5; --t-chan: #80848e; --t-muted: #949ba4; --t-inter: #b5bac1;
  --hover: #35373c; --sel: #404249; --gbg: #313338; --input: #383a40; --embed: #2b2d31; --divider: #3f4147;
  --blurple: #5865f2; --green: #23a55a; --join: #248046; --tip: #111214; --pill: #f2f3f5;
  --rail-icon: 48px; --sidebar-w: 240px;
  --pos-icon: 50% 50%; --pos-banner: 50% 50%; --pos-splash: 50% 50%;
  font: 16px/1.375 var(--dc-font); color: var(--t-normal); -webkit-font-smoothing: antialiased;
}
.dc[data-theme="light"] {
  --rail: #e3e5e8; --side: #f2f3f5; --chat: #ffffff; --mem: #f2f3f5; --userbar: #ebedef;
  --t-normal: #313338; --t-head: #060607; --t-chan: #5c5e66; --t-muted: #5c5e66; --t-inter: #4e5058;
  --hover: #e0e1e5; --sel: #d7d9dc; --gbg: #ffffff; --input: #ebedef; --embed: #f2f3f5; --divider: #e1e2e4;
  --tip: #ffffff; --pill: #060607;
}
.dc svg { display: block; }
.dc img[data-slot] { display: none; }
.dc .has-img > img[data-slot] { display: block; }
.dc .has-img > .js-acr { display: none; }

/* desktop window */
.dc-desktop { display: flex; height: min(680px, calc(100vh - 110px)); min-height: 520px; min-width: 760px; background: var(--chat); overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 2px var(--line-strong); }

/* server rail */
.dc-rail { width: 72px; flex: none; background: var(--rail); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow: hidden; }
.dc-ritem { position: relative; width: 72px; display: flex; justify-content: center; }
.dc-pill { position: absolute; left: 0; top: 50%; width: 8px; height: 0; margin-left: -4px; border-radius: 0 4px 4px 0; background: var(--pill); transform: translateY(-50%); transition: height .15s; }
.dc-pill.unread { height: 8px; }
.dc-ritem:hover .dc-pill, .dc-ritem.hover .dc-pill { height: 20px; }
.dc-ritem.selected .dc-pill { height: 40px; }
.dc-gicon { width: var(--rail-icon); height: var(--rail-icon); border-radius: 50%; overflow: hidden; background: var(--gbg); color: var(--t-normal);
  display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 16px; transition: border-radius .15s, background .15s, color .15s; }
.dc-gicon img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-icon); }
.dc-ritem:hover .dc-gicon, .dc-ritem.hover .dc-gicon, .dc-ritem.selected .dc-gicon { border-radius: 33%; }
.dc-ritem:hover .dc-gicon:not(.has-img):not(.dc-add), .dc-ritem.hover .dc-gicon:not(.has-img), .dc-ritem.selected .dc-gicon:not(.has-img) { background: var(--blurple); color: #fff; }
.dc-fake { background: var(--c) !important; color: #fff; font-size: 15px; }
.dc-home svg { width: 26px; }
.dc-add { color: var(--green); }
.dc-add svg { width: 24px; }
.dc-ritem:hover .dc-add { background: var(--green); color: #fff; }
.dc-sep { width: 32px; height: 2px; border-radius: 1px; background: var(--divider); flex: none; }
.js-acr { white-space: nowrap; }

/* channel sidebar */
.dc-side { width: var(--sidebar-w); flex: none; background: var(--side); display: flex; flex-direction: column; min-height: 0; }
.dc-side-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; position: relative; }
.dc-side-scroll::-webkit-scrollbar { display: none; }
.dc-side-head { position: sticky; top: 0; z-index: 2; height: 49px; padding: 0 12px 0 16px; display: flex; align-items: center; gap: 6px;
  color: var(--t-head); font-weight: 600; font-size: 16px; background: var(--side); border-bottom: 1px solid var(--divider); cursor: pointer; }
.dc-side-head > span, .dc-side-head > svg { position: relative; z-index: 1; }
.dc-side-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-side-head > svg { width: 20px; flex: none; }
.dc-guild-badge { width: 16px; height: 16px; flex: none; }
.dc-guild-badge svg { width: 16px; height: 16px; }
.dc-guild-badge .ros { fill: #80848e; }
.dc[data-community="off"] .dc-guild-badge { display: none; }
/* Over a banner: transparent header, white text, and the vignette / blur / glass layers. */
.dc-side.with-banner .dc-side-head:not(.solid) { background: transparent; border-bottom-color: transparent; color: #fff; }
.dc-side.with-banner .dc-side-head:not(.solid) > span, .dc-side.with-banner .dc-side-head:not(.solid) > svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.dc-side-head .fx { position: absolute; pointer-events: none; display: none; }
.dc-side.with-banner .dc-side-head:not(.solid) .fx { display: block; }
.fx-vig { left: -49px; right: -49px; top: -47px; height: 98px; background: rgba(0,0,0,.52); border-radius: 50%; filter: blur(10px); mix-blend-mode: multiply; opacity: var(--fxo, 1); }
.fx-blur { inset: 0; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: calc(var(--fxo, 1) * .5); }
.fx-glass { inset: 0; -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border-bottom: 1px solid var(--divider); opacity: var(--glass, 0); transition: opacity .15s ease-in-out; }
.dc-side-head:hover .fx-glass { opacity: 1; }
.dc-banner { display: none; position: relative; margin-top: -49px; height: 130px; overflow: hidden; opacity: var(--fxo, 1);
  background: rgba(128,132,142,.12); 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); }
.dc-side.with-banner .dc-banner { display: block; }
/* The upload is 16:9; the strip shows its vertical middle and the image counter-scrolls (parallax). */
.dc-banner-crop { position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 16 / 9; transform: translateY(calc(-50% + var(--par, 0px))); }
.dc-banner-crop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-banner); }

.dc-channels { padding: 8px 0 16px; }
.dc-side.with-banner .dc-channels { padding-top: 4px; }
.dc-cat { display: flex; align-items: center; gap: 2px; padding: 16px 8px 4px 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--t-chan); }
.dc-cat svg { width: 12px; }
.dc-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-ch { position: relative; display: flex; align-items: center; gap: 6px; margin: 1px 8px; padding: 6px 8px; border-radius: 4px; color: var(--t-chan); font-weight: 500; min-width: 0; }
.dc-chi { position: relative; width: 20px; height: 20px; flex: none; }
.dc-chi > svg { width: 20px; height: 20px; }
.dc-chi .lk { position: absolute; right: -3px; top: -3px; width: 11px; height: 11px; padding: 1px; border-radius: 50%; background: var(--side); }
.dc-chn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-ch:hover { background: var(--hover); color: var(--t-inter); }
.dc-ch:hover .lk { background: var(--hover); }
.dc-ch.sel { background: var(--sel); color: var(--t-head); }
.dc-ch.sel .lk { background: var(--sel); }
.dc-ch.unread { color: var(--t-head); }
.dc-ch.unread .dc-chn { font-weight: 600; }
.dc-pip { position: absolute; left: -8px; top: 50%; margin-top: -4px; width: 8px; height: 8px; border-radius: 0 4px 4px 0; background: var(--t-head); }
.dc-threads { margin-bottom: 2px; }
.dc-thread { position: relative; margin: 0 8px 0 36px; padding: 5px 8px; border-radius: 4px; font-size: 15px; font-weight: 500; color: var(--t-chan); }
.dc-thread span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-thread::before { content: ""; position: absolute; left: -14px; top: -10px; width: 12px; height: 25px; border-left: 2px solid var(--divider); border-bottom: 2px solid var(--divider); border-bottom-left-radius: 8px; }
.dc-thread:hover { background: var(--hover); color: var(--t-inter); }
.dc-top { display: flex; align-items: center; gap: 8px; margin: 1px 8px; padding: 6px 8px; border-radius: 4px; color: var(--t-chan); font-weight: 500; }
.dc-top svg { width: 20px; height: 20px; flex: none; }
.dc-top:hover { background: var(--hover); color: var(--t-inter); }
.dc-divider { height: 1px; background: var(--divider); margin: 8px 16px; }
.dc-tag { display: inline-flex; align-items: center; gap: 3px; height: 16px; padding: 0 4px; margin-left: 6px; border-radius: 4px; flex: none;
  background: rgba(151,151,159,.16); color: var(--t-normal); font-size: 12px; font-weight: 600; line-height: 16px; }
.dc-tag img { width: 12px; height: 12px; }

.dc-user { height: 52px; flex: none; background: var(--userbar); display: flex; align-items: center; gap: 8px; padding: 0 8px; }
.dc-user-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.dc-user-txt b { font-size: 14px; font-weight: 600; color: var(--t-head); }
.dc-user-txt span { font-size: 12px; color: var(--t-muted); }
.dc-user-btns { display: flex; color: var(--t-inter); }
.dc-user-btns svg { width: 32px; height: 32px; padding: 6px; }

.dc-av { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.dc-status { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--userbar); }
.dc-status.idle { background: #f0b232; }
.dc-status.dnd { background: #f23f43; }
.dc-members .dc-status { border-color: var(--mem); }

/* chat */
.dc-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--chat); }
.dc-chat-head { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; 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: var(--t-head); white-space: nowrap; overflow: hidden; }
.dc-chat-head .dc-hash { width: 24px; color: var(--t-chan); flex: none; }
.dc-chat-head b { font-weight: 600; }
.dc-topic { flex: 1 1 auto; min-width: 0; color: var(--t-muted); font-size: 14px; border-left: 1px solid var(--divider); padding-left: 12px; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; }
.dc-chat-head .dc-hash svg { width: 24px; height: 24px; }
.dc-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 20px; }
.dc-msg { display: flex; gap: 16px; padding: 8px 48px 4px 16px; margin-top: 12px; }
.dc-msg:hover { background: rgba(0,0,0,.06); }
.dc-msg .dc-av { width: 40px; height: 40px; font-size: 16px; margin-top: 2px; }
.dc-meta { display: flex; align-items: baseline; gap: 8px; }
.dc-meta b { font-weight: 500; color: var(--t-head); }
.dc-meta span { font-size: 12px; color: var(--t-muted); }
.dc-msg p { margin: 0; }
.dc-compose { flex: none; margin: 0 16px 24px; height: 44px; border-radius: 8px; background: var(--input); display: flex; align-items: center; gap: 14px; padding: 0 16px; color: var(--t-muted); }
.dc-compose > span { width: 24px; height: 24px; border-radius: 50%; background: var(--t-inter); color: var(--input); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.dc-compose em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* invite embed */
.dc-embed { margin-top: 8px; width: 100%; max-width: 432px; background: var(--embed); border-radius: 8px; padding: 16px; }
.dc-embed-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--t-muted); margin-bottom: 12px; letter-spacing: .02em; }
.dc-embed-row { display: flex; align-items: center; gap: 16px; }
.dc-embed-icon { width: 50px; height: 50px; flex: none; border-radius: 16px; overflow: hidden; background: var(--gbg); display: flex; align-items: center; justify-content: center; color: var(--t-normal); font-size: 14px; font-weight: 500; }
.dc[data-theme="light"] .dc-embed-icon:not(.has-img) { background: #e3e5e8; }
.dc-embed-icon img, .dc-invite-icon img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-icon); }
.dc-embed-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dc-embed-txt b { color: var(--t-head); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-embed-txt span, .dc-invite-count { font-size: 14px; color: var(--t-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--t-muted); margin-left: 4px; }
.dot.on { background: var(--green); margin-left: 0; }
.dc-join { background: var(--join); color: #fff; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 4px; flex: none; }

/* members */
.dc-members { width: 240px; flex: none; background: var(--mem); padding: 8px 8px 0 16px; overflow-y: auto; scrollbar-width: none; }
.dc-mem b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dc-msg-body { min-width: 0; }
.dc-members h3 { margin: 16px 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--t-chan); }
.dc-mem { display: flex; align-items: center; gap: 12px; padding: 6px 8px; margin-left: -8px; border-radius: 4px; color: var(--t-chan); }
.dc-mem b { font-weight: 500; }
.dc-mem:hover { background: var(--hover); }
.dc-mem.off { opacity: .3; }
@container (max-width: 1080px) { .dc-desktop .dc-members { display: none; } }

/* placements */
.dc-strip { display: flex; flex-wrap: wrap; gap: 0; background: var(--rail); border-radius: 8px; padding: 16px 0; }
.dc-strip figure { margin: 0; flex: 1; min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dc-strip figcaption { font-size: 12px; color: var(--t-muted); }
.dc-strip .dc-ritem { pointer-events: none; }
.dc-sizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; background: var(--chat); border-radius: 8px; padding: 16px; }
.dc-sizes figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dc-sizes figcaption { font-size: 11px; color: var(--t-muted); }
.dc-sizes .dc-gicon { width: var(--s); height: var(--s); font-size: calc(var(--s) / 3); }
.dc-pad { background: var(--chat); border-radius: 8px; padding: 16px; }
.dc-tipdemo { display: flex; align-items: center; background: var(--rail); }
.dc-tipdemo .dc-ritem { width: 72px; flex: none; margin-left: -16px; }
.dc-tooltip { position: relative; background: var(--tip); color: var(--t-head); padding: 8px 12px; border-radius: 4px; font-size: 16px; font-weight: 600; box-shadow: 0 8px 16px rgba(0,0,0,.24); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-tooltip::before { content: ""; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: var(--tip); }
.banner-sizes { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.banner-sizes figure { margin: 0; }
.banner-sizes figcaption { font: 600 13px var(--sans); color: var(--text-2); margin-top: 6px; }
.banner-sizes .dc-side { border-radius: 8px; overflow: hidden; height: auto; }
.banner-sizes .dc-side-scroll { overflow: hidden; }
.banner-sizes .empty { color: var(--text-2); font-size: 14px; }

/* mobile */
.phone { width: 380px; max-width: 100%; margin: 0 auto; border: 10px solid var(--line-strong); border-radius: 40px; overflow: hidden; }
.dc-mobile { height: 760px; max-height: calc(100vh - 140px); min-height: 560px; display: flex; flex-direction: column; background: var(--rail); }
.dc-statusbar { height: 36px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; color: var(--t-head); font-size: 14px; }
.dc-mobile-body { flex: 1; display: flex; min-height: 0; }
.dc-mobile .dc-rail { padding-top: 4px; }
.dc-mobile .dc-side { flex: 1; width: auto; min-width: 0; border-radius: 16px 0 0 0; overflow: hidden; }
.dc-mobile .dc-banner { height: auto; aspect-ratio: 16 / 9; }

/* invite page */
.dc-invite { position: relative; min-height: min(640px, calc(100vh - 110px)); display: flex; align-items: center; justify-content: center; padding: 32px 16px; overflow: hidden; border-radius: 8px;
  background: #404eed radial-gradient(ellipse at 20% 80%, #5865f2, transparent 60%), radial-gradient(ellipse at 80% 20%, #23272a, transparent 60%); box-shadow: 0 0 0 2px var(--line-strong); }
.dc-splash { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-splash); }
.dc-invite.has-img > .dc-splash { display: block; }
.dc-invite-card { position: relative; width: 480px; max-width: 100%; background: var(--chat); border-radius: 8px; padding: 32px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.2); display: flex; flex-direction: column; align-items: center; }
.dc-invite-icon { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--gbg); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 500; color: var(--t-normal); }
.dc[data-theme="dark"] .dc-invite-icon:not(.has-img) { background: var(--rail); }
.dc[data-theme="light"] .dc-invite-icon:not(.has-img) { background: #e3e5e8; }
.dc-invite-by { margin: 12px 0 4px; color: var(--t-muted); font-size: 16px; }
.dc-invite-card h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; font-weight: 600; color: var(--t-head); overflow-wrap: anywhere; }
.dc-invite-count { justify-content: center; margin: 0 0 20px; }
.dc-invite-field { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.dc-invite-field span { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--t-inter); }
.dc-invite-field em { font-style: normal; background: var(--rail); border-radius: 4px; padding: 10px; color: var(--t-muted); }
.dc-invite-btn { width: 100%; background: var(--blurple); color: #fff; font-weight: 500; padding: 12px; border-radius: 4px; }
.panel[data-panel="desktop"] { overflow-x: auto; padding: 2px; }

/* ---------- desktop interactions ---------- */
.dc-ch, .dc-thread, .dc-cat, .dc-top, .dc-side-head { cursor: pointer; user-select: none; }
.dc-cat:hover { color: var(--t-inter); }
.dc-cat svg { transition: transform .15s; }
.dc-cat.folded svg { transform: rotate(-90deg); }
.dc-thread.sel { background: var(--sel); color: var(--t-head); }
.dc-side { position: relative; }
.dc-side.menu-open .dc-side-head > svg { transform: rotate(180deg); }
.dc-menu { display: none; position: absolute; z-index: 5; top: 56px; left: 10px; right: 10px; padding: 6px 8px; border-radius: 4px;
  background: var(--tip); box-shadow: 0 8px 16px rgba(0,0,0,.24); font-size: 14px; font-weight: 500; }
.dc-side.menu-open .dc-menu { display: block; }
.dc-menu-item { padding: 6px 8px; margin: 2px 0; border-radius: 2px; color: var(--t-inter); cursor: pointer; }
.dc-menu-item:hover { background: var(--blurple); color: #fff; }
.dc-menu-item.boost { color: #ff73fa; }
.dc-menu-item.invite { color: #949cf7; }
.dc-menu-item.leave { color: #f23f43; }
.dc-menu-item.leave:hover { background: #f23f43; color: #fff; }
.dc-menu-item.boost:hover { background: #ff73fa; color: #fff; }
.dc-menu-sep { display: block; height: 1px; margin: 4px; background: var(--divider); }

.dc-head-tools { margin-left: auto; display: flex; align-items: center; gap: 16px; color: var(--t-inter); flex: none; padding-left: 12px; }
.dc-head-tools svg { width: 22px; height: 22px; }
.dc-tool { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.dc-tool:hover, .dc-tool.on { color: var(--t-head); }
.dc-search { display: flex; align-items: center; justify-content: space-between; width: 144px; height: 24px; padding: 0 6px; border-radius: 4px; background: var(--rail); color: var(--t-muted); font-size: 14px; }
.dc-search svg { width: 16px; height: 16px; }
@container (max-width: 900px) { .dc-search { display: none; } }
.dc-desktop.no-members .dc-members { display: none; }

.dc-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--t-normal); font: inherit; }
.dc-input::placeholder { color: var(--t-muted); }
.dc-msg.cont { margin-top: 0; padding-top: 2px; padding-bottom: 2px; }
.dc-msg-time { width: 40px; flex: none; text-align: right; font-size: 11px; line-height: 22px; color: var(--t-muted); visibility: hidden; }
.dc-msg.cont:hover .dc-msg-time { visibility: visible; }
.dc-start { padding: 16px; margin-bottom: 8px; }
.dc-start-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--sel); color: var(--t-head); display: flex; align-items: center; justify-content: center; }
.dc-start-icon svg { width: 40px; height: 40px; }
.dc-start h2 { margin: 8px 0; font-size: 32px; line-height: 1.25; font-weight: 700; color: var(--t-head); overflow-wrap: anywhere; }
.dc-start p { margin: 0; color: var(--t-muted); }
.dc-msgs.forum { justify-content: flex-start; }
.dc-forum { padding: 16px; }
.dc-forum-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 8px; background: var(--input); color: var(--t-muted); }
.dc-forum-bar b { background: var(--blurple); color: #fff; font-size: 14px; font-weight: 500; padding: 4px 12px; border-radius: 4px; flex: none; }
.dc-post { margin-top: 8px; padding: 12px 16px; border-radius: 8px; background: var(--side); cursor: pointer; }
.dc-post:hover { background: var(--hover); }
.dc-post b { display: block; color: var(--t-head); font-weight: 600; }
.dc-post span { font-size: 14px; color: var(--t-muted); }
.dc-forum-empty { margin-top: 16px; color: var(--t-muted); }
.dc-forum-empty code { font-family: inherit; background: var(--input); padding: 0 4px; border-radius: 3px; }
/* Beat the chrome's input[type=text] rules so the composer looks like Discord's. */
.dc-compose .dc-input { width: auto; border: 0; padding: 0; font: 16px/1.375 var(--dc-font); color: var(--t-normal); }
.dc-compose .dc-input:focus { outline: 0; }
/* Sidebar resize handle (desktop). */
.dc-resize { position: absolute; z-index: 4; top: 0; bottom: 0; right: -4px; width: 8px; cursor: col-resize; touch-action: none; }
.dc-resize::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: var(--blurple); opacity: 0; transition: opacity .15s; }
.dc-resize:hover::after, .dc-side.dragging .dc-resize::after { opacity: 1; }
.dc-resize-tip { display: none; position: absolute; top: 140px; left: 12px; white-space: nowrap; padding: 6px 10px; border-radius: 4px;
  background: var(--tip); color: var(--t-head); font-size: 13px; font-weight: 600; box-shadow: 0 8px 16px rgba(0,0,0,.24); pointer-events: none; }
.dc-side.dragging .dc-resize-tip { display: block; }
.dc-side.dragging, .dc-side.dragging * { user-select: none; }
