/* ACCORD · THE APP (owner: App chat 1e6a5643). SPEC v1 §2 LOOK: our own dark product UI. Ink ground, ONE accent (jade), Alpino + Recursive
   Mono, 1 px lines, 6 px corners, calm motion. Never Discord's colours / logo / sounds / exact styling. designreg CLEAR 12-03. */
@font-face { font-family: 'Alpino'; src: url('/app/fonts/alpino-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alpino'; src: url('/app/fonts/alpino-500.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Alpino'; src: url('/app/fonts/alpino-700.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Recursive Mono'; src: url('/app/fonts/recursive-mono.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
:root {
  --ink: #101215; --rail: #0b0c0f; --panel: #15171b; --raise: #1b1e23; --raise2: #22262c; --line: #23262c; --line2: #2e323a;
  --t1: #e9ecef; --t2: #a9afb8; --t3: #737a85; --ac: #2fd5a6; --ac-ink: #04130e; --ac-dim: rgba(47, 213, 166, .12); --ac-line: rgba(47, 213, 166, .38);
  --red: #f2495c; --red-dim: rgba(242, 73, 92, .12); --amber: #f0b429; --amber-dim: rgba(240, 180, 41, .12);
  --sans: 'Alpino', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Recursive Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 6px; --fs: 15px; --sb-thumb: #2e323a; --sb-thumb-hover: #3d424b; --rail-w: 72px; --side-w: 244px; --aside-w: 248px; --top-h: 52px;
  color-scheme: dark;
}
/* no stock scrollbars (larpcheck scrollbars.css) */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; } }
.no-sb { scrollbar-width: none; } .no-sb::-webkit-scrollbar { display: none; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--rail); color: var(--t1); font: 400 var(--fs)/1.42 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill, svg.fill { fill: currentColor; stroke: none; }
.mono, .num { font-family: var(--mono); font-feature-settings: 'tnum' 1; letter-spacing: -.01em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.phone-only { display: none !important; }
:focus-visible { outline: 2px solid var(--ac-line); outline-offset: 1px; }

/* ── frame */
.app { display: grid; grid-template-columns: var(--rail-w) var(--side-w) minmax(0, 1fr) auto; grid-template-rows: 100%; height: 100vh; height: 100dvh; }
.app.boot .side-body, .app.boot .view { opacity: .0; }
.rail { grid-column: 1; background: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; }
.side { grid-column: 2; background: var(--panel); display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.main { grid-column: 3; background: var(--ink); display: flex; flex-direction: column; min-width: 0; outline: 0; position: relative; }
.aside { grid-column: 4; background: var(--panel); width: var(--aside-w); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.aside.wide { width: 420px; }
.aside.off { display: none; }

/* ── rail */
.rail-home, .rail-btn, .rail-item { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--panel); color: var(--t2); transition: border-radius .18s, background .18s, color .18s; flex: none; }
.rail-home img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.rail-home:hover, .rail-btn:hover, .rail-item:hover, .rail-home.on, .rail-btn.on, .rail-item.on { border-radius: 10px; color: var(--t1); background: var(--raise2); }
.rail-btn.add, .rail-btn.add:hover { color: var(--ac); }
.rail-sep { width: 28px; height: 1px; background: var(--line2); flex: none; }
.rail-list { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rail-item img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.rail-item .ini { font: 700 13px/1 var(--sans); letter-spacing: .02em; color: var(--t1); }
.rail-item::before, .rail-home::before, .rail-btn::before { content: ''; position: absolute; left: -13px; width: 4px; height: 0; border-radius: 0 3px 3px 0; background: var(--t1); transition: height .18s; }
.rail-item.unread::before { height: 8px; } .rail-item:hover::before { height: 18px; } .rail-item.on::before, .rail-home.on::before, .rail-btn.on::before { height: 34px; }
.rail .pill, .mention-pill { position: absolute; right: -4px; bottom: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--mono); text-align: center; border: 3px solid var(--rail); box-sizing: content-box; }
.rail-item.rug { box-shadow: inset 0 0 0 2px var(--red); }
.tip { position: fixed; z-index: 90; background: #050607; color: var(--t1); font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: var(--r); pointer-events: none; white-space: nowrap; box-shadow: 0 6px 24px rgba(0,0,0,.5); border: 1px solid var(--line); }

/* ── sidebar */
.side-head { height: var(--top-h); flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.side-head .sh-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.side-head button.sh-btn { display: flex; align-items: center; gap: 6px; width: 100%; height: 100%; text-align: left; min-width: 0; }
.side-head button.sh-btn:hover { background: var(--raise); margin: 0 -12px 0 -14px; padding: 0 12px 0 14px; width: calc(100% + 26px); }
.side-head .chev { margin-left: auto; color: var(--t3); width: 16px; height: 16px; }
.dev-tick { color: var(--ac); width: 16px; height: 16px; flex: none; }
.side-body { flex: 1; overflow-y: auto; padding: 8px 8px 14px; min-height: 0; }
.cat { margin-top: 14px; }
.cat-h { display: flex; align-items: center; gap: 4px; padding: 0 6px 4px 2px; font: 700 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); cursor: pointer; user-select: none; }
.cat-h:hover { color: var(--t2); } .cat-h svg { width: 12px; height: 12px; transition: transform .15s; } .cat.shut .cat-h svg { transform: rotate(-90deg); }
.cat-h .add { margin-left: auto; opacity: 0; } .cat-h:hover .add { opacity: 1; }
.ch { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 8px; margin: 1px 0; border-radius: var(--r); color: var(--t3); min-width: 0; position: relative; }
.ch svg { width: 18px; height: 18px; color: var(--t3); }
.ch .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; font-weight: 500; }
.ch:hover { background: var(--raise); color: var(--t2); }
.ch.on { background: var(--raise2); color: var(--t1); } .ch.on svg { color: var(--t2); }
.ch.unread { color: var(--t1); } .ch.unread .nm { font-weight: 700; }
.ch.unread::before { content: ''; position: absolute; left: -8px; width: 4px; height: 8px; border-radius: 0 3px 3px 0; background: var(--t1); }
.ch.locked { color: var(--t3); opacity: .75; } .ch.locked .hold { font-size: 11px; color: var(--t3); border: 1px solid var(--line2); padding: 1px 6px; border-radius: 10px; white-space: nowrap; }
.ch.locked:hover .hold { color: var(--ac); border-color: var(--ac-line); }
.ch .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--mono); text-align: center; }
.ch.cur-shut { display: none; }
.vroster { margin: 0 0 4px 30px; display: flex; flex-direction: column; gap: 2px; }
.vroster .vr { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--t2); height: 26px; }
.vr .av { width: 22px; height: 22px; font-size: 10px; } .vr.speaking .av { box-shadow: 0 0 0 2px var(--ac); } .vr svg { width: 14px; height: 14px; color: var(--red); }
.dm-row { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px; border-radius: var(--r); color: var(--t2); min-width: 0; }
.dm-row:hover { background: var(--raise); color: var(--t1); } .dm-row.on { background: var(--raise2); color: var(--t1); }
.dm-row .who { min-width: 0; flex: 1; } .dm-row .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row .who small { display: block; color: var(--t3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row.unread .who b { color: var(--t1); font-weight: 700; }
.side-sec { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 6px; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.side-link { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: var(--r); color: var(--t2); font-weight: 500; }
.side-link:hover { background: var(--raise); color: var(--t1); } .side-link.on { background: var(--raise2); color: var(--t1); }
.userbar { flex: none; min-height: 54px; background: #121418; border-top: 1px solid var(--line); display: flex; align-items: center; padding: 0 8px; gap: 4px; }
.userbar .slot-wallet { flex: 1; min-width: 0; }
.userbar .ub-me { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; padding: 4px; border-radius: var(--r); }
.userbar .ub-me:hover { background: var(--raise); }
.ub-me .who { min-width: 0; line-height: 1.2; } .ub-me .who b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ub-me .who small { display: block; font-size: 11px; color: var(--t3); }
.voicebar { flex: none; border-top: 1px solid var(--line); padding: 8px 10px; display: flex; align-items: center; gap: 8px; background: #121418; }
.voicebar .vb-t { flex: 1; min-width: 0; line-height: 1.2; } .voicebar .vb-t b { color: var(--ac); font-size: 13px; display: block; } .voicebar .vb-t small { color: var(--t3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ── avatars, presence, tags */
.av { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--sans); color: var(--ac-ink); flex: none; overflow: visible; user-select: none; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av.sm { width: 32px; height: 32px; font-size: 13px; } .av.lg { width: 80px; height: 80px; font-size: 30px; } .av.xs { width: 24px; height: 24px; font-size: 10px; }
.av .dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--panel); background: var(--t3); box-sizing: content-box; }
.av.lg .dot { width: 16px; height: 16px; border-width: 5px; right: 0; bottom: 0; }
.dot.online { background: var(--ac); } .dot.idle { background: var(--amber); } .dot.dnd { background: var(--red); } .dot.offline { background: #4a505a; }
.tag { display: inline-flex; align-items: center; gap: 3px; height: 17px; padding: 0 6px; border-radius: 4px; font: 700 10px/17px var(--sans); letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; border: 1px solid; }
.tag.dev { color: var(--ac); border-color: var(--ac-line); background: var(--ac-dim); }
.tag.whale { color: #c7adff; border-color: rgba(199,173,255,.35); } .tag.big { color: #76d9ff; border-color: rgba(118,217,255,.35); } .tag.holder { color: #7fe0bf; border-color: rgba(127,224,191,.3); }
.tag.top10 { color: #ffd97a; border-color: rgba(255,217,122,.35); } .tag.mod { color: #ffbf7a; border-color: rgba(255,191,122,.35); } .tag.owner { color: #ff9db0; border-color: rgba(255,157,176,.35); }
.tag.imp { color: var(--amber); border-color: rgba(240,180,41,.5); background: var(--amber-dim); } .tag.plus { color: var(--t1); border-color: var(--line2); } .tag.bot { color: var(--ac-ink); background: var(--ac); border-color: var(--ac); }
.tag.verified { color: var(--ac); border-color: var(--ac-line); }

/* ── top bar */
.top { height: var(--top-h); flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); min-width: 0; background: var(--ink); }
.top-title { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.top-title .hash { color: var(--t3); width: 22px; height: 22px; }
.top-title b { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 40%; }
.top-title .topic { color: var(--t3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-left: 10px; border-left: 1px solid var(--line2); }
.top-actions { display: flex; align-items: center; gap: 2px; }
.ib { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r); color: var(--t2); flex: none; position: relative; }
.ib:hover { color: var(--t1); background: var(--raise); } .ib.on { color: var(--t1); } .ib:disabled { opacity: .4; cursor: default; }
.ib .badge { position: absolute; right: 2px; top: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font: 700 9px/15px var(--mono); }
.search-mini { display: flex; align-items: center; gap: 6px; height: 30px; width: 168px; padding: 0 8px; border-radius: var(--r); background: var(--rail); color: var(--t3); font-size: 13px; border: 1px solid var(--line); transition: width .2s; }
.search-mini:focus-within { width: 240px; border-color: var(--line2); color: var(--t2); }
.search-mini input { background: none; border: 0; outline: 0; min-width: 0; flex: 1; font-size: 13px; color: var(--t1); }
.search-mini svg { width: 16px; height: 16px; }
.ca { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line2); color: var(--t2); font-size: 12px; white-space: nowrap; flex: none; }
.ca:hover { color: var(--t1); border-color: var(--ac-line); } .ca-lbl { font-weight: 700; color: var(--t1); }
.x-link svg { width: 18px; height: 18px; }

/* ── ticker (fallback strip; Chain's part mounts into #coin-ticker) */
.ticker-slot { flex: none; min-height: 40px; border-bottom: 1px solid var(--line); background: #0e1013; }
.tk { display: flex; align-items: center; gap: 18px; height: 40px; padding: 0 16px; font-size: 13px; color: var(--t2); min-width: 0; overflow: hidden; }
.tk .k { color: var(--t3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-right: 5px; }
.tk .v { font-family: var(--mono); color: var(--t1); font-size: 13px; }
.tk .up { color: var(--ac); } .tk .dn { color: var(--red); }
.tk .last { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.tk .last.flash { animation: flash .9s ease-out; }
@keyframes flash { from { background: var(--ac-dim); } to { background: transparent; } }
.tk .buy { margin-left: auto; }

/* ── view + chat */
.view { flex: 1; display: flex; min-height: 0; min-width: 0; position: relative; }
.chat { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.banner { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px; border-bottom: 1px solid var(--line); }
.banner.rug { background: var(--red-dim); color: #ffb3bd; border-color: rgba(242,73,92,.3); } .banner.rug b { color: var(--red); }
.banner.info { background: var(--ac-dim); color: var(--t1); } .banner.warn { background: var(--amber-dim); color: #ffe2a3; }
.banner .grow { flex: 1; min-width: 0; }
.list { flex: 1; overflow-y: auto; overflow-x: hidden; overflow-anchor: none; padding: 0 0 12px; min-height: 0; contain: strict; }
.list-inner { display: flex; flex-direction: column; min-height: 100%; justify-content: flex-end; }
.chan-start { padding: 28px 18px 14px; }
.chan-start .big-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--raise2); display: grid; place-items: center; margin-bottom: 12px; }
.chan-start .big-ic svg { width: 34px; height: 34px; color: var(--t1); }
.chan-start h1 { font-size: 28px; line-height: 1.15; margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
.chan-start p { margin: 0; color: var(--t2); max-width: 640px; }
.loading-older { padding: 12px 18px; display: flex; flex-direction: column; gap: 16px; }
.skel { display: flex; gap: 14px; } .skel i { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--raise); }
.skel div { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 3px; } .skel b { display: block; height: 11px; width: 26%; border-radius: 4px; background: var(--raise); } .skel s { display: block; height: 11px; width: 68%; border-radius: 4px; background: var(--raise); text-decoration: none; }
.skel s:nth-child(3) { width: 44%; }
.daysep { display: flex; align-items: center; gap: 10px; margin: 18px 16px 4px; color: var(--t3); font-size: 12px; font-weight: 600; }
.daysep::before, .daysep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.newsep { display: flex; align-items: center; margin: 8px 16px 0; height: 0; border-top: 1px solid var(--red); position: relative; }
.newsep span { position: absolute; right: 0; top: -9px; background: var(--red); color: #fff; font: 700 10px/16px var(--sans); padding: 0 6px; border-radius: 3px; letter-spacing: .05em; }
.msg { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); padding: 3px 48px 3px 14px; margin-top: 14px; min-height: 26px; }
.msg.grouped { margin-top: 0; padding-top: 1px; padding-bottom: 1px; }
.msg:hover, .msg.menu-on { background: rgba(255,255,255,.022); }
.msg.ment { background: var(--ac-dim); box-shadow: inset 2px 0 0 var(--ac); } .msg.ment:hover { background: rgba(47,213,166,.16); }
.msg.flash { animation: hl 1.6s ease-out; } @keyframes hl { from { background: rgba(47,213,166,.25); } to { background: transparent; } }
.msg.pending { opacity: .55; } .msg.failed .body { color: var(--red); }
.msg .gut { padding-top: 2px; } .msg .gut .av { cursor: pointer; }
.msg .stamp { visibility: hidden; font: 400 10.5px/22px var(--mono); color: var(--t3); text-align: right; padding-right: 10px; }
.msg.grouped:hover .stamp { visibility: visible; }
.msg .head { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: wrap; line-height: 1.35; }
.msg .who { font-weight: 600; cursor: pointer; } .msg .who:hover { text-decoration: underline; }
.msg .time { font: 400 11px/1 var(--mono); color: var(--t3); }
.msg .body { color: #dfe3e8; overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; min-width: 0; }
.msg .edited { font-size: 10.5px; color: var(--t3); margin-left: 3px; }
.msg .rep { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t3); margin: 0 0 2px; min-width: 0; cursor: pointer; grid-column: 2; position: relative; }
.msg .rep::before { content: ''; position: absolute; left: -34px; top: 9px; width: 28px; height: 10px; border: 2px solid var(--line2); border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.msg .rep b { color: var(--t2); font-weight: 600; flex: none; } .msg .rep span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .msg .rep:hover span { color: var(--t1); }
.msg .reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rx { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--raise); border: 1px solid transparent; font-size: 14px; }
.rx:hover { border-color: var(--line2); } .rx.me { background: var(--ac-dim); border-color: var(--ac-line); } .rx b { font: 600 12px/1 var(--mono); color: var(--t2); } .rx.me b { color: var(--ac); }
.rx img { width: 18px; height: 18px; }
.msg .thr { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--t2); cursor: pointer; max-width: 460px; }
.msg .thr:hover { border-color: var(--line2); color: var(--t1); } .msg .thr b { color: var(--ac); font-weight: 600; }
.msg .att { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.msg .att img { max-width: min(420px, 100%); max-height: 340px; border-radius: var(--r); background: var(--raise); cursor: zoom-in; display: block; object-fit: contain; }
.msg .att .gone { display: grid; place-items: center; width: 220px; height: 80px; border: 1px dashed var(--line2); border-radius: var(--r); color: var(--t3); font-size: 13px; }
.msg .pinmark { color: var(--t3); width: 13px; height: 13px; vertical-align: -1px; }
.em { width: 22px; height: 22px; vertical-align: -6px; object-fit: contain; margin: 0 1px; }
.jumbo .em { width: 44px; height: 44px; vertical-align: -10px; }
.ment-tag { background: var(--ac-dim); color: var(--ac); border-radius: 3px; padding: 0 2px; font-weight: 600; cursor: pointer; }
.ment-tag.me { background: rgba(47,213,166,.24); }
.body a, .embed a { color: #8fd9c3; text-decoration: none; } .body a:hover, .embed a:hover { text-decoration: underline; }
.body code { font: 13px/1.4 var(--mono); background: var(--rail); border: 1px solid var(--line); padding: 1px 4px; border-radius: 4px; }
.body pre { font: 13px/1.5 var(--mono); background: var(--rail); border: 1px solid var(--line); padding: 10px 12px; border-radius: var(--r); overflow-x: auto; margin: 4px 0; white-space: pre; max-width: 100%; }
.body pre code { background: none; border: 0; padding: 0; }
.body blockquote { margin: 2px 0; padding: 0 0 0 10px; border-left: 3px solid var(--line2); color: var(--t2); }
.body .spoiler { background: var(--raise2); color: transparent; border-radius: 3px; cursor: pointer; padding: 0 2px; } .body .spoiler.open { color: inherit; background: var(--raise); }
.body h3 { font-size: 17px; margin: 4px 0 2px; }
/* system rows: native features, not banners */
.msg.sys { grid-template-columns: 52px minmax(0, 1fr); margin-top: 6px; padding-top: 3px; padding-bottom: 3px; }
.msg.sys .gut { display: grid; place-items: start center; padding-top: 3px; } .msg.sys .gut svg { width: 18px; height: 18px; }
.msg.sys .body { color: var(--t2); font-size: 14px; white-space: normal; }
.msg.sys .body b { color: var(--t1); font-weight: 600; } .msg.sys .time { margin-left: 6px; }
.msg.trade .gut svg { color: var(--t3); } .msg.trade.buy .gut svg { color: var(--ac); } .msg.trade.sell .gut svg { color: var(--red); }
.msg.trade .body { font-size: 13.5px; } .msg.trade .amt { font-family: var(--mono); color: var(--t1); }
.msg.trade.buy .side { color: var(--ac); font-weight: 600; } .msg.trade.sell .side { color: var(--red); font-weight: 600; }
.msg.tip .gut svg, .msg.buy .gut svg, .msg.claim .gut svg { color: var(--ac); }
.msg.alert { background: var(--amber-dim); } .msg.alert .gut svg { color: var(--amber); } .msg.alert.rugwarn { background: var(--red-dim); } .msg.alert.rugwarn .gut svg { color: var(--red); }
.msg.join .gut svg { color: var(--ac); }
.sx { color: var(--t3); font-size: 12px; margin-left: 6px; } .sx:hover { color: var(--ac); }
.msg.eph { background: rgba(255,255,255,.02); } .msg.eph .note { color: var(--t3); font-size: 12px; margin-top: 2px; }
/* embeds */
.embed { margin-top: 6px; max-width: 480px; border: 1px solid var(--line); border-left: 3px solid var(--line2); background: var(--panel); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 4px; font-size: 14px; }
.embed.coin { border-left-color: var(--ac); grid-template-columns: 40px 1fr auto; align-items: center; gap: 4px 12px; }
.embed.coin img, .embed.coin .ci { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--raise2); grid-row: span 2; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.embed.coin .nm { font-weight: 700; } .embed.coin .sub { color: var(--t3); font-size: 12px; font-family: var(--mono); }
.embed.coin .go { grid-row: span 2; }
.embed.x { border-left-color: #8a96a8; } .embed .eh { display: flex; gap: 6px; align-items: baseline; } .embed .eh b { font-weight: 700; } .embed .eh small { color: var(--t3); }
.embed .et { white-space: pre-wrap; color: var(--t2); overflow-wrap: anywhere; } .embed .ef { color: var(--t3); font-size: 12px; font-family: var(--mono); }
.embed.yt { border-left-color: var(--red); } .embed.yt .et { color: var(--t1); font-weight: 600; }
/* hover toolbar */
.hov { position: absolute; right: 14px; top: -16px; display: none; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 4px 16px rgba(0,0,0,.35); z-index: 3; }
.msg:hover .hov, .msg.menu-on .hov { display: flex; }
.hov button { width: 32px; height: 30px; display: grid; place-items: center; color: var(--t2); font-size: 15px; } .hov button:hover { background: var(--raise); color: var(--t1); }
.hov button svg { width: 18px; height: 18px; }
/* new messages bar + jump */
.newbar { position: absolute; left: 16px; right: 16px; top: 8px; z-index: 4; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r); background: var(--ac); color: var(--ac-ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.newbar .grow { flex: 1; } .newbar button { font-weight: 700; color: var(--ac-ink); }
.jump { position: absolute; right: 22px; bottom: 96px; z-index: 4; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--raise2); border: 1px solid var(--line2); color: var(--t1); font-size: 13px; display: flex; align-items: center; gap: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.jump:hover { border-color: var(--ac-line); }
/* composer */
.composer { flex: none; padding: 0 16px 18px; position: relative; }
.composer .typing { height: 20px; font-size: 12px; color: var(--t2); display: flex; align-items: center; gap: 6px; padding-left: 4px; white-space: nowrap; overflow: hidden; }
.composer .typing b { font-weight: 700; color: var(--t1); } .typing .dots { display: inline-flex; gap: 3px; } .typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--t2); animation: bob 1.2s infinite; } .typing .dots i:nth-child(2) { animation-delay: .15s; } .typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.cbox { background: var(--raise); border-radius: 8px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.cbox:focus-within { border-color: var(--line2); }
.cbox .ctx { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 13px; color: var(--t2); border-bottom: 1px solid var(--line); background: var(--panel); border-radius: 8px 8px 0 0; }
.cbox .ctx b { color: var(--t1); } .cbox .ctx .grow { flex: 1; } .cbox .ctx button { color: var(--t3); } .cbox .ctx button:hover { color: var(--t1); }
.cbox .files { display: flex; gap: 8px; padding: 10px 12px 0; flex-wrap: wrap; }
.cbox .file { position: relative; width: 96px; height: 96px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; font-size: 11px; color: var(--t3); text-align: center; padding: 4px; }
.cbox .file img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .cbox .file .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; display: grid; place-items: center; z-index: 2; }
.cbox .file .st { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.7); color: var(--t1); font-size: 10.5px; padding: 3px 4px; z-index: 2; }
.cbox .row { display: flex; align-items: flex-end; gap: 4px; padding: 4px 6px; }
.cbox textarea { flex: 1; resize: none; border: 0; outline: 0; background: none; min-height: 40px; max-height: 40vh; padding: 10px 4px; line-height: 1.38; color: var(--t1); font-size: var(--fs); overflow-y: auto; }
.cbox textarea::placeholder { color: var(--t3); }
.cbox .ib { width: 36px; height: 40px; }
.cbox .lim { font: 11px/40px var(--mono); color: var(--t3); padding: 0 4px; } .cbox .lim.over { color: var(--red); }
.composer .locked-note, .composer .anon-note { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 8px; background: var(--raise); border: 1px solid var(--line); color: var(--t2); font-size: 14px; }
.composer .locked-note .grow, .composer .anon-note .grow { flex: 1; min-width: 0; }
.composer .slow { position: absolute; right: 22px; top: 0; font: 11px/20px var(--mono); color: var(--t3); }
/* autocomplete */
.ac-pop { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 12px); background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 -8px 30px rgba(0,0,0,.45); padding: 6px; z-index: 6; max-height: 320px; overflow-y: auto; }
.ac-pop .ach { font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); padding: 6px 8px 8px; }
.ac-pop .aci { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r); cursor: pointer; min-height: 36px; }
.ac-pop .aci.on { background: var(--raise2); } .ac-pop .aci small { color: var(--t3); margin-left: auto; font-size: 12px; } .ac-pop .aci img { width: 24px; height: 24px; }
.ac-pop .aci code { font-family: var(--mono); color: var(--t1); font-size: 13px; }

/* ── members */
.mem { flex: 1; overflow-y: auto; padding: 8px 8px 18px; min-height: 0; }
.mem-g { font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); padding: 16px 8px 6px; display: flex; gap: 6px; }
.mem-r { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-radius: var(--r); cursor: pointer; min-width: 0; }
.mem-r:hover { background: var(--raise); } .mem-r.off { opacity: .45; } .mem-r.off:hover { opacity: .8; }
.mem-r .who { min-width: 0; flex: 1; line-height: 1.2; } .mem-r .who b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem-r .who small { display: flex; gap: 4px; align-items: center; font-size: 11px; color: var(--t3); white-space: nowrap; overflow: hidden; }
.aside-h { height: var(--top-h); flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); font-weight: 700; min-width: 0; }
.aside-h .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aside-body { flex: 1; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; }
.thread-pane { display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* ── pages: home, discover, settings, profile, mentions */
.page { flex: 1; overflow-y: auto; min-height: 0; padding: 28px 32px 48px; }
.page-w { max-width: 1080px; margin: 0 auto; }
.page h1 { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.page h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin: 28px 0 10px; }
.page .lede { color: var(--t2); margin: 0 0 18px; max-width: 680px; }
.bigsearch { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line2); max-width: 680px; }
.bigsearch:focus-within { border-color: var(--ac-line); } .bigsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; color: var(--t1); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); min-width: 0; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--line2); transform: translateY(-1px); }
.card .ch1 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--raise2); object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.card .cn { min-width: 0; flex: 1; } .card .cn b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .card .cn small { color: var(--t3); font-family: var(--mono); font-size: 12px; }
.card .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.card .stats div { background: var(--panel); padding: 6px 8px; min-width: 0; } .card .stats .k { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); } .card .stats .v { font: 600 13px/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.card .rugtag { color: var(--red); font-size: 12px; font-weight: 700; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 20px; color: var(--t2); }
.empty .eic { width: 56px; height: 56px; border-radius: 16px; background: var(--raise); display: grid; place-items: center; color: var(--ac); } .empty .eic svg { width: 28px; height: 28px; }
.empty b { color: var(--t1); font-size: 17px; } .empty p { margin: 0; max-width: 420px; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
.steps div { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--panel); } .steps b { display: block; margin-bottom: 4px; } .steps span { color: var(--t2); font-size: 14px; } .steps i { font: 700 11px/1 var(--mono); color: var(--ac); font-style: normal; display: block; margin-bottom: 8px; }
.ment-item { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); margin-bottom: 10px; overflow: hidden; }
.ment-item .mh { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--t2); } .ment-item .mh b { color: var(--t1); }
.ment-item .msg { margin: 0; padding-top: 8px; padding-bottom: 8px; }

/* ── buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r); background: var(--raise2); color: var(--t1); font-weight: 600; font-size: 14px; white-space: nowrap; border: 1px solid var(--line2); flex: none; }
.btn:hover { background: #2a2f36; } .btn:disabled { opacity: .45; cursor: default; }
.btn.ac { background: var(--ac); color: var(--ac-ink); border-color: var(--ac); } .btn.ac:hover { background: #4ee0b6; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; } .btn.ghost { background: none; border-color: transparent; color: var(--t2); } .btn.ghost:hover { color: var(--t1); background: var(--raise); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; } .btn.lg { height: 42px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; }
.in { width: 100%; height: 38px; padding: 0 12px; border-radius: var(--r); background: var(--rail); border: 1px solid var(--line2); outline: 0; color: var(--t1); font-size: 14px; }
.in:focus { border-color: var(--ac-line); } textarea.in { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.lbl { display: block; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin: 16px 0 8px; }
.help { color: var(--t3); font-size: 13px; margin: 6px 0 0; }
.row-x { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; }
.seg button { height: 32px; padding: 0 12px; font-size: 13px; color: var(--t2); border-right: 1px solid var(--line2); } .seg button:last-child { border-right: 0; }
.seg button.on { background: var(--t1); color: var(--ink); font-weight: 600; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--line2); flex: none; transition: background .15s; } .switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--t1); transition: transform .15s; }
.switch.on { background: var(--ac); } .switch.on::after { transform: translateX(16px); background: var(--ac-ink); }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setrow .t { min-width: 0; } .setrow .t b { display: block; font-weight: 600; } .setrow .t small { color: var(--t3); font-size: 13px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; } .kv dt { color: var(--t3); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; } .tbl th { text-align: left; font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 0; } .tbl td.mono { white-space: nowrap; }

/* ── layers: menus, popouts, modals, toasts, lightbox */
.layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.layer > * { pointer-events: auto; }
.menu { position: fixed; min-width: 200px; max-width: 280px; background: #0d0f12; border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.55); padding: 6px; z-index: 60; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 0 10px; border-radius: 4px; font-size: 14px; color: var(--t2); text-align: left; }
.menu button:hover, .menu a:hover, .menu .on { background: var(--raise2); color: var(--t1); } .menu .danger { color: var(--red); } .menu .danger:hover { background: var(--red); color: #fff; }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 5px 4px; } .menu svg { width: 16px; height: 16px; margin-left: auto; } .menu .qr { display: flex; gap: 2px; padding: 2px 2px 6px; } .menu .qr button { justify-content: center; padding: 0; width: 36px; font-size: 18px; }
.pop { position: fixed; width: 320px; background: #0d0f12; border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 16px 48px rgba(0,0,0,.6); z-index: 60; overflow: hidden; }
.pop .ph { height: 64px; background: linear-gradient(120deg, var(--raise2), var(--panel)); position: relative; }
.pop .pav { position: absolute; left: 16px; top: 22px; } .pop .pav .av { box-shadow: 0 0 0 6px #0d0f12; }
.pop .pb { padding: 48px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.pop .pn { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .pop .pbio { color: var(--t2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pop .tags { display: flex; gap: 4px; flex-wrap: wrap; } .pop .sec { border-top: 1px solid var(--line); padding-top: 10px; }
.pop .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-scrim { position: fixed; inset: 0; background: rgba(4,5,7,.72); z-index: 70; display: grid; place-items: center; padding: 20px; animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 480px; max-height: calc(100dvh - 40px); background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.6); display: flex; flex-direction: column; overflow: hidden; }
.modal.wide { max-width: 880px; height: min(720px, calc(100dvh - 40px)); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); } .modal-h h2 { margin: 0; font-size: 17px; flex: 1; min-width: 0; }
.modal-b { padding: 16px 18px 20px; overflow-y: auto; min-height: 0; flex: 1; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #121418; }
.settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); height: 100%; min-height: 0; }
.settings nav { background: #121418; border-right: 1px solid var(--line); padding: 14px 8px; overflow-y: auto; }
.settings nav .ns { font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); padding: 12px 10px 6px; }
.settings nav button { display: flex; width: 100%; height: 34px; align-items: center; padding: 0 10px; border-radius: var(--r); color: var(--t2); font-size: 14px; } .settings nav button:hover { background: var(--raise); color: var(--t1); } .settings nav button.on { background: var(--raise2); color: var(--t1); }
.settings nav button.danger { color: var(--red); }
.settings .sp { padding: 20px 24px 40px; overflow-y: auto; min-height: 0; } .settings .sp h3 { margin: 0 0 14px; font-size: 19px; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 8px; background: #0d0f12; border: 1px solid var(--line2); color: var(--t1); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: tin .18s ease-out; }
.toast.ok { border-color: var(--ac-line); } .toast.err { border-color: rgba(242,73,92,.5); } .toast.warn { border-color: rgba(240,180,41,.5); } .toast a { color: var(--ac); }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lightbox { position: fixed; inset: 0; z-index: 75; background: rgba(0,0,0,.88); display: grid; place-items: center; cursor: zoom-out; } .lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--r); }
.qs { position: fixed; left: 50%; top: 18vh; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.6); z-index: 72; padding: 14px; }
.qs .in { height: 46px; font-size: 16px; } .qs .qsl { margin-top: 8px; max-height: 50vh; overflow-y: auto; } .qs .qsi { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--r); cursor: pointer; color: var(--t2); } .qs .qsi.on { background: var(--raise2); color: var(--t1); } .qs .qsi small { margin-left: auto; color: var(--t3); }
.qs .hint { color: var(--t3); font-size: 12px; margin-top: 10px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; }
kbd { font: 600 11px/1 var(--mono); padding: 3px 5px; border-radius: 4px; border: 1px solid var(--line2); background: var(--rail); color: var(--t2); }

/* ── density + motion settings */
.app.compact .msg { margin-top: 4px; grid-template-columns: 56px minmax(0, 1fr); } .app.compact .msg .gut .av { width: 24px; height: 24px; font-size: 10px; }
.app.compact .msg.grouped { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.app.calm * { animation: none !important; transition: none !important; }

/* ── laptop: members collapse first */
@media (max-width: 1180px) { .aside:not(.wide):not(.force) { display: none; } }
@media (max-width: 1000px) { .search-mini { display: none; } }

/* ── phone: swipe drawers (rail + channels left, members right), bottom tabs */
@media (max-width: 767px) {
  :root { --fs: 15.5px; --side-w: calc(100vw - var(--rail-w) - 52px); --aside-w: calc(100vw - 52px); }
  .phone-only { display: revert !important; }
  .tabs.phone-only { display: flex !important; }
  .app { display: block; position: relative; }
  .rail, .side { position: fixed; top: 0; bottom: 0; z-index: 40; transform: translateX(var(--lx, -100%)); transition: transform .22s ease; }
  .rail { left: 0; width: var(--rail-w); padding-bottom: 72px; } .side { left: var(--rail-w); width: var(--side-w); padding-bottom: 60px; }
  .app.left-open .rail, .app.left-open .side { --lx: 0px; }
  .app.left-open .rail { transform: translateX(0); } .app.left-open .side { transform: translateX(0); }
  .app:not(.left-open) .side { transform: translateX(calc(-100% - var(--rail-w))); }
  .aside, .aside.wide { position: fixed; top: 0; bottom: 0; right: 0; width: var(--aside-w); z-index: 40; transform: translateX(100%); transition: transform .22s ease; display: flex !important; }
  .app.right-open .aside { transform: translateX(0); }
  .aside.off { display: flex !important; }
  .main { position: fixed; inset: 0; bottom: 0; }
  .app.left-open .main { bottom: 60px; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; height: 60px; z-index: 45; background: #0d0f12; border-top: 1px solid var(--line); justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform .22s ease; }
  .app.left-open .tabs, .app.tabs-on .tabs { transform: none; }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--t3); min-width: 64px; } .tabs a.on { color: var(--t1); } .tabs svg { width: 22px; height: 22px; }
  .scrim { z-index: 35; }
  .top { padding: 0 8px; gap: 6px; } .top .search-mini, .top .ca .ca-val { display: none; }
  .top-title .topic { display: none; } .top-title b { max-width: 100%; }
  .msg { padding-right: 12px; padding-left: 8px; grid-template-columns: 48px minmax(0, 1fr); }
  .hov { right: 8px; } .composer { padding: 0 8px calc(10px + env(safe-area-inset-bottom)); }
  .page { padding: 18px 14px 80px; } .steps { grid-template-columns: 1fr; }
  .modal.wide { height: 100dvh; max-height: 100dvh; border-radius: 0; } .modal-scrim { padding: 0; } .modal { max-height: 100dvh; }
  .settings { grid-template-columns: 1fr; } .settings nav { display: flex; overflow-x: auto; padding: 6px; border-right: 0; border-bottom: 1px solid var(--line); } .settings nav .ns { display: none; } .settings nav button { flex: none; width: auto; }
  .pop { left: 8px !important; right: 8px; width: auto; top: auto !important; bottom: 8px; }
  .jump { bottom: 90px; }
}
