/* =====================================================================
   MVP Shop — интерфейс чата (модуль chat.js).
   Окно переписки .mvc, кнопка чата .mvf, уведомление .mvc-note,
   просмотр фото .mvc-viewer, страница «Сообщения» .mvh.
   Темы: [data-theme=light] / тёмная по умолчанию / [data-theme=amoled].
   ===================================================================== */

/* ---------- Палитра ---------- */
.mvc, .mvf, .mvc-note, .mvh, .chats-page-screen {
  --g: #22d36b;                 /* ярко-зелёный акцент */
  --g-2: #12c25c;
  --g-ink: #03240f;             /* текст на зелёном */
  --g-text: #3ee07f;            /* зелёный текст на фоне */
  --g-soft: rgba(34, 211, 107, .14);
  --g-glow: rgba(34, 211, 107, .09);
  --bg: #0b0c0e;
  --bg-2: #131418;
  --bg-3: #1b1c21;
  --bg-4: #25272d;
  --ink: #f3f4f6;
  --ink-2: #a3a6ae;
  --ink-3: #6c707a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --bubble-in: #1d1f24;
  --bubble-in-ink: #f3f4f6;
  --danger: #ff5d5d;
  --amber-bg: rgba(255, 184, 76, .14);
  --amber-ink: #ffc978;
  --lift: 0 24px 60px -18px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .07);
  --float: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
  --spring: cubic-bezier(.18, 1.25, .4, 1);
  --glide: cubic-bezier(.22, 1, .36, 1);
  --snap: cubic-bezier(.5, 0, .75, 0);
}
[data-theme=light] .mvc, [data-theme=light] .mvf, [data-theme=light] .mvc-note, [data-theme=light] .mvh, [data-theme=light] .chats-page-screen {
  --g: #1fcf66;
  --g-2: #14b956;
  --g-ink: #032810;
  --g-text: #0f9d48;
  --g-soft: rgba(31, 207, 102, .14);
  --g-glow: rgba(31, 207, 102, .2);
  --bg: #f6f7f9;
  --bg-2: #ffffff;
  --bg-3: #eff1f4;
  --bg-4: #e3e6ea;
  --ink: #0e1013;
  --ink-2: #5d626c;
  --ink-3: #9196a0;
  --line: rgba(14, 16, 19, .08);
  --line-2: rgba(14, 16, 19, .14);
  --bubble-in: #ffffff;
  --bubble-in-ink: #0e1013;
  --danger: #e5484d;
  --amber-bg: #fff3dc;
  --amber-ink: #8a5300;
  --lift: 0 24px 60px -20px rgba(14, 30, 20, .3), 0 0 0 1px rgba(14, 16, 19, .07);
  --float: 0 10px 28px -12px rgba(14, 30, 20, .28), 0 0 0 1px var(--line);
}
[data-theme=amoled] .mvc, [data-theme=amoled] .mvh, [data-theme=amoled] .chats-page-screen {
  --bg: #000; --bg-2: #0b0b0d; --bg-3: #141417; --bg-4: #1e1f23; --bubble-in: #141417;
}

/* =====================================================================
   «Пульс» — аватар поддержки: сфера с полосками-эквалайзером
   ===================================================================== */
.mvc-pulse {
  --sz: 44px;
  position: relative; flex: none; width: var(--sz); height: var(--sz); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--sz) * .07);
  background: radial-gradient(120% 120% at 30% 20%, #6cf5a3 0%, #22d36b 45%, #0fa84d 100%);
  box-shadow: inset 0 -3px 8px rgba(0, 60, 25, .35), inset 0 2px 4px rgba(255, 255, 255, .45), 0 6px 16px -6px rgba(34, 211, 107, .7);
}
.mvc-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(60% 40% at 35% 18%, rgba(255, 255, 255, .55), transparent 70%);
  pointer-events: none;
}
.mvc-pulse i {
  display: block; width: calc(var(--sz) * .085); border-radius: 99px; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 60, 25, .25);
}
.mvc-pulse i:nth-child(1) { height: calc(var(--sz) * .22); }
.mvc-pulse i:nth-child(2) { height: calc(var(--sz) * .40); }
.mvc-pulse i:nth-child(3) { height: calc(var(--sz) * .28); }
.mvc-pulse:not(.is-live) { background: radial-gradient(120% 120% at 30% 20%, #9de7bd 0%, #4cc583 50%, #2c9a5e 100%); }
.mvc-pulse.is-live i { animation: mvcTalk 1.1s ease-in-out infinite; transform-origin: 50% 50%; }
.mvc-pulse.is-live i:nth-child(2) { animation-delay: -.35s; }
.mvc-pulse.is-live i:nth-child(3) { animation-delay: -.7s; }
@keyframes mvcTalk { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1.15); } }

/* =====================================================================
   Кнопка чата
   ===================================================================== */
.mvf {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 100010;
  width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--g-ink);
  background: radial-gradient(110% 110% at 30% 15%, #7af7ae 0%, var(--g) 45%, var(--g-2) 100%);
  box-shadow: 0 14px 30px -12px rgba(34, 211, 107, .85), 0 3px 8px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .45s var(--spring), box-shadow .3s ease, opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 860px) { .mvf { right: 16px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; } }
.mvf:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 36px -12px rgba(34, 211, 107, .95), 0 3px 8px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .5); }
.mvf:active { transform: scale(.92); transition-duration: .12s; }
.mvf:focus-visible { outline: 3px solid var(--g-glow); outline-offset: 4px; }
.mvf-glyph { position: relative; width: 30px; height: 30px; }
.mvf-glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .45s var(--spring), opacity .2s ease; }
.mvf-chat path:first-child { fill: currentColor; }
.mvf-wave { fill: none; stroke: #7af7ae; stroke-width: 2.2; stroke-linecap: round; }
.mvf-x path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.mvf-x { opacity: 0; transform: rotate(-120deg) scale(.4); }
.mvf.is-open .mvf-chat { opacity: 0; transform: rotate(120deg) scale(.4); }
.mvf.is-open .mvf-x { opacity: 1; transform: none; }
body.support-open .mvf, body.ordchat-modal-open .mvf, body:has(.login-flow-overlay.active) .mvf {
  opacity: 0; pointer-events: none; transform: scale(.6);
}
/* Звон при новом сообщении */
.mvf.is-ping { animation: mvfRing .7s var(--glide); }
.mvf.is-ping::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--g);
  animation: mvfWave 1.2s ease-out 2; pointer-events: none;
}
@keyframes mvfRing { 0%, 100% { rotate: 0deg; } 20% { rotate: -14deg; } 40% { rotate: 11deg; } 60% { rotate: -6deg; } 80% { rotate: 3deg; } }
@keyframes mvfWave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* Счётчик: цифры «прокручиваются» при изменении */
.mvf-count {
  position: absolute; top: -4px; right: -4px; height: 22px; min-width: 22px; padding: 0 7px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #ff3b47; color: #fff; font: 800 12px/1 var(--f, system-ui); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2.5px var(--page-bg, #fff), 0 4px 10px -2px rgba(255, 59, 71, .6);
  transform: scale(0); transition: transform .4s var(--spring);
}
.mvf-count[hidden] { display: none; }
.mvf-count.is-on { transform: scale(1); }
.mvf-num { display: block; }
.mvf-num.roll-up { animation: mvfIn .34s var(--glide) both; }
.mvf-num.roll-down { animation: mvfInDown .34s var(--glide) both; }
.mvf-num.leave-up { position: absolute; animation: mvfOut .34s var(--glide) both; }
.mvf-num.leave-down { position: absolute; animation: mvfOutDown .34s var(--glide) both; }
@keyframes mvfIn { from { transform: translateY(110%); } }
@keyframes mvfInDown { from { transform: translateY(-110%); } }
@keyframes mvfOut { to { transform: translateY(-110%); opacity: 0; } }
@keyframes mvfOutDown { to { transform: translateY(110%); opacity: 0; } }

/* =====================================================================
   Окно чата
   ===================================================================== */
/* Самостоятельное непрозрачное окно. Анимация — только transform и opacity
   (считается на видеокарте, без перерисовки): на ПК окно вырастает из кнопки
   чата, на телефоне выезжает снизу на весь экран. */
.mvc {
  --ox: calc(100% - 30px); --oy: calc(100% - 30px);
  position: fixed; z-index: 100021; right: 16px; bottom: 16px;
  width: 420px; height: min(720px, calc(100dvh - 32px));
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate; contain: layout paint;
  background: var(--bg); color: var(--ink);
  font-family: var(--f, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  border-radius: 28px; box-shadow: var(--lift);
  transform-origin: var(--ox) var(--oy);
  opacity: 0; transform: translate3d(0, 22px, 0) scale(.86);
  pointer-events: none;
}
.mvc[hidden] { display: none; }
.mvc.is-parked { visibility: hidden; content-visibility: hidden; }
.mvc.is-animating { will-change: transform, opacity; }
.mvc.is-open {
  opacity: 1; transform: none; pointer-events: auto;
  /* Окно сразу непрозрачное (сайт сквозь него не просвечивает) и пружиной вырастает из кнопки */
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity 0s;
}
.mvc.is-closing { transition: transform .24s cubic-bezier(.4, 0, .9, .4), opacity 0s linear .24s; }
.mvc.is-dragging { transition: none !important; }
@media (max-width: 767px) {
  .mvc {
    inset: 0; right: 0; bottom: auto; width: 100%; height: 100dvh; border-radius: 0; box-shadow: none;
    opacity: 1; transform: translate3d(0, 100%, 0);
  }
  .mvc.is-open { transform: none; transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
  .mvc.is-closing { transition: transform .32s cubic-bezier(.4, 0, .9, .5); }
}
/* Телефон: пока чат открыт, сайт под ним скрыт и не рисуется */
html.mvc-covered body > *:not(.mvc):not(.mvc-viewer):not(.mvc-note):not(#toast-container):not(script):not(style) { visibility: hidden !important; }
@media (min-width: 768px) {
  body.support-open, body.ordchat-modal-open { overflow: auto !important; touch-action: auto !important; }
}
.mvc svg { display: block; }
.mvc-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Свечение сверху */
.mvc-glow {
  position: absolute; z-index: -1; left: -20%; right: -20%; top: -160px; height: 360px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, var(--g-glow), transparent 70%);
  opacity: .9;
}

/* Каскад при открытии: шапка и поле ввода — лёгкий подъём */
.mvc.is-entering .mvc-top, .mvc.is-entering .mvc-strip, .mvc.is-entering .mvc-dock { animation: mvcRise .5s cubic-bezier(.16, 1, .3, 1) both; }
.mvc.is-entering .mvc-strip { animation-delay: .05s; }
.mvc.is-entering .mvc-dock { animation-delay: .08s; }
@keyframes mvcRise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* ---------- Шапка ---------- */
.mvc-top {
  position: relative; z-index: 3; flex: none;
  display: flex; align-items: center; gap: 12px; padding: 16px 14px 12px 18px;
  background: transparent; box-shadow: 0 1px 0 transparent;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.mvc.is-scrolled .mvc-top { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.mvc-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.mvc-av { display: flex; flex: none; }
.mvc-names { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mvc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 750; letter-spacing: -.02em; line-height: 22px; }
.mvc-status { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; line-height: 17px; color: var(--ink-2); }
.mvc-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvc-status i { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.mvc-status.is-live { color: var(--g-text); }
.mvc-status.is-live i { background: var(--g); }
.mvc-status.is-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--g); animation: mvcLive 2s ease-out infinite; }
@keyframes mvcLive { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }

.mvc-ic {
  width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--bg-3); color: var(--ink);
  transition: background .2s ease, transform .3s var(--spring);
}
.mvc-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.mvc-ic:hover { background: var(--bg-4); }
.mvc-ic:active { transform: scale(.88); }
.mvc-ic:focus-visible, .mvc-send:focus-visible, .mvc-suggest-i:focus-visible, .mvc-chipbtn:focus-visible, .mvc-jump:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.mvc-ic.sm { width: 30px; height: 30px; background: transparent; color: var(--ink-3); }
.mvc-ic.sm svg { width: 16px; height: 16px; }
.mvc-top .mvc-back { display: none; }
@media (max-width: 767px) {
  .mvc-top { padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px 8px; touch-action: none; }
  .mvc-top .mvc-back { display: grid; background: transparent; }
  .mvc-top .mvc-back svg { width: 26px; height: 26px; }
  .mvc-top .mvc-close { display: none; }
}

/* Аватар заказа — фото товара в зелёном кольце */
.mvc-av-photo { position: relative; width: 44px; height: 44px; flex: none; border-radius: 15px; overflow: hidden; background: var(--bg-3); box-shadow: 0 0 0 1px var(--line); }
.mvc-av-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mvc-av-photo.is-live { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--g); }

/* Карточка заказа */
.mvc-strip:empty { display: none; }
.mvc-strip { position: relative; z-index: 2; flex: none; padding: 0 14px 10px; }
.mvc-order {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line);
}
.mvc-order-img { width: 46px; height: 46px; flex: none; border-radius: 14px; overflow: hidden; background: var(--bg-3); }
.mvc-order-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mvc-order-in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mvc-order-in b, .mvc-order-end b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvc-order-in span { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvc-order-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.mvc-order-end b { font-variant-numeric: tabular-nums; }
.mvc-order-st { padding: 3px 9px; border-radius: 99px; background: var(--bg-3); font-size: 11.5px; font-weight: 700; color: var(--ink); }
.mvc-order-st.st-approved, .mvc-order-st.st-paid { background: var(--g-soft); color: var(--g-text); }
.mvc-order-st.st-rejected { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* Плашка «нет связи» */
.mvc-alert {
  position: absolute; z-index: 4; top: 76px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: var(--amber-bg); color: var(--amber-ink); font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--float); animation: mvcDrop .35s var(--spring);
}
.mvc-alert[hidden] { display: none; }
@keyframes mvcDrop { from { opacity: 0; transform: translate(-50%, -10px); } }
.mvc-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: mvcSpin .7s linear infinite; }
@keyframes mvcSpin { to { transform: rotate(360deg); } }

/* ---------- Лента ---------- */
.mvc-scroller {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; outline: none;
  position: relative; display: flex; flex-direction: column; padding: 4px 16px 16px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.mvc-scroller::before { content: ""; flex: 1 0 0; }
.mvc-scroller:has(.mvc-hello)::after { content: ""; flex: 1 0 0; } /* приветствие — по центру */
.mvc-scroller > * { flex: none; }
.mvc-scroller::-webkit-scrollbar { width: 6px; }
.mvc-scroller::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--line-2); }
.mvc-history:empty { display: none; }
.mvc-history { display: flex; justify-content: center; padding: 6px 0 10px; }
.mvc-history-in { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.mvc-thread { display: flex; flex-direction: column; }
.mvc-chipbtn {
  height: 34px; padding: 0 16px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--bg-3); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600;
  transition: background .2s ease, transform .3s var(--spring);
}
.mvc-chipbtn:hover { background: var(--bg-4); }
.mvc-chipbtn:active { transform: scale(.95); }

/* Дата — с линиями по сторонам */
.mvc-day { display: flex; align-items: center; gap: 12px; margin: 22px 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mvc-day::before, .mvc-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mvc-thread > .mvc-day:first-child { margin-top: 6px; }

/* ---------- Сообщение ---------- */
.mvc-m { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; margin-top: 3px; transition: transform .25s var(--glide); }
.mvc-m.is-first { margin-top: 14px; }
.mvc-day + .mvc-m.is-first { margin-top: 0; }
.mvc-m.out { align-self: flex-end; align-items: flex-end; }
@media (max-width: 767px) { .mvc-m { max-width: 86%; } }
.mvc-row { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.mvc-m.out .mvc-row { flex-direction: row-reverse; }

.mvc-bubble {
  position: relative; min-width: 0; max-width: 100%; padding: 10px 15px 11px; border-radius: 24px;
  background: var(--bubble-in); color: var(--bubble-in-ink);
  font-size: 16.5px; line-height: 1.45; letter-spacing: -.006em;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
}
@media (max-width: 767px) { .mvc-bubble { font-size: 17px; } }
[data-theme=light] .mvc-m.in .mvc-bubble { box-shadow: 0 1px 2px rgba(14, 30, 20, .06), 0 0 0 1px var(--line); }
.mvc-m.out .mvc-bubble {
  background: linear-gradient(160deg, #3ee883 0%, var(--g) 55%, var(--g-2) 100%); color: var(--g-ink);
}
/* Группа: со стороны отправителя углы мягче сжимаются */
.mvc-m.in:not(.is-first) .mvc-bubble { border-top-left-radius: 8px; }
.mvc-m.in:not(.is-last) .mvc-bubble { border-bottom-left-radius: 8px; }
.mvc-m.out:not(.is-first) .mvc-bubble { border-top-right-radius: 8px; }
.mvc-m.out:not(.is-last) .mvc-bubble { border-bottom-right-radius: 8px; }
.mvc-text { display: block; }

.mvc-quote {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0 -4px 8px; padding: 6px 10px 6px 12px; border-radius: 14px;
  background: color-mix(in srgb, currentColor 8%, transparent); box-shadow: inset 3px 0 0 var(--g);
  font-size: 14px; line-height: 1.35; opacity: .85;
}
.mvc-m.out .mvc-quote { box-shadow: inset 3px 0 0 var(--g-ink); background: rgba(255, 255, 255, .28); }
.mvc-quote[data-act] { cursor: pointer; transition: opacity .15s ease; }
.mvc-quote[data-act]:hover { opacity: 1; }
.mvc-quote[data-act]:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
/* Подсветка исходного сообщения при переходе к цитате */
.mvc-m.is-flash .mvc-bubble { animation: mvcFlash 1.9s cubic-bezier(.2, .8, .2, 1); }
.mvc-m.is-flash .mvc-bubble::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--g); opacity: 0; animation: mvcFlashFill 1.9s ease-out;
}
.mvc-m.is-flash .mvc-bubble::after {
  content: ""; position: absolute; inset: -5px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 3px var(--g); opacity: 0; animation: mvcFlashRing 1.9s ease-out;
}
@keyframes mvcFlash { 0% { transform: scale(1); } 12% { transform: scale(1.04); } 28% { transform: scale(1); } }
@keyframes mvcFlashFill { 0% { opacity: 0; } 12% { opacity: .32; } 100% { opacity: 0; } }
@keyframes mvcFlashRing { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* Подпись под группой: время и статус */
.mvc-cap { display: flex; align-items: center; gap: 6px; margin: 5px 8px 0; font-size: 12px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; animation: mvcFade .3s ease both; }
.mvc-tick { display: inline-flex; align-items: center; gap: 4px; }
.mvc-tick::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.mvc-cap.is-read .mvc-tick { color: var(--g-text); font-weight: 600; }
.mvc-cap.is-read .mvc-tick::before { opacity: 1; }
.mvc-cap.is-fail { flex-direction: column; align-items: flex-end; gap: 6px; color: var(--danger); font-weight: 600; }
.mvc-fail-act { display: flex; gap: 6px; }
.mvc-cap.is-fail button {
  height: 26px; padding: 0 11px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--bg-3); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600;
  transition: background .2s ease;
}
.mvc-cap.is-fail button:hover { background: var(--bg-4); }
.mvc-cap.is-fail button[data-act="retry"] { background: var(--g); color: var(--g-ink); }
.mvc-m.st-failed .mvc-bubble { box-shadow: 0 0 0 2px var(--danger); }
.mvc-m.st-sending .mvc-bubble { filter: saturate(.75); opacity: .92; }
.mvc-dots { display: inline-flex; gap: 3px; }
.mvc-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: mvcDot 1s ease-in-out infinite; }
.mvc-dots i:nth-child(2) { animation-delay: .15s; }
.mvc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mvcDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes mvcFade { from { opacity: 0; } }

/* Появление: входящие — мягко из размытия, свои — «взлетают» из поля ввода */
.mvc-m.is-new.in { animation: mvcRecv .42s cubic-bezier(.16, 1, .3, 1) both; transform-origin: 0 100%; }
.mvc-m.is-new.out { animation: mvcSend .48s cubic-bezier(.2, 1.15, .4, 1) both; transform-origin: 100% 100%; }
@keyframes mvcRecv { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.95); } }
@keyframes mvcSend { from { opacity: 0; transform: translate3d(8px, 36px, 0) scale(.8); } }

/* Фото */
.mvc-photo {
  position: relative; display: block; width: 260px; max-width: 100%; min-height: 140px; margin: -4px -9px 8px -9px;
  padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--bg-3); cursor: zoom-in;
}
.mvc-photo img { display: block; width: 100%; max-height: 340px; object-fit: cover; transition: transform .5s var(--glide); }
.mvc-photo:hover img { transform: scale(1.03); }
.mvc-photo img:not([src]) { visibility: hidden; height: 180px; }
.mvc-photo.is-loading::after, .mvc-photo:has(img:not([src]))::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--ink) 10%, transparent) 50%, transparent 70%);
  animation: mvcShine 1.1s infinite;
}
@keyframes mvcShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.mvc-photo.is-failed { cursor: pointer; }
.mvc-photo.is-failed::before { content: "Не загрузилось · нажмите ещё раз"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--ink-2); }
.mvc-photo.is-local { cursor: default; }
.mvc-photo-spin { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: mvcSpin .8s linear infinite; }
.mvc-photo-bad { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; opacity: .8; }
.mvc-photo-bad svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mvc-m.is-photo .mvc-bubble { padding: 0; background: none !important; box-shadow: none !important; }
.mvc-m.is-photo .mvc-photo { margin: 0; border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }

/* «Ответить»: кнопка (ПК) и свайп (телефон) */
.mvc-replybtn {
  width: 30px; height: 30px; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--bg-3); color: var(--ink-2);
  opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .3s var(--spring), color .2s ease;
}
.mvc-replybtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.mvc-m:hover .mvc-replybtn, .mvc-replybtn:focus-visible { opacity: 1; transform: none; }
.mvc-replybtn:hover { color: var(--g-text); }
@media (hover: none) { .mvc-replybtn { display: none; } }
.mvc-m.is-swiping::after {
  content: ""; position: absolute; top: 50%; right: -42px; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303240f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 14.5L4.5 9.5l5-5M4.5 9.5H14a5.5 5.5 0 0 1 0 11h-2.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  animation: mvcPop .25s var(--spring);
}
.mvc-m.out.is-swiping::after { right: auto; left: -42px; }
@keyframes mvcPop { from { transform: scale(.3); opacity: 0; } }

.mvc-sysnote { align-self: center; max-width: 90%; margin: 18px 0 4px; padding: 9px 14px; border-radius: 16px; background: var(--bg-3); font-size: 13.5px; line-height: 1.4; color: var(--ink-2); text-align: center; }

/* ---------- Пустой чат, загрузка, ошибка ---------- */
.mvc-hello { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 12px 12px; animation: mvcRise .6s var(--glide) both; }
.mvc-hello .mvc-pulse { margin-bottom: 10px; }
.mvc-hello b { font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.mvc-hello span:not(.mvc-pulse):not(.mvc-hello-photo) { max-width: 300px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mvc-hello-photo { width: 72px; height: 72px; margin-bottom: 10px; border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--g), 0 12px 30px -12px rgba(34, 211, 107, .6); }
.mvc-hello-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mvc-skeleton { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.mvc-skeleton span { display: block; height: 46px; border-radius: 24px; background: var(--bg-3); position: relative; overflow: hidden; animation: mvcRise .5s var(--glide) calc(var(--i) * 60ms) both; }
.mvc-skeleton span.out { align-self: flex-end; background: var(--g-soft); }
.mvc-skeleton span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--ink) 7%, transparent) 50%, transparent 70%); animation: mvcShine 1.1s infinite; }
.mvc-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 32px 12px; }
.mvc-state-ic { width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.mvc-state-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mvc-state b { font-size: 17px; font-weight: 700; }
.mvc-state > span:not(.mvc-state-ic) { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }

/* Плавающая кнопка «к последним сообщениям» */
.mvc-jump {
  position: absolute; z-index: 4; right: 16px; bottom: calc(var(--dock-h, 70px) + 14px);
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--bg-3); color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-2);
  opacity: 0; transform: translate3d(0, 14px, 0) scale(.6); pointer-events: none;
  transition: transform .34s cubic-bezier(.2, 1.2, .4, 1), opacity .18s ease, background-color .2s ease, color .2s ease;
}
.mvc-jump.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.mvc-jump:hover { background: var(--bg-4); }
.mvc-jump:active { transform: scale(.9); }
.mvc-jump svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.mvc-jump.has-new { background: var(--g); color: var(--g-ink); box-shadow: 0 10px 24px -10px rgba(34, 211, 107, .9); }
.mvc-jump-n {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-2); color: var(--g-text); box-shadow: 0 0 0 2px var(--g);
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.mvc-jump-n:empty { display: none; }

/* ---------- Док ввода ---------- */
.mvc-dock { position: relative; z-index: 3; flex: none; padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.mvc-suggest {
  display: flex; gap: 8px; margin: 0 -12px 10px; padding: 2px 12px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.mvc-suggest::-webkit-scrollbar { display: none; }
.mvc-suggest[hidden] { display: none; }
.mvc-suggest-i {
  flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 20px; cursor: pointer; white-space: nowrap;
  background: var(--bg-2); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line-2);
  font: inherit; font-size: 14.5px; font-weight: 600;
  transition: box-shadow .2s ease, color .2s ease, transform .3s var(--spring);
}
.mvc-suggest-i:hover { color: var(--g-text); box-shadow: 0 0 0 1.5px var(--g); }
.mvc-suggest-i:active { transform: scale(.95); }

.mvc-context:empty { display: none; }
.mvc-context { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mvc-ctx {
  display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: 18px;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); animation: mvcRise .35s var(--glide) both;
}
.mvc-ctx img { width: 40px; height: 40px; flex: none; border-radius: 12px; object-fit: cover; }
.mvc-ctx-ic { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--g-soft); color: var(--g-text); }
.mvc-ctx-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mvc-ctx-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mvc-ctx-txt b { font-size: 13px; font-weight: 700; color: var(--g-text); }
.mvc-ctx-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink-2); }

.mvc-compose {
  display: flex; align-items: flex-end; gap: 6px; padding: 6px; border-radius: 28px;
  background: var(--bg-2); box-shadow: var(--float);
  transition: box-shadow .25s ease;
}
.mvc-compose:focus-within { box-shadow: 0 0 0 2px var(--g), 0 12px 30px -12px rgba(34, 211, 107, .45); }
.mvc-compose .mvc-attach { width: 44px; height: 44px; background: var(--bg-3); color: var(--ink-2); }
.mvc-compose .mvc-attach svg { width: 22px; height: 22px; stroke-width: 2.2; }
.mvc-compose .mvc-attach:hover { color: var(--ink); }
.mvc-field { flex: 1; min-width: 0; display: flex; }
.mvc-input {
  flex: 1; min-width: 0; min-height: 44px; max-height: 150px; padding: 11px 6px; resize: none;
  border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important;
  color: var(--ink); font: inherit; font-size: 16.5px; line-height: 22px;
}
@media (max-width: 767px) { .mvc-input { font-size: 17px; } }
.mvc-input::placeholder { color: var(--ink-3); }
.mvc-send {
  position: relative; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer; overflow: hidden;
  display: grid; place-items: center; background: var(--bg-3); color: var(--ink-3);
  transform: scale(.82); transition: background .25s ease, color .25s ease, transform .45s var(--spring), box-shadow .25s ease;
}
.mvc-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mvc-compose.is-ready .mvc-send {
  transform: none; color: var(--g-ink);
  background: radial-gradient(110% 110% at 30% 15%, #7af7ae 0%, var(--g) 50%, var(--g-2) 100%);
  box-shadow: 0 8px 18px -8px rgba(34, 211, 107, .9);
}
.mvc-compose.is-ready .mvc-send:hover { transform: scale(1.06); }
.mvc-send:disabled { cursor: default; }
.mvc-send.is-launch svg { animation: mvcLaunch .5s var(--glide); }
@keyframes mvcLaunch { 0% { transform: none; } 45% { transform: translateY(-140%); opacity: 0; } 46% { transform: translateY(140%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.mvc-locked {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 28px;
  background: var(--bg-2); box-shadow: var(--float); font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.mvc-locked svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* =====================================================================
   Просмотр фото
   ===================================================================== */
.mvc-viewer {
  position: fixed; inset: 0; z-index: 100040; display: grid; place-items: center; padding: 64px 16px 32px;
  background: rgba(4, 6, 5, .94);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; cursor: zoom-out;
}
.mvc-viewer.is-open { opacity: 1; pointer-events: auto; }
.mvc-viewer img { max-width: 100%; max-height: 100%; border-radius: 18px; transform: scale(.9); transition: transform .5s var(--spring, cubic-bezier(.18, 1.25, .4, 1)); }
.mvc-viewer.is-open img { transform: none; }
.mvc-viewer-x {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.mvc-viewer-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* =====================================================================
   Уведомление о новом сообщении
   ===================================================================== */
.mvc-note {
  position: fixed; z-index: 100035; right: 20px; bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100vw - 24px)); display: flex; align-items: center; overflow: hidden;
  border-radius: 24px; background: var(--bg-2); color: var(--ink); box-shadow: var(--lift);
  font-family: var(--f, system-ui);
  opacity: 0; transform: translateY(20px) scale(.92); transform-origin: 100% 100%;
  transition: opacity .3s ease, transform .5s var(--spring);
}
.mvc-note.is-in { opacity: 1; transform: none; }
.mvc-note.is-out { opacity: 0; transform: translateX(30px) scale(.96); transition-duration: .25s; }
@media (max-width: 767px) {
  .mvc-note { left: 12px; right: 12px; width: auto; top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; transform: translateY(-24px) scale(.95); transform-origin: 50% 0; }
}
.mvc-note-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 6px 14px 14px; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.mvc-note-av { display: flex; flex: none; }
.mvc-note-photo { width: 40px; height: 40px; border-radius: 13px; overflow: hidden; }
.mvc-note-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mvc-note-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mvc-note-txt b { font-size: 15px; font-weight: 700; }
.mvc-note-txt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.mvc-note-x { width: 36px; height: 36px; flex: none; margin-right: 8px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--ink-3); cursor: pointer; }
.mvc-note-x:hover { background: var(--bg-3); color: var(--ink); }
.mvc-note-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mvc-note-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--g); transform-origin: 0 50%; animation: mvcLife var(--life) linear both; }
@keyframes mvcLife { to { transform: scaleX(0); } }

/* =====================================================================
   Страница «Сообщения»
   ===================================================================== */
.chats-page-screen { min-height: 100vh; color: var(--ink); }
.chats-page-wrap { max-width: 620px; margin: 0 auto; padding: 0 16px 80px; }
.chats-page-header { padding: 22px 0 6px; }
.chats-page-header .back-btn { margin-bottom: 14px !important; }
.chats-page-title { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.mvh { display: flex; flex-direction: column; padding: 14px 0 24px; }
.mvh-hero {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 16px 18px 18px; overflow: hidden;
  border: 0; border-radius: 26px; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line);
  transition: transform .4s var(--spring), box-shadow .25s ease;
}
.mvh-hero::before { content: ""; position: absolute; inset: -60% 30% 20% -30%; background: radial-gradient(closest-side, var(--g-glow), transparent); pointer-events: none; }
.mvh-hero:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), 0 16px 34px -18px rgba(34, 211, 107, .45); }
.mvh-hero:active { transform: scale(.985); }
.mvh-hero > * { position: relative; }
.mvh-hero-av { display: flex; flex: none; }
.mvh-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mvh-hero-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mvh-hero-top b { font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.mvh-hero-top time, .mvh-row-top time { flex: none; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mvh-hero-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--ink-2); }
.mvh-hero.is-guest .mvh-hero-sub { color: var(--g-text); font-weight: 600; }
.mvh-hero-go { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--ink-2); }
.mvh-hero-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mvh-count { flex: none; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--g); color: var(--g-ink); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mvh-label { padding: 26px 4px 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.mvh-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mvh-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 22px; text-decoration: none; color: var(--ink);
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--spring), box-shadow .25s ease;
}
.mvh-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2); }
.mvh-tile i { width: 40px; height: 40px; margin-bottom: 8px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; color: #fff; }
.mvh-tile--wa i { background: #25d366; }
.mvh-tile--tg i { background: #2aa3e6; }
.mvh-tile b { font-size: 15.5px; font-weight: 700; }
.mvh-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-2); }
.mvh-list:empty { display: none; }
.mvh-list { display: flex; flex-direction: column; gap: 8px; }
.mvh-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 12px 12px; border: 0; border-radius: 22px; cursor: pointer;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-align: left; font: inherit;
  transition: transform .4s var(--spring), box-shadow .25s ease;
}
.mvh-row:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line-2); }
.mvh-row-av { width: 50px; height: 50px; flex: none; border-radius: 16px; overflow: hidden; background: var(--bg-3); }
.mvh-row-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mvh-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mvh-row-top, .mvh-row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.mvh-row-top b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.mvh-row-sub { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink-2); }
.mvh-st { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.mvh-st.st-processing, .mvh-st.st-pending { background: #f5b400; }
.mvh-st.st-approved, .mvh-st.st-paid { background: var(--g); }
.mvh-st.st-rejected { background: var(--danger); }
.mvh-row--skel { pointer-events: none; }
.mvh-row--skel .mvh-row-main i { display: block; height: 11px; border-radius: 6px; background: var(--bg-3); }
.mvh-empty { margin-top: 10px; padding: 18px; border-radius: 22px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); text-align: center; font-size: 14.5px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .mvc, .mvc *, .mvc *::before, .mvc *::after, .mvf, .mvf *, .mvf::before, .mvc-note, .mvc-note *, .mvc-viewer, .mvc-viewer img, .mvh * {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
  .mvc { transform: none !important; }
  .mvc.is-open, .mvc.is-closing { transition: opacity .2s ease !important; }
}
