:root {
  --bg: #101210;
  --panel: #151816;
  --panel2: #1b1f1c;
  --line: #262b28;
  --text: #e7ebe8;
  --muted: #8d978f;
  --faint: #5f6862;
  --accent: #9b7bff;
  --accent2: #6d4dff;
  --web: #3fd47e;
  --discord: #5865f2;
  --danger: #ff5d6c;
  --hover: rgba(255, 255, 255, .025);
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(155, 123, 255, .10), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(63, 212, 126, .06), transparent 60%), var(--bg);
  color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.shell { height: 100dvh; display: flex; }
.app { height: 100dvh; display: flex; flex-direction: column; flex: 1; min-width: 0; position: relative; }

/* channel list */
.side { width: 250px; flex: none; display: flex; flex-direction: column; background: rgba(12, 14, 12, .72); border-right: 1px solid var(--line); }
.side-top { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; font: 800 19px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.side-top b span { color: var(--accent); }
.logo.sm { width: 26px; height: 26px; border-radius: 7px; }
.logo.sm::after { inset: 6px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.chans { overflow-y: auto; padding: 6px 8px 16px; flex: 1; scrollbar-color: #2c322e transparent; }
.cat { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin: 16px 8px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; padding: 6px 8px; border-radius: 7px; color: var(--muted); font-size: 14px; position: relative; }
.chan:hover { background: rgba(255,255,255,.04); color: #cfd5d0; }
.chan.on { background: rgba(155, 123, 255, .14); color: #fff; }
.chan .h { color: var(--faint); font-weight: 600; width: 14px; text-align: center; flex: none; }
.chan .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.chan .ro { flex: none; color: var(--faint); opacity: .8; }
.chan.unread { color: #f1f3f2; font-weight: 600; }
.chan.unread::before { content: ""; position: absolute; left: -6px; width: 6px; height: 8px; border-radius: 0 4px 4px 0; background: #fff; }
.menu { display: none; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; margin-left: -4px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9; }
.readonly { margin: 0 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; text-align: center; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  background: rgba(16, 18, 16, .82); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand > div { min-width: 0; }
.sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: conic-gradient(from 210deg, var(--accent), #48d1ff, var(--web), var(--accent));
  box-shadow: 0 0 24px rgba(155, 123, 255, .35); position: relative;
}
.logo::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px rgba(255,255,255,.85); }
h1 { margin: 0; font: 800 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; }
h1 span { color: var(--accent); }
.sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.hash { color: var(--faint); margin-right: 2px; font-weight: 600; }
.state { display: flex; gap: 8px; align-items: center; flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; white-space: nowrap;
}
.link i { width: 8px; height: 8px; border-radius: 50%; background: var(--web); box-shadow: 0 0 8px var(--web); }
.link.off i { background: #e0a43a; box-shadow: 0 0 8px #e0a43a; animation: pulse 1.2s infinite; }
.link b { font-weight: 500; }
@keyframes pulse { 50% { opacity: .35; } }

/* messages */
.scroller { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 14px; scrollbar-color: #2c322e transparent; }
.older { text-align: center; color: var(--muted); font-size: 13px; padding: 10px; }
.start { padding: 28px 22px 10px; }
.start-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font: 700 34px "Barlow Condensed"; color: var(--muted); }
.start h2 { font: 700 26px "Barlow Condensed", sans-serif; margin: 12px 0 4px; letter-spacing: .02em; }
.start p { margin: 0; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.day { display: flex; align-items: center; gap: 10px; margin: 18px 18px 6px; color: var(--faint); font-size: 12px; font-weight: 600; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.msg { position: relative; padding: 2px 18px 2px 74px; min-height: 22px; }
.msg:hover { background: var(--hover); }
.msg.first { margin-top: 14px; padding-top: 3px; }
.msg.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(155, 123, 255, .14); } }
.avatar { position: absolute; left: 18px; top: 4px; width: 40px; height: 40px; border-radius: 50%; background: var(--panel2); object-fit: cover; }
.avatar.square { border-radius: 8px; image-rendering: pixelated; }
.head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.name { font-weight: 600; color: #f1f3f2; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; text-transform: uppercase; position: relative; top: -1px; }
.badge.web { background: rgba(63, 212, 126, .14); color: var(--web); }
.badge.discord { background: rgba(88, 101, 242, .18); color: #a3abff; }
.badge.bot { background: rgba(155, 123, 255, .18); color: #c9b9ff; }
.time { color: var(--faint); font-size: 12px; }
.side-time { position: absolute; left: 18px; width: 44px; text-align: right; top: 5px; font-size: 10.5px; color: var(--faint); opacity: 0; }
.msg:hover .side-time { opacity: 1; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; color: #dde2de; }
.edited { color: var(--faint); font-size: 11px; margin-left: 4px; }
.reply { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 0 0 2px -2px; white-space: nowrap; min-width: 0; }
.reply::before { content: ""; width: 26px; height: 9px; border: 2px solid #3a413c; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; margin-left: -32px; flex: none; position: relative; top: 4px; }
.reply b { color: #c8cec9; font-weight: 600; }
.reply span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* markdown bits */
.body code { background: #0b0d0b; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font: 13px/1.4 ui-monospace, "JetBrains Mono", Menlo, monospace; }
.body pre { background: #0b0d0b; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0; overflow-x: auto; white-space: pre; }
.body pre code { border: 0; padding: 0; background: none; }
.body blockquote { margin: 2px 0; padding-left: 12px; border-left: 4px solid #3a413c; }
.body h3 { margin: 6px 0 2px; font-size: 18px; } .body h4 { margin: 6px 0 2px; font-size: 16px; } .body h5 { margin: 4px 0 2px; font-size: 14.5px; }
.body a { color: #8fb8ff; text-decoration: none; } .body a:hover { text-decoration: underline; }
.mention { background: rgba(88, 101, 242, .22); color: #c9cdff; border-radius: 4px; padding: 0 3px; font-weight: 500; }
.spoiler { background: #2a2f2c; color: transparent; border-radius: 4px; cursor: pointer; transition: .15s; }
.spoiler.open { background: rgba(255,255,255,.07); color: inherit; }
.emoji { width: 22px; height: 22px; vertical-align: -5px; object-fit: contain; }
.jumbo .emoji { width: 44px; height: 44px; }
.stamp { background: rgba(255,255,255,.06); border-radius: 4px; padding: 0 3px; }

/* attachments / embeds */
.media { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.media img.pic, .media video { max-width: min(420px, 100%); max-height: 340px; border-radius: 8px; display: block; background: var(--panel2); cursor: zoom-in; }
.media video { cursor: auto; }
.media audio { width: min(380px, 100%); }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; max-width: 420px; width: 100%; text-decoration: none; color: inherit; }
.file:hover { border-color: #3a413c; }
.file svg { color: var(--accent); flex: none; }
.file b { display: block; color: #9fc2ff; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--muted); }
.file div { min-width: 0; }
.sticker { width: 150px; height: 150px; object-fit: contain; }
.embed { margin-top: 6px; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #3a413c; border-radius: 6px; padding: 10px 14px 12px 12px; display: flex; gap: 14px; align-items: flex-start; }
.emb-main { min-width: 0; flex: 1; display: grid; gap: 6px; }
.emb-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #e7ebe8; }
.emb-author img, .emb-footer img { width: 20px; height: 20px; border-radius: 50%; }
.emb-author a { color: inherit; }
.emb-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
.emb-field .fn { font-size: 13.5px; font-weight: 600; color: #e7ebe8; margin-bottom: 2px; }
.emb-field .fv { font-size: 13.5px; color: #cfd5d0; white-space: pre-wrap; overflow-wrap: anywhere; }
.emb-image { max-width: 100%; border-radius: 6px; cursor: zoom-in; }
.emb-thumb { width: 80px; height: 80px; object-fit: contain; border-radius: 6px; flex: none; cursor: zoom-in; }
.emb-footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .emb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.embed .prov { color: var(--muted); font-size: 12px; } .embed .ttl { font-weight: 600; color: #9fc2ff; } .embed .ttl a { color: inherit; }
.embed .desc { color: #cfd5d0; font-size: 14px; white-space: pre-wrap; }
.embed img { max-width: 100%; border-radius: 6px; margin-top: 4px; cursor: zoom-in; }
.blurred { filter: blur(26px); cursor: pointer !important; }

/* composer */
.composer-wrap { padding: 0 16px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.notice { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: rgba(224, 164, 58, .1); border: 1px solid rgba(224, 164, 58, .3); color: #f0c77b; font-size: 13px; }
.composer { display: flex; align-items: flex-end; gap: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; transition: border-color .15s; }
.composer:focus-within { border-color: rgba(155, 123, 255, .55); box-shadow: 0 0 0 4px rgba(155, 123, 255, .08); }
.composer textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; padding: 9px 6px; max-height: 40vh; min-height: 40px; }
.composer textarea::placeholder { color: var(--faint); }
.icon-btn, .send, .me { border: 0; background: transparent; cursor: pointer; border-radius: 10px; height: 40px; display: inline-grid; place-items: center; }
.icon-btn { width: 40px; color: var(--muted); } .icon-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.me { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--muted); font-size: 13px; background: rgba(255,255,255,.04); }
.me:hover { color: var(--text); background: rgba(255,255,255,.08); }
.me img { width: 22px; height: 22px; border-radius: 4px; image-rendering: pixelated; }
.send { width: 44px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.send:disabled { opacity: .45; cursor: default; }
.hint { color: var(--faint); font-size: 11.5px; margin: 6px 4px 0; display: flex; gap: 10px; }
.hint #count { margin-left: auto; order: 2; }
.files { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.chip { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px 6px 6px; max-width: 260px; position: relative; overflow: hidden; }
.chip img, .chip .ph { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; background: var(--panel2); flex: none; display: grid; place-items: center; color: var(--muted); font-size: 10px; font-weight: 700; }
.chip div { min-width: 0; font-size: 12.5px; } .chip b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chip small { color: var(--muted); }
.chip button { border: 0; background: rgba(255,255,255,.06); border-radius: 6px; width: 24px; height: 24px; cursor: pointer; flex: none; }
.chip .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); width: 0; transition: width .2s; }
.total { font-size: 12px; color: var(--muted); align-self: center; } .total.over { color: var(--danger); }

.jump { position: absolute; left: 50%; transform: translateX(-50%); bottom: 110px; z-index: 6; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--accent2); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); }

.drop { position: fixed; inset: 0; z-index: 20; background: rgba(10, 12, 10, .82); display: grid; place-items: center; }
.drop div { border: 2px dashed var(--accent); border-radius: 18px; padding: 40px 60px; font: 700 26px "Barlow Condensed"; letter-spacing: .03em; text-align: center; }
.drop small { display: block; font: 500 14px Inter, sans-serif; color: var(--muted); margin-top: 6px; }

.dlg { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); padding: 26px; width: min(400px, calc(100vw - 32px)); text-align: center; }
.dlg::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.dlg h2 { font: 700 26px "Barlow Condensed"; margin: 10px 0 6px; letter-spacing: .02em; }
.dlg p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.dlg-head { width: 72px; height: 72px; border-radius: 12px; image-rendering: pixelated; background: var(--panel2); }
.dlg input { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; outline: 0; }
.dlg input:focus { border-color: var(--accent); }
.err { color: var(--danger) !important; font-size: 13px !important; margin: 8px 0 0 !important; }
.dlg-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.dlg-btns button { border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; font-weight: 600; }
.ghost { background: rgba(255,255,255,.06); } .primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }

.viewer { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.88); display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 40; background: #2a1d21; border: 1px solid rgba(255, 93, 108, .4); color: #ffc2c8; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }

@media (max-width: 900px) {
  .side { position: fixed; z-index: 10; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .2s ease; background: #0e100e; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .menu { display: inline-grid; place-items: center; }
}
@media (max-width: 640px) {
  .top { padding: 10px 12px; }
  h1 { font-size: 19px; }
  #viewers { display: none; }
  .msg { padding-left: 62px; padding-right: 12px; }
  .avatar { left: 12px; width: 36px; height: 36px; }
  .side-time { left: 6px; }
  .composer-wrap { padding-left: 10px; padding-right: 10px; }
  .me span { display: none; }
  .hint { display: none; }
  .day { margin-left: 12px; margin-right: 12px; }
}

/* emoji: :name: suggestions and picker */
.composer-wrap { position: relative; }
.ac, .emo { position: absolute; bottom: calc(100% - 4px); z-index: 8; background: #181c19; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ac { left: 16px; right: 16px; padding: 6px; max-width: 520px; }
.ac-h { color: var(--faint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px 6px; }
.ac-i { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #d7dcd8; }
.ac-i.on, .ac-i:hover { background: rgba(155, 123, 255, .16); color: #fff; }
.ac-i .g { width: 24px; text-align: center; font-size: 20px; line-height: 1; }
.ac-i img { width: 24px; height: 24px; object-fit: contain; }
.ac-i small { margin-left: auto; color: var(--faint); font-size: 11px; }
.emo { right: 16px; width: min(360px, calc(100vw - 32px)); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.emo input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; outline: 0; }
.emo input:focus { border-color: var(--accent); }
.emo-grid { height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); align-content: start; gap: 2px; scrollbar-color: #2c322e transparent; }
.emo-grid .sec { grid-column: 1 / -1; color: var(--faint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 6px 2px 2px; }
.emo-grid button { border: 0; background: none; border-radius: 7px; height: 36px; font-size: 22px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.emo-grid button:hover { background: rgba(255,255,255,.07); }
.emo-grid img { width: 26px; height: 26px; object-fit: contain; }
.emo-name { color: var(--muted); font-size: 12.5px; min-height: 18px; }

/* message tools, right-click menu, reply bar */
.tools { position: absolute; right: 18px; top: -14px; display: none; background: #1b1f1c; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.35); z-index: 2; }
.msg:hover .tools, .msg.show .tools { display: flex; }
.tools button { border: 0; background: none; color: var(--muted); width: 32px; height: 30px; cursor: pointer; font-size: 15px; border-radius: 7px; }
.tools button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.msg.replying { background: rgba(155, 123, 255, .08); box-shadow: inset 2px 0 0 var(--accent); }
.ctx { position: fixed; z-index: 50; min-width: 190px; background: #181c19; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 12px 34px rgba(0,0,0,.55); }
.ctx button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; color: #d7dcd8; font-size: 14px; padding: 8px 10px; border-radius: 7px; cursor: pointer; text-align: left; }
.ctx button:hover, .ctx button:focus-visible { background: var(--accent2); color: #fff; outline: 0; }
.ctx button span { width: 18px; text-align: center; }
.ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.replybar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 7px 12px; font-size: 13px; color: var(--muted); margin: 0 6px -1px; }
.replybar b { color: var(--text); }
.replybar button { border: 0; background: rgba(255,255,255,.06); border-radius: 6px; width: 22px; height: 22px; cursor: pointer; color: var(--muted); }
.body .subtext { display: block; font-size: 12.5px; color: var(--muted); }

/* accounts */
.tabs { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin: 12px 0 10px; }
.tab { flex: 1; border: 0; background: none; color: var(--muted); padding: 8px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 14px; }
.tab.on { background: var(--panel2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.dlg input + input { margin-top: 8px; }
.badge.admin { background: rgba(255, 196, 61, .16); color: #ffcf5c; }
.replybar i { font-style: normal; }
.ctx .who { padding: 8px 10px 6px; font-size: 12.5px; color: var(--muted); }
.ctx .who b { color: var(--text); display: block; font-size: 14px; }
.ctx button.danger { color: #ff9aa4; }
.ctx button.danger:hover { background: #7a2430; color: #fff; }
.linkcmd { display: block; width: 100%; margin: 6px 0 12px; padding: 14px; border-radius: 10px; border: 1px dashed var(--accent); background: var(--bg); color: var(--text); font: 600 17px/1.3 ui-monospace, Menlo, monospace; cursor: copy; }
.linkcmd b { color: var(--accent); letter-spacing: .08em; }
.dlg .small { font-size: 12.5px; }
.ac-i .av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ac-i .rl { width: 24px; text-align: center; font-weight: 700; color: var(--muted); }
.msg.ping { background: rgba(255, 196, 61, .07); box-shadow: inset 2px 0 0 #ffcf5c; }
.msg.ping:hover { background: rgba(255, 196, 61, .11); }
.mention.mention-me { background: rgba(255, 196, 61, .22); color: #ffe39a; }

.dlg .or { font-size: 12.5px; margin: 14px 0 8px; }
.linkin { display: flex; gap: 8px; }
.linkin input { flex: 1; text-transform: uppercase; letter-spacing: .1em; font-family: ui-monospace, Menlo, monospace; }
.linkin button { border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer; font-weight: 600; }
.ac-i .cmd { font-family: ui-monospace, Menlo, monospace; color: var(--accent); }
.ac-i .cd { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cmd-btn { font: 700 19px/1 ui-monospace, Menlo, monospace; }
.cmd-btn.on { color: var(--accent); background: rgba(155, 123, 255, .12); }
.ac-i .cmd { white-space: nowrap; flex: none; }
.emb-author img, .emb-footer img { margin-top: 0; cursor: default; }

/* + menu dialogs, polls, voice, threads */
.dlg.wide { width: min(480px, calc(100vw - 32px)); text-align: left; }
.dlg.wide h2 { margin-top: 0; }
.dlg textarea, .dlg select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; outline: 0; resize: vertical; margin-top: 8px; }
.dlg select { width: auto; margin: 0 0 0 6px; padding: 6px 8px; }
.poll-answers { display: grid; gap: 6px; margin-top: 10px; }
.poll-answers div { display: flex; gap: 6px; }
.poll-answers input { margin: 0 !important; }
.poll-answers button { border: 0; background: rgba(255,255,255,.06); color: var(--muted); border-radius: 8px; width: 38px; cursor: pointer; }
.dlg .add { border: 0; border-radius: 8px; padding: 7px 10px; margin-top: 8px; cursor: pointer; color: var(--accent); }
.poll-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 12px 0 4px; color: var(--muted); font-size: 14px; }
.poll-opts .chk { display: flex; align-items: center; gap: 6px; }
.poll-opts .chk input { width: auto; }
.poll { margin-top: 6px; max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.poll h4 { margin: 0; font-size: 16px; }
.poll .sub2 { color: var(--muted); font-size: 12.5px; margin-top: -4px; }
.poll .ans { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; overflow: hidden; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.poll .ans i { position: absolute; inset: 0 auto 0 0; background: rgba(155, 123, 255, .18); z-index: 0; transition: width .3s; }
.poll .ans span, .poll .ans b { position: relative; z-index: 1; }
.poll .ans.win { border-color: rgba(155, 123, 255, .6); }
.poll .foot { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12.5px; }
.poll .foot a { color: #8fb8ff; text-decoration: none; }
.recbar { display: flex; align-items: center; gap: 12px; background: var(--panel2); border: 1px solid rgba(255, 93, 108, .4); border-radius: 14px; padding: 8px 10px 8px 16px; margin-bottom: 8px; }
.recbar .recdot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: pulse 1s infinite; }
.recbar #recTime { font-variant-numeric: tabular-nums; font-weight: 600; }
.recbar .rechint { color: var(--muted); font-size: 13px; flex: 1; }
.recbar button { border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer; font-weight: 600; }
.chan.thread { padding-left: 26px; font-size: 13px; }
.chan.thread .h { color: var(--faint); }
.voice-tag { font-size: 11px; color: var(--muted); display: block; margin-bottom: 3px; }

/* direct messages */
.dmbox { margin-bottom: 4px; }
.dmhead { display: flex; align-items: center; justify-content: space-between; margin: 12px 8px 4px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.dmhead button { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 6px; }
.dmhead button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.chan .dmav { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; image-rendering: pixelated; }
.chan.dm { padding-top: 5px; padding-bottom: 5px; }
.dmempty { color: var(--faint); font-size: 12.5px; padding: 2px 10px 6px; }
.dmresults { display: grid; gap: 2px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.dmresults button { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--text); padding: 8px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; }
.dmresults button:hover { background: rgba(155, 123, 255, .14); }
.dmresults img { width: 28px; height: 28px; border-radius: 50%; image-rendering: pixelated; }
.dmresults .note { margin-left: auto; color: var(--faint); font-size: 12px; }
.dmresults .dmhead { margin: 10px 4px 2px; }
