.pane-top { display: flex; align-items: center; gap: 8px; }
.pane-top h1 { flex: 1; }
.pane-actions { display: flex; gap: 6px; }
.pane-actions button, .head-actions button, .tool, .menu button, .sheet button.choice {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper-dim);
  font-size: 13px;
}
.pane-actions button:hover, .tool:hover, .menu button:hover { color: var(--paper); border-color: var(--brass); }
.head-actions { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: flex-end; align-items: center; }
.tools { width: min(720px, 100%); margin: 0 auto 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.tools[hidden] { display: none; }
.tool.is-on { color: var(--ink); background: var(--brass); border-color: var(--brass); }
.ref-bar, .pop, .sheet-card, .menu, .file-chip {
  border: 1px solid var(--line-strong);
  background: #141510;
}
.ref-bar {
  width: min(720px, 100%);
  margin: 0 auto 8px;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.ref-bar span { min-width: 0; }
.ref-bar b { display: block; color: var(--brass); font-size: 12px; font-weight: 560; }
.ref-bar em { display: block; color: var(--muted); font-style: normal; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-bar button, .sheet-x { margin-left: auto; border: 0; background: transparent; color: var(--paper); width: 28px; height: 28px; }
.pop {
  position: absolute;
  z-index: 30;
  width: min(360px, calc(100% - 24px));
  max-height: 280px;
  overflow: auto;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.emoji-grid, .sticker-grid { display: grid; gap: 6px; }
.emoji-grid { grid-template-columns: repeat(8, 1fr); }
.sticker-grid { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.emoji-grid button, .sticker-grid button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  height: 36px;
  font-size: 20px;
}
.sticker-grid button { height: 72px; }
.sticker-grid img, .bubble .sticker { width: 100%; height: 64px; object-fit: contain; }
.bubble .sticker { width: 120px; height: 120px; }
.emoji-grid button:hover, .sticker-grid button:hover { background: rgba(243, 239, 230, 0.06); }
.avatar.has-photo {
  background-position: center;
  background-size: cover;
  color: transparent;
}
.msg { align-items: flex-end; gap: 8px; }
.msg .who-name { display: block; margin: 0 0 4px 2px; color: var(--faint); font-size: 12px; }
.bubble { position: relative; }
.bubble:has(img.shot) { min-width: 132px; max-width: min(280px, 100%); }
.bubble img.shot { display: block; width: auto; max-width: 100%; height: auto; max-height: 280px; object-fit: contain; border-radius: 10px; margin-bottom: 6px; cursor: zoom-in; }
.shot-wrap { position: relative; display: block; width: fit-content; max-width: 100%; margin-bottom: 6px; }
.shot-wrap img.shot, .shot-wrap video.shot-video { margin-bottom: 0; }
.file-wrap { position: relative; display: block; width: fit-content; max-width: 100%; margin-bottom: 6px; }
.file-wrap .file-chip, .file-wrap .voice { margin-bottom: 0; }
.send-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(16, 16, 16, 0.42);
  color: #fff;
  pointer-events: auto;
  z-index: 2;
}
.send-mask i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(#fff calc(var(--p) * 1turn), rgba(255, 255, 255, 0.28) 0);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
  mask: radial-gradient(circle, transparent 58%, #000 59%);
}
.send-mask b {
  position: absolute;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.send-mask.is-spin i {
  background: none;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  -webkit-mask: none;
  mask: none;
  animation: send-spin 0.8s linear infinite;
}
.file-wrap .send-mask i { width: 28px; height: 28px; }
.file-wrap .send-mask b { font-size: 10px; }
@keyframes send-spin { to { transform: rotate(1turn); } }
.bubble p:empty { display: none; }
.file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(214, 185, 140, 0.08);
  color: inherit;
  text-decoration: none;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.msg.mine .file-chip { border-color: rgba(22, 21, 15, 0.16); background: rgba(22, 21, 15, 0.05); }
.quote {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 2px solid var(--brass);
  background: rgba(22, 21, 15, 0.06);
  color: inherit;
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 6px;
}
.msg:not(.mine) .quote { background: rgba(243, 239, 230, 0.04); }
.quote b { display: block; font-size: 12px; color: var(--brass-deep); }
.msg:not(.mine) .quote b { color: var(--brass); }
.quote span, .forward-tag, .burn-wait, .burn-count, .tick { font-size: 11px; }
.forward-tag { display: block; color: var(--faint); margin-bottom: 4px; }
.meta-line { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.meta-line time { margin-top: 0; }
.tick { color: var(--faint); font-style: normal; }
.msg.mine .tick.read { color: var(--brass-deep); }
.tick.fail { color: var(--danger); cursor: pointer; }
.likes {
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--brass-deep);
  font-size: 12px;
  padding: 0;
}
.system-line, .recall {
  width: 100%;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  margin: 8px 0;
}
.bubble.ashed { opacity: 0.7; letter-spacing: 0.08em; color: var(--faint); background: transparent; border-style: dashed; }
.msg.mine .bubble.ashed { color: rgba(22, 21, 15, 0.55); }
.embers { pointer-events: none; position: absolute; inset: 0; overflow: hidden; display: none; }
.bubble.is-burning { animation: char 0.9s ease forwards; }
.bubble.is-burning .embers { display: block; }
.embers i {
  position: absolute;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e7a15a;
  animation: ember 0.9s ease-in forwards;
}
.embers i:nth-child(1) { left: 20%; }
.embers i:nth-child(2) { left: 48%; animation-delay: 0.05s; background: #f3efe6; }
.embers i:nth-child(3) { left: 72%; animation-delay: 0.1s; }
@keyframes ember { to { transform: translateY(-46px) scale(0.2); opacity: 0; } }
@keyframes char {
  40% { filter: sepia(0.8) brightness(1.25); }
  100% { filter: grayscale(1) blur(1px); opacity: 0.35; transform: translateY(-4px); }
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  color: var(--brass);
  font-size: 11px;
  font-style: normal;
}
.menu {
  position: fixed;
  z-index: 60;
  min-width: 148px;
  padding: 6px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.menu button { display: block; width: 100%; text-align: left; margin: 2px 0; }
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.46);
  display: grid;
  place-items: center;
  padding: 20px;
}
.sheet[hidden] { display: none; }
.sheet-card {
  width: min(440px, 100%);
  max-height: min(78vh, 680px);
  overflow: auto;
  border-radius: 18px;
  padding: 18px;
  color: var(--paper);
}
.sheet-card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 560; }
.sheet-card label { display: block; margin: 10px 0; color: var(--muted); font-size: 13px; }
.sheet-card input[type="text"], .sheet-card input[type="number"] {
  width: 100%;
  margin-top: 6px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  padding: 0 10px;
}
.choice-row, .sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.choice.is-on, .sheet-actions .primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.member { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.member span { flex: 1; min-width: 0; }
.member .mini { display: flex; gap: 6px; }
.check { display: flex; gap: 8px; align-items: center; padding: 6px 0; color: var(--paper); }
.avatar-pick { width: 72px; height: 72px; border-radius: 50%; border: 1px dashed var(--line-strong); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.avatar-pick img { width: 100%; height: 100%; object-fit: cover; }
.folder-bar, .folder-head { display: flex; align-items: center; gap: 8px; margin: 8px 4px; }
.folder-head strong { flex: 1; color: var(--brass); font-size: 12px; letter-spacing: 0.08em; }
#toasts { z-index: 80; }
@media (max-width: 860px) {
  .head-actions { max-width: none; }
  .tools { padding: 0 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble.is-burning { animation: none; }
}

.text-link { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.msg.mine .text-link { color: var(--brass-deep); }
.link-card {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(214, 185, 140, 0.45);
  background: rgba(243, 239, 230, 0.06);
  color: inherit;
  text-decoration: none;
}
.msg.mine .link-card { background: rgba(22, 21, 15, 0.06); }
.link-card img { width: 100%; max-height: 140px; object-fit: cover; border-radius: 8px; }
.link-card span { display: grid; gap: 3px; min-width: 0; }
.link-card i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.link-card b { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.link-card em { font-style: normal; font-size: 13px; opacity: 0.72; }
.sheet-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }




button.file-chip { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.file-chip span { min-width: 0; }
.file-chip em { font-style: normal; color: var(--brass-deep); font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.shot-video { display: block; width: 100%; max-height: 280px; border-radius: 10px; margin-bottom: 6px; background: #111; }
.bubble:has(video.shot-video) { min-width: 220px; max-width: min(320px, 100%); }
.preview { position: fixed; inset: 0; z-index: 72; display: grid; place-items: center; padding: 16px; background: rgba(12, 11, 8, 0.78); }
.preview[hidden] { display: none; }
.preview-card { width: min(920px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--ink, #16150f); color: var(--paper, #f3efe6); border: 1px solid rgba(214, 185, 140, 0.38); border-radius: 18px; overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.preview-bar strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 520; }
.preview-bar button { border: 1px solid rgba(214, 185, 140, 0.45); background: transparent; color: #d6b98c; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
#preview-stage { display: grid; place-items: center; padding: 0 14px 16px; min-height: 160px; }
#preview-stage img, #preview-stage video { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 10px; }
#preview-stage audio { width: min(480px, 100%); }
#preview-stage iframe { width: min(860px, 100%); height: min(70vh, 720px); border: 0; background: #fff; border-radius: 8px; }
.preview-note { margin: 28px 8px; color: #d6b98c; }
#transfer { position: fixed; left: 50%; bottom: 22px; z-index: 74; transform: translateX(-50%); min-width: 240px; padding: 12px 14px; border-radius: 14px; background: #16150f; color: #f3efe6; border: 1px solid rgba(214, 185, 140, 0.4); }
#transfer[hidden] { display: none; }
#transfer b { display: block; height: 3px; margin-top: 8px; border-radius: 99px; background: rgba(214, 185, 140, 0.25); overflow: hidden; }
#transfer i { display: block; height: 3px; width: 0; background: #d6b98c; }

.typing-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 4px; color: var(--paper); }
.typing-row button { border: 1px solid rgba(214, 185, 140, 0.45); background: transparent; color: #d6b98c; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.typing-row button.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.typing-hint { margin: 0 0 8px; color: var(--faint); font-size: 12px; line-height: 1.5; }
.who-view { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 4px; color: var(--paper); }
.who-view div { display: flex; gap: 6px; }
.who-view button { border: 1px solid rgba(214, 185, 140, 0.45); background: transparent; color: #d6b98c; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.who-view button.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.at-suggest {
  width: min(720px, 100%);
  margin: 0 auto 8px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #141510;
}
.at-suggest[hidden] { display: none; }
.at-row {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}
.at-row.is-on, .at-row:hover { background: rgba(226, 182, 87, 0.12); }
.at-row b { display: block; font-weight: 560; }
.at-row i { color: var(--brass); font-style: normal; font-size: 11px; margin-left: 4px; }
.at-row small { display: block; color: var(--muted); font-size: 12px; }
.at-mark { width: 32px; flex: none; color: var(--brass); font-weight: 700; text-align: center; }
.at-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 13px; }

.photo { position: fixed; inset: 0; z-index: 73; background: rgba(8, 7, 5, 0.94); animation: photo-in .16s ease; }
.photo[hidden] { display: none; }
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
.photo-frame { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
#photo-img { max-width: 100vw; max-height: 100vh; object-fit: contain; pointer-events: auto; cursor: zoom-in; user-select: none; -webkit-user-drag: none; transition: opacity .12s ease; }
#photo-img.is-zoomed { cursor: grab; }
.photo-note { margin: 0; color: #d6b98c; pointer-events: none; }
.photo-note[hidden] { display: none; }
.photo-x, .photo-down, .photo-nav { position: absolute; z-index: 2; border: 1px solid rgba(214, 185, 140, 0.45); background: rgba(22, 21, 15, 0.62); color: #f3efe6; cursor: pointer; }
.photo-x, .photo-down { top: 16px; height: 36px; border-radius: 999px; }
.photo-x { right: 16px; width: 36px; font-size: 18px; }
.photo-down { right: 60px; padding: 0 14px; }
.photo-nav { top: 50%; width: 44px; height: 72px; margin-top: -36px; border-radius: 14px; font-size: 34px; line-height: 1; }
.photo-nav.prev { left: 14px; }
.photo-nav.next { right: 14px; }
.photo-nav[hidden] { display: none; }
.photo-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 36px 80px 18px; text-align: center; color: #f3efe6; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, 0.62)); }
.photo-meta[hidden] { display: none; }
#photo-count { display: block; font-size: 13px; letter-spacing: 0.08em; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
#photo-caption { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
#photo-count[hidden], #photo-caption[hidden] { display: none; }

button.who-name, button.person-hit, button.person-open {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}
button.who-name { display: block; text-align: left; }
button.who-name:hover, button.person-open:hover { color: var(--brass); }
.member .person-open { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; text-align: left; }
.member .person-open span { flex: 1; min-width: 0; }
.person-card { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 6px 0 2px; }
.person-card h3 { margin: 8px 0 0; font-family: var(--display); font-weight: 560; font-size: 22px; letter-spacing: -0.03em; }
.person-card .avatar.lg, .person-photo { width: 84px; height: 84px; border-radius: 28px; }
.person-photo { object-fit: cover; display: block; }
.person-id { margin: 0; color: var(--faint); letter-spacing: 0.08em; font-size: 12px; }
.person-meta { margin: 0; color: var(--muted); }

.sheet-head { display: flex; align-items: center; }
.sheet.sheet-profile {
  place-items: stretch end;
  padding: 0;
  background: rgba(0, 0, 0, 0.58);
}
.sheet.sheet-profile .sheet-card {
  position: relative;
  width: min(400px, 100%);
  height: 100%;
  max-height: none;
  border-radius: 0;
  padding: 0 0 32px;
  overflow: auto;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(214, 185, 140, 0.18), transparent 56%),
    var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.28);
}
.sheet.sheet-profile .sheet-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  justify-content: flex-end;
  padding: 14px 14px 0;
  pointer-events: none;
}
.sheet.sheet-profile #sheet-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.sheet.sheet-profile .sheet-x {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 12, 10, 0.62);
  border: 1px solid var(--line);
}
.tg { display: flex; flex-direction: column; align-items: center; padding-top: 36px; }
.tg-hero .avatar,
.tg-hero .person-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  font-size: 64px;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}
.tg-name {
  margin: 18px 20px 0;
  max-width: 100%;
  font-family: var(--display);
  font-weight: 560;
  font-size: 28px;
  letter-spacing: -0.04em;
  text-align: center;
}
.tg-status { margin: 6px 0 0; color: var(--faint); font-size: 14px; }
.tg-status.on { color: var(--brass); }
.tg-actions { display: flex; justify-content: center; gap: 18px; margin: 22px 0 6px; }
.tg-act {
  width: 76px;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brass);
}
.tg-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(214, 185, 140, 0.12);
}
.tg-bubble svg { width: 22px; height: 22px; }
.tg-act > span:last-child { color: var(--paper-dim); font-size: 12px; }
.tg-info {
  width: calc(100% - 36px);
  margin: 22px 18px 0;
  border-radius: 16px;
  background: var(--bg-raise);
  overflow: hidden;
}
.tg-row {
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.tg-row:last-child { border-bottom: 0; }
.tg-row small { color: var(--brass); font-size: 12px; }
.tg-row b { color: var(--paper); font-weight: 500; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  .sheet.sheet-profile .sheet-card { box-shadow: none; }
}

.history {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 72px;
}
.history-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.history-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from -90deg, var(--brass) calc(var(--p, 0) * 360deg), rgba(243, 239, 230, 0.14) 0);
  -webkit-mask: radial-gradient(circle, transparent 33px, #000 34px);
  mask: radial-gradient(circle, transparent 33px, #000 34px);
}
.history.is-wait .history-ring::before {
  background: conic-gradient(var(--brass) 0 72deg, rgba(243, 239, 230, 0.14) 72deg);
  animation: history-spin 1.05s linear infinite;
}
.history-pct {
  position: relative;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.history-kicker {
  margin: 22px 0 0;
  color: var(--brass);
  font-size: 11px;
  letter-spacing: 0.28em;
}
.history h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 520;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.history-track {
  width: min(260px, 72%);
  height: 2px;
  margin-top: 26px;
  border-radius: 99px;
  background: rgba(243, 239, 230, 0.12);
  overflow: hidden;
}
.history-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass));
  transition: width 0.28s ease;
}
.history.is-wait .history-track i {
  width: 36%;
  animation: history-slide 1.15s ease-in-out infinite;
}
.history-meta {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.history-meta b { color: var(--paper); font-weight: 560; }
@keyframes history-spin { to { transform: rotate(1turn); } }
@keyframes history-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
@media (max-width: 860px) {
  .history { padding: 20px 18px 28px; }
  .history h2 { font-size: 22px; }
  .history-ring { width: 72px; height: 72px; }
  .history-ring::before {
    -webkit-mask: radial-gradient(circle, transparent 25px, #000 26px);
    mask: radial-gradient(circle, transparent 25px, #000 26px);
  }
  .history-track { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .history.is-wait .history-ring::before,
  .history.is-wait .history-track i { animation: none; }
}

.gif-suggest {
  width: min(720px, 100%);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.gif-suggest::-webkit-scrollbar { display: none; }
.gif-suggest[hidden] { display: none; }
.gif-kicker { flex: none; color: var(--brass); font-size: 11px; letter-spacing: 0.16em; }
.gif-suggest button {
  flex: none;
  width: 96px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #141510;
  cursor: pointer;
}
.gif-suggest button:hover { border-color: var(--brass); }
.gif-suggest img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bubble .gif-shot {
  display: block;
  width: 200px;
  max-width: min(240px, 72vw);
  height: auto;
  border-radius: 12px;
  margin-bottom: 4px;
  background: #0b0c0a;
}

.tg-handle {
  margin: 4px 0 0;
  color: var(--brass);
  font-size: 13px;
  letter-spacing: 0.04em;
}

