:root {
  --bg0: #15161e; --bg1: #1b1c26; --bg2: #1f2130; --bg3: #272a3b; --bg4: #30344a;
  --text: #e6e7ee; --muted: #9a9db3; --faint: #6c6f87; --accent: #8b6cff; --accent2: #ff7ab6;
  --ok: #3ecf8e; --warn: #f0b232; --bad: #f2555a; --line: #2c2f42;
  --r: 12px; font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg0); color: var(--text); font-size: 15px; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #8fb4ff; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- auth ---------- */
.auth { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 20% 0%, #3a2a6b55, transparent), radial-gradient(900px 500px at 90% 100%, #6b2a5055, transparent), var(--bg0); }
.auth-card { width: min(420px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-align: center; box-shadow: 0 30px 80px #0008; }
.auth-logo { width: 64px; height: 64px; }
.auth h1 { margin: 10px 0 4px; font-size: 28px; }
.tabs { display: flex; background: var(--bg1); border-radius: 10px; padding: 4px; margin: 20px 0; }
.tabs button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 8px; color: var(--muted); }
.tabs button.on { background: var(--bg4); color: var(--text); }
.auth form { text-align: left; display: grid; gap: 12px; }
.auth:not(.reg) .reg-only { display: none; }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
input, textarea, select { background: var(--bg0); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; outline: none; text-transform: none; letter-spacing: 0; font-weight: 400; }
input:focus, textarea:focus { border-color: var(--accent); }
.err { color: var(--bad); font-size: 14px; min-height: 1em; }
.btn { border: 0; border-radius: 8px; padding: 9px 16px; background: var(--bg4); font-weight: 600; }
.btn:hover { filter: brightness(1.12); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #a06cff); color: #fff; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.big { padding: 12px; font-size: 16px; }

/* ---------- layout ---------- */
.app { display: flex; height: 100vh; height: 100dvh; }
.rail { width: 72px; flex: none; background: var(--bg0); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; scrollbar-width: none; }
.rail-item { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bg3); display: grid; place-items: center;
  font-weight: 700; font-size: 16px; overflow: hidden; transition: border-radius .15s, background .15s; flex: none; padding: 0; }
.rail-item:hover, .rail-item.on { border-radius: 16px; background: var(--accent); }
.rail-item img { width: 100%; height: 100%; object-fit: cover; }
.rail-item.add { color: var(--ok); font-size: 24px; } .rail-item.add:hover { background: var(--ok); color: #fff; }
.rail-wrap { position: relative; }
.rail-wrap::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 0; background: #fff; border-radius: 0 4px 4px 0; transform: translateY(-50%); transition: height .15s; }
.rail-wrap.unread::before { height: 8px; } .rail-wrap.on::before { height: 36px; }
.rail-sep { width: 32px; height: 2px; background: var(--bg3); border-radius: 2px; flex: none; }
.rail-spacer { flex: 1; }

.sidebar { width: 260px; flex: none; background: var(--bg1); display: flex; flex-direction: column; border-radius: 16px 0 0 0; overflow: hidden; }
.side-head { min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; border-bottom: 1px solid var(--line); cursor: pointer; }
.side-head.banner { min-height: 110px; align-items: flex-end; padding-bottom: 12px; background: linear-gradient(160deg, #3b2a70, #5c2550 60%, var(--bg1)); background-size: cover; background-position: center; }
.side-head:hover { background-color: var(--bg2); }
.side-list { flex: 1; overflow-y: auto; padding: 8px; }
.cat { display: flex; justify-content: space-between; align-items: center; padding: 16px 8px 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cat button { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 4px; }
.ch { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--muted); cursor: pointer; position: relative; user-select: none; }
.ch:hover { background: var(--bg3); color: var(--text); }
.ch.on { background: var(--bg4); color: #fff; }
.ch.unread { color: #fff; font-weight: 600; }
.ch.unread::after { content: ""; position: absolute; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ch .hash { font-size: 18px; width: 20px; text-align: center; opacity: .7; }
.ch .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .gear { opacity: 0; background: none; border: 0; color: var(--muted); padding: 0; }
.ch:hover .gear { opacity: 1; }
.voice-users { padding: 2px 0 6px 38px; display: grid; gap: 4px; }
.voice-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.voice-user.speaking .avatar { box-shadow: 0 0 0 2px var(--ok); }

.voice-bar { padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.voice-bar .vtitle { color: var(--ok); font-weight: 700; font-size: 14px; } .voice-bar small { color: var(--muted); }
.me-panel { display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--bg0); }
.me-panel .who { flex: 1; min-width: 0; cursor: pointer; border-radius: 8px; padding: 2px 4px; }
.me-panel .who:hover { background: var(--bg3); }
.me-panel b, .me-panel small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-panel small { color: var(--muted); font-size: 12px; }
.icon-btn { border: 0; background: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: 18px; flex: none; }
.icon-btn:hover { background: var(--bg3); color: var(--text); }
.icon-btn.txt { font-size: 11px; font-weight: 800; border: 1.5px solid currentColor; width: auto; height: 22px; padding: 0 5px; border-radius: 5px; margin: 0 4px; }
.icon-btn.off { color: var(--bad); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg2); }
.chat-head { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
.chat-head .title { font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.chat-head .topic { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; padding-left: 10px; border-left: 1px solid var(--line); }
.chat-head .back { display: none; }
.chat-body { flex: 1; display: flex; min-height: 0; }
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.messages { flex: 1; overflow-y: auto; padding: 16px 0 8px; }
.welcome { padding: 24px 20px 8px; }
.welcome .big-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--bg4); display: grid; place-items: center; font-size: 34px; margin-bottom: 8px; }
.welcome h2 { margin: 6px 0; font-size: 28px; }

.msg { display: flex; gap: 14px; padding: 2px 20px; position: relative; }
.msg.head { margin-top: 14px; }
.msg:hover { background: #ffffff06; }
.msg.mention { background: #f0b23214; box-shadow: inset 2px 0 var(--warn); }
.msg .gutter { width: 40px; flex: none; }
.msg .time-side { visibility: hidden; font-size: 11px; color: var(--faint); padding-top: 4px; text-align: right; }
.msg:hover .time-side { visibility: visible; }
.msg .body { min-width: 0; flex: 1; }
.msg .meta { display: flex; align-items: baseline; gap: 8px; }
.msg .author { font-weight: 600; cursor: pointer; } .msg .author:hover { text-decoration: underline; }
.msg .stamp { font-size: 12px; color: var(--faint); }
.tag { font-size: 10px; font-weight: 800; background: var(--accent); color: #fff; padding: 1px 5px; border-radius: 4px; vertical-align: 2px; }
.text { white-space: pre-wrap; word-wrap: break-word; line-height: 1.4; }
.text .edited { font-size: 11px; color: var(--faint); }
.text code { background: var(--bg0); padding: 1px 5px; border-radius: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.text pre { background: var(--bg0); border: 1px solid var(--line); padding: 10px; border-radius: 8px; overflow-x: auto; margin: 6px 0; }
.text pre code { background: none; padding: 0; }
.text .mention-pill { background: #8b6cff33; color: #c8b9ff; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.spoiler { background: #000; color: transparent; border-radius: 4px; cursor: pointer; } .spoiler.show { background: var(--bg4); color: inherit; }
.reply-ref { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 2px 54px; cursor: pointer; overflow: hidden; white-space: nowrap; }
.reply-ref::before { content: ""; width: 30px; height: 10px; border: 2px solid var(--bg4); border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; margin-left: -34px; margin-top: 8px; flex: none; }
.reply-ref .avatar { width: 16px; height: 16px; font-size: 8px; }
.reply-ref span { overflow: hidden; text-overflow: ellipsis; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.attachments img, .attachments video { max-width: min(400px, 100%); max-height: 320px; border-radius: 10px; display: block; cursor: zoom-in; background: var(--bg0); }
.file-card { display: flex; gap: 10px; align-items: center; background: var(--bg1); border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--text); }
.file-card small { color: var(--muted); display: block; }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction { border: 1px solid transparent; background: var(--bg3); border-radius: 8px; padding: 2px 8px; font-size: 14px; display: flex; gap: 5px; align-items: center; }
.reaction.mine { border-color: var(--accent); background: #8b6cff26; }
.msg-tools { position: absolute; right: 20px; top: -14px; display: none; background: var(--bg1); border: 1px solid var(--line); border-radius: 8px; padding: 2px; box-shadow: 0 6px 16px #0006; }
.msg:hover .msg-tools { display: flex; }
.msg-tools button { border: 0; background: none; padding: 4px 7px; border-radius: 6px; font-size: 15px; }
.msg-tools button:hover { background: var(--bg3); }
.edit-box { width: 100%; resize: vertical; min-height: 40px; }
.typing { height: 22px; padding: 0 20px; font-size: 13px; color: var(--muted); }
.reply-bar { margin: 0 16px; background: var(--bg1); border-radius: 10px 10px 0 0; padding: 8px 12px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.reply-bar button { background: none; border: 0; color: var(--muted); }
.composer { margin: 0 16px 16px; background: var(--bg3); border-radius: 12px; padding: 4px 6px; }
.reply-bar:not(.hidden) + .composer { border-radius: 0 0 12px 12px; }
.composer-row { display: flex; align-items: flex-end; gap: 2px; }
.composer textarea { flex: 1; background: none; border: 0; resize: none; padding: 9px 6px; max-height: 40vh; line-height: 1.35; }
.send-btn { border: 0; background: var(--accent); color: #fff; width: 36px; height: 34px; border-radius: 9px; flex: none; }
.pending { display: flex; flex-wrap: wrap; gap: 8px; } .pending:not(:empty) { padding: 8px 4px 4px; }
.pend { position: relative; width: 96px; height: 96px; border-radius: 10px; background: var(--bg1); display: grid; place-items: center; overflow: hidden; font-size: 12px; text-align: center; padding: 4px; }
.pend img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pend button { position: absolute; top: 4px; right: 4px; border: 0; background: var(--bad); color: #fff; width: 22px; height: 22px; border-radius: 6px; z-index: 1; }
.pend.loading { opacity: .5; }

.members { width: 240px; flex: none; background: var(--bg1); overflow-y: auto; padding: 8px; }
.members h4 { margin: 16px 8px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.member { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.member:hover { background: var(--bg3); }
.member.offline { opacity: .45; }
.member .info { min-width: 0; }
.member b, .member small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.member small { color: var(--muted); font-size: 12px; font-weight: 400; }
.app.hide-members .members { display: none; }

.avatar { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; background-size: cover; background-position: center; }
.avatar.lg { width: 40px; height: 40px; } .avatar.xl { width: 88px; height: 88px; font-size: 32px; border: 6px solid var(--bg1); }
.avatar .dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--faint); border: 3px solid var(--bg1); }
.avatar .dot.on { background: var(--ok); }
.avatar.xl .dot { width: 24px; height: 24px; border-width: 5px; right: 2px; bottom: 2px; }

/* ---------- popovers & modals ---------- */
.popover { position: fixed; z-index: 40; background: var(--bg1); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px #000a; }
.picker { width: 340px; max-width: calc(100vw - 24px); padding: 10px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 260px; overflow-y: auto; }
.emoji-grid button { border: 0; background: none; font-size: 22px; padding: 4px; border-radius: 8px; }
.emoji-grid button:hover { background: var(--bg3); }
.gif-grid { columns: 2; column-gap: 6px; max-height: 340px; overflow-y: auto; margin-top: 8px; }
.gif-grid img { width: 100%; border-radius: 8px; margin-bottom: 6px; cursor: pointer; display: block; }
.gif-grid img:hover { outline: 2px solid var(--accent); }
.picker .row { display: flex; gap: 6px; } .picker .row input { flex: 1; min-width: 0; }
.menu { padding: 6px; min-width: 200px; }
.menu button { display: flex; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 6px; text-align: left; }
.menu button:hover { background: var(--accent); color: #fff; }
.menu button.danger { color: var(--bad); } .menu button.danger:hover { background: var(--bad); color: #fff; }
.profile { width: 300px; overflow: hidden; }
.profile .banner { height: 90px; }
.profile .pbody { padding: 0 16px 16px; margin-top: -44px; }
.profile h3 { margin: 8px 0 0; } .profile .uname { color: var(--muted); font-size: 14px; }
.profile .bio { background: var(--bg0); border-radius: 8px; padding: 10px; margin: 12px 0; font-size: 14px; white-space: pre-wrap; }
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: #000b; display: grid; place-items: center; padding: 16px; }
.modal { width: min(480px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg2); border-radius: 16px; padding: 24px; display: grid; gap: 14px; }
.modal h2 { margin: 0; } .modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.modal .code { font-family: ui-monospace, monospace; background: var(--bg0); padding: 12px; border-radius: 8px; word-break: break-all; user-select: all; }
.seg { display: flex; gap: 8px; } .seg label { flex: 1; flex-direction: row; display: flex; align-items: center; gap: 8px; background: var(--bg1); padding: 12px; border-radius: 8px; text-transform: none; font-size: 15px; color: var(--text); }
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-edit .avatar { cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: #000e; display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg4); padding: 10px 18px; border-radius: 10px; z-index: 70; box-shadow: 0 8px 20px #0008; }
.drop-hint { position: fixed; inset: 16px; z-index: 55; border: 3px dashed var(--accent); border-radius: 20px; background: #8b6cff22; display: grid; place-items: center; font-size: 28px; font-weight: 700; pointer-events: none; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; font-size: 14px; }

::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .members { display: none; }
  .app:not(.in-chat) .main { display: none; }
  .app:not(.in-chat) .sidebar { flex: 1; width: auto; }
  .app.in-chat .rail, .app.in-chat .sidebar { display: none; }
  .chat-head .back { display: grid; }
  .msg { padding: 2px 12px; } .msg-tools { right: 8px; }
  .composer { margin: 0 8px 8px; }
  .app.in-chat.show-members .chat { display: none; } .app.in-chat.show-members .members { display: block; flex: 1; width: auto; }
}
.reply-ref { margin-top: 14px; }
.reply-ref + .msg.head { margin-top: 0; }

/* ---------- presence ---------- */
.avatar .dot.online, .dot-ico.online { background: var(--ok); }
.avatar .dot.idle, .dot-ico.idle { background: var(--warn); }
.avatar .dot.dnd, .dot-ico.dnd { background: var(--bad); }
.avatar .dot.offline, .avatar .dot.invisible, .dot-ico.invisible { background: var(--faint); }
.avatar .dot.idle::after { content: ""; position: absolute; width: 60%; height: 60%; left: -8%; top: -8%; border-radius: 50%; background: var(--bg1); }
.avatar .dot.dnd::after { content: ""; position: absolute; left: 20%; right: 20%; top: 40%; height: 22%; border-radius: 2px; background: var(--bg1); }
.avatar .dot.offline::after, .avatar .dot.invisible::after { content: ""; position: absolute; inset: 25%; border-radius: 50%; background: var(--bg1); }
.dot-ico { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 4px; }
.status-menu { width: 290px; padding: 0 6px 6px; overflow: hidden; }
.status-menu .status-head { position: relative; display: grid; justify-items: start; padding: 0 10px 10px; margin: 0 -6px 6px; }
.status-menu .status-head .banner { position: absolute; inset: 0 0 auto 0; height: 64px; }
.status-menu .status-head .avatar { margin-top: 20px; }
.status-menu .row { display: flex; gap: 6px; padding: 4px; } .status-menu .row input { flex: 1; min-width: 0; }
.status-menu [data-pres] { gap: 10px; align-items: flex-start; }
.status-menu [data-pres] small { display: block; font-size: 12px; opacity: .75; }
.status-menu [data-pres].cur { background: var(--bg3); }
.status-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.member.offline .avatar .dot { display: block; }

/* ---------- banners ---------- */
.banner-edit { height: 120px; border-radius: 12px; display: flex; align-items: flex-end; justify-content: flex-end; gap: 6px; padding: 10px; margin-bottom: -30px; }
.banner-edit .btn { background: #000a; color: #fff; }
.profile .banner { height: 110px; }

/* ---------- screen share ---------- */
.live-tag { background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; letter-spacing: .04em; }
.voice-user .live-tag { margin-left: auto; margin-right: 8px; }
.icon-btn.live-on { background: var(--ok); color: #fff; }
.stage { flex: none; max-height: 58%; background: #0d0e14; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.stage-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stage-grid { flex: 1; min-height: 0; display: grid; gap: 8px; padding: 0 12px 12px; }
.stage-grid.n2 { grid-template-columns: 1fr 1fr; } .stage-grid.n3, .stage-grid.n4 { grid-template-columns: 1fr 1fr; }
.tile { position: relative; background: #000; border-radius: 12px; overflow: hidden; min-height: 0; aspect-ratio: 16 / 9; max-height: 50vh; justify-self: center; width: 100%; }
.tile video { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile-name { position: absolute; left: 8px; bottom: 8px; background: #000b; padding: 3px 8px; border-radius: 6px; font-size: 13px; }
.tile-full { position: absolute; right: 8px; bottom: 8px; border: 0; background: #000b; color: #fff; border-radius: 6px; padding: 3px 8px; opacity: 0; }
.tile:hover .tile-full { opacity: 1; }
.tile:fullscreen { aspect-ratio: auto; max-height: none; border-radius: 0; }
.stage-show { margin: 6px 12px; border: 0; background: var(--bg3); border-radius: 8px; padding: 8px; font-weight: 600; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; }
.source { border: 2px solid transparent; background: var(--bg1); border-radius: 10px; padding: 6px; display: grid; gap: 6px; font-size: 13px; text-align: left; }
.source:hover { border-color: var(--accent); } .source img { width: 100%; border-radius: 6px; background: #000; aspect-ratio: 16/9; object-fit: contain; }
.source span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal:has(.source-grid) { width: min(760px, 100%); }
.status-menu .row button { width: auto; flex: none; justify-content: center; } .status-menu .row button:hover { background: var(--bg4); }

/* ===== v1.2: speaking ring, mute icons, sounds ===== */
.voice-user { padding-right: 6px; border-radius: 6px; }
.voice-user .avatar { width: 26px; height: 26px; font-size: 11px; transition: box-shadow .08s; }
.voice-user.speaking .avatar, .who.speaking .avatar { box-shadow: 0 0 0 2px var(--bg1), 0 0 0 4px var(--ok); }
.voice-user.speaking .vu-name { color: var(--text); }
.vu-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vu-icons { display: flex; color: var(--muted); } .vu-icons svg { width: 16px; height: 16px; }
.voice-user .live-tag { margin: 0 4px 0 0; }
.me-panel .who { display: flex; gap: 8px; align-items: center; }
.me-panel .icon-btn svg { display: block; }
.icon-btn.off { color: var(--bad); background: #f2555a1c; }
.icon-btn.hang { color: #fff; background: var(--bad); } .icon-btn.hang:hover { background: #d8343a; color: #fff; }
.sh-name { display: grid; gap: 2px; min-width: 0; } .sh-name small { font-size: 12px; font-weight: 500; color: #ddd; display: flex; align-items: center; gap: 4px; }
.sh-name .dot-ico { width: 8px; height: 8px; margin: 0 0 0 4px; display: inline-block; }
.tag.mod { background: #e91e63; margin-left: 4px; }
.more-members { color: var(--muted); font-size: 13px; padding: 6px 10px; }
.mod-tools { display: flex; gap: 6px; margin-top: 8px; } .mod-tools .btn { flex: 1; padding: 8px 6px; font-size: 13px; }
.demo-box { background: var(--bg1); border: 1px dashed var(--accent); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.demo-box p { margin: 0; font-size: 13px; } .demo-box .row { display: flex; gap: 8px; } .demo-box .row input { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; color: var(--text); padding: 6px 0; flex-wrap: wrap; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn.mini { padding: 3px 10px; font-size: 12px; } .btn.ghost { background: none; }

/* stream menu (Discord-style) */
.stream-menu { width: 270px; }
.stream-menu > button { gap: 10px; align-items: center; font-weight: 600; }
.stream-menu > button.danger { color: var(--bad); }
.stream-menu .sm-qual { justify-content: flex-start; } .sm-qual .muted { margin-left: auto; font-size: 12px; font-weight: 400; } .sm-qual .chev { margin-left: 6px; }
.stream-menu .sm-qual:hover .muted { color: #fff; }
.sm-sec { font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 10px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.sm-sec:first-child { border-top: 0; }
.radio-list { display: grid; }
.menu .radio-row, .radio-row { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 0; background: none; padding: 9px 10px; border-radius: 6px; text-align: left; }
.radio-row:hover { background: var(--bg3) !important; color: var(--text) !important; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; flex: none; }
.radio.on { border-color: var(--accent); } .radio.on::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.sm-check { display: flex; justify-content: space-between; align-items: center; padding: 10px; text-transform: none; font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: 0; border-top: 1px solid var(--line); margin-top: 4px; cursor: pointer; }
.sm-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.golive { padding: 10px; } .gl-title { display: flex; gap: 8px; align-items: center; font-weight: 700; padding: 4px 6px 8px; }
.gl-go { width: 100%; margin-top: 6px; justify-content: center; display: flex !important; background: linear-gradient(135deg, var(--accent), #a06cff) !important; color: #fff; }
.sm-qbox { max-height: 300px; overflow-y: auto; }
.tile-q { color: var(--muted); font-size: 11px; margin-left: 4px; }
.src-tabs { display: flex; gap: 6px; background: var(--bg0); padding: 4px; border-radius: 10px; }
.src-tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.src-tabs button.on { background: var(--bg3); color: var(--text); }
.src-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .src-foot .chips { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.chip { border: 1px solid var(--line); background: var(--bg1); border-radius: 999px; padding: 4px 10px; font-size: 12px; } .chip.on { border-color: var(--accent); background: #8b6cff26; }
.modal:has(.src-tabs) { width: min(820px, 100%); }

/* music panel */
.music-panel { border-top: 1px solid var(--line); background: linear-gradient(180deg, #1db95414, var(--bg2)); padding: 10px 10px 8px; display: grid; gap: 6px; }
.mp-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.mp-art { width: 42px; height: 42px; border-radius: 8px; flex: none; background: #1db954 center/cover; display: grid; place-items: center; font-size: 20px; }
.mp-info { min-width: 0; flex: 1; } .mp-info b, .mp-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mp-info small { color: var(--muted); font-size: 12px; }
.mp-video { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
#mpPlayerHost, #mpPlayerHost iframe, #mpPlayerHost > div { width: 100%; height: 100%; border: 0; display: block; }
.mp-bar { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-prog { flex: 1; height: 4px; background: var(--bg4); border-radius: 4px; cursor: pointer; overflow: hidden; } .mp-prog i { display: block; height: 100%; background: #1db954; width: 0; transition: width .9s linear; }
.mp-ctrls { display: flex; align-items: center; gap: 2px; } .mp-ctrls .icon-btn { width: 30px; height: 30px; font-size: 14px; }
.mp-ctrls input[type=range] { flex: 1; min-width: 40px; accent-color: #1db954; padding: 0; }
.mp-listen { border: 1px solid #1db954; background: none; color: #1db954; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mp-listen.on { background: #1db954; color: #000; }
.mp-q { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== settings page (full screen) ===== */
.settings-page { position: fixed; inset: 0; z-index: 45; display: flex; background: var(--bg2); }
.set-nav { width: 34%; min-width: 230px; background: var(--bg1); display: flex; flex-direction: column; align-items: flex-end; padding: 50px 10px 20px; overflow-y: auto; }
.set-nav > * { width: 220px; }
.set-me { display: flex; gap: 10px; align-items: center; padding: 0 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.set-me b, .set-me small { display: block; } .set-me small { color: var(--muted); font-size: 12px; }
.set-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 14px 10px 6px; }
.set-tab { display: flex; gap: 10px; align-items: center; border: 0; background: none; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; text-align: left; margin-bottom: 2px; }
.set-tab:hover { background: var(--bg3); color: var(--text); } .set-tab.on { background: var(--bg4); color: #fff; } .set-tab.danger { color: var(--bad); }
.set-nav hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.set-ver { margin-top: auto; padding: 14px 10px 0; font-size: 11px; color: var(--faint); line-height: 1.6; }
.set-main { flex: 1; display: flex; gap: 20px; padding: 50px 40px 40px; overflow-y: auto; }
.set-content { flex: 1; max-width: 740px; display: grid; gap: 16px; align-content: start; padding-bottom: 80px; }
.set-content h1 { margin: 0 0 4px; font-size: 22px; } .set-sub { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.set-card { background: var(--bg1); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.set-card.two { grid-template-columns: 1fr 1fr; gap: 16px; } .set-card.two .check { grid-column: 1 / -1; }
.set-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-label { font-weight: 700; font-size: 14px; } .set-label small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.set-field { display: grid; gap: 4px; } .set-field .count { text-align: right; color: var(--faint); font-size: 11px; }
.set-field input:disabled { opacity: .6; }
.set-actions { display: flex; justify-content: flex-end; padding-top: 8px; }
.set-close { position: sticky; top: 0; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--muted); background: none; color: var(--muted); font-size: 16px; display: grid; place-items: center; line-height: 1; }
.set-close small { position: absolute; top: 46px; font-size: 11px; font-weight: 700; }
.set-close:hover { color: var(--text); border-color: var(--text); }
.pp { padding: 0; overflow: hidden; }
.pp-banner { height: 150px; position: relative; } .pp-btns { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.pp-chip { border: 0; background: #000b; color: #fff; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.pp-body { padding: 0 16px 16px; display: grid; gap: 10px; }
.pp-av { margin-top: -48px; cursor: pointer; width: max-content; } .pp-av .avatar.xl { border-color: var(--bg1); }
.pp-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -40px; margin-left: 110px; } .pp-tools .btn { padding: 7px 12px; font-size: 13px; }
.pp-card { background: var(--bg0); border-radius: 10px; padding: 12px; display: grid; gap: 4px; } .pp-card > b { font-size: 18px; }
.pp-status { font-size: 14px; } .pp-bio { font-size: 14px; white-space: pre-wrap; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sw { width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; padding: 0; } .sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.swatches input[type=color] { width: 40px; height: 32px; padding: 2px; }
.save-bar { position: sticky; bottom: 16px; display: flex; gap: 10px; align-items: center; background: var(--bg0); border-radius: 12px; padding: 10px 12px 10px 16px; box-shadow: 0 10px 30px #000a; }
.save-bar span { flex: 1; font-weight: 600; }
.acct { grid-template-columns: auto 1fr; align-items: center; gap: 16px; } .acct h2 { margin: 0; } .acct .avatar.xl { border-color: var(--bg1); }
.mic-test { display: flex; gap: 12px; align-items: center; }
.meter { position: relative; flex: 1; height: 10px; background: var(--bg4); border-radius: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--warn); transition: width .05s; } .meter i.hot { background: var(--ok); }
.meter b { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; }
.sfx-row { display: flex; flex-wrap: wrap; gap: 6px; } .sfx-row .btn { padding: 6px 10px; font-size: 13px; }
@media (max-width: 760px) {
  .settings-page { flex-direction: column; }
  .set-nav { width: auto; min-width: 0; flex-direction: row; align-items: center; padding: 8px; overflow-x: auto; gap: 4px; flex: none; }
  .set-nav > * { width: auto; flex: none; } .set-me, .set-cat, .set-ver, .set-nav hr { display: none; }
  .set-main { padding: 16px; } .set-close { position: fixed; top: 8px; right: 8px; background: var(--bg2); } .set-close small { display: none; }
  .set-row { grid-template-columns: 1fr; gap: 6px; } .set-card.two { grid-template-columns: 1fr; } .pp-tools { margin: 0; }
}
.set-main { align-items: flex-start; } .set-content > * { min-height: min-content; }
.mp-ctrls { flex-wrap: wrap; row-gap: 4px; } .mp-ctrls input[type=range] { flex: 1 0 100%; order: 9; }
input[type=range] { accent-color: var(--accent); padding: 0; border: 0; background: none; }
@media (max-width: 760px) { .set-nav { padding-right: 56px; } }

/* ===== v1.3: call view ===== */
.stage { max-height: none; flex: none; background: #0b0c11; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.call-grid { display: grid; gap: 10px; padding: 14px 14px 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-height: 56vh; overflow-y: auto; }
.call-grid.n1 { grid-template-columns: minmax(240px, 640px); justify-content: center; }
.call-grid.n2 { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
.call-grid.mini { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 170px; }
.call-grid.mini .ptile { aspect-ratio: 16 / 7; } .call-grid.mini .avatar.call { width: 48px; height: 48px; font-size: 18px; }
.ptile { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; display: grid; place-items: center; cursor: pointer; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .08s; max-height: 52vh; width: 100%; }
.ptile.speaking { outline-color: var(--ok); }
.ptile video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; cursor: default; }
.ptile .pt-av { display: grid; place-items: center; }
.avatar.call { width: 88px; height: 88px; font-size: 32px; box-shadow: 0 6px 24px #0007; }
.ptile.speaking .avatar.call { box-shadow: 0 0 0 4px #0b0c11, 0 0 0 7px var(--ok); }
.ptile .tile-name { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 5px; align-items: center; max-width: calc(100% - 20px); overflow: hidden; white-space: nowrap; }
.pt-icons svg { width: 15px; height: 15px; display: block; } .pt-icons:empty { display: none; }
.viewers { font-size: 12px; color: #ddd; }
.live-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: #000a; backdrop-filter: blur(6px); }
.live-tag.big { font-size: 13px; padding: 3px 9px; }
.btn.watch { background: #fff; color: #111; font-weight: 700; padding: 10px 18px; border-radius: 10px; }
.tile-acts { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.ptile:hover .tile-acts { opacity: 1; }
.tile-acts button { border: 0; background: #000b; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.ptile .tile-full { position: static; opacity: 1; }
.call-bar { display: flex; justify-content: center; gap: 10px; padding: 6px 0 12px; }
.call-bar .icon-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--bg3); color: var(--text); }
.call-bar .icon-btn.off { background: #f2555a33; color: var(--bad); }
.call-bar .icon-btn.hang { background: var(--bad); color: #fff; }
.call-bar .icon-btn.live-on { background: var(--ok); color: #fff; }
.vc-join { text-align: center; display: grid; justify-items: center; padding-top: 60px; }

/* sidebar bits */
.ch.in-vc .name { color: var(--ok); font-weight: 600; }
.ch .limit { font-size: 11px; background: var(--bg0); color: var(--muted); border-radius: 6px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.ch.temp .hash { opacity: 1; }
.in-call { font-size: 13px; }
.ping-badge { background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; line-height: 1; }
.rail-wrap .ping-badge { position: absolute; right: -4px; bottom: -4px; border: 3px solid var(--bg0); height: 22px; min-width: 22px; border-radius: 11px; }
.ch .ping-badge { margin-left: auto; } .ch.unread .ping-badge ~ * {}
.ch:has(.ping-badge).unread::after { display: none; }
.voice-user { cursor: pointer; } .voice-user:hover { background: var(--bg3); }

/* ping bars */
.vtitle { display: flex; align-items: center; gap: 6px; } .vtitle small { color: var(--muted); font-weight: 500; font-size: 11px; }
.ping { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ping i { width: 3px; background: var(--faint); border-radius: 1px; } .ping i:nth-child(1) { height: 5px; } .ping i:nth-child(2) { height: 9px; } .ping i:nth-child(3) { height: 13px; }
.ping.q3 i { background: var(--ok); } .ping.q2 i:nth-child(-n+2) { background: var(--warn); } .ping.q1 i:nth-child(1) { background: var(--bad); }

/* incoming call */
.call-pop { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 80; background: var(--bg1); border: 1px solid var(--line); border-radius: 20px; padding: 22px 28px; display: grid; justify-items: center; gap: 6px; box-shadow: 0 20px 60px #000c; min-width: 260px; animation: pop .25s ease; }
.call-pop .cp-av .avatar { animation: ringpulse 1.2s infinite; }
.cp-btns { display: flex; gap: 28px; margin-top: 12px; }
.cp-btns button { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 22px; color: #fff; }
.cp-no { background: var(--bad); } .cp-yes { background: var(--ok); }
@keyframes ringpulse { 0%, 100% { box-shadow: 0 0 0 0 #3ecf8e88; } 50% { box-shadow: 0 0 0 14px #3ecf8e00; } }
@keyframes pop { from { transform: translate(-50%, -20px); opacity: 0; } }
.room-people { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; } .room-people .member { cursor: default; } .room-people .btn { margin-left: auto; }
@media (max-width: 760px) { .call-grid { grid-template-columns: 1fr 1fr; } .call-grid.n1 { grid-template-columns: 1fr; } .avatar.call { width: 64px; height: 64px; } }
.ptile.m-video { cursor: default; } .ptile .tile-name { cursor: pointer; }
.voice-bar > div:first-child { overflow: hidden; } .vtitle { white-space: nowrap; font-size: 14px; } .vtitle small { margin-left: 2px; }
.ping-txt { color: var(--ok); font-variant-numeric: tabular-nums; } .voice-bar small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== v1.4: settings shell, server settings, toggles ===== */
.set-groups { display: grid; }
.set-tab .ti { width: 22px; text-align: center; } .set-tab .tl { flex: 1; } .set-tab .chev { display: none; color: var(--muted); font-size: 20px; }
.set-me.srv img, .srv-ic { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--accent); display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.ph-head { display: none; }
.set-desc { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.45; }
.set-actions.left { justify-content: flex-start; }
.tgl-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); font-weight: 400; cursor: pointer; }
.tgl-row:last-child { border-bottom: 0; } .tgl-row b { font-weight: 600; display: block; } .tgl-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.tgl { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--bg4); position: relative; flex: none; cursor: pointer; transition: background .15s; border: 0; padding: 0; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px #0006; }
.tgl:checked { background: #5865f2; } .tgl:checked::after { transform: translateX(20px); }
.ns-str { padding: 6px 0 4px; } .ns-str.off { opacity: .4; pointer-events: none; } .ns-top { display: flex; justify-content: space-between; margin-bottom: 10px; } .ns-str input { width: 100%; accent-color: #5865f2; }
.set-card.list { padding: 4px 12px; gap: 0; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); min-height: 52px; }
.li:last-child { border-bottom: 0; } .li.click { cursor: pointer; } .li.click:hover { background: #ffffff05; }
.li .grow, .grow { flex: 1; min-width: 0; } .li small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.li-ic { width: 28px; text-align: center; font-size: 18px; color: var(--muted); flex: none; } .li .chev { color: var(--muted); font-size: 20px; }
.li .icon-btn { width: 30px; height: 30px; font-size: 14px; } .li .icon-btn:disabled { opacity: .25; cursor: default; }
.li .acts { display: flex; gap: 2px; } .member-li { align-items: flex-start; }
.pill { font-size: 11px; background: var(--bg4); color: var(--muted); border-radius: 999px; padding: 3px 9px; }
.mono { font-family: ui-monospace, monospace; }
.link { background: none; border: 0; color: #8fb4ff; padding: 0; font-size: 12px; margin-left: 6px; text-transform: none; letter-spacing: 0; }
.link.back { font-size: 14px; margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .li .chips { margin-top: 6px; }
.rchip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg3); border-radius: 6px; padding: 2px 8px; font-size: 12px; border: 0; color: var(--text); }
.rchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); } .rchip button { border: 0; background: none; color: var(--muted); padding: 0; font-size: 11px; }
.rchip.add { color: var(--muted); padding: 2px 9px; cursor: pointer; } .pop-roles { margin-top: 10px; }
.rdot { width: 14px; height: 14px; border-radius: 50%; flex: none; display: inline-block; } .menu .rdot { margin-right: 8px; width: 12px; height: 12px; }
.stag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--c); border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: 2px; line-height: 1.4; }
.tag-prev { display: flex; align-items: center; gap: 8px; } .tag-prev .avatar { width: 28px; height: 28px; font-size: 12px; }
.search-row { display: flex; align-items: center; gap: 12px; } .search-row input { flex: 1; }
.lv1 { color: #3ecf8e; } .lv2 { color: #f0b232; } .radio-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; font-weight: 400; } .radio-row b { font-weight: 600; }
.req { color: var(--muted); font-size: 14px; margin: 0; padding-left: 20px; line-height: 1.7; }
.btn.wide { width: 100%; padding: 12px; background: #5865f2; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ex-grid.big { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ex-item { background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; justify-items: center; position: relative; }
.ex-item img { width: 48px; height: 48px; object-fit: contain; } .ex-grid.big .ex-item img { width: 110px; height: 110px; }
.ex-item input { width: 100%; text-align: center; padding: 6px; font-size: 13px; } .ex-item small { color: var(--muted); font-size: 11px; }
.ex-item .icon-btn { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; font-size: 13px; opacity: 0; } .ex-item:hover .icon-btn { opacity: 1; }
.big-empty { display: grid; gap: 6px; justify-items: center; font-size: 15px; padding: 40px 10px; } .big-empty::first-line { font-size: 64px; }
.big-empty b { font-size: 20px; color: var(--text); }
.srv-hero { height: 130px; position: relative; } .srv-row { display: flex; gap: 16px; padding: 0 16px 12px; align-items: flex-end; }
.srv-icon { width: 84px; height: 84px; border-radius: 22px; margin-top: -40px; border: 5px solid var(--bg1); background: var(--accent); display: grid; place-items: center; font-size: 26px; font-weight: 800; overflow: hidden; cursor: pointer; flex: none; }
.srv-icon img { width: 100%; height: 100%; object-fit: cover; }
.menu-sec { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); padding: 8px 10px 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.inv-card { display: flex; gap: 12px; align-items: center; background: var(--bg1); border-radius: 12px; padding: 12px; text-align: left; margin-top: 8px; }
.inv-card img, .inv-card .srv-ic { width: 52px; height: 52px; border-radius: 16px; } .inv-card b { display: block; font-size: 18px; color: var(--text); } .inv-card small { display: block; }

/* custom emoji, stickers, picker */
.cemoji { width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; } .cemoji.jumbo { width: 48px; height: 48px; }
.reaction .cemoji { width: 18px; height: 18px; vertical-align: -4px; }
.attachments img.sticker { width: 160px; height: 160px; max-height: none; object-fit: contain; background: none; cursor: default; }
.pk-tabs { display: flex; gap: 4px; margin-bottom: 8px; } .pk-tabs button { flex: 1; border: 0; background: var(--bg3); border-radius: 8px; padding: 7px; color: var(--muted); font-weight: 600; }
.pk-tabs button.on { background: var(--accent); color: #fff; }
.emoji-scroll { max-height: 300px; overflow-y: auto; } .emoji-scroll .emoji-grid { max-height: none; overflow: visible; }
.pk-sec { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); padding: 8px 4px 4px; }
.emoji-grid button .cemoji { width: 28px; height: 28px; vertical-align: middle; }
.sticker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .sticker-grid button { border: 0; background: var(--bg3); border-radius: 10px; padding: 6px; } .sticker-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* voice: chat bubble, call header, audio sheet */
.ch .chat-b { opacity: 0; } .ch:hover .chat-b, .ch.on .chat-b, .ch .chat-b.has { opacity: 1; } .ch .chat-b.has { color: #fff; }
.call-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.call-top > div { display: flex; gap: 8px; } .icon-btn.round { width: 40px; height: 40px; border-radius: 50%; background: var(--bg2); } .icon-btn.round.on { background: var(--bg4); color: #fff; }
.chat.call-only .messages, .chat.call-only .typing, .chat.call-only .composer, .chat.call-only .reply-bar { display: none !important; }
.chat.call-only .stage { flex: 1; } .chat.call-only .call-grid { max-height: none; flex: 1; align-content: center; }
.vc-banner { margin: 0 16px 10px; background: var(--bg1); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.modal-wrap.sheet-wrap { align-items: end; padding: 0; } .modal.sheet { width: min(560px, 100%); border-radius: 28px 28px 0 0; max-height: 88vh; padding: 12px 18px 22px; }
.sheet-grip { width: 48px; height: 5px; border-radius: 3px; background: var(--bg4); margin: 0 auto; }

/* ---- phones: list → page, like the Discord app ---- */
@media (max-width: 760px) {
  .settings-page { flex-direction: column; background: #000; }
  .settings-page .set-nav { width: auto; min-width: 0; flex: 1; flex-direction: column; align-items: stretch; padding: 0 0 30px; overflow-y: auto; gap: 0; background: #000; }
  .settings-page .set-nav > * { width: auto; }
  .settings-page.phone-page .set-nav { display: none; } .settings-page.phone-list .set-main { display: none; }
  .ph-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 56px; position: sticky; top: 0; background: #000; z-index: 2; border-bottom: 1px solid #ffffff14; padding: 0 6px; }
  .ph-head b { text-align: center; font-size: 18px; } .ph-x { border: 0; background: none; font-size: 24px; color: var(--text); width: 44px; height: 44px; }
  .settings-page .set-me { display: flex; flex-direction: column; text-align: center; border: 0; padding: 18px 0 6px; gap: 8px; } .set-me.srv img, .set-me .srv-ic { width: 72px; height: 72px; border-radius: 22px; }
  .settings-page .set-cat { display: block; padding: 22px 16px 8px; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }
  .settings-page .set-groups { padding: 0 12px; }
  .settings-page .set-tab { background: #111214; border-radius: 0; margin: 0; padding: 16px 14px; font-size: 17px; color: var(--text); border-bottom: 1px solid #ffffff10; }
  .settings-page .set-tab .ti { font-size: 20px; width: 30px; } .settings-page .set-tab .chev { display: block; }
  .settings-page .set-cat + .set-tab, .settings-page .set-groups > .set-tab:first-child { border-radius: 14px 14px 0 0; }
  .settings-page .set-tab:has(+ .set-cat), .settings-page .set-tab:last-child { border-radius: 0 0 14px 14px; border-bottom: 0; }
  .settings-page .set-cat + .set-tab:has(+ .set-cat), .settings-page .set-cat + .set-tab:last-child { border-radius: 14px; }
  .settings-page .set-nav hr { display: none; } .settings-page .set-nav > .set-tab { margin: 20px 12px 0; border-radius: 14px; }
  .settings-page .set-ver { display: block; text-align: center; padding: 20px; }
  .settings-page .set-main { padding: 0 0 40px; flex: 1; overflow-y: auto; background: #000; display: block; }
  .settings-page .set-content { padding: 12px 14px 90px; max-width: none; } .settings-page .set-content > h1:first-child { display: none; }
  .settings-page .set-card { background: #111214; border-color: #111214; border-radius: 14px; }
  .save-bar { bottom: 10px; flex-wrap: wrap; } .ex-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } .ex-item .icon-btn { opacity: 1; }
  .ch .chat-b { opacity: 1; } .call-top { padding-top: 8px; } .li .acts { flex-direction: column; }
}
.set-content, .set-card, .srv-row .grow { min-width: 0; } .set-card { max-width: 100%; }
@media (max-width: 760px) {
  .srv-row { flex-direction: column; align-items: flex-start; gap: 6px; } .srv-row .grow { width: 100%; } .srv-row .set-row { padding-top: 0; }
  .pp-btns { right: 8px; } .set-row select, .set-row input, .set-row textarea { width: 100%; }
}
.srv-icon { position: relative; z-index: 1; }

/* ===== v1.5: right-click menus ===== */
.menu.ctx { min-width: 230px; max-width: 280px; padding: 6px; max-height: calc(100vh - 16px); overflow-y: auto; }
.menu.ctx button { align-items: center; gap: 8px; padding: 8px 10px; font-size: 14px; font-weight: 500; }
.menu.ctx button.dis { opacity: .5; cursor: default; }
.menu.ctx hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.ctx-l { flex: 1; min-width: 0; } .ctx-l small { display: block; font-size: 11px; opacity: .7; font-weight: 400; margin-top: 1px; }
.ctx-ic { width: 18px; text-align: center; display: inline-flex; justify-content: center; }
.ctx-chk { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--muted); flex: none; display: grid; place-items: center; }
.ctx-chk.on { background: #5865f2; border-color: #5865f2; } .ctx-chk.on::after { content: "✓"; color: #fff; font-size: 12px; font-style: normal; font-weight: 800; }
.menu.ctx button:hover .ctx-chk { border-color: #fff; }
.menu.ctx .chev { color: var(--muted); font-size: 18px; } .menu.ctx button:hover .chev { color: #fff; }
.ctx-back { color: var(--muted) !important; font-weight: 700 !important; }
.ctx-slider { padding: 8px 10px; } .ctx-sl-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; } .ctx-sl-top span { color: var(--muted); }
.ctx-slider input { width: 100%; accent-color: #5865f2; }
.ctx-quick { display: flex; justify-content: space-between; padding: 4px 2px; } .ctx-quick button { width: 36px !important; height: 36px; padding: 0 !important; justify-content: center; font-size: 20px !important; border-radius: 50% !important; background: var(--bg3) !important; }
.ctx-quick button:hover { background: var(--bg4) !important; }
.vu-icons .srv svg { color: var(--bad); } .vu-icons svg + svg { margin-left: 2px; }
.vc-status { font-size: 12px; color: var(--muted); padding: 0 10px 4px 38px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vc-status:hover { color: var(--text); } .vc-status span { opacity: .6; }
.hidden-msg { padding-top: 4px; padding-bottom: 4px; } .hidden-msg .body { font-size: 13px; font-style: italic; }
.vinv { display: flex; align-items: center; gap: 12px; background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; max-width: 420px; margin: 4px 0; white-space: normal; }
.vinv-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ok); display: grid; place-items: center; font-size: 22px; flex: none; }
.vinv b { display: block; font-size: 16px; } .vinv small { display: block; color: var(--muted); font-size: 12px; }
.note-box { margin: 10px 0; } .note-box small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.note-box textarea { width: 100%; resize: none; background: transparent; border: 1px solid transparent; padding: 4px 0; font-size: 13px; } .note-box textarea:focus { background: var(--bg0); border-color: var(--line); padding: 4px 6px; }
.ch [data-vinv] { font-size: 11px; letter-spacing: -2px; }
@media (hover: none) { .msg:hover .msg-tools { display: none; } .msg:hover { background: none; } }

/* ===== v1.5: channel settings, permissions, gates ===== */
.slider-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; } .slider-top b { color: var(--text); font-size: 13px; }
.set-card input[type=range] { width: 100%; accent-color: #5865f2; }
.perm-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.perm-list { display: grid; gap: 2px; position: sticky; top: 0; }
.perm-lh { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; padding: 4px 8px; }
.perm-item { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 10px; border-radius: 8px; text-align: left; color: var(--muted); }
.perm-item:hover { background: var(--bg3); color: var(--text); } .perm-item.on { background: var(--bg4); color: #fff; }
.perm-item span:not(.rdot) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .perm-item .avatar { width: 22px; height: 22px; font-size: 10px; }
.perm-item i { font-style: normal; font-size: 11px; opacity: 0; padding: 2px 4px; } .perm-item:hover i { opacity: .8; }
.perm-h { font-size: 18px; font-weight: 700; margin: 18px 0 8px; } .perm-h:first-child { margin-top: 0; }
.perm-row { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.perm-row b { display: block; } .perm-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.tri { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.tri button { border: 0; background: none; width: 34px; height: 30px; color: var(--muted); font-weight: 700; }
.tri button.no { background: #da373c; color: #fff; } .tri button.mid { background: var(--bg4); color: #fff; } .tri button.yes { background: #23a55a; color: #fff; }
.gate { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 80px 20px; } .gate h2 { margin: 0; }
.spoiler-ch .msg .text, .spoiler-ch .msg .attachments { filter: blur(7px); cursor: pointer; transition: filter .15s; }
.spoiler-ch .msg.revealed .text, .spoiler-ch .msg.revealed .attachments { filter: none; }
@media (max-width: 760px) { .perm-wrap { grid-template-columns: 1fr; } .perm-list { position: static; } }

/* ===== status emoji ===== */
.st-row { display: flex; gap: 6px; align-items: center; } .st-row input { flex: 1; min-width: 0; }
.st-pick { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--bg0); font-size: 20px; display: grid; place-items: center; filter: grayscale(1) opacity(.55); cursor: pointer; padding: 0; }
.st-pick:hover, .st-pick.set { filter: none; } .st-pick .cemoji { width: 24px; height: 24px; vertical-align: middle; }
.cemoji.st { width: 16px; height: 16px; vertical-align: -3px; } .st-e { font-size: 14px; } .pop-status { margin-top: 6px; } .pop-status .cemoji.st { width: 20px; height: 20px; }
/* installed on a phone/tablet home screen: stay clear of the notch and home bar */
@media (display-mode: standalone) { body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background: var(--bg0); } .app { height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)); } }
.st-pick .cemoji.st { width: 24px; height: 24px; } .st-pick .st-e { font-size: 20px; }

/* ---------- friends ---------- */
.fr-entry { margin: 4px 0 8px; }
.fr-tabs { display: flex; gap: 4px; align-items: center; margin-left: 14px; overflow-x: auto; scrollbar-width: none; }
.fr-tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 5px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.fr-tabs button:hover { background: var(--bg3); color: var(--text); }
.fr-tabs button.on { background: var(--bg3); color: var(--text); }
.fr-tabs button.add { background: #248046; color: #fff; }
.fr-tabs button.add.on { background: none; color: #3ecf8e; }
.fr-wrap, .fr-add { padding: 16px 20px; max-width: 900px; }
.fr-search { width: 100%; background: var(--bg0, #15161e); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 12px; font: inherit; margin-bottom: 14px; }
.fr-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.fr-row:hover { background: var(--bg3); }
.fr-row .grow { flex: 1; min-width: 0; }
.fr-row .grow small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-btns { display: flex; gap: 8px; }
.fr-ib { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg1, #1b1c26); color: var(--text); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.fr-ib:hover { background: var(--bg0, #15161e); }
.fr-ib.yes:hover { color: #3ecf8e; } .fr-ib.no:hover { color: #f04f5a; }
.fr-empty { text-align: center; color: var(--muted); padding: 60px 20px; } .fr-empty div { font-size: 54px; }
.fr-add h2 { margin: 0 0 4px; }
.fr-form { display: flex; gap: 8px; background: var(--bg0, #15161e); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 14px; margin-top: 14px; }
.fr-form:focus-within { border-color: var(--accent, #8b6cff); }
.fr-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }
.fr-msg { margin-top: 8px; font-size: 14px; min-height: 18px; } .fr-msg.ok { color: #3ecf8e; } .fr-msg.bad { color: #f04f5a; }
.fr-tip { margin-top: 24px; font-size: 14px; color: var(--muted); background: var(--bg1, #1b1c26); border-radius: 10px; padding: 12px 14px; line-height: 1.5; word-break: break-all; }
.pop-acts { display: flex; gap: 8px; } .pop-acts .btn { flex: 1; }
.btn.green { background: #248046; color: #fff; }
.warn { background: #f0b2321f; border: 1px solid #f0b23255; color: #f5d27a; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin: 8px 0; }
@media (max-width: 760px) { .fr-tabs { margin-left: 6px; } .fr-tabs button { padding: 5px 8px; } .fr-wrap, .fr-add { padding: 12px; } .fr-form { flex-direction: column; } }

/* ---------- DMs: no member list unless opened · group chats ---------- */
.app.no-members .members { display: none; }
.avatar.grp { display: grid; place-items: center; font-size: 15px; color: #fff; }
.avatar.grp.xl { font-size: 40px; }
.dm-row .name { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dm-row .name small { font-size: 11px; color: var(--muted); font-weight: 500; }
.dm-title { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border-radius: 6px; padding: 2px 4px; }
.dm-title:hover { background: var(--bg3); }
.dm-title .avatar { width: 26px; height: 26px; font-size: 12px; }
.members .dm-prof { margin: -8px; }
.dm-prof .pbody { padding-top: 0; }
.dp-card { background: var(--bg1, #1b1c26); border-radius: 10px; padding: 10px 12px; margin: 10px 0; display: grid; gap: 4px; font-size: 14px; }
.dp-card small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.dp-card .bio { margin: 0; }
.dp-srv { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 6px; cursor: pointer; }
.dp-srv:hover { background: var(--bg3); }
.dp-srv img, .dp-srv span { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; display: grid; place-items: center; font-size: 13px; background: var(--bg3); }
.pp-list { display: grid; gap: 2px; max-height: 42vh; overflow: auto; margin: 8px 0; }
.pp-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.pp-row:hover, .pp-row.on { background: var(--bg3); }
.pp-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-row .info small { color: var(--muted); }
.pp-row input { width: 20px; height: 20px; accent-color: var(--accent, #8b6cff); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pp-chip { background: var(--accent, #8b6cff); color: #fff; border-radius: 6px; padding: 3px 8px; font-size: 13px; cursor: pointer; }
.aud-att { background: var(--bg1, #1b1c26); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; max-width: 440px; }
.aud-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.aud-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-att audio { width: 100%; }
@media (max-width: 760px) { .chat-head:has(.fr-tabs) .title { display: none; } .fr-tabs button { font-size: 14px; padding: 5px 7px; } }

/* ---------- @mention picker ---------- */
.composer { position: relative; }
.ac-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: var(--bg1, #1b1c26); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px #0008; z-index: 30; max-height: 340px; overflow: auto; }
.ac-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 8px 6px; }
.ac-head b { color: var(--text); text-transform: none; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.ac-item .avatar { width: 26px; height: 26px; font-size: 12px; }
.ac-item b { font-weight: 600; } .ac-item small { margin-left: auto; color: var(--muted); }
.ac-item.on, .ac-item:hover { background: var(--bg3); }
.ac-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--bg3); display: grid; place-items: center; font-weight: 800; }
.mention-pill[data-user] { cursor: pointer; }
.mention-pill.role { background: color-mix(in srgb, var(--rc) 22%, transparent); color: var(--rc); }

/* ---------- invites ---------- */
.modal { position: relative; }
.m-x { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; border-radius: 6px; padding: 2px 7px; }
.m-x:hover { color: var(--text); background: var(--bg3); }
.iv-modal { padding-bottom: 0; }
.iv-list { display: grid; gap: 2px; max-height: 300px; overflow: auto; margin: 4px -6px 0; }
.iv-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; }
.iv-row:hover { background: var(--bg3); }
.iv-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; } .iv-row .info small { color: var(--muted); }
.iv-row .btn.mini { padding: 7px 16px; font-size: 13px; background: var(--bg3); border: 1px solid var(--line); }
.iv-row .btn.mini:disabled { opacity: .6; background: none; }
.iv-foot { display: grid; gap: 8px; border-top: 1px solid var(--line); margin: 6px -20px 0; padding: 14px 20px 18px; background: color-mix(in srgb, var(--bg0, #15161e) 50%, transparent); border-radius: 0 0 14px 14px; }
.iv-link { display: flex; gap: 8px; background: var(--bg0, #15161e); border: 1px solid var(--line); border-radius: 8px; padding: 4px 4px 4px 10px; }
.iv-link input { flex: 1; min-width: 0; background: none !important; border: 0 !important; color: var(--text); font: inherit; padding: 6px 0 !important; outline: 0; }
.iv-foot a { color: #6ea8ff; }
.is-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rchip.pick { cursor: pointer; padding: 5px 10px; font-size: 13px; opacity: .65; border: 1px solid transparent; }
.rchip.pick.on { opacity: 1; border-color: var(--c); }
.big-choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg1, #1b1c26); border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--text); font: inherit; cursor: pointer; }
.big-choice:hover { background: var(--bg3); } .big-choice > span:first-child { font-size: 26px; } .big-choice div { flex: 1; display: flex; flex-direction: column; gap: 2px; } .big-choice small { color: var(--muted); }
.js-ex { display: flex; flex-wrap: wrap; gap: 6px; } .js-ex code { background: var(--bg1, #1b1c26); padding: 4px 8px; border-radius: 6px; font-size: 12px; word-break: break-all; }
.inv-embed { background: var(--bg1, #1b1c26); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 6px; max-width: 440px; display: grid; gap: 8px; }
.inv-embed > small { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.ie-row { display: flex; align-items: center; gap: 12px; }
.ie-row .srv-ic { width: 50px; height: 50px; border-radius: 15px; background: var(--bg3); display: grid; place-items: center; font-weight: 800; object-fit: cover; flex: none; }
.ie-row .srv-ic.dead { color: var(--bad); }
.ie-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ie-row .grow span { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.ie-row .dot-ico { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #80848e; } .ie-row .dot-ico.online { background: #3ecf8e; }
.auth-hint { font-size: 13px; margin: 0 0 8px; text-align: center; }
