/* Sonar · 声场 — desktop team chat */
:root{
  --bg:#08110e;
  --panel:#0c1712;
  --panel-2:#101e18;
  --raised:#152720;
  --ink:#efebdd;
  --ink-2:#c9c9b9;
  --muted:#93a094;
  --faint:#849388;
  --line:#1e3028;
  --line-soft:#16251f;
  --lime:#c9f45b;
  --lime-dim:#9dbd47;
  --lime-soft:rgba(201,244,91,.10);
  --coral:#ff7350;
  --coral-soft:rgba(255,115,80,.12);
  --sans:"PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Microsoft YaHei",sans-serif;
  --mono:"SF Mono","Menlo","Consolas","Liberation Mono",monospace;
  --num:"DIN Alternate","SF Pro Display","Helvetica Neue",Arial,sans-serif;
  --shadow-1:0 1px 0 rgba(255,255,255,.03) inset,0 12px 28px rgba(0,0,0,.22);
  --shadow-2:0 18px 50px rgba(0,0,0,.42),0 2px 0 rgba(255,255,255,.04) inset;
  --spring:cubic-bezier(.2,.9,.25,1.08);
  --ease-out:cubic-bezier(.2,.8,.25,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;overflow:hidden;background:#050b09;color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
body{font-size:14px;line-height:1.6}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
button:disabled{cursor:not-allowed}
a{color:inherit}
[hidden]{display:none!important}
::selection{background:rgba(201,244,91,.24);color:#f6f6ea}
:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
svg{display:block;flex:none}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.app{display:grid;grid-template-columns:64px 252px minmax(0,1fr) 236px;grid-template-rows:minmax(0,1fr);width:100%;height:100dvh;min-height:640px;background:var(--bg);overflow:hidden}
.app.is-field-hidden,.app.is-dm{grid-template-columns:64px 252px minmax(0,1fr)}
.app.is-field-hidden .field,.app.is-dm .field{display:none}
.app.is-thread{grid-template-columns:64px 252px minmax(0,1fr) 424px}
.app.is-thread .composer{display:none}
.app.is-thread .thread-compose{border-color:#4d6932;box-shadow:0 0 0 1px rgba(201,244,91,.10)}
.thread-hold{display:none;flex:none;height:80px;align-items:center;gap:10px;padding:0 22px;border-top:1px solid var(--line-soft);background:#0a1410}
.app.is-thread .thread-hold{display:flex}
.th-dot{width:6px;height:6px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 3px rgba(201,244,91,.09);flex:none}
.th-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.th-copy b{font-size:12.5px;color:#dfe2d3;font-weight:600}
.th-copy span{font-size:11px;color:#8b9a8f}
.th-btn{margin-left:auto;height:28px;padding:0 10px;border-radius:6px;border:1px solid #2f4536;color:#c2ccbf;font-size:11px;white-space:nowrap}
.th-btn:hover{border-color:#4b6635;color:var(--lime);background:#101f18}
.app.is-thread .field{display:none}
.app.is-thread .thread{display:flex}

/* ── rail ───────────────────────────────────── */
.rail{background:#060e0b;border-right:1px solid #12201a;display:flex;flex-direction:column;align-items:center;padding:12px 0 14px;gap:6px;min-height:0}
.brand{width:38px;height:38px;border:1px solid #263c30;border-radius:10px;display:grid;place-items:center;color:var(--lime);margin-bottom:10px;background:linear-gradient(180deg,#0e1d16,#0a1410)}
.rail-btn{width:38px;height:36px;border-radius:9px;display:grid;place-items:center;color:#84958a;position:relative;transition:background .16s var(--ease-out),color .16s var(--ease-out)}
.rail-btn:hover{background:#102019;color:#d7dfd3}
.rail-btn.on{background:#14241c;color:var(--lime);box-shadow:inset 0 0 0 1px #21382b}
.rail-btn .dot{position:absolute;right:8px;top:8px;width:5px;height:5px;border-radius:50%;background:var(--coral);box-shadow:0 0 0 2px #060e0b}
.rail-btn .dot.off{display:none}
.rail-spacer{flex:1}
.me-mini{width:34px;height:34px;border-radius:50%;position:relative;margin-top:2px}
.me-mini b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#2f5550;color:#d9eeea;font-size:12px;font-weight:600}
.me-mini i{position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border-radius:50%;background:var(--lime);border:2px solid #060e0b}
.me-mini i.away{background:#e2b34b}
.me-mini i.busy{background:var(--coral)}

/* ── channel column ─────────────────────────── */
.channels{background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;position:relative}
.ws{padding:14px 14px 10px;display:flex;align-items:center;gap:9px;flex:none}
.ws-mark{width:28px;height:28px;border-radius:8px;background:#1b2d24;color:var(--lime);display:grid;place-items:center;font-size:12px;font-weight:700;border:1px solid #2b4134}
.ws-name{font-size:14px;font-weight:600;letter-spacing:.01em}
.ws-sub{font-size:11.5px;color:#93a196;margin-top:2px;font-family:var(--num);letter-spacing:.03em}
.ws-chev{margin-left:auto;color:#849388}
.search{margin:2px 12px 8px;height:32px;border:1px solid var(--line);border-radius:7px;background:#08120e;display:flex;align-items:center;gap:8px;padding:0 9px;color:#849388;flex:none;transition:border-color .16s}
.search:focus-within{border-color:#42592f;box-shadow:0 0 0 3px rgba(201,244,91,.07)}
.search svg{color:#7f8f84}
.search input{flex:1;min-width:0;background:none;border:0;outline:none;color:#dfe0d2;font:12px var(--sans)}
.search input::placeholder{color:#849388}
.search kbd{font-family:var(--mono);font-size:10px;color:#9aa89d;border:1px solid #23362c;border-radius:4px;padding:1px 4px;background:#0d1913}
.nav{flex:1;min-height:0;overflow-y:auto;padding:0 8px 8px;position:relative;scrollbar-width:thin;scrollbar-color:#23382c transparent}
.nav::-webkit-scrollbar{width:8px}
.nav::-webkit-scrollbar-thumb{background:#23382c;border-radius:4px;border:2px solid var(--panel)}
.sec{display:flex;align-items:center;gap:6px;padding:13px 7px 5px;color:#8b9a8f;font-size:11.5px;font-weight:500;letter-spacing:.04em;flex:none}
.sec:after{content:"";flex:1;height:1px;background:var(--line-soft)}
.row{display:flex;align-items:center;gap:8px;width:100%;height:30px;padding:0 8px;border-radius:6px;color:#aab4aa;font-size:13.5px;position:relative;text-align:left;transition:background .14s,color .14s}
.row:hover{background:#102019;color:#e4e6d8}
.row .hash{color:#8a9b8e;font-family:var(--mono);font-size:13px;width:12px;text-align:center;flex:none}
.row .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.row .count{margin-left:auto;font-family:var(--num);font-size:11.5px;color:#93a196;letter-spacing:.04em;flex:none}
.row .live-dot{width:6px;height:6px;border-radius:50%;background:var(--lime);margin-left:auto;box-shadow:0 0 0 3px rgba(201,244,91,.09);flex:none}
.row .mention{min-width:16px;height:16px;padding:0 4px;border-radius:5px;background:var(--coral);color:#1c0d08;font-size:10.5px;font-weight:700;display:grid;place-items:center;font-family:var(--num);flex:none}
.row .writing{margin-left:auto;font-size:10.5px;color:var(--lime);flex:none}
.row.active{background:#15271f;color:var(--ink);font-weight:600;box-shadow:inset 0 0 0 1px #20372a}
.row.active .hash{color:var(--lime)}
.row.active .count{color:var(--lime);font-weight:600}
.row.dm .ava{width:20px;height:20px;border-radius:6px;font-size:10px}
.nav-indicator{position:absolute;left:0;top:0;width:3px;height:14px;border-radius:2px;background:var(--lime);transform:translateY(0);transition:transform .26s var(--spring);pointer-events:none;z-index:2}
.search-empty{padding:12px 8px;color:#93a196;font-size:12px;line-height:1.6}
.presence{margin:8px 12px;padding:10px 10px;border:1px solid var(--line);border-radius:8px;background:#0a1410;flex:none}
.presence-top{display:flex;align-items:center;gap:7px;font-size:11.5px;color:#a6b2a6}
.presence-top b{color:var(--ink-2);font-weight:500}
.faces{display:flex;margin-left:auto}
.faces .ava{width:19px;height:19px;border-radius:50%;font-size:9.5px;border:2px solid #0a1410;margin-left:-6px}
.me{display:flex;align-items:center;gap:9px;padding:9px 12px 10px;border-top:1px solid var(--line-soft);flex:none;background:var(--panel);text-align:left;width:100%}
.me:hover{background:#101e18}
.me .ava{width:28px;height:28px;border-radius:50%;font-size:11px}
.me .nm{font-size:13px;font-weight:600}
.me .st{font-size:11px;color:#93a196;margin-top:1px}
.me .ico{margin-left:auto;color:#849388}

/* ── avatars ────────────────────────────────── */
.ava{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;font-size:12px;font-weight:600;flex:none;background:#32443a;color:#e9eee5;border:1px solid rgba(255,255,255,.055);line-height:1}
.p1{background:#3d5a46;color:#dfead2}.p2{background:#3b4d5f;color:#dce7f1}.p3{background:#5a4238;color:#f0ddd4}
.p4{background:#53465a;color:#e9deee}.p5{background:#54503b;color:#efe9d1}.p6{background:#2f5550;color:#d8eeea}
.p7{background:#494355;color:#e4deee}

/* ── main ───────────────────────────────────── */
.main{display:flex;flex-direction:column;min-width:0;min-height:0;background:radial-gradient(1100px 420px at 42% -160px,#12231b 0%,var(--bg) 62%);position:relative}
.chan-head{height:54px;flex:none;display:flex;align-items:center;gap:11px;padding:0 22px;border-bottom:1px solid var(--line-soft);min-width:0}
.chan-head .hash{font-family:var(--mono);font-size:20px;color:var(--lime);font-weight:500;flex:none}
.chan-title{font-size:17px;font-weight:600;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chan-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:#93a196;margin-left:3px;padding-left:11px;border-left:1px solid var(--line);white-space:nowrap;flex:none}
.chan-meta .dot{width:5px;height:5px;border-radius:50%;background:var(--lime)}
.countdown{margin-left:6px;font-family:var(--num);font-size:11.5px;color:#b9c9a5;border:1px solid #2a3c2f;background:#0e1a14;border-radius:5px;padding:3px 7px;letter-spacing:.04em;white-space:nowrap;flex:none}
.head-actions{margin-left:auto;display:flex;align-items:center;gap:4px;color:#86968b;flex:none}
.icon-btn{width:30px;height:30px;border-radius:6px;display:grid;place-items:center;color:#86968b;position:relative}
.icon-btn:hover{background:#13231b;color:var(--ink)}
.icon-btn .mini-dot{position:absolute;right:7px;top:6px;width:4px;height:4px;border-radius:50%;background:var(--coral)}
.head-sep{width:1px;height:18px;background:var(--line);margin:0 5px}

/* live strip */
.livebar{height:38px;flex:none;display:flex;align-items:center;gap:10px;padding:0 22px;border-bottom:1px solid var(--line-soft);background:rgba(9,18,14,.55);min-width:0}
.livebar .stack{display:flex;flex:none}
.livebar .ava{width:20px;height:20px;border-radius:50%;font-size:9.5px;border:2px solid var(--bg);margin-right:-6px}
.typing{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#a8b5aa;margin-left:4px;min-width:0;white-space:nowrap;overflow:hidden}
.typing b{color:var(--ink-2);font-weight:500}
.tdots{display:flex;gap:3px;margin-left:1px;flex:none}
.tdots i{width:4px;height:4px;border-radius:50%;background:var(--lime);opacity:.5;animation:tdot 1.15s infinite}
.tdots i:nth-child(2){opacity:.75;animation-delay:.15s}.tdots i:nth-child(3){opacity:1;animation-delay:.3s}
@keyframes tdot{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-1.5px)}}
.signal{margin-left:auto;display:flex;align-items:center;gap:9px;flex:none}
.wave{display:flex;align-items:center;gap:2.5px;height:18px}
.wave i{width:2px;border-radius:1px;background:var(--lime);opacity:.72;animation:wave 1.2s ease-in-out infinite}
.wave i:nth-child(1){height:4px;animation-delay:0s}.wave i:nth-child(2){height:9px;animation-delay:.08s}.wave i:nth-child(3){height:14px;animation-delay:.16s}
.wave i:nth-child(4){height:7px;animation-delay:.24s}.wave i:nth-child(5){height:16px;animation-delay:.32s}.wave i:nth-child(6){height:10px;animation-delay:.4s}
.wave i:nth-child(7){height:5px;animation-delay:.48s}.wave i:nth-child(8){height:12px;animation-delay:.56s}.wave i:nth-child(9){height:8px;animation-delay:.64s}
.wave i:nth-child(10){height:15px;animation-delay:.72s}.wave i:nth-child(11){height:6px;animation-delay:.8s}.wave i:nth-child(12){height:3px;animation-delay:.88s}
@keyframes wave{0%,100%{transform:scaleY(.55);opacity:.45}50%{transform:scaleY(1);opacity:.95}}
.signal .lbl{font-size:11.5px;color:#85958a;letter-spacing:.03em;white-space:nowrap}
.clock{font-family:var(--mono);font-size:11.5px;color:#93a398;border-left:1px solid var(--line);padding-left:10px;letter-spacing:.03em;white-space:nowrap;font-variant-numeric:tabular-nums}

/* stream */
.stream-wrap{position:relative;flex:1;min-height:0;overflow:hidden}
.stream{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;padding:12px 22px 10px;scrollbar-width:thin;scrollbar-color:#23382c transparent}
.stream::-webkit-scrollbar{width:9px}
.stream::-webkit-scrollbar-thumb{background:#23382c;border-radius:5px;border:2px solid var(--bg)}
.stream::-webkit-scrollbar-track{background:transparent}
.fade-top{position:absolute;left:0;right:0;top:0;height:14px;background:linear-gradient(var(--bg),rgba(8,17,14,0));z-index:3;pointer-events:none}
.day{display:flex;align-items:center;gap:12px;margin:2px 0 14px;color:#8b9a8f;font-size:11.5px;letter-spacing:.04em}
.day:before,.day:after{content:"";height:1px;background:var(--line-soft);flex:1}
.day span{font-family:var(--num);letter-spacing:.06em}
.msg{display:grid;grid-template-columns:32px minmax(0,1fr);gap:11px;padding:3px 10px 4px 6px;border-radius:9px;position:relative;transition:background .14s;scroll-margin-top:56px}
.msg + .msg{margin-top:1px}
.msg:hover,.msg:focus-within{background:rgba(18,34,26,.48)}
.msg.flash{animation:flash 1.8s var(--ease-out)}
@keyframes flash{0%,55%{background:rgba(201,244,91,.14);box-shadow:inset 0 0 0 1px rgba(201,244,91,.3)}100%{background:transparent;box-shadow:none}}
.msg .body{min-width:0}
.msg-top{display:flex;align-items:baseline;gap:8px;min-height:21px}
.who{font-size:13.5px;font-weight:600;color:#eae6d8;letter-spacing:.01em}
.role{font-size:11px;color:#a3b0a4;border:0;background:none;padding:0;font-weight:400;letter-spacing:.02em}
.role:before{content:"· ";color:#6f8275}
.time{font-family:var(--mono);font-size:11.5px;color:#9aab9d;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.edited{font-size:10.5px;color:#849388}
.text{font-size:14px;line-height:1.68;color:#d9d8ca;max-width:600px;text-wrap:pretty;letter-spacing:.005em;overflow-wrap:anywhere}
.text b{color:#f2eee0;font-weight:600}
.text .at{color:var(--lime);background:var(--lime-soft);border-radius:4px;padding:0 3px;font-weight:500}
.text .quiet{color:#9bab9f}
.msg-extra{margin-top:7px}
.msg-tools{position:absolute;top:-10px;right:4px;display:flex;align-items:center;gap:1px;padding:2px;border:1px solid #2b4033;border-radius:7px;background:#0e1b15;box-shadow:0 8px 20px rgba(0,0,0,.3);opacity:0;transform:translateY(-3px);transition:opacity .14s,transform .14s;z-index:5}
.msg:hover .msg-tools,.msg:focus-within .msg-tools,.msg-tools:focus-within{opacity:1;transform:none}
.msg-tools button{height:24px;min-width:24px;padding:0 7px;border-radius:5px;display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#aab7ab}
.msg-tools button:hover{background:#182a20;color:var(--ink)}
.msg-tools .sep{width:1px;height:13px;background:#26392e;margin:0 2px}

.reacts{display:flex;align-items:center;gap:5px;margin-top:7px;flex-wrap:wrap}
.react{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 7px;border:1px solid #2e4536;border-radius:6px;background:#0d1a14;font-family:var(--num);font-size:11.5px;color:#b7c3b7;letter-spacing:.03em;transition:transform .14s var(--spring),border-color .14s,background .14s}
.react:hover{border-color:#4a6634;transform:translateY(-1px)}
.react .e{font-size:12.5px;font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;line-height:1}
.react.mine{border-color:#587437;background:rgba(201,244,91,.12);color:#dff0be}
.react.pop{animation:pop .34s var(--spring)}
@keyframes pop{0%{transform:scale(1)}38%{transform:scale(1.16)}100%{transform:scale(1)}}
.react.add{color:#9aab9d;font-size:14px;padding:0 7px}
.react-meta{font-size:11px;color:#8b9a8f;margin-left:3px}

.img-msg{margin-top:8px;width:288px;max-width:100%}
.img-msg img{display:block;width:100%;height:136px;object-fit:cover;border-radius:8px;border:1px solid #2a3b31;filter:saturate(.94) brightness(.96);cursor:zoom-in;transition:filter .16s,border-color .16s}
.img-msg img:hover{filter:saturate(1) brightness(1);border-color:#45603a}
.img-meta{display:flex;align-items:center;gap:6px;margin-top:6px;color:#9aab9d;font-size:11.5px;font-family:var(--num);letter-spacing:.03em}
.img-meta .nm{font-family:var(--sans);font-size:11.5px;color:#a8b5aa}
.img-meta .sz{margin-left:auto}
.code{margin-top:8px;width:480px;max-width:100%;border:1px solid #263a2e;border-radius:8px;overflow:hidden;background:#060f0b}
.code-top{height:28px;display:flex;align-items:center;gap:7px;padding:0 10px;border-bottom:1px solid #182b21;color:#9aab9f;font-family:var(--mono);font-size:11px;letter-spacing:.02em;background:#0a1510}
.code-top .lang{color:var(--lime-dim)}
.code-top .cp{margin-left:auto;color:#a6b4a8;font-size:11px;font-family:var(--sans);padding:2px 5px;border-radius:4px}
.code-top .cp:hover{background:#17271f;color:var(--ink)}
.code pre{padding:9px 11px 10px;font-family:var(--mono);font-size:11.5px;line-height:1.68;color:#c9d3c7;overflow:auto;scrollbar-width:thin}
.code .k{color:#c9f45b}.code .c{color:#7f9184}.code .s{color:#d9b98a}.code .n{color:#a9c8d6}
.file{display:flex;align-items:center;gap:10px;width:340px;max-width:100%;margin-top:8px;padding:9px 10px;border:1px solid #2a3c30;border-radius:8px;background:#0c1812}
.file-ico{width:34px;height:38px;border-radius:5px;border:1px solid #38503f;background:#13251c;display:grid;place-items:center;color:var(--lime);font-family:var(--num);font-size:9.5px;letter-spacing:.06em;flex:none}
.file .fn{font-size:12.5px;color:#dfe0d2;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}
.file .fm{font-size:11.5px;color:#a3b0a4;margin-top:3px;font-family:var(--num);letter-spacing:.03em}
.file .dl{margin-left:auto;color:#9aab9d;flex:none}
.poll{width:480px;max-width:100%;margin-top:8px;border:1px solid #2a3c30;border-radius:9px;background:#0c1812;padding:9px 11px}
.poll-h{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#e6e3d5;font-weight:600}
.poll-h .tag{font-size:10px;color:#b7d486;border:1px solid #3d5230;background:#132013;border-radius:4px;padding:1px 5px;font-weight:400}
.poll-h .dl{margin-left:auto;font-size:11px;color:#93a196;font-weight:400}
.poll-q{font-size:13.5px;color:#dcdccd;margin:6px 0 8px;font-weight:500}
.opt{display:flex;align-items:center;gap:9px;width:100%;height:24px;border-radius:6px;padding:0 8px;border:1px solid transparent;position:relative;overflow:hidden;text-align:left}
.opt + .opt{margin-top:4px}
.opt .fill{position:absolute;inset:0;background:rgba(201,244,91,.09);border-right:1px solid rgba(201,244,91,.32);transition:width .32s var(--ease-out),background .2s}
.opt.sel .fill{background:rgba(201,244,91,.14);border-right-color:rgba(201,244,91,.55)}
.opt .radio{width:12px;height:12px;border-radius:50%;border:1px solid #5d7462;flex:none;position:relative;z-index:1;transition:all .16s}
.opt.sel .radio{border-color:var(--lime);background:var(--lime);box-shadow:inset 0 0 0 3px #0c1812}
.opt .lbl{font-size:12.5px;color:#cfcec0;position:relative;z-index:1}
.opt.sel .lbl{color:#eef4dc;font-weight:500}
.opt .pct{margin-left:auto;font-family:var(--num);font-size:11.5px;color:#a3b0a5;position:relative;z-index:1;font-variant-numeric:tabular-nums}
.opt:hover{border-color:#39503f}
.poll-f{display:flex;align-items:center;gap:7px;margin-top:8px;padding-top:7px;border-top:1px solid #1b2c23;font-size:11.5px;color:#a3b0a4}
.poll-f .faces .ava{width:17px;height:17px;border-radius:50%;font-size:8.5px;border:2px solid #0c1812;margin-left:-5px}
.poll-f .more{margin-left:auto;color:#b3c0b3;font-size:11px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#3d5230}
.poll-f .more:hover{color:var(--ink)}
.thread-link{display:inline-flex;align-items:center;gap:8px;margin-top:8px;height:26px;padding:0 9px 0 7px;border:1px solid #2b4032;border-radius:6px;background:#0d1a14;color:#c0cbbf;font-size:11.5px;transition:border-color .16s,background .16s}
.thread-link:hover{border-color:#4b6635;background:#12221a;color:var(--ink)}
.thread-link .n{color:var(--lime);font-family:var(--num);font-size:12px;font-weight:600}
.thread-link .faces .ava{width:17px;height:17px;border-radius:4px;font-size:8.5px;margin-left:-4px;border:2px solid #0d1a14}
.thread-link .last{color:#93a196;font-family:var(--num);letter-spacing:.02em}
.thread-link .new{color:#0f1b0b;background:var(--lime);border-radius:3px;padding:0 4px;font-size:9.5px;font-weight:700}
.msg.threading{background:linear-gradient(90deg,rgba(201,244,91,.05),rgba(201,244,91,0) 72%)}
.msg.threading:hover{background:linear-gradient(90deg,rgba(201,244,91,.08),rgba(201,244,91,0) 72%)}
.msg.active-thread{background:rgba(201,244,91,.075);box-shadow:inset 0 0 0 1px rgba(201,244,91,.18)}
.msg.new-in{animation:land .42s var(--spring)}
@keyframes land{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:none}}
.msg .new-tag{display:inline-block;font-size:9.5px;color:#0f1b0b;background:var(--lime);border-radius:3px;padding:0 4px;margin-left:6px;vertical-align:1px;font-weight:700}

/* jump */
.jump-new{position:absolute;right:18px;bottom:12px;z-index:6;height:28px;padding:0 11px;border-radius:15px;background:var(--lime);color:#101a0b;font-size:11.5px;font-weight:600;display:inline-flex;align-items:center;gap:5px;box-shadow:0 8px 22px rgba(0,0,0,.35);animation:land .32s var(--spring)}
.jump-new:hover{background:#d8ff74}

/* composer */
.composer{flex:none;padding:6px 22px 8px;background:linear-gradient(rgba(8,17,14,0),var(--bg) 40%);position:relative;z-index:8}
.composer-inner{position:relative}
.compose-box{border:1px solid #2a3e31;border-radius:10px;background:#0e1b15;box-shadow:var(--shadow-1);transition:border-color .18s,box-shadow .18s}
.compose-box:focus-within{border-color:#4d6932;box-shadow:0 0 0 1px rgba(201,244,91,.12),0 12px 28px rgba(0,0,0,.2)}
.compose-input{padding:7px 13px 2px;font-size:13.5px;color:#d9d8ca;line-height:1.6;min-height:30px;max-height:132px;overflow-y:auto;outline:none;word-break:break-word;white-space:pre-wrap;scrollbar-width:thin}
.compose-input:empty:before{content:attr(data-placeholder);color:#849388;pointer-events:none}
.compose-input .mention{color:var(--lime);background:var(--lime-soft);border-radius:4px;padding:0 3px}
.compose-input .caret{display:inline-block;width:1px;height:16px;background:var(--lime);margin-left:1px;vertical-align:-3px}
.compose-tools{display:flex;align-items:center;gap:2px;padding:3px 8px 5px 9px}
.tool{width:28px;height:28px;border-radius:5px;display:grid;place-items:center;color:#93a196}
.tool:hover{background:#17271f;color:#d8dbcb}
.tool-sep{width:1px;height:16px;background:#24372b;margin:0 5px}
.send-hint{margin-left:auto;font-size:10.5px;color:#93a196;letter-spacing:.02em;white-space:nowrap;padding-right:4px}
.send-hint kbd{font-family:var(--mono);font-size:10px;color:#b0bcae;border:1px solid #2a3d30;border-radius:3px;padding:1px 4px;background:#0a1510}
.drag-hint{display:flex;align-items:center;gap:6px;padding:0 4px 0;color:#7f9085;font-size:10.5px;line-height:1.4;margin-top:2px}
.drag-hint .k{font-family:var(--mono);border:1px solid #26392d;border-radius:3px;padding:0 3px;font-size:9.5px;color:#8fa095}
.send{width:30px;height:30px;border-radius:50%;background:var(--lime);color:#101a0b;display:grid;place-items:center;margin-left:6px;box-shadow:0 0 0 4px rgba(201,244,91,.06);transition:transform .12s,background .16s;position:relative;flex:none}
.send:hover{background:#d6ff70}
.send:active{transform:scale(.94)}
.send:disabled{background:#2b3f31;color:#7f9184;box-shadow:none}
.send.pulse:after{content:"";position:absolute;inset:-1px;border-radius:50%;border:1px solid var(--lime);animation:ring .55s var(--ease-out) forwards}
@keyframes ring{0%{transform:scale(1);opacity:.9}100%{transform:scale(2.05);opacity:0}}
.file-strip{padding:2px 4px 3px}
.attached-file{display:flex;align-items:center;gap:9px;padding:8px 9px;border:1px solid #324a3a;border-radius:8px;background:#0b1812;margin-top:6px}
.attached-file .file-ico{width:30px;height:34px}
.attached-file .fn{font-size:12px;color:#e4e4d5;font-weight:500}
.attached-file .fm{font-size:10.5px;color:#93a196;margin-top:2px;font-family:var(--num)}
.attached-file .rm{margin-left:auto;width:24px;height:24px;border-radius:5px;display:grid;place-items:center;color:#93a196}
.attached-file .rm:hover{background:#1b2d23;color:var(--coral)}
.mention-menu{position:absolute;bottom:calc(100% + 8px);left:-2px;width:320px;background:#12211a;border:1px solid #39503f;border-radius:10px;box-shadow:var(--shadow-2);z-index:30;overflow:hidden;animation:menu .18s var(--ease-out)}
@keyframes menu{0%{opacity:0;transform:translateY(5px) scale(.985)}100%{opacity:1;transform:none}}
.mm-head{display:flex;align-items:center;gap:8px;padding:8px 11px;border-bottom:1px solid #22362a;font-size:11px;color:#aebbab;letter-spacing:.03em}
.mm-head .n{font-family:var(--num);color:#849388}
.mm-head .hint{margin-left:auto;font-size:9.5px;color:#849388}
.mm-list{padding:4px;max-height:250px;overflow-y:auto}
.mm-item{display:flex;align-items:center;gap:9px;width:100%;padding:7px 8px;border-radius:6px;text-align:left}
.mm-item:hover,.mm-item.active{background:#1a2d23}
.mm-item.active{box-shadow:inset 0 0 0 1px #3a5430}
.mm-item .ava{width:26px;height:26px;border-radius:7px;font-size:11px}
.mm-item .nm{font-size:12.5px;color:#e7e5d7;font-weight:500;display:inline}
.mm-item .role{font-size:10.5px;color:#93a196;margin-top:0;margin-left:6px;border:0;padding:0;display:inline}
.mm-item .role:before{content:"· ";color:#6d8275}
  .mm-item .pres{margin-left:auto;font-size:9.5px;color:#8b9a8f;font-family:var(--num)}
.mm-item .pres i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--lime);margin-right:3px;vertical-align:1px}
.mm-foot{padding:6px 11px;border-top:1px solid #22362a;font-size:9.5px;color:#849388;display:flex;gap:10px;font-family:var(--mono)}

/* thread */
.thread{display:none;flex-direction:column;min-height:0;background:#0b1511;border-left:1px solid var(--line);box-shadow:-18px 0 40px rgba(0,0,0,.18);position:relative;z-index:15;animation:threadin .28s var(--ease-out)}
@keyframes threadin{0%{opacity:0;transform:translateX(14px)}100%{opacity:1;transform:none}}
.thread-head{height:56px;flex:none;display:flex;align-items:center;gap:9px;padding:0 16px;border-bottom:1px solid var(--line-soft)}
.thread-kicker{font-family:var(--mono);font-size:10px;color:var(--lime);letter-spacing:.08em}
.thread-head h2{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thread-head .sub{font-size:11px;color:#93a196;margin-top:2px}
.thread-head .close{margin-left:auto;width:28px;height:28px;border-radius:6px;display:grid;place-items:center;color:#93a196}
.thread-head .close:hover{background:#15271f;color:var(--ink)}
.thread-scroll{flex:1;min-height:0;overflow-y:auto;padding:12px 16px 6px;scrollbar-width:thin;scrollbar-color:#23382c transparent}
.thread-scroll::-webkit-scrollbar{width:8px}
.thread-scroll::-webkit-scrollbar-thumb{background:#23382c;border-radius:4px}
.thread-parent{padding:11px 12px;border:1px solid #263a2e;border-radius:9px;background:#0e1b15}
.tp-top{display:flex;align-items:center;gap:8px}
.tp-top .ava{width:28px;height:28px}
.tp-name{font-size:12.5px;font-weight:600}
.tp-role{font-size:10.5px;color:#93a196}
.tp-time{font-family:var(--mono);font-size:10.5px;color:#8b9a8f;margin-left:auto}
.tp-text{font-size:13.5px;line-height:1.68;color:#d9d8ca;margin-top:7px}
.tp-reacts{display:flex;gap:5px;margin-top:7px;flex-wrap:wrap}
.tp-reacts .react{height:22px;font-size:10.5px;padding:0 6px}
.thread-divider{display:flex;align-items:center;gap:9px;margin:14px 0 10px;font-size:10.5px;color:#8b9a8f;letter-spacing:.03em}
.thread-divider:after{content:"";flex:1;height:1px;background:var(--line-soft)}
.thread-replies{position:relative;padding-left:14px}
.thread-replies:before{content:"";position:absolute;left:5px;top:4px;bottom:2px;width:1px;background:#263a2e}
.treply{position:relative;padding:4px 0 9px}
.treply:before{content:"";position:absolute;left:-13px;top:15px;width:9px;height:1px;background:#263a2e}
.treply .tr-top{display:flex;align-items:baseline;gap:6px}
.treply .ava{width:22px;height:22px;border-radius:5px;font-size:9.5px;vertical-align:middle;margin-right:1px}
.treply .nm{font-size:12px;font-weight:600;color:#e5e2d4}
.treply .role{font-size:9.5px;color:#8b9a8f;border-color:#24382c;padding:0 4px}
.treply .tm{font-family:var(--mono);font-size:9.5px;color:#8b9a8f;margin-left:auto}
.treply .tx{font-size:13px;line-height:1.66;color:#d4d4c6;margin-top:4px;padding-left:28px;max-width:350px}
.treply .rx{margin-top:5px;padding-left:28px}
.treply .rx .react{height:21px;font-size:10px;padding:0 6px}
.thread-empty{padding:18px 4px;color:#93a196;font-size:13px;line-height:1.7}
.thread-typing{display:flex;align-items:center;gap:6px;padding:8px 2px 4px 28px;font-size:10.5px;color:#93a196}
.thread-typing .tdots i{width:3px;height:3px}
.thread-composer{flex:none;padding:8px 14px 12px;border-top:1px solid var(--line-soft);background:#0a1410}
.thread-compose{border:1px solid #2a3e31;border-radius:8px;background:#0e1b15;padding:7px 8px 6px;transition:border-color .16s}
.thread-compose:focus-within{border-color:#4d6932}
.thread-input{min-height:24px;max-height:90px;overflow-y:auto;outline:none;font-size:13px;line-height:1.6;color:#d9d8ca;padding:1px 3px 3px;white-space:pre-wrap;word-break:break-word}
.thread-input:empty:before{content:"回复这个话题…";color:#849388}
.thread-tools{display:flex;align-items:center;gap:2px;padding-top:3px}
.thread-tools .hint{font-size:9.5px;color:#849388;margin-left:6px}
.thread-send{margin-left:auto;width:26px;height:26px;border-radius:50%;background:var(--lime);color:#101a0b;display:grid;place-items:center}
.thread-send:disabled{background:#2b3f31;color:#7f9184}
.thread-foot{font-size:9.5px;color:#7f9085;margin-top:6px;text-align:center;letter-spacing:.02em}

/* field rail */
.field{background:#0a1410;border-left:1px solid var(--line);display:flex;flex-direction:column;padding:14px 14px 12px;gap:15px;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#23382c transparent}
.field::-webkit-scrollbar{width:8px}
.field::-webkit-scrollbar-thumb{background:#23382c;border-radius:4px;border:2px solid #0a1410}
.field-head{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#d6d9ca;font-weight:600}
.field-head .live{width:6px;height:6px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 3px rgba(201,244,91,.09);animation:live 2.4s infinite}
@keyframes live{0%,100%{box-shadow:0 0 0 3px rgba(201,244,91,.07)}50%{box-shadow:0 0 0 5px rgba(201,244,91,.13)}}
.field-head .n{margin-left:auto;font-family:var(--num);font-size:12px;color:#a6b3a7;font-weight:500;letter-spacing:.03em}
.field-sub{font-size:11px;color:#8b9a8f;margin-top:1px;letter-spacing:.02em}
.face-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:1px}
.face-grid .ava{width:25px;height:25px;border-radius:7px;font-size:10.5px;transition:transform .14s;filter:saturate(.82) brightness(.96)}
.face-grid .ava:hover{transform:translateY(-2px)}
.face-grid .more{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;border:1px dashed #2f4436;color:#a6b3a7;font-family:var(--num);font-size:9.5px}
.face-grid .more:hover{border-color:#4b6635;color:var(--lime)}
.field-sec{display:flex;align-items:center;gap:6px;font-size:10.5px;color:#8b9a8f;letter-spacing:.05em;margin-bottom:8px}
.field-sec .ln{flex:1;height:1px;background:#17271f}
.typing-card{border:1px solid #22362a;border-radius:8px;background:#0d1a14;padding:9px 10px 10px}
.typing-row{display:flex;align-items:center;gap:7px;font-size:11.5px;color:#c2cbbf}
.typing-row + .typing-row{margin-top:6px}
.typing-row .ava{width:19px;height:19px;border-radius:5px;font-size:9px}
.typing-row .dots{margin-left:auto;display:flex;gap:2px}
.typing-row .dots i{width:3px;height:3px;border-radius:50%;background:var(--lime);opacity:.55;animation:tdot 1.15s infinite}
.typing-row .dots i:nth-child(2){opacity:.8;animation-delay:.15s}.typing-row .dots i:nth-child(3){opacity:1;animation-delay:.3s}
.typing-wave{display:flex;align-items:flex-end;gap:2px;height:20px;margin-top:8px;padding-top:7px;border-top:1px solid #1a2b21}
.typing-wave i{flex:1;background:rgba(201,244,91,.5);border-radius:1px;animation:wave 1.2s ease-in-out infinite}
.typing-wave i:nth-child(1){height:5px;animation-delay:0s}.typing-wave i:nth-child(2){height:11px;animation-delay:.1s}.typing-wave i:nth-child(3){height:16px;animation-delay:.2s}
.typing-wave i:nth-child(4){height:8px;animation-delay:.3s}.typing-wave i:nth-child(5){height:14px;animation-delay:.4s}.typing-wave i:nth-child(6){height:19px;animation-delay:.5s}
.typing-wave i:nth-child(7){height:7px;animation-delay:.6s}.typing-wave i:nth-child(8){height:12px;animation-delay:.7s}.typing-wave i:nth-child(9){height:4px;animation-delay:.8s}
.typing-wave i:nth-child(10){height:9px;animation-delay:.9s}.typing-wave i:nth-child(11){height:6px;animation-delay:1s}.typing-wave i:nth-child(12){height:3px;animation-delay:1.1s}
.just-list{display:flex;flex-direction:column;gap:10px;transition:height .2s}
.just{display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px;color:#a9b5aa;font-size:11.5px;line-height:1.5}
.just .ava{width:20px;height:20px;border-radius:5px;font-size:9px}
.just .t{color:#d5d8c9}
.just .m{color:#9aab9d;font-family:var(--num);font-size:10.5px;margin-top:2px;letter-spacing:.03em}
.just .m em{font-style:normal;font-family:var(--sans);font-size:10px;color:#9aab9d}
.pin-wrap{margin-top:0}
.pin-list{display:flex;flex-direction:column;gap:9px}
.pin{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:start;text-align:left;width:100%}
.pin-k{width:22px;height:17px;display:grid;place-items:center;margin-top:1px;color:#a6b3a7;flex:none}
.pin-t{font-size:11.5px;color:#c6cdc0;line-height:1.45;text-align:left}
.pin-m{font-size:10.5px;color:#9aab9d;margin-top:2px;font-family:var(--num);letter-spacing:.02em;text-align:left}
.pin:hover .pin-t{color:var(--lime)}
.files-row{display:flex;align-items:center;gap:4px;margin-top:8px;font-size:10.5px;color:#a6b3a7;border-top:1px solid #17271f;padding-top:8px;width:100%;text-align:left}
.files-row:hover{color:var(--ink)}
.files-row span{margin-left:auto;color:#b3c0b3}

.field-files{display:flex;flex-direction:column;gap:2px}
.fitem{display:flex;align-items:center;gap:8px;width:100%;padding:5px 4px 5px 0;border-radius:5px;text-align:left;min-width:0}
.fitem:hover{background:#101f18}
.fitem .file-ico{width:25px;height:28px;font-size:8px;border-radius:4px}
.fitem .fi{min-width:0;flex:1;display:flex;flex-direction:column}
.fitem .fn{font-size:11px;color:#c9d0c3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fitem .fm{font-size:10px;color:#93a196;font-family:var(--num);margin-top:1px}
.fitem .ft{font-size:9.5px;color:#8b9a8f;font-family:var(--num);flex:none}
.field-foot{margin-top:auto;padding-top:10px;border-top:1px solid var(--line-soft);display:flex;justify-content:space-between;gap:6px;font-size:10px;color:#8b9a8f;letter-spacing:.02em}

/* hint bar / misc */
.tip{display:flex;align-items:center;gap:6px;font-size:10.5px;color:#7f9085;padding:0 2px}
.tip kbd{font-family:var(--mono);border:1px solid #26392d;border-radius:3px;padding:0 3px;font-size:9.5px;color:#9aab9d}

/* popover */
.popover{position:fixed;z-index:120;min-width:230px;max-width:330px;background:#11201a;border:1px solid #344c3d;border-radius:9px;box-shadow:var(--shadow-2);padding:6px;animation:menu .16s var(--ease-out)}
.pop-head{display:flex;align-items:center;gap:7px;padding:6px 8px 8px;font-size:11px;color:#9aab9d;letter-spacing:.04em;border-bottom:1px solid #22362a;margin-bottom:4px}
.pop-head .x{margin-left:auto;color:#8b9a8f;font-size:12px}
.pop-item{display:flex;align-items:center;gap:8px;width:100%;padding:7px 8px;border-radius:6px;font-size:12px;color:#d5d8c9;text-align:left}
.pop-item:hover{background:#1a2d23;color:var(--ink)}
.pop-item .sub{display:block;font-size:10.5px;color:#8b9a8f;margin-top:2px}
.pop-item .meta{margin-left:auto;font-size:10px;color:#8b9a8f;font-family:var(--num);white-space:nowrap}
.pop-item .ava{width:26px;height:26px;border-radius:6px;font-size:10.5px}
.pop-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px;max-height:300px;overflow-y:auto;padding:2px}
.pop-grid .pop-item{gap:7px}
.pop-note{padding:7px 8px 4px;font-size:10px;color:#8b9a8f;line-height:1.5;border-top:1px solid #22362a;margin-top:4px}
.pop-switch{display:flex;align-items:center;gap:8px;width:100%;padding:7px 8px;border-radius:6px;font-size:12px;color:#d5d8c9;text-align:left}
.pop-switch:hover{background:#1a2d23}
.pop-switch .sw{margin-left:auto;width:28px;height:16px;border-radius:8px;background:#2a3e31;position:relative;transition:background .16s}
.pop-switch .sw:after{content:"";position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:50%;background:#849388;transition:transform .18s,background .18s}
.pop-switch[aria-pressed="true"] .sw{background:rgba(201,244,91,.25)}
.pop-switch[aria-pressed="true"] .sw:after{transform:translateX(12px);background:var(--lime)}
.pop-status{display:flex;align-items:center;gap:7px;width:100%;padding:7px 8px;border-radius:6px;font-size:12px;color:#d5d8c9;text-align:left}
.pop-status:hover{background:#1a2d23}
.pop-status .d{width:7px;height:7px;border-radius:50%;background:var(--lime)}
.pop-status .d.away{background:#e2b34b}.pop-status .d.busy{background:var(--coral)}

/* toast / lightbox / drop */
.toast{position:fixed;left:50%;top:72px;transform:translate(-50%,-8px);z-index:200;background:#15271f;border:1px solid #3b5536;color:#e7ebdc;border-radius:8px;padding:9px 14px;font-size:12px;box-shadow:var(--shadow-2);opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;display:flex;align-items:center;gap:8px;max-width:min(520px,90vw)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast .dot{width:6px;height:6px;border-radius:50%;background:var(--lime)}
.lightbox{position:fixed;inset:0;z-index:220;background:rgba(3,8,6,.82);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:40px;animation:fade .18s}
@keyframes fade{from{opacity:0}to{opacity:1}}
.lightbox .lb-inner{max-width:860px;width:100%;display:flex;flex-direction:column;gap:10px;animation:menu .24s var(--spring)}
.lightbox img{width:100%;max-height:calc(100dvh - 140px);object-fit:contain;border-radius:10px;border:1px solid #3a513f;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.lightbox .lb-cap{display:flex;align-items:center;gap:9px;color:#c2cbbf;font-size:12px}
.lightbox .lb-cap .mono{font-family:var(--num);color:#93a196;font-size:11px;margin-left:auto}
.lightbox .lb-close{position:absolute;top:20px;right:22px;width:34px;height:34px;border-radius:8px;background:#12211a;border:1px solid #39503f;color:#d5d8c9;display:grid;place-items:center}
.drop-overlay{position:fixed;inset:0;z-index:240;background:rgba(4,10,7,.72);backdrop-filter:blur(3px);display:grid;place-items:center}
.drop-overlay .drop-zone{width:min(520px,86vw);border:1.5px dashed rgba(201,244,91,.65);border-radius:16px;background:rgba(14,27,21,.94);padding:38px 28px;text-align:center;box-shadow:0 0 0 8px rgba(201,244,91,.05)}
.drop-overlay .drop-ico{width:44px;height:44px;border-radius:12px;background:rgba(201,244,91,.12);color:var(--lime);display:grid;place-items:center;margin:0 auto 14px}
.drop-overlay h3{font-size:18px;font-weight:600;letter-spacing:.01em}
.drop-overlay p{font-size:12.5px;color:#a8b5aa;margin-top:6px}
.drop-overlay .types{display:flex;justify-content:center;gap:8px;margin-top:14px}
.drop-overlay .types span{font-family:var(--mono);font-size:10px;color:#9aab9d;border:1px solid #324a3a;border-radius:4px;padding:2px 6px}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* responsive */
@media (max-width:1280px){
  .app{grid-template-columns:64px 232px minmax(0,1fr) 218px}
  .app.is-thread{grid-template-columns:64px 232px minmax(0,1fr) 390px}
  .app.is-field-hidden,.app.is-dm{grid-template-columns:64px 232px minmax(0,1fr)}
  .chan-meta .sep{display:none}
  .countdown{display:none}
  .text{max-width:560px}
}
@media (max-width:1080px){
  .app,.app.is-thread{grid-template-columns:64px 220px minmax(0,1fr)}
  .field{display:none!important}
  .app.is-thread .thread{position:fixed;right:0;top:0;bottom:0;width:min(420px,88vw);box-shadow:-24px 0 60px rgba(0,0,0,.5)}
  .app.is-thread .main{filter:brightness(.82)}
  .chan-meta{display:none}
}
@media (max-width:820px){
  .app,.app.is-thread{grid-template-columns:56px minmax(0,1fr)}
  .channels{display:none}
  .rail{width:56px}
  .chan-head{padding:0 14px;gap:8px}
  .chan-title{font-size:15px}
  .stream{padding:8px 14px}
  .composer{padding:6px 14px 10px}
  .livebar{padding:0 14px}
  .signal .lbl{display:none}
  .clock{display:none}
  .mention-menu{width:min(320px,calc(100vw - 32px))}
  .thread{width:100vw!important}
}
@media (hover:none){
  .msg-tools{opacity:1;transform:none;position:static;background:none;border:0;box-shadow:none;padding:0;margin-top:4px}
  .msg:hover{background:transparent}
}

/* emoji picker */
.emoji-pick{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;padding:4px;width:250px}
.emoji-pick button{height:34px;border-radius:6px;display:grid;place-items:center;font-size:18px;font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif}
.emoji-pick button:hover{background:#1a2d23}
.pop-title{padding:5px 8px 7px;font-size:11px;color:#9aab9d;letter-spacing:.04em;border-bottom:1px solid #22362a;margin-bottom:4px}

/* entry */
.app.entering .chan-head{animation:fadeDown .32s var(--ease-out) both}
.app.entering .livebar{animation:fadeDown .32s .04s var(--ease-out) both}
.app.entering .stream .msg{animation:enterUp .34s var(--ease-out) both}
.app.entering .stream .msg:nth-child(2){animation-delay:.03s}
.app.entering .stream .msg:nth-child(3){animation-delay:.06s}
.app.entering .stream .msg:nth-child(4){animation-delay:.09s}
.app.entering .stream .msg:nth-child(5){animation-delay:.12s}
.app.entering .stream .msg:nth-child(6){animation-delay:.15s}
.app.entering .stream .msg:nth-child(7){animation-delay:.18s}
.app.entering .stream .msg:nth-child(8){animation-delay:.21s}
.app.entering .stream .msg:nth-child(9){animation-delay:.24s}
@keyframes fadeDown{0%{opacity:.35;transform:translateY(-3px)}100%{opacity:1;transform:none}}
@keyframes enterUp{0%{opacity:.35;transform:translateY(7px)}100%{opacity:1;transform:none}}

/* manual reduced motion */
.reduce-motion *, .reduce-motion *:before, .reduce-motion *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}

/* shake */
.shake{animation:shake .3s var(--ease-out)}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}

/* empty channel */
.empty-channel{max-width:520px;margin:60px auto;text-align:center;padding:0 20px}
.ec-mark{width:46px;height:46px;border:1px solid #2d4436;background:#0e1b15;color:var(--lime);border-radius:12px;display:grid;place-items:center;margin:0 auto 14px;font-family:var(--mono);font-size:20px}
.empty-channel h2{font-size:17px;font-weight:600;letter-spacing:.01em}
.empty-channel p{font-size:12.5px;color:#93a196;line-height:1.7;margin-top:7px}
.ec-btn{margin-top:14px;height:32px;padding:0 14px;border-radius:7px;background:var(--lime);color:#101a0b;font-size:12px;font-weight:600}
.ec-btn:hover{background:#d8ff74}

/* focused DM composition */
.app.is-dm .stream{padding-left:max(22px, calc((100% - 760px) / 2));padding-right:max(22px, calc((100% - 760px) / 2))}
.app.is-dm .composer-inner{max-width:860px;margin:0 auto}
.app.is-dm .typing-inline{margin-left:51px}

/* compose: clean top edge over the taller composer */
.app.is-compose .fade-top{height:52px;background:linear-gradient(var(--bg) 0,var(--bg) 34px,rgba(8,17,14,.82) 44px,rgba(8,17,14,0) 52px)}

/* thread: focus fade over the non-primary channel context */
.app.is-thread .fade-top{height:16px;background:linear-gradient(var(--bg),rgba(8,17,14,0))}
