/* ═════════ 传讯 Relay · UI ═════════ */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #0d1015;
  --bg-soft: #11151b;
  --panel: #161b22;
  --panel-2: #1b2129;
  --line: #232a33;
  --line-soft: #1b2027;
  --text: #e7ecf3;
  --text-dim: #9aa7b8;
  --text-mute: #6b7887;
  --accent: #3b82f6;
  --accent-2: #2563eb;
  --accent-soft: rgba(59, 130, 246, .14);
  --danger: #ef4444;
  --ok: #22c55e;
  --bubble-in: #1b2129;
  --bubble-out: linear-gradient(160deg, #2f6fe4, #2563eb);
  --shadow: 0 12px 32px rgba(0, 0, 0, .38);
  --r: 14px;
  --side-w: 262px;
}

html[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-soft: #eef1f6;
  --panel: #ffffff;
  --panel-2: #f2f4f8;
  --line: #e3e8ef;
  --line-soft: #edf1f6;
  --text: #16202c;
  --text-dim: #5a6b7d;
  --text-mute: #8593a3;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, .1);
  --bubble-in: #ffffff;
  --bubble-out: linear-gradient(160deg, #3b82f6, #2563eb);
  --shadow: 0 10px 28px rgba(20, 40, 70, .1);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] {
    --bg: #f4f6f9; --bg-soft: #eef1f6; --panel: #fff; --panel-2: #f2f4f8;
    --line: #e3e8ef; --line-soft: #edf1f6;
    --text: #16202c; --text-dim: #5a6b7d; --text-mute: #8593a3;
    --accent: #2563eb; --accent-2: #1d4ed8; --accent-soft: rgba(37, 99, 235, .1);
    --bubble-in: #fff; --bubble-out: linear-gradient(160deg, #3b82f6, #2563eb);
    --shadow: 0 10px 28px rgba(20, 40, 70, .1);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.55; overflow: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input, textarea { background: none; border: 0; outline: none; }
a { color: var(--accent); text-decoration: none; }
.hint { color: var(--text-mute); font-size: 12px; }
.tip { color: var(--text-mute); font-size: 12.5px; margin: 6px 0 0; line-height: 1.5; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 8px 0 0; }
[hidden] { display: none !important; }

/* ───────── 通用控件 ───────── */
.btn {
  border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 14px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  transition: .16s ease; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary {
  background: linear-gradient(160deg, #3b82f6, #2563eb); border-color: transparent;
  color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .32);
}
.btn.primary:hover { filter: brightness(1.08); color: #fff; }
.btn.primary:disabled { opacity: .55; cursor: default; filter: none; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn.block { width: 100%; }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; color: var(--text-dim);
  transition: .16s; font-size: 16px;
}
.icon:hover { background: var(--panel-2); color: var(--text); }
.icon svg { width: 19px; height: 19px; }
.icon.round { border-radius: 50%; }
.mini {
  width: 22px; height: 22px; border-radius: 6px; font-size: 15px; line-height: 1;
  color: var(--text-mute); border: 1px solid var(--line);
}
.mini:hover { color: var(--accent); border-color: var(--accent); }
.pill {
  font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--panel-2);
  color: var(--text-dim); border: 1px solid var(--line);
}
.seg {
  display: flex; gap: 4px; background: var(--panel-2); padding: 4px;
  border-radius: 11px; border: 1px solid var(--line-soft); margin: 4px 0 14px;
}
.seg button {
  flex: 1; padding: 7px 10px; border-radius: 8px; font-size: 13.5px;
  color: var(--text-dim); font-weight: 500; transition: .16s;
}
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.16); font-weight: 600; }

/* ═════════ 登录 ═════════ */
.gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 22px; overflow: auto; }
.gate-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(760px 480px at 12% 8%, rgba(59, 130, 246, .18), transparent 62%),
    radial-gradient(620px 420px at 88% 92%, rgba(99, 102, 241, .16), transparent 60%),
    radial-gradient(560px 380px at 70% 10%, rgba(34, 197, 94, .07), transparent 65%);
}
.gate-card {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px 20px;
  box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.brand-hero { text-align: center; margin-bottom: 22px; }
.logo-lg {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 17px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #3b82f6, #4f46e5);
  box-shadow: 0 10px 26px rgba(59, 130, 246, .34);
}
.logo-lg svg { width: 32px; height: 32px; }
.brand-hero h1 { margin: 0; font-size: 23px; letter-spacing: .5px; }
.tagline { margin: 5px 0 0; color: var(--text-dim); font-size: 13px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%; padding: 11px 13px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px;
  transition: .16s;
}
.field input:focus { border-color: var(--accent); background: var(--bg-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
#loginBtn { margin-top: 6px; padding: 12px; font-size: 15px; }
.gate-foot { text-align: center; color: var(--text-mute); font-size: 11.5px; margin: 16px 0 0; }

/* ═════════ 布局 ═════════ */
.app { display: flex; height: 100dvh; overflow: hidden; }

.sidebar {
  width: var(--side-w); flex: 0 0 var(--side-w); display: flex; flex-direction: column;
  background: var(--bg-soft); border-right: 1px solid var(--line);
  padding: 0; z-index: 30;
}
.side-head {
  display: flex; align-items: center; gap: 10px; padding: 15px 14px 13px;
  border-bottom: 1px solid var(--line-soft);
}
.logo-sm {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(160deg, #3b82f6, #4f46e5); flex: 0 0 auto;
}
.logo-sm svg { width: 20px; height: 20px; }
.who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.who b { font-size: 14.5px; }
.who .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-scroll { flex: 1; overflow-y: auto; padding: 14px 10px 8px; }
.side-section { margin-bottom: 18px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 7px; }
.sec-head h4 { margin: 0; font-size: 11.5px; letter-spacing: .7px; color: var(--text-mute); font-weight: 600; text-transform: uppercase; }
.room-list { display: flex; flex-direction: column; gap: 2px; }
.room {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px;
  color: var(--text-dim); font-size: 14px; transition: .14s; width: 100%; text-align: left;
}
.room:hover { background: var(--panel); color: var(--text); }
.room.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.room .hash { color: var(--text-mute); font-weight: 400; }
.room .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room .unread { background: var(--accent); color: #fff; font-size: 10.5px; padding: 0 6px; border-radius: 99px; min-width: 18px; text-align: center; font-weight: 700; }
.online-list { display: flex; flex-direction: column; gap: 1px; }
.peer { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; color: var(--text-dim); }
.peer .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); flex: 0 0 auto; }
.peer .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peer.me .nm { color: var(--text); font-weight: 600; }
.side-foot { padding: 10px; border-top: 1px solid var(--line-soft); }
.side-foot .btn { font-size: 13px; padding: 8px; }
.ver { text-align: center; color: var(--text-mute); font-size: 10.5px; margin: 7px 0 0; font-family: var(--mono); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); position: relative; }

.topbar {
  height: 56px; flex: 0 0 56px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--panel);
  position: relative; z-index: 5;
}
.tb-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.tb-title b { font-size: 15.5px; }
.tb-actions { display: flex; gap: 2px; }

/* ═════════ 消息流 ═════════ */
.stream {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 18px 20px 10px;
  scroll-behavior: smooth; overscroll-behavior: contain;
}
.stream-inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 3px; }

.day-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; color: var(--text-mute); font-size: 11.5px; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.msg { display: flex; gap: 9px; padding: 2px 0; animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(5px); } }
.msg.out { flex-direction: row-reverse; }
.msg .av {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; margin-top: 2px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #fff;
  letter-spacing: .2px;
}
.msg .body { min-width: 0; max-width: min(74%, 620px); display: flex; flex-direction: column; gap: 3px; }
.msg.out .body { align-items: flex-end; }
.msg .meta { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-mute); padding: 0 2px; }
.msg .meta b { color: var(--text-dim); font-weight: 600; font-size: 12px; }
.bubble {
  background: var(--bubble-in); border: 1px solid var(--line-soft);
  padding: 8px 12px; border-radius: 4px 14px 14px 14px;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
  font-size: 14.5px; line-height: 1.6; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.msg.out .bubble {
  background: var(--bubble-out); border-color: transparent; color: #fff;
  border-radius: 14px 4px 14px 14px; box-shadow: 0 3px 12px rgba(37, 99, 235, .26);
}
.bubble a { text-decoration: underline; text-underline-offset: 2px; }
.msg.out .bubble a { color: #dbeafe; }
.bubble .mention { color: var(--accent); font-weight: 600; }
.msg.out .bubble .mention { color: #bfdbfe; }

.reply-quote {
  border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent);
  padding: 5px 9px; border-radius: 0 8px 8px 0; font-size: 12.5px; color: var(--text-dim);
  margin-bottom: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg.out .reply-quote { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.12); color: #e8f0ff; }

.msg .tools { display: flex; gap: 2px; opacity: 0; transition: .14s; height: 0; overflow: hidden; }
.msg:hover .tools, .msg:focus-within .tools { opacity: 1; height: auto; overflow: visible; }
.msg .tools button { font-size: 11px; color: var(--text-mute); padding: 1px 5px; border-radius: 5px; }
.msg .tools button:hover { background: var(--panel-2); color: var(--text); }
@media (hover: none) {
  .msg .tools { height: 0; }
  .msg:active .tools, .msg.show-tools .tools { opacity: .9; height: auto; }
}

/* 文件卡片 */
.files { display: flex; flex-direction: column; gap: 6px; }
.fcard {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; min-width: 220px;
  border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line);
  transition: .15s; text-align: left; width: 100%;
}
.msg.out .fcard { background: var(--panel-2); border-color: var(--line); }
.fcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.fcard .fi {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: -.4px; color: #fff; flex: 0 0 auto;
  background: #4b5563; text-transform: uppercase;
}
.fcard .fi.pdf { background: #dc2626; } .fcard .fi.zip { background: #b45309; }
.fcard .fi.img { background: #0d9488; } .fcard .fi.doc { background: #2563eb; }
.fcard .fi.xls { background: #15803d; } .fcard .fi.vid { background: #7c3aed; }
.fcard .fi.aud { background: #be185d; } .fcard .fi.ppt { background: #c2410c; }
.fcard .fmeta { min-width: 0; flex: 1; }
.fcard .fname { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.out .fcard .fname { color: var(--text); }
.fcard .fsize { font-size: 11.5px; color: var(--text-mute); }
.msg.out .fcard .fsize { color: var(--text-mute); }
.fcard .fdl { color: var(--text-dim); font-size: 16px; padding: 2px 4px; border-radius: 6px; }
.msg.out .fcard .fdl { color: var(--text-dim); }

/* 内联图片 */
.imgs { display: grid; gap: 4px; max-width: 340px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.imgs.one { grid-template-columns: 1fr; max-width: 300px; }
.imgs img {
  width: 100%; border-radius: 11px; display: block; cursor: zoom-in;
  border: 1px solid var(--line-soft); background: var(--panel-2); max-height: 320px; object-fit: cover;
}
.imgs.one img { max-height: 380px; object-fit: contain; background: #000; }
.imgs a { display: block; line-height: 0; }

/* 视频/音频 */
video, audio { width: 100%; max-width: 340px; border-radius: 11px; display: block; background: #000; }
audio { height: 40px; background: var(--panel-2); }

.sys { text-align: center; color: var(--text-mute); font-size: 12px; margin: 9px 0; }

.empty {
  height: 100%; display: grid; place-items: center; text-align: center; color: var(--text-mute);
  font-size: 13.5px; padding: 40px;
}
.empty svg { width: 46px; height: 46px; opacity: .35; margin-bottom: 12px; }

/* ═════════ 输入区 ═════════ */
.drop-hint {
  position: absolute; inset: 56px 0 0 0; display: none; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); border: 2px dashed var(--accent);
  border-radius: 12px; margin: 8px; z-index: 20; color: var(--accent); font-weight: 700;
  backdrop-filter: blur(2px);
}
.drop-hint.on { display: grid; }

.composer {
  flex: 0 0 auto; padding: 8px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--panel);
  max-width: 900px; margin: 0 auto; width: 100%;
}
.reply-bar, .queue { margin-bottom: 7px; }
.reply-bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px;
  background: var(--panel-2); border-radius: 9px; border-left: 3px solid var(--accent);
}
.rb-body { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-body b { color: var(--accent); margin-right: 6px; font-size: 11.5px; }

.queue { display: flex; flex-direction: column; gap: 5px; }
.qitem { display: flex; align-items: center; gap: 9px; padding: 6px 10px; background: var(--panel-2); border-radius: 9px; font-size: 12.5px; }
.qitem .qn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); }
.qitem .bar { width: 90px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; flex: 0 0 auto; }
.qitem .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.qitem .qp { width: 34px; text-align: right; color: var(--text-mute); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.qitem.done .bar i { background: var(--ok); }

.input-row { display: flex; align-items: flex-end; gap: 7px; }
#input {
  flex: 1; resize: none; max-height: 132px; padding: 11px 13px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 13px; font-size: 15px; line-height: 1.5;
  transition: .16s; min-height: 44px;
}
#input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#input::placeholder { color: var(--text-mute); }
.send {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; display: grid; place-items: center; padding: 0;
}
.send svg { width: 20px; height: 20px; }

/* ═════════ 搜索 ═════════ */
.search-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-bottom: 1px solid var(--line); background: var(--panel);
}
.search-bar input { flex: 1; padding: 9px 12px; background: var(--panel-2); border-radius: 9px; border: 1px solid var(--line); }

/* ═════════ 抽屉/面板 ═════════ */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 25; backdrop-filter: blur(2px); }

.panel { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.52); backdrop-filter: blur(3px); }
.panel-card {
  width: 100%; max-width: 430px; max-height: min(88dvh, 720px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden; animation: pop .2s ease;
}
.panel-head { display: flex; align-items: center; padding: 14px 12px 12px 18px; border-bottom: 1px solid var(--line-soft); }
.panel-head b { flex: 1; font-size: 15.5px; }
.panel-body { overflow-y: auto; padding: 6px 18px 20px; }
.pblock { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.pblock:last-child { border: 0; }
.pblock h5 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--text-mute); font-weight: 700; }
.row { margin-bottom: 12px; }
.row label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.row-inline { display: flex; gap: 7px; }
.row-inline input { flex: 1; padding: 9px 11px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; }
.pair-box { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pair-code {
  font-family: var(--mono); font-size: 26px; letter-spacing: 5px; font-weight: 700;
  padding: 8px 14px; background: var(--panel-2); border-radius: 11px; border: 1px dashed var(--line);
  color: var(--accent); flex: 1; text-align: center; user-select: all;
}
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-dim); padding: 7px 0; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

/* ═════════ 图片预览 ═════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(6, 8, 12, .94);
  display: flex; flex-direction: column; animation: pop .18s ease;
}
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(8px + env(safe-area-inset-top)); color: #cfd8e5; }
.lb-name { flex: 1; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar .icon { color: #cfd8e5; }
.lb-stage { flex: 1; display: grid; place-items: center; padding: 0 10px 20px; overflow: hidden; }
.lb-stage img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }

/* ═════════ Toast ═════════ */
.toasts { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: rgba(24, 30, 40, .96); color: #e7ecf3; padding: 9px 16px; border-radius: 99px;
  font-size: 13px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: tin .2s ease; max-width: 84vw;
}
.toast.bad { background: #7f1d1d; border-color: #ef4444; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ═════════ 滚动条 ═════════ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text-mute) 30%, transparent); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ═════════ 响应式 ═════════ */
.only-mobile { display: none !important; }

@media (max-width: 760px) {
  .only-mobile { display: inline-flex !important; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 84%; max-width: 310px;
    transform: translateX(-102%); transition: transform .24s cubic-bezier(.4,0,.2,1);
    box-shadow: 12px 0 40px rgba(0,0,0,.4);
  }
  .sidebar.open { transform: none; }
  .stream { padding: 12px 12px 6px; }
  .msg .body { max-width: 82%; }
  .topbar { padding: 0 8px; }
  .composer { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
  .bubble { font-size: 15px; }
  .panel { padding: 0; align-items: flex-end; }
  .panel-card { max-width: none; border-radius: 18px 18px 0 0; max-height: 92dvh; }
}
@media (max-width: 420px) {
  .imgs { max-width: 260px; }
  .fcard { min-width: 0; }
  .msg .av { width: 27px; height: 27px; font-size: 11px; }
}
