/* Нюграм. Палитра и шрифт — эталон soloviev-web-design (claude-standards).
 * Тема одна и тёмная: --bg равен подложке знака СОЛОВЬЁВ GROUP, менять
 * его нельзя, не перерисовав знак. */

:root {
  color-scheme: dark;

  --bg: #3c3c3c;
  --on-bg: #d8d8d8;
  --on-bg-muted: #9aa0a6;
  --on-bg-strong: #ececec;

  --panel: #151515;
  --panel-hover: #212328;
  --fg: #ececec;
  --muted: #9aa0a6;
  --line: #34363a;

  --field: #212429;
  --field-ink: #ececec;
  --field-line: #3d4046;
  --field-ph: #6f757d;

  --accent: #1e56d6;
  --accent-ink: #ffffff;
  --ok: #4ec07f;
  --err: #ff8b80;
  --logo-blue: #4d8cff;

  --radius: 16px;
  --shadow: 1px 1px 4px rgba(0, 0, 0, .55);

  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  /* Пузырь своего сообщения — синий акцента, приглушённый к карточке:
     чистый акцент на всю ленту слепит и спорит с главной кнопкой. */
  --mine: color-mix(in srgb, var(--accent) 38%, var(--panel));
  --theirs: var(--panel-hover);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--on-bg);
  font: 15px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
input, select, textarea, button { font-family: inherit; font-size: inherit; }
table, .mono, code { font-variant-numeric: tabular-nums; }
.mono, code { font-family: var(--mono); font-size: .93em; }
[hidden] { display: none !important; }
a { color: var(--logo-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.err { color: var(--err); margin: 6px 0 0; }
.ok { color: var(--ok); }

.card {
  background: var(--panel);
  color: var(--fg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

input[type=text], input[type=email], input[type=password], input[type=search], textarea, select {
  background: var(--field);
  color: var(--field-ink);
  border: 1px solid var(--field-line);
  border-radius: 4px;
  padding: 8px 10px;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--field-ph); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--logo-blue);
  box-shadow: 0 0 0 3px rgba(77, 140, 255, .25);
}
button:focus-visible { outline: 2px solid var(--logo-blue); outline-offset: 2px; }

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  background: transparent;
  color: var(--fg);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { background: var(--panel-hover); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--logo-blue); cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ---- вход ---- */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); padding: 28px 24px; display: grid; gap: 14px; }
.login-logo { height: 44px; width: auto; margin: 11px auto 12px; display: block; }
.login-card label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }

/* ---- каркас ---- */
.app { height: 100%; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
/* Охранное поле широкого знака — H/4: при 28 px это 7 px. */
.brand { display: block; padding: 7px; margin: -7px; line-height: 0; }
.brand img { height: 28px; width: auto; }
.search { flex: 1; max-width: 520px; }
.who { margin-left: auto; display: flex; gap: 16px; white-space: nowrap; }

.body {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px;
  padding: 16px;
}
.side-wrap { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.side { display: flex; flex-direction: column; min-height: 0; overflow: hidden; flex: 1; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; gap: 8px; }
.side-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.side-actions { display: flex; gap: 6px; }
.chat-list { list-style: none; margin: 0; padding: 0 8px 8px; overflow-y: auto; flex: 1; }
.chat-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px; border-radius: 10px; cursor: pointer;
}
.chat-item:hover { background: var(--panel-hover); }
.chat-item.on { background: var(--panel-hover); box-shadow: inset 3px 0 0 var(--logo-blue); }
.chat-item .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .p { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 600; display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.credit {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--on-bg-muted); font-size: 12px;
}
.credit img { opacity: .92; }

/* Плашка «включите уведомления» над списком чатов. */
.push-banner {
  display: flex; align-items: center; gap: 10px; margin: 0 8px 8px; padding: 10px 12px;
  background: var(--panel-hover); border-radius: 10px; font-size: 13px; color: var(--fg);
}
.push-banner span { flex: 1; }

/* ---- аватар ---- */
.av {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 600; font-size: 14px;
  user-select: none;
}
.av.s { width: 22px; height: 22px; font-size: 10px; border: 2px solid var(--panel); }
.av.bot { background: transparent; }
.av.bot img { width: 100%; height: 100%; border-radius: 8px; }

/* ---- чат ---- */
.pane { display: flex; min-height: 0; overflow: hidden; }
.empty { margin: auto; color: var(--muted); padding: 24px; text-align: center; }
.chat { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title span { font-size: 13px; }
.back { display: none; }

.msgs { flex: 1; overflow-y: auto; padding: 16px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.more { align-self: center; margin-bottom: 8px; }
.day {
  align-self: center; font-size: 12px; color: var(--muted);
  padding: 2px 10px; border-radius: 10px; background: var(--panel-hover); margin: 8px 0;
}

/* Строка сообщения: аватар автора, пузырь и справа — аватары тех, у кого
   отметка «прочитано до» стоит на этом сообщении. Колонка прочитавших
   фиксированной ширины, чтобы пузыри не прыгали, когда она заполняется. */
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 120px; gap: 10px; align-items: end; }
.row.mine .bubble { justify-self: end; background: var(--mine); }
.row.cont .av:not(.s) { visibility: hidden; }
.bubble {
  justify-self: start; max-width: min(640px, 100%);
  background: var(--theirs); border-radius: 14px; padding: 8px 12px;
  position: relative; overflow-wrap: anywhere;
}
.bubble .who-name { font-size: 13px; font-weight: 600; color: var(--logo-blue); margin-bottom: 2px; }
.bubble .txt { white-space: pre-wrap; }
.bubble .meta { float: right; margin: 6px 0 0 12px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bubble .quote {
  border-left: 3px solid var(--logo-blue); padding: 2px 8px; margin: 2px 0 6px;
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.bubble .quote b { color: var(--fg); font-weight: 600; display: block; }
.bubble.deleted .txt { color: var(--muted); font-style: italic; }
.bubble.nudge { border: 1px dashed var(--logo-blue); }
.bubble.hook .who-name::after { content: " · вебхук"; color: var(--muted); font-weight: 400; }
.bubble.flash { box-shadow: 0 0 0 2px var(--logo-blue); }

.acts {
  position: absolute; top: -14px; right: 8px; display: none; gap: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 2px;
}
.bubble:hover .acts, .bubble:focus-within .acts { display: flex; }
/* На сенсорном экране наведения нет: панель открывается касанием по
   пузырю и закрывается следующим. */
@media (hover: none) {
  .bubble:hover .acts, .bubble:focus-within .acts { display: none; }
  .bubble.sel .acts { display: flex; }
}
.acts { white-space: nowrap; width: max-content; }
.row:not(.mine) .acts { left: 8px; right: auto; }
.acts button {
  background: none; border: 0; color: var(--muted); font-size: 12px; padding: 2px 6px;
  border-radius: 6px; cursor: pointer;
}
.acts button:hover { background: var(--panel-hover); color: var(--fg); }

.seen { display: flex; justify-content: flex-end; align-items: center; min-height: 22px; cursor: pointer; padding-bottom: 2px; }
.seen .av.s { margin-left: -6px; }
.seen .av.s:first-child { margin-left: 0; }
.seen .more-n { font-size: 11px; color: var(--muted); margin-left: 4px; }

.composer { border-top: 1px solid var(--line); padding: 10px 12px; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { resize: none; max-height: 40vh; min-height: 40px; line-height: 1.4; }
.reply-bar {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  border-left: 3px solid var(--logo-blue); padding: 2px 8px; margin-bottom: 8px;
  font-size: 13px; color: var(--muted);
}
.reply-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- всплывающее ---- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 20; display: grid; place-items: center; padding: 16px; }
.dialog {
  width: min(560px, 100%); max-height: calc(100% - 32px); overflow-y: auto;
  padding: 20px; display: grid; gap: 14px;
}
.dialog.wide { width: min(880px, 100%); }
.dialog h2 { margin: 0; font-size: 18px; color: var(--fg); }
.dialog h3 { margin: 8px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.dialog .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dialog label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.pick { max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.pick label { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: var(--fg); font-size: 15px; cursor: pointer; }
.pick label:hover { background: var(--panel-hover); }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.people .grow { flex: 1; min-width: 0; }
.people .when { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.toggle { display: flex !important; align-items: flex-start; gap: 10px; color: var(--fg) !important; font-size: 15px !important; }
.toggle input { margin-top: 4px; }
.toggle small { display: block; color: var(--muted); font-size: 13px; }
.secret {
  font-family: var(--mono); background: var(--field); border: 1px solid var(--field-line);
  border-radius: 4px; padding: 8px 10px; overflow-wrap: anywhere; user-select: all;
}
.note { font-size: 13px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line);
}
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tablebox { overflow-x: auto; }

.hit { padding: 10px; border-radius: 10px; cursor: pointer; display: grid; gap: 2px; }
.hit:hover { background: var(--panel-hover); }
.hit .h { font-size: 13px; color: var(--muted); }
.hit mark { background: rgba(77, 140, 255, .3); color: var(--fg); border-radius: 3px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--panel); color: var(--fg); box-shadow: var(--shadow);
  border-radius: 10px; padding: 10px 16px; z-index: 30;
}

/* ---- телефон: перелом на 720 ---- */
@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 10px; padding: 8px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .who { gap: 12px; font-size: 14px; }
  #lnk-apps { display: none; }
  .body { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
  .app.in-chat .side-wrap { display: none; }
  .app:not(.in-chat) .pane { display: none; }
  .back { display: inline-block; }
  .row { grid-template-columns: 28px minmax(0, 1fr) 64px; gap: 6px; }
  .row .av:not(.s) { width: 28px; height: 28px; font-size: 12px; }
}

/* ---- вложения ---- */
.icon-btn {
  background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 8px;
  cursor: pointer; display: grid; place-items: center; flex: none;
}
.icon-btn:hover { color: var(--fg); background: var(--panel-hover); }
.pending { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px;
  background: var(--panel-hover); border-radius: 10px; padding: 6px 10px 6px 6px; max-width: 280px; font-size: 13px;
}
.chip img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.chip.bad { box-shadow: inset 0 0 0 1px var(--err); }
.chip .cname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.chip .csize { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--logo-blue); }
.ficon {
  width: 36px; height: 36px; border-radius: 6px; background: var(--field); color: var(--logo-blue);
  display: grid; place-items: center; font: 600 10px var(--mono); flex: none;
}
.drop {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  background: rgba(21, 21, 21, .88); border: 2px dashed var(--logo-blue); border-radius: var(--radius);
  color: var(--fg); font-size: 18px; pointer-events: none;
}
.chat { position: relative; }

.pics { display: grid; gap: 4px; margin: 2px 0 6px; max-width: 420px; }
.pics.n2 { grid-template-columns: 1fr 1fr; }
.pics.n3 { grid-template-columns: 1fr 1fr 1fr; }
.pic { padding: 0; border: 0; background: var(--field); border-radius: 10px; overflow: hidden; cursor: zoom-in; display: block; max-height: 360px; }
.pics:not(.n1) .pic { aspect-ratio: 1; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; padding: 6px 10px 6px 6px;
  border-radius: 10px; background: rgba(0, 0, 0, .18); color: var(--fg); max-width: 360px;
}
.file:hover { text-decoration: none; background: rgba(0, 0, 0, .3); }
.fmeta { display: flex; flex-direction: column; min-width: 0; }
.fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsize { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dialog.photo { width: auto; max-width: min(1200px, 100%); }
.viewer { display: grid; place-items: center; }
.viewer img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 8px; }

/* ---- голосовые ---- */
.voice { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; min-width: 220px; max-width: 340px; }
.vplay {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.vplay .i-pause { display: none; }
.voice.playing .i-pause { display: inline; }
.voice.playing .i-play { display: none; }
.wave { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.wave i { flex: 1; min-width: 2px; border-radius: 1px; background: var(--muted); opacity: .55; }
.wave i.done { background: var(--logo-blue); opacity: 1; }
.vtime { font-size: 12px; color: var(--muted); min-width: 34px; }
.vspeed { white-space: nowrap; flex: none; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; font-size: 11px; padding: 1px 5px; cursor: pointer; }
.rec-bar { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.rec-bar canvas { flex: 1; min-width: 0; height: 28px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--err); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }

/* ---- реакции, упоминания, закреп, пересылка ---- */
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; clear: both; }
.react {
  border: 1px solid var(--line); background: rgba(0, 0, 0, .18); color: var(--fg);
  border-radius: 12px; padding: 1px 8px; font-size: 13px; cursor: pointer; line-height: 1.6;
}
.react span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.react.mine { border-color: var(--logo-blue); background: rgba(77, 140, 255, .18); }
.picker {
  position: absolute; top: -46px; right: 8px; z-index: 3; display: flex; gap: 2px; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.picker button { background: none; border: 0; font-size: 20px; padding: 2px 4px; border-radius: 8px; cursor: pointer; }
.picker button:hover { background: var(--panel-hover); }
.mention { color: var(--logo-blue); font-weight: 600; }
.bubble.tome { box-shadow: inset 3px 0 0 var(--logo-blue); }
.badge.at { background: var(--logo-blue); }
.fwd { font-size: 12px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 8px; margin: 2px 0 6px; }
.pinned {
  display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-bottom: 1px solid var(--line);
  background: var(--panel-hover); font-size: 13px;
}
.pin-go { flex: 1; min-width: 0; display: flex; gap: 8px; background: none; border: 0; color: var(--fg); cursor: pointer; text-align: left; padding: 0; font: inherit; }
.pin-go b { color: var(--logo-blue); font-weight: 600; flex: none; }
.pin-go span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-box {
  margin-bottom: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  max-height: 240px; overflow-y: auto; padding: 4px;
}
.mention-box .opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.mention-box .opt.on, .mention-box .opt:hover { background: var(--panel-hover); }

/* ---- присутствие, черта непрочитанного ---- */
.avw { position: relative; display: inline-block; line-height: 0; }
.online {
  position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ok); border: 2px solid var(--panel);
}
.chat-item:hover .online, .chat-item.on .online { border-color: var(--panel-hover); }
.typing-l { color: var(--logo-blue); font-style: normal; }
.badge.dot { min-width: 12px; width: 12px; height: 12px; padding: 0; }
.newline { display: flex; align-items: center; gap: 10px; margin: 8px 0; color: var(--logo-blue); font-size: 12px; }
.newline::before, .newline::after { content: ""; flex: 1; height: 1px; background: var(--logo-blue); opacity: .5; }

/* ---- обсуждения в ветках ---- */
.thread { width: 380px; flex: none; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.thread .msgs { gap: 0; padding: 8px 12px; }
.trow { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
.troot { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.thead { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.thead b { color: var(--logo-blue); font-weight: 600; }
.tbody .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.tcount { font-size: 12px; color: var(--muted); padding: 8px 0 2px; text-transform: uppercase; letter-spacing: .04em; }
.thread-link {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; clear: both; background: none; border: 0; padding: 0;
  color: var(--logo-blue); font: inherit; font-size: 13px; cursor: pointer;
}
.thread-link:hover { text-decoration: underline; }
.tl-av { display: flex; }
.tl-av .av.s { margin-left: -6px; }
.tl-av .av.s:first-child { margin-left: 0; }
.tl-new { background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 0 6px; font-size: 11px; }
@media (max-width: 1100px) {
  .thread { position: absolute; inset: 0 0 0 auto; background: var(--panel); z-index: 5; box-shadow: var(--shadow); }
  .pane { position: relative; }
}
@media (max-width: 720px) {
  .thread { width: 100%; border-left: 0; }
}

/* ---- гостевые чаты ---- */
.tag {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; vertical-align: 1px;
  font-size: 11px; font-weight: 500; line-height: 17px; color: var(--logo-blue);
  background: rgba(77, 140, 255, .16);
}
.guest-bar {
  display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 6px 16px; border-bottom: 1px solid var(--line);
  background: var(--panel-hover); font-size: 13px; color: var(--fg);
}
.guest-bar b { color: var(--muted); font-weight: 500; margin-right: 4px; }
.guest-bar .gb-page { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .bubble.note, .row.mine .bubble.note { background: transparent; border: 1px dashed var(--muted); }
.note-l { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.note-tg { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; align-self: center; cursor: pointer; }
.note-tg input { margin: 0; }
#input.noting { border-style: dashed; border-color: var(--muted); }
.closed-tg { display: block; margin: 6px 8px 2px; font-size: 13px; }
