/* ── base ─────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0b0e;
  --panel: #121318;
  --panel-2: #191a20;
  --panel-3: #202129;
  --text: #e9eaf0;
  --text-soft: #c3c6d1;
  --muted: #858997;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, .16);
  --green: #3ecf8e;
  --self-1: #1f7a58;
  --self-2: #17604a;
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
  --font: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scrollbar-color: #34363f transparent; scrollbar-width: thin; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 620px at 18% -12%, rgba(91, 140, 255, .20), transparent 62%),
    radial-gradient(900px 540px at 92% 4%, rgba(168, 85, 247, .14), transparent 60%),
    radial-gradient(1000px 700px at 50% 118%, rgba(62, 207, 142, .10), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.aurora {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

::selection { background: rgba(91, 140, 255, .35); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--green));
  z-index: 60;
  transition: width .12s linear;
}

/* ── top bar ──────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(10, 11, 14, .72);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.identity { display: flex; align-items: center; gap: 12px; min-width: 0; }

.g-avatar {
  width: 46px; height: 46px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .9);
  flex: none;
}

.g-meta { min-width: 0; }
.g-meta h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-sub {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tools { display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-soft);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.icon-btn:hover { background: var(--panel-2); color: #fff; border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.96); }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  min-width: 210px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search:focus-within {
  border-color: rgba(91, 140, 255, .55);
  background: var(--panel-2);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, .13);
}
.search svg { width: 17px; height: 17px; flex: none; }
.search input {
  border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 13.5px; width: 100%; min-width: 0;
}
.search input::placeholder { color: #6f7383; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  border: 0; background: transparent; color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.search-clear:hover { color: #fff; }

.seg {
  display: flex;
  padding: 3px;
  border-radius: 11px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.seg-btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  transition: color .15s, background .15s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-on { background: var(--panel-3); color: #fff; box-shadow: 0 2px 10px -4px #000; }

.filter-chip {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-soft);
}
.filter-chip span {
  display: inline-flex; align-items: center;
  padding: 3px 6px 3px 10px;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 140, 255, .35);
  color: #cddcff;
}
.filter-chip button {
  border: 0; background: transparent; color: inherit; cursor: pointer;
  padding: 0 4px; font-size: 15px; line-height: 1;
}

/* ── stage / feed ─────────────────────────────────────────────────── */
.stage { position: relative; z-index: 1; }

.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.feed {
  max-width: 1000px;
  margin: 0 auto;
  padding: 26px 22px 40px;
  display: flex;
  flex-direction: column;
}

.day {
  align-self: center;
  margin: 26px 0 18px;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
}
.day:first-child { margin-top: 6px; }

.sys {
  align-self: center;
  max-width: 84%;
  margin: 10px 0;
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
  text-align: center;
}
.sys b { color: var(--text-soft); font-weight: 500; }

.msg {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 12px;
  padding: 2px 0;
  position: relative;
  border-radius: 12px;
}
.msg[hidden] { display: none; }
.msg.flash { animation: flash 1.4s ease; }
@keyframes flash {
  0%, 100% { background: transparent; }
  18%, 55% { background: rgba(91, 140, 255, .14); box-shadow: 0 0 0 6px rgba(91, 140, 255, .14); }
}

.msg.first { margin-top: 14px; }

.msg .ava {
  width: 38px; height: 38px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.msg .ava:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.msg .ava-fallback {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 650; color: #0b0c0f;
}

.msg .body { min-width: 0; padding-bottom: 2px; }

.msg-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 3px;
  min-height: 18px;
}
.msg-head .who {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
}
.msg-head .who:hover { text-decoration: underline; }
.msg-head .when {
  font-size: 11px;
  color: #6f7383;
  opacity: 0;
  transition: opacity .15s;
  font-variant-numeric: tabular-nums;
}
.msg:hover .msg-head .when { opacity: 1; }
.msg-head .you {
  font-size: 10px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(62, 207, 142, .16);
  color: #7ee2b5;
  border: 1px solid rgba(62, 207, 142, .3);
}

.msg:not(.first) .body { padding-top: 0; }
.msg:not(.first) .msg-head { display: none; }
.msg:not(.first) .ava,
.msg:not(.first) .ava-fallback { visibility: hidden; }
.msg:not(.first) { grid-template-columns: 38px minmax(0, 1fr); }

.bubble {
  display: inline-block;
  max-width: min(680px, 78%);
  padding: 8px 13px;
  border-radius: 4px 14px 14px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.62;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  box-shadow: 0 8px 24px -20px #000;
}
.bubble + .bubble { margin-top: 5px; }
.bubble:empty { display: none; }
.bubble.plain { background: transparent; border-color: transparent; padding-left: 2px; padding-right: 2px; box-shadow: none; }

.msg.me .body { display: flex; flex-direction: column; align-items: flex-end; }
.msg.me .msg-head { flex-direction: row-reverse; }
.msg.me .bubble {
  border-radius: 14px 4px 14px 14px;
  background: linear-gradient(150deg, var(--self-1), var(--self-2));
  border-color: rgba(62, 207, 142, .28);
  color: #ecfff7;
  box-shadow: 0 10px 26px -20px rgba(62, 207, 142, .6);
}
.msg.me .bubble.plain { background: transparent; border-color: transparent; box-shadow: none; }
.msg.me .ava { order: 2; }
.msg.me { grid-template-columns: minmax(0, 1fr) 38px; column-gap: 12px; }
.msg.me .body { grid-column: 1; }
.msg.me .ava { grid-column: 2; grid-row: 1; }

.msg.me .msg-head { margin-right: 2px; }

/* text bits */
.tx a { color: #93b4ff; text-decoration: underline; text-decoration-color: rgba(147, 180, 255, .4); text-underline-offset: 2px; }
.msg.me .tx a { color: #d9ffef; text-decoration-color: rgba(217, 255, 239, .45); }
.at {
  color: #7ea6ff;
  background: rgba(91, 140, 255, .13);
  border-radius: 5px;
  padding: 0 3px;
  font-weight: 500;
}
.msg.me .at { color: #d5ffe9; background: rgba(0, 0, 0, .22); }
.face { font-size: 1.05em; line-height: 1; vertical-align: -2px; }
.face-txt { color: #b6b9c5; }
mark {
  background: rgba(250, 204, 21, .28);
  color: #ffe9a8;
  border-radius: 3px;
  padding: 0 1px;
}

/* reply quote */
.quote {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 7px;
  padding: 6px 9px;
  border: 0;
  border-left: 2px solid rgba(255, 255, 255, .22);
  border-radius: 0 8px 8px 0;
  background: rgba(0, 0, 0, .22);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: normal;
  cursor: pointer;
  transition: background .15s;
}
.quote .q-text {
  color: #a9adba;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quote:hover { background: rgba(0, 0, 0, .34); }
.quote .q-name { color: #9db9ff; font-weight: 600; margin-right: 4px; }
.quote .q-img { display: block; margin-top: 5px; max-width: 120px; max-height: 90px; border-radius: 6px; object-fit: cover; }
.msg.me .quote { background: rgba(0, 0, 0, .2); border-left-color: rgba(255, 255, 255, .35); }
.msg.me .quote .q-name { color: #d8ffed; }

/* images */
.images { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.images.one { display: block; }
.img-btn {
  display: block;
  border: 0; padding: 0;
  background: var(--panel-3);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  line-height: 0;
  box-shadow: 0 10px 26px -22px #000;
}
.img-btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, filter .25s; }
.img-btn:hover img { transform: scale(1.02); filter: brightness(1.05); }
.images.one .img-btn { max-width: min(340px, 100%); border: 1px solid var(--line); }
.images.multi .img-btn { width: 148px; height: 148px; }
.images.multi.count-2 .img-btn { width: 190px; height: 150px; }
.img-btn .badge {
  position: absolute;
  right: 6px; bottom: 6px;
  font-size: 10px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .62);
  color: #e8e8ee;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .15s;
}
.img-btn:hover .badge { opacity: 1; }
.img-missing {
  display: grid; place-items: center;
  min-width: 150px; min-height: 90px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* file / card */
.filecard, .minicard {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(360px, 100%);
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  margin: 2px 0;
}
.filecard .fi, .minicard .fi {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(91, 140, 255, .14);
  color: #9db9ff;
  flex: none;
}
.filecard .fi svg, .minicard .fi svg { width: 19px; height: 19px; }
.filecard .fn, .minicard .fn { font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.filecard .fs, .minicard .fs { font-size: 11.5px; color: var(--muted); }
.minicard { color: var(--text); }
.minicard:hover { background: rgba(255, 255, 255, .07); }
.minicard .tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(62, 207, 142, .14);
  color: #8fe3bb;
  margin-right: 4px;
}

/* ── gallery ──────────────────────────────────────────────────────── */
.gallery-head {
  max-width: 1000px;
  margin: 0 auto;
  padding: 26px 22px 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.gallery-head h2 { margin: 0; font-size: 18px; font-weight: 650; }
.muted { color: var(--muted); font-size: 13px; }

.masonry {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 22px 40px;
  column-count: 4;
  column-gap: 10px;
}
.gitem {
  break-inside: avoid;
  width: 100%;
  margin: 0 0 10px;
  position: relative;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  line-height: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
}
.gitem img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.gitem:hover img { transform: scale(1.035); }
.gitem .gmeta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 9px 7px;
  font-size: 10.5px;
  line-height: 1.35;
  color: #dfe1ea;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  opacity: 0;
  transition: opacity .18s;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.6;
}
.gitem:hover .gmeta { opacity: 1; }
.gitem .gmeta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gitem .gmeta time { color: #a9adba; flex: none; }

/* ── footer / floating ────────────────────────────────────────────── */
.foot {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 22px 36px;
  font-size: 11.5px;
  color: #6c707e;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.foot .dot { opacity: .6; }

.empty {
  max-width: 1000px;
  margin: 60px auto;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.to-bottom {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(24, 25, 31, .86);
  backdrop-filter: blur(12px);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .18s, background .18s, color .18s;
}
.to-bottom:hover { transform: translateY(-2px); background: var(--panel-3); color: #fff; }

/* ── drawer ───────────────────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
  animation: fade .2s ease;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 50;
  width: min(380px, 92vw);
  background: #0d0e12;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -30px #000;
  transform: translateX(102%);
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.drawer-body { padding: 16px 18px 30px; overflow-y: auto; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.stat {
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.stat b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.stat span { font-size: 11.5px; color: var(--muted); }

.side-title {
  margin: 18px 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6f7383;
}

.rank { display: flex; flex-direction: column; gap: 2px; }
.rank-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 6px 7px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background .15s;
}
.rank-row:hover { background: var(--panel); }
.rank-row.on { background: var(--accent-soft); }
.rank-row img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; background: var(--panel-2); }
.rank-row .rname { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .rbar { display: block; height: 3px; border-radius: 99px; background: var(--panel-3); margin-top: 3px; overflow: hidden; }
.rank-row .rbar i { display: block; height: 100%; border-radius: 99px; }
.rank-row .rn { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.type-list { display: flex; flex-wrap: wrap; gap: 6px; }
.type-pill {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.type-pill b { color: #fff; font-weight: 600; }

/* ── lightbox ─────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 5, 7, .94);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  animation: fade .18s ease;
}
.lb-figure {
  margin: 0;
  min-width: 0;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 0;
}
.lb-figure img {
  max-width: 100%;
  max-height: calc(100dvh - 110px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px -30px #000;
  background: #111;
}
.lb-figure figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  max-width: 92%;
}
.lb-figure figcaption a { flex: none; }
.lb-btn {
  justify-self: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #dfe1ea;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .14); }
.lb-btn:active { transform: scale(.95); }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lb-count {
  position: absolute;
  top: 22px; left: 24px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .masonry { column-count: 3; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .topbar-inner { padding: 10px 12px; gap: 8px; }
  .g-avatar { width: 40px; height: 40px; border-radius: 12px; }
  .tools { gap: 6px; }
  .g-meta h1 { font-size: 14.5px; }
  .g-sub { font-size: 11px; }
  .search { min-width: 0; width: 38px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search input { display: none; }
  .search.open { position: absolute; left: 12px; right: 12px; top: 10px; width: auto; background: var(--panel-2); border-color: var(--line-strong); padding: 0 12px; justify-content: flex-start; z-index: 5; }
  .search.open input { display: block; }
  .search.open svg { display: block; }
  .search.open .search-clear { display: block; }
  .seg { display: flex; padding: 2px; }
  .seg-btn { padding: 5px 7px; font-size: 11.5px; }
  .feed { padding: 18px 12px 30px; }
  .bubble { max-width: 86%; font-size: 14.5px; }
  .images.multi .img-btn { width: 118px; height: 118px; }
  .images.multi.count-2 .img-btn { width: 150px; height: 120px; }
  .masonry { column-count: 2; padding: 10px 12px 30px; }
  .gallery-head { padding: 20px 14px 4px; }
  .foot { padding: 8px 14px 30px; }
  .lightbox { grid-template-columns: 46px minmax(0, 1fr) 46px; }
  .lb-btn { width: 36px; height: 36px; }
  .to-bottom { right: 14px; bottom: 16px; }
  .drawer { width: min(340px, 94vw); }
}

@media (max-width: 420px) {
  .msg { grid-template-columns: 32px minmax(0, 1fr); column-gap: 9px; }
  .msg .ava, .msg .ava-fallback { width: 32px; height: 32px; border-radius: 9px; }
  .msg.me { grid-template-columns: minmax(0, 1fr) 32px; column-gap: 9px; }
  .images.multi .img-btn { width: 104px; height: 104px; }
  .images.multi.count-2 .img-btn { width: 132px; height: 106px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
