/* Twipe 1.6.0: view-once media, call screen, attach sheet, voice and circles */

/* ---------- view-once ---------- */
.msg-bubble--view-once { padding: 6px !important; min-width: 220px; }
.view-once-btn, .view-once-card {
  display: flex; flex-direction: row; align-items: center; gap: 12px; width: 100%;
  border: 0; border-radius: 14px; padding: 10px 14px 10px 10px;
  font: inherit; text-align: left; color: #fff;
  background: linear-gradient(135deg, #ff7a45, #e5366f 55%, #9b3cf0);
  box-shadow: 0 8px 22px -12px rgba(229, 54, 111, .8);
}
.view-once-btn { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.view-once-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(229, 54, 111, .9); }
.view-once-btn:active { transform: scale(.98); }
.view-once-ico {
  flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 19px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.view-once-btn .view-once-text, .view-once-text { opacity: 1; font-size: inherit; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.view-once-text b { font-size: 14px; font-weight: 650; }
.view-once-text small { font-size: 12px; opacity: .85; }
.view-once-card.is-viewed { background: color-mix(in srgb, var(--text, #0f172a) 8%, transparent); color: var(--text, #0f172a); box-shadow: none; }
.view-once-card.is-viewed .view-once-ico { background: color-mix(in srgb, var(--text, #0f172a) 10%, transparent); box-shadow: none; filter: grayscale(1); opacity: .7; }
.msg.out .view-once-card.is-viewed { color: inherit; background: rgba(255, 255, 255, .16); }

.view-once-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.view-once-ttl {
  border: 1px solid color-mix(in srgb, var(--line, #cbd5e1) 80%, transparent); border-radius: 10px;
  padding: 6px 10px; font: inherit; font-size: 13px; background: var(--bg-elevated, #fff); color: inherit;
}

.vo-viewer {
  position: fixed; inset: 0; z-index: 10050; display: flex; flex-direction: column;
  background: rgba(6, 8, 14, .94); backdrop-filter: blur(18px); color: #fff;
  opacity: 0; transition: opacity .24s ease; user-select: none; -webkit-user-select: none;
}
.vo-viewer.is-open { opacity: 1; }
.vo-top { display: flex; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 10px; }
.vo-badge { font-weight: 650; font-size: 14px; padding: 7px 12px; border-radius: 999px; background: linear-gradient(135deg, #ff7a45, #e5366f); }
.vo-ring { width: 40px; height: 40px; margin-left: auto; transform: rotate(-90deg); }
.vo-ring-bg { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 4; }
.vo-ring-fg { fill: none; stroke: #ff7a45; stroke-width: 4; stroke-linecap: round; }
.vo-ring-num { fill: #fff; font: 700 15px system-ui, sans-serif; text-anchor: middle; transform: rotate(90deg); transform-origin: 24px 24px; }
.vo-close {
  margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 17px;
}
.vo-ring + .vo-close { margin-left: 0; }
.vo-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 16px; transform: scale(.96); transition: transform .3s cubic-bezier(.2, .9, .3, 1.15); }
.vo-viewer.is-open .vo-stage { transform: none; }
.vo-stage--album { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; place-items: initial; align-items: center; }
.vo-stage--album .vo-media { scroll-snap-align: center; flex: 0 0 auto; max-width: 86vw; }
.vo-media { max-width: 100%; max-height: 100%; border-radius: 18px; object-fit: contain; -webkit-user-drag: none; pointer-events: none; }
video.vo-media { pointer-events: auto; }
.vo-media--circle { width: min(78vw, 420px); height: min(78vw, 420px); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(255, 122, 69, .6); }
.vo-voice { display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(80vw, 360px); }
.vo-voice-ring {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff7a45, #e5366f); animation: vo-pulse 1.6s ease-in-out infinite;
}
.vo-voice-ring .ui-icon { width: 46px; height: 46px; background: #fff; }
.vo-voice-bar { width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.vo-voice-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 6px; transition: width .2s linear; }
.vo-hint { text-align: center; font-size: 13px; opacity: .7; padding: 6px 16px max(18px, env(safe-area-inset-bottom)); margin: 0; }
.vo-empty { opacity: .7; }
@keyframes vo-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 69, .5); } 50% { box-shadow: 0 0 0 18px rgba(255, 122, 69, 0); } }
@media (prefers-reduced-motion: reduce) { .vo-stage, .vo-viewer { transition: none; } .vo-voice-ring { animation: none; } }

/* ---------- call screen ---------- */
#callSheet .call-screen { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
#callSheet:not(.call-sheet--video) .call-head { flex: 1; justify-content: center; padding-bottom: 8vh; }
#callSheet:not(.call-sheet--video) .call-peer-ava { width: 128px; height: 128px; font-size: 46px; }
#callSheet:not(.call-sheet--video) .call-stage { position: absolute; inset: 0; margin: 0; pointer-events: none; background: transparent; }
#callSheet:not(.call-sheet--video) .call-stage .call-video-local { pointer-events: auto; }
#callSheet.call-sheet--video .call-stage { position: absolute; inset: 0; margin: 0; border-radius: 0; z-index: 1; }
#callSheet.call-sheet--video .call-head {
  top: 0; padding: calc(16px + env(safe-area-inset-top)) 16px 40px;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent);
  transition: opacity .35s ease, transform .35s ease;
}
#callSheet.call-sheet--video:not(.has-remote-video) .call-peer-ava { display: grid; width: 112px; height: 112px; margin-top: 18vh; }
#callSheet .call-video-remote { transition: opacity .3s ease; }
#callSheet:not(.has-remote-video) .call-video-remote { opacity: 0; }

#callSheet .call-video-local {
  right: 16px; bottom: 110px; top: auto; left: auto;
  width: min(28vw, 168px); aspect-ratio: 3 / 4; border-radius: 20px;
  touch-action: none; cursor: grab; z-index: 4;
  transition: top .35s cubic-bezier(.2, .9, .3, 1.1), left .35s cubic-bezier(.2, .9, .3, 1.1), right .35s cubic-bezier(.2, .9, .3, 1.1), bottom .35s cubic-bezier(.2, .9, .3, 1.1), width .3s ease, border-radius .3s ease;
}
#callSheet .call-video-local.is-mirror { transform: scaleX(-1); }
#callSheet .call-video-local.is-dragging { transition: none; cursor: grabbing; }
#callSheet .call-video-local[data-corner="tl"] { top: calc(96px + env(safe-area-inset-top)); left: 16px; right: auto; bottom: auto; }
#callSheet .call-video-local[data-corner="tr"] { top: calc(96px + env(safe-area-inset-top)); right: 16px; bottom: auto; }
#callSheet .call-video-local[data-corner="bl"] { left: 16px; right: auto; }
#callSheet.is-swapped.has-remote-video .call-video-local { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; border: 0; z-index: 1; }
#callSheet.is-swapped.has-remote-video .call-video-remote {
  inset: auto 16px 110px auto; width: min(28vw, 168px); height: auto; aspect-ratio: 3 / 4;
  border-radius: 20px; z-index: 4; border: 2px solid rgba(255, 255, 255, .25); pointer-events: none;
}

.call-peer-flags { position: absolute; left: 50%; top: calc(150px + env(safe-area-inset-top)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 5; pointer-events: none; }
#callSheet:not(.call-sheet--video) .call-peer-flags { top: auto; bottom: 120px; }
.call-flag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(0, 0, 0, .5); backdrop-filter: blur(12px); white-space: nowrap; animation: rd-composer-in .25s ease both; }
.call-flag-ico--mic { width: 14px; height: 14px; border-radius: 50%; background: #f43f5e; }

#callSheet .call-dock { position: relative; z-index: 6; gap: 10px; margin-top: auto; transition: opacity .35s ease, transform .35s ease; }
#callSheet.call-sheet--video .call-dock { position: absolute; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 0 12px; }
#callSheet.is-idle .call-dock { opacity: 0; transform: translateY(24px); pointer-events: none; }
#callSheet.is-idle .call-head { opacity: 0; transform: translateY(-16px); }
#callSheet.is-idle .call-video-local:not(.is-dragging) { bottom: 24px; }

.call-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px;
  border-radius: 999px; background: rgba(20, 22, 40, .55);
  border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.call-bar-slots { display: flex; align-items: center; gap: 8px; }
#callSheet .call-bar .call-chip { width: 56px; height: 56px; border-radius: 50%; gap: 0; }
#callSheet .call-bar .call-chip .call-chip-label { display: none; }
#callSheet .call-bar .call-chip .call-chip-ico { width: 25px; height: 25px; }
.call-more-btn {
  width: 44px; height: 56px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 20px; line-height: 1;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), background .2s ease;
}
.call-more-btn span { display: inline-block; transform: translateY(4px); transition: transform .3s cubic-bezier(.2, .9, .3, 1.3); }
.call-dock.is-more .call-more-btn span { transform: translateY(-2px) rotate(180deg); }
.call-more-btn:hover { background: rgba(255, 255, 255, .16); }

#callSheet .call-chip.is-on { background: #fff; }
#callSheet .call-chip.is-on .call-chip-ico { background-color: #111827; }
#callSheet .call-chip.is-on .call-chip-label { color: #111827; }
#callSheet .call-chip.active-off { background: rgba(244, 63, 94, .9); }
#callSheet .call-chip.active-off .call-chip-ico { background-color: #fff; }
#callSheet .call-chip.active-off .call-chip-label { color: #fff; }
#callSheet .call-chip--cam:not(.is-on) .call-chip-ico, #callSheet .call-chip-ico-mic { position: relative; }
#callSheet .call-chip--cam:not(.is-on), #callSheet .call-chip.active-off { position: relative; }
#callSheet .call-chip--cam:not(.is-on)::after, #callSheet .call-chip.active-off::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 2.5px; border-radius: 2px;
  background: currentColor; color: #fff; transform: translate(-50%, -50%) rotate(-40deg); pointer-events: none;
}
#callSheet .call-more-grid .call-chip--cam:not(.is-on)::after, #callSheet .call-more-grid .call-chip.active-off::after { top: 26px; width: 26px; }
#callSheet .call-chip.is-disabled { opacity: .45; }
#callSheet .call-chip--hangup { background: linear-gradient(135deg, #f43f5e, #dc2626) !important; box-shadow: 0 12px 28px -12px rgba(244, 63, 94, .95); }
#callSheet .call-chip--hangup .call-chip-ico { background-color: #fff !important; }
#callSheet .call-bar .call-chip--hangup { width: 64px; border-radius: 999px; }

.call-more {
  width: min(460px, calc(100vw - 24px)); padding: 14px; border-radius: 26px;
  background: rgba(16, 18, 36, .9); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .9);
  animation: rd-drawer-up .32s cubic-bezier(.2, .9, .3, 1.15) both; transform-origin: bottom center;
}
.call-more[hidden] { display: none; }
.call-more-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px; }
.call-more-head b { font-size: 16px; }
.call-more-edit { border: 0; border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; background: rgba(255, 255, 255, .12); color: #fff; }
.call-dock.is-editing .call-more-edit { background: #fff; color: #111827; }
.call-more-hint { margin: -4px 4px 12px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .65); }
.call-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.call-more-grid.is-empty::before { content: "Все кнопки уже в панели"; grid-column: 1 / -1; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .6); padding: 10px 0; }
#callSheet .call-more-grid .call-chip { width: auto; height: 74px; border-radius: 18px; }
#callSheet .call-more-grid .call-chip-label { font-size: 11.5px; text-align: center; line-height: 1.15; padding: 0 2px; }

.call-dock.is-editing [data-call-act] { animation: call-wiggle .32s ease-in-out infinite alternate; }
.call-dock.is-editing [data-call-act]::before {
  content: "+"; position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; line-height: 1;
  background: #22c55e; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); z-index: 2;
}
.call-dock.is-editing .call-bar [data-call-act]::before { content: "−"; background: #f43f5e; }
.call-dock.is-editing .call-bar [data-call-act="hangup"]::before { content: "⇆"; background: #64748b; font-size: 12px; }
.call-dock.is-editing [data-call-act] { position: relative; overflow: visible; }
.call-dock.is-editing .call-bar [data-call-act] { cursor: grab; touch-action: none; }
.call-dock.is-editing .is-dragging { animation: none; transform: scale(1.12); opacity: .9; z-index: 3; }
@keyframes call-wiggle { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .call-dock.is-editing [data-call-act] { animation: none; } }
@media (max-width: 400px) {
  #callSheet .call-bar .call-chip { width: 50px; height: 50px; }
  #callSheet .call-bar .call-chip--hangup { width: 58px; }
  .call-more-btn { width: 38px; height: 50px; }
}
#callSheet.call-sheet--video .call-drawer { position: absolute; left: 12px; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); margin: 0 auto; z-index: 7; }

/* ---------- QR: dark modules on a pure white plate in every theme ---------- */
#authDesktopQrImg, .privacy-qr-img { background: #fff !important; filter: none !important; mix-blend-mode: normal !important; }
.auth-desktop-qr-frame, .privacy-qr-stage { background: #fff !important; border-radius: 22px !important; }
html[data-theme="dark"] .auth-desktop-qr-frame,
html[data-theme="dark"] .privacy-qr-stage {
  border: 0 !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 6px rgba(129, 140, 248, .28), 0 18px 50px -16px rgba(99, 102, 241, .65) !important;
}

/* ---------- attach sheet («скрепка») ---------- */
#composerMediaPanel .composer-media-tabs { display: none !important; }
#composerMediaPanel .composer-media-handle { margin-bottom: 2px; }
.attach-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.attach-head b { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.attach-close { width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; font-size: 14px; background: color-mix(in srgb, var(--text, #0f172a) 8%, transparent); color: inherit; }
#composerMediaPanel .attach-categories {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px !important;
  padding: 0 0 12px !important; margin: 0 0 6px; border-bottom: 1px solid color-mix(in srgb, var(--line, #e2e8f0) 70%, transparent);
}
#composerMediaPanel .attach-cat {
  display: flex !important; flex-direction: column; align-items: center; gap: 6px; min-height: 0 !important; height: auto !important;
  padding: 4px 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
  font: inherit; font-size: 12px; font-weight: 600; color: inherit; cursor: pointer;
}
#composerMediaPanel .attach-cat-tile {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1, #3b82f6), var(--c2, #6366f1)); box-shadow: 0 10px 22px -12px var(--c2, #6366f1);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .2s ease;
}
#composerMediaPanel .attach-cat-tile .ui-icon { width: 24px; height: 24px; background-color: #fff; }
#composerMediaPanel .attach-cat-tile--emoji { font-size: 24px; line-height: 1; }
#composerMediaPanel .attach-cat:hover .attach-cat-tile { transform: translateY(-2px); }
#composerMediaPanel .attach-cat:active .attach-cat-tile { transform: scale(.92); }
#composerMediaPanel .attach-cat.is-active .attach-cat-tile { box-shadow: 0 0 0 3px var(--bg-elevated, #fff), 0 0 0 5px var(--c2); }
.attach-cat--gallery { --c1: #38bdf8; --c2: #3b82f6; }
.attach-cat--file { --c1: #818cf8; --c2: #6366f1; }
.attach-cat--location { --c1: #34d399; --c2: #10b981; }
.attach-cat--poll { --c1: #fbbf24; --c2: #f97316; }
.attach-cat--music { --c1: #f472b6; --c2: #e11d48; }
.attach-cat--video { --c1: #fb7185; --c2: #ef4444; }
.attach-cat--board { --c1: #a78bfa; --c2: #8b5cf6; }
.attach-cat--html { --c1: #94a3b8; --c2: #64748b; }

/* ---------- voice messages ---------- */
.msg-bubble-voice--tg { min-width: 240px; }
.voice-play--tg { position: relative; display: grid; place-items: center; cursor: pointer; transition: transform .2s cubic-bezier(.2, .9, .3, 1.3); box-shadow: 0 8px 18px -10px var(--accent, #3b82f6); }
.voice-play--tg:active { transform: scale(.9); }
.voice-play-shape { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; transition: all .18s ease; }
.voice-play--tg.is-playing .voice-play-shape { width: 13px; height: 15px; margin-left: 0; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
.msg.out .voice-play--tg { background: #fff; color: var(--accent, #3b82f6); }
.voice-wave--tg { display: flex; align-items: center; gap: 2px; height: 26px; cursor: pointer; touch-action: none; }
.voice-wave--tg span { flex: 1 1 0; max-width: 4px; min-height: 4px; opacity: .38; transition: opacity .15s ease, transform .15s ease; }
.voice-wave--tg span.is-played { opacity: 1; }
.msg-bubble-voice.is-playing .voice-wave--tg span.is-played:last-of-type { transform: scaleY(1.1); }
.msg.out .voice-wave--tg span { background: #fff !important; }
.voice-tg-meta .voice-seek--tg { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.voice-tg-meta { position: relative; }
.voice-dur { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; min-width: 32px; }
.voice-rate {
  border: 0; border-radius: 999px; padding: 2px 8px; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
  background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; opacity: .85;
}
.voice-rate:hover { opacity: 1; }
.msg:not(.out) .msg-bubble-voice:not(.is-listened) .voice-tg-dot { display: inline-block; }
.voice-tg-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #3b82f6); align-self: flex-start; margin-top: 6px; }

/* ---------- 1.6.0: панель проверки голосового перед отправкой ---------- */
.record-review.composer-draft-panel { border-radius: 22px; padding: 12px 14px 12px; box-shadow: 0 -6px 28px rgba(15, 23, 42, .08); }
.record-review .composer-draft-head { margin-bottom: 4px; }
#recordReviewLabel { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
#recordDiscardBtn { border-radius: 999px; color: #ef4444; font-weight: 600; }
.record-review:has(#voiceTrimEditor:not(.hidden)) #recordReviewAudio { display: none; }
.record-review .voice-trim-editor { padding: 6px 2px 2px; }
.record-review .voice-trim-bar { height: 40px; border-radius: 14px; background: color-mix(in srgb, var(--accent, #4f7cff) 10%, transparent); }
.record-review .voice-trim-track-fill { border-radius: 12px; }
.record-review .voice-trim-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-variant-numeric: tabular-nums; font-size: 12px; opacity: .85; }
.record-review .voice-trim-play {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #4f7cff, #8b5cf6); color: #fff; font-size: 14px;
  box-shadow: 0 6px 16px rgba(79, 124, 255, .35); cursor: pointer; transition: transform .15s ease;
}
.record-review .voice-trim-play:active { transform: scale(.92); }
.review-view-once {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 12px 7px 8px;
  border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none;
  background: color-mix(in srgb, #f97316 10%, transparent); color: inherit;
}
.review-view-once input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: rgba(120, 120, 140, .35); position: relative; margin: 0; transition: background .2s ease; cursor: pointer; }
.review-view-once input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.review-view-once input:checked { background: linear-gradient(135deg, #f97316, #ec4899); }
.review-view-once input:checked::after { transform: translateX(14px); }
html[data-theme="dark"] .record-review.composer-draft-panel { box-shadow: 0 -6px 28px rgba(0, 0, 0, .35); }

/* 2.0.1: ранние сообщения подгружаются окном */
.msg-load-earlier {
  display: block;
  margin: 6px auto 10px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #3b82f6) 12%, transparent);
  color: var(--accent, #3b82f6);
  font: 600 12.5px/1.2 inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.msg-load-earlier:hover { background: color-mix(in srgb, var(--accent, #3b82f6) 20%, transparent); }
.msg-load-earlier:active { transform: scale(0.97); }
