/* ==========================================================================
 * matchmaker.css — КОТ-СВАТ в вебе (23.11.2026): вкладка «Знакомств»
 * (screens/matchmaker.js), разговор с котом и «Помнит» (screens/catchat.js).
 *
 * Вид — как у десктопа (app/src/matchmaker.css: блоки ОБЩЕЕ…СВИДАНИЕ и
 * ДВИЖЕНИЕ перенесены почти дословно). Раздел — ночная история: серенада под
 * окном, крыша, луна. Сцена кот-свата всегда ночная, и в светлой теме тоже:
 * фиолетовая ночь, тёплый свет окна (амбра) и розовые сердечки. Фаза луны —
 * знак пути: месяц (досье) → половина (свидание) → полная (утро). Переходы —
 * на токенах движения kit.css (--dur-*, --ease-*).
 * Блоки: ТОКЕНЫ · ВКЛАДКА · ОБЩЕЕ · ВИТРИНА · СБОРКА ДОСЬЕ · ГЛАВНЫЙ ·
 * СВИДАНИЕ · ВЕБ · РАЗГОВОР С КОТОМ · ПОМНИТ · ДВИЖЕНИЕ.
 * ======================================================================== */

/* -- ТОКЕНЫ ---------------------------------------------------------------- */
:root {
  --mm-night: #150f29;
  --mm-deep: #21183f;
  --mm-ink: #f4efff;
  --mm-mute: #bfb3e6;
  --mm-amber: #ffc46b;
  --mm-amber-deep: #ff9f43;
  --mm-rose: #ff8fb1;
  --mm-moon: #fff1cf;
  --mm-edge: rgba(201, 181, 255, 0.18);
  --mm-glass: rgba(255, 255, 255, 0.06);
  --mm-k-fact: #c9b5ff;
  --mm-k-taste: #ffc46b;
  --mm-k-trait: #ff9ec0;
  --mm-k-style: #8fe3c8;
  --mm-k-dealbreaker: #ff8a7a;
}
/* Арт сцен лежит в /assets (не в /app/v/…): картинки не меняются с выкладкой
   и кэшируются надолго. На телефоне крыша — лёгкая копия. */
.mm-hero, .mm-status { --mm-art: url("/assets/matchmaker/matchmaker_bg.webp"); }
.mm-stage, .mm-dhead, .ct-stage { --mm-art: url("/assets/matchmaker/rooftop_bg_sm.webp"); }
@media (min-width: 600px) {
  .mm-stage, .mm-dhead, .ct-stage { --mm-art: url("/assets/matchmaker/rooftop_bg.webp"); }
}

/* -- ВКЛАДКА «Кот-сват» ---------------------------------------------------- */
/* Четвёртая вкладка шире прочих: «Кот-сват» с месяцем не должен ломаться. */
.dt-seg { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; grid-auto-flow: row; }
.dt-seg .seg-b.is-mm { gap: 5px; padding: 0 12px; }
.dt-seg .seg-b.is-mm .mm-ic { font-size: 17px; color: var(--mm-amber); }
.dt-seg .seg-b.is-mm.on {
  color: #fff; background: linear-gradient(135deg, #3a2a6e, #6a4bc4);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 107, 0.35), 0 4px 14px rgba(106, 75, 196, 0.35);
}
.dt-seg .seg-b.is-mm.on .mm-ic { color: var(--mm-moon); }
@media (max-width: 380px) { .dt-seg .seg-b { font-size: 13px; } .dt-seg .seg-b.is-mm { padding: 0 8px; } }

/* -- ОБЩЕЕ ----------------------------------------------------------------- */
.mm-root {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; color: var(--mm-ink);
  margin: 0 -6px 0 -2px; padding: 0 0 18px; border-radius: 18px;
  background: radial-gradient(130% 60% at 70% 0%, rgba(122, 76, 196, 0.32), transparent 70%), var(--mm-night);
  overflow: hidden;
}
.mm-root > :not(.mm-hero):not(.mm-stage):not(.mm-status):not(.mm-dhead) { margin-left: 14px; margin-right: 14px; }
.mm-ic { display: inline-grid; place-items: center; flex: none; }
.mm-ic .ki { width: 1.15em; height: 1.15em; }
.mm-h { margin: 4px 0 0; font-size: 19px; font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; }
.mm-p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mm-mute); }
.mm-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--mm-mute); }
.mm-note.is-warn { color: #ffd0a0; }
.mm-note[hidden] { display: none; }
.mm-link {
  justify-self: center; padding: 4px 8px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 800; color: var(--mm-mute); text-decoration: underline;
  text-decoration-color: rgba(191, 179, 230, 0.4); text-underline-offset: 3px;
  transition: color var(--dur-fast) linear;
}
.mm-link:hover { color: var(--mm-ink); }
.mm-cat { display: inline-grid; place-items: center; width: var(--s); height: var(--s); }
.mm-cat.is-them > * { transform: scaleX(-1); }
.mm-sk-hero { height: 180px; border-radius: 16px; margin-bottom: 8px; }

/* Главная кнопка раздела — тёплый свет окна. */
.mm-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: stretch; min-height: 46px; box-sizing: border-box;
  border-radius: 14px; font-size: 14px; font-weight: 900; color: #2b1600; text-wrap: balance; line-height: 1.2; padding-left: 12px; padding-right: 12px;
  background: linear-gradient(180deg, #ffd88f, var(--mm-amber) 55%, var(--mm-amber-deep));
  box-shadow: 0 8px 24px rgba(255, 159, 67, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: filter var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.mm-go:hover { filter: brightness(1.06); box-shadow: 0 10px 30px rgba(255, 159, 67, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.mm-go:disabled { filter: grayscale(0.4) brightness(0.8); cursor: default; }
.mm-go .mm-ic { font-size: 19px; --ic-warm: #fff4dc; --ic-cut: rgba(255, 236, 200, 0.85); }
.mm-go .mm-ic .ki .ic-body { fill: #5a2d00; }
.mm-root .btn.ghost { color: var(--mm-ink); border-color: var(--mm-edge); }

/* Луна как знак пути: месяц → половина → полная. */
.mm-moon { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mm-moon);
  box-shadow: 0 0 14px rgba(255, 241, 207, 0.55); overflow: hidden; }
.mm-moon.is-new::after, .mm-moon.is-half::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mm-night); }
.mm-moon.is-new::after { transform: translateX(32%); }
.mm-moon.is-half::after { border-radius: 0; transform: translateX(50%); }

/* Тумблер. */
.mm-switch {
  position: relative; flex: none; width: 42px; height: 24px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); transition: background-color var(--dur-base) var(--ease-out);
}
.mm-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); transition: transform var(--dur-base) var(--ease-out); }
.mm-switch.on { background: var(--mm-amber-deep); }
.mm-switch.on i { transform: translateX(18px); }
.mm-switch:focus-visible { outline: 2px solid var(--mm-amber); outline-offset: 2px; }

/* -- ВИТРИНА --------------------------------------------------------------- */
/* Картинка целиком сверху (левая дымка арта уходит в ночь раздела), под ней
   заголовок, наезжающий на её низ. ::before держит высоту картинки. */
.mm-hero { position: relative; display: grid; }
.mm-hero::before { content: ""; display: block; aspect-ratio: 4 / 3; }
.mm-hero-art, .mm-hero-haze, .mm-hearts { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 3; }
.mm-hero-art { background: var(--mm-art) 72% 30% / cover; }
.mm-hero-haze { pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(21, 15, 41, 0.7) 82%, var(--mm-night)),
    linear-gradient(90deg, rgba(21, 15, 41, 0.35), transparent 35%); }
/* Сердечки поднимаются от окна кошки (правый верх арта). */
.mm-hearts { pointer-events: none; }
.mm-hearts i { position: absolute; top: 30%; font-style: normal; color: var(--mm-rose); opacity: 0;
  text-shadow: 0 0 8px rgba(255, 143, 177, 0.8); animation: mm-heart 5.2s ease-in infinite; }
.mm-hearts .h1 { left: 84%; font-size: 11px; animation-delay: 0s; }
.mm-hearts .h2 { left: 90%; font-size: 8px; animation-delay: 1.1s; }
.mm-hearts .h3 { left: 92%; font-size: 13px; animation-delay: 2.3s; }
.mm-hearts .h4 { left: 86%; font-size: 9px; animation-delay: 3.2s; }
.mm-hearts .h5 { left: 89%; font-size: 10px; animation-delay: 4.1s; }
.mm-hearts .h6 { left: 95%; font-size: 7px; animation-delay: 2.8s; }
@keyframes mm-heart {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(-8px, -60px) scale(1.1) rotate(-12deg); }
}
.mm-hero-copy { display: contents; }
.mm-hero-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 7px; border-radius: 999px; font-size: 12px; font-weight: 900; color: var(--mm-moon);
  background: rgba(21, 15, 41, 0.6); border: 1px solid rgba(255, 196, 107, 0.4); backdrop-filter: blur(6px);
}
.mm-hero-badge .mm-ic { font-size: 16px; color: var(--mm-moon); }
.mm-hero-title {
  position: relative; z-index: 2; margin: -30px 14px 0; font-size: 23px; font-weight: 900; line-height: 1.12;
  letter-spacing: -0.015em; text-wrap: balance; color: #fff;
  text-shadow: 0 2px 18px rgba(21, 15, 41, 0.9), 0 0 30px rgba(201, 150, 255, 0.35);
}
.mm-hero-sub { position: relative; z-index: 2; margin: 8px 14px 0; font-size: 13px; line-height: 1.5; color: var(--mm-mute); text-wrap: pretty; }

.mm-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.mm-steps::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, rgba(255, 241, 207, 0.15), rgba(255, 241, 207, 0.5)); }
.mm-step { position: relative; display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.mm-step .mm-moon { margin-top: 1px; }
.mm-step-tx { display: grid; gap: 2px; }
.mm-step-tx b { font-size: 13.5px; font-weight: 900; }
.mm-step-tx small { font-size: 12px; line-height: 1.45; color: var(--mm-mute); }

.mm-trial { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 196, 107, 0.16), rgba(255, 196, 107, 0.04)); border: 1px solid rgba(255, 196, 107, 0.28); }
.mm-trial p { margin: 0; font-size: 12.5px; line-height: 1.45; font-weight: 700; }
.mm-trial-moons { flex: none; display: flex; gap: 4px; }
.mm-trial-moons i { width: 11px; height: 11px; border-radius: 50%; background: var(--mm-moon); box-shadow: 0 0 8px rgba(255, 241, 207, 0.6); }

.mm-honest { display: flex; gap: 10px; align-items: flex-start; }
.mm-honest .mm-ic { font-size: 18px; color: var(--mm-mute); margin-top: 1px; }
.mm-honest p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--mm-mute); }

.mm-consent { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 14px;
  background: var(--mm-glass); border: 1px solid var(--mm-edge); }
.mm-consent-tx { flex: 1; display: grid; gap: 3px; }
.mm-consent-tx b { font-size: 12.5px; font-weight: 800; line-height: 1.3; }
.mm-consent-tx small { font-size: 11.5px; line-height: 1.45; color: var(--mm-mute); }

.mm-cta { display: grid; gap: 8px; margin-top: 2px; }
.mm-cta-note { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--mm-mute); text-align: center; }

/* -- СБОРКА ДОСЬЕ ---------------------------------------------------------- */
.mm-stage { position: relative; height: 150px; overflow: hidden; }
.mm-stage-art { position: absolute; inset: 0; background: var(--mm-art) 78% 40% / cover; }
.mm-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 15, 41, 0.1), rgba(21, 15, 41, 0.2) 55%, var(--mm-night)); }
.mm-stage-cat { position: absolute; left: 18px; bottom: 4px; z-index: 2; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.mm-stage-cat::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 2px; height: 10px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 241, 207, 0.35), transparent); }
.mm-thought { position: absolute; left: 96px; top: 26px; z-index: 2; display: flex; gap: 5px; padding: 8px 11px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.92); opacity: 0; transform: scale(0.7); transform-origin: left bottom;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-pop); }
.mm-thought::after { content: ""; position: absolute; left: -8px; bottom: -6px; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); }
.mm-thought i { width: 7px; height: 7px; border-radius: 50%; background: #5b4a8f; animation: mm-dot 1.1s ease-in-out infinite; }
.mm-thought i:nth-child(2) { animation-delay: 0.15s; }
.mm-thought i:nth-child(3) { animation-delay: 0.3s; }
.mm-stage.is-thinking .mm-thought { opacity: 1; transform: none; }
@keyframes mm-dot { 0%, 100% { transform: translateY(0); opacity: 0.45; } 40% { transform: translateY(-4px); opacity: 1; } }
.mm-think { margin: 0; font-size: 13px; color: var(--mm-amber); font-weight: 800; }
.mm-ask { margin-top: 4px; }
.mm-alt { justify-self: stretch; }

/* Письмо досье. */
.mm-letter { display: grid; gap: 8px; padding: 12px 12px 10px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 241, 207, 0.08), rgba(255, 241, 207, 0.03)); border: 1px solid rgba(255, 241, 207, 0.22);
  box-shadow: 0 12px 30px rgba(5, 2, 16, 0.4); }
.mm-letter-head { display: flex; align-items: center; gap: 8px; }
.mm-letter-head b { flex: 1; font-size: 13.5px; font-weight: 900; line-height: 1.25; }
.mm-letter-ic { font-size: 19px; color: var(--mm-moon); }
.mm-count { flex: none; font-size: 11.5px; font-weight: 900; color: var(--mm-mute); font-variant-numeric: tabular-nums; }
.mm-count.is-over { color: #ff8a7a; }
.mm-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mm-line { position: relative; display: flex; align-items: flex-start; gap: 6px; padding: 7px 4px 7px 18px;
  border-radius: 12px; background: rgba(10, 6, 24, 0.35); border: 1px solid transparent;
  transition: border-color var(--dur-fast) linear, opacity var(--dur-base) var(--ease-out); }
.mm-line:focus-within { border-color: rgba(255, 196, 107, 0.5); }
.mm-line.is-gone { opacity: 0; }
.mm-line-star { position: absolute; left: 7px; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--mm-moon);
  box-shadow: 0 0 6px rgba(255, 241, 207, 0.9); }
.mm-line-body { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.mm-line-text { width: 100%; box-sizing: border-box; resize: none; overflow: hidden; padding: 0; border: 0; outline: 0;
  background: transparent; color: var(--mm-ink); font: inherit; font-size: 13px; line-height: 1.4; }
.mm-line-text::placeholder { color: rgba(191, 179, 230, 0.55); }
.mm-line-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--mm-mute); font: inherit; font-size: 13px; cursor: pointer; }
.mm-line-x:active { background: rgba(255, 255, 255, 0.08); }
.mm-adds { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-adds .btn { color: var(--mm-ink); border-color: var(--mm-edge); }
.mm-add-db { color: #ffb4a8 !important; }
.mm-approve { margin-top: 4px; }

/* Чип вида строки. */
.mm-kind { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border: 0; border-radius: 10px;
  font: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; color: var(--mm-k, var(--mm-k-fact));
  background: color-mix(in srgb, var(--mm-k, var(--mm-k-fact)) 16%, transparent);
  transition: background-color var(--dur-fast) linear; }
.mm-kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mm-kind:hover { background: color-mix(in srgb, var(--mm-k, var(--mm-k-fact)) 28%, transparent); }
.mm-kind:disabled { cursor: default; }
.mm-kind.is-taste, .mm-kind-dot.is-taste, .cm-dos-row.is-taste { --mm-k: var(--mm-k-taste); }
.mm-kind.is-trait, .mm-kind-dot.is-trait, .cm-dos-row.is-trait { --mm-k: var(--mm-k-trait); }
.mm-kind.is-style, .mm-kind-dot.is-style, .cm-dos-row.is-style { --mm-k: var(--mm-k-style); }
.mm-kind.is-dealbreaker, .mm-kind-dot.is-dealbreaker, .cm-dos-row.is-dealbreaker { --mm-k: var(--mm-k-dealbreaker); }
.mm-kind-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mm-k, var(--mm-k-fact)); }

/* -- ГЛАВНЫЙ --------------------------------------------------------------- */
.mm-status { position: relative; min-height: 168px; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 10px;
  padding: 14px 14px 14px; overflow: hidden; }
.mm-status-art { position: absolute; inset: 0; background: var(--mm-art) 80% 30% / cover; }
.mm-status-shade { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21, 15, 41, 0) 0%, rgba(21, 15, 41, 0.55) 45%, var(--mm-night) 100%),
    linear-gradient(90deg, rgba(21, 15, 41, 0.6), transparent 70%); }
.mm-status-cat { position: relative; z-index: 2; align-self: end; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
.mm-status-tx { position: relative; z-index: 2; display: grid; gap: 3px; padding-bottom: 2px; }
.mm-status-h { font-size: 16.5px; font-weight: 900; line-height: 1.2; text-shadow: 0 2px 12px rgba(21, 15, 41, 0.9); }
.mm-status-tx small { font-size: 12px; line-height: 1.4; color: #ddd3ff; text-shadow: 0 1px 8px rgba(21, 15, 41, 0.9); }
.mm-status-moons { display: flex; gap: 5px; margin-top: 4px; }
.mm-status-moons i { width: 10px; height: 10px; border-radius: 50%; background: var(--mm-moon); box-shadow: 0 0 8px rgba(255, 241, 207, 0.7); }
.mm-status-moons i.is-used { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 241, 207, 0.45); }
.mm-status.is-go .mm-status-h { color: var(--mm-moon); }
.mm-status.is-need .mm-status-h, .mm-status.is-pro .mm-status-h { color: #ffd8a8; }
.mm-status-act { position: relative; z-index: 2; grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  color: #2b1600; background: linear-gradient(180deg, #ffd88f, var(--mm-amber)); }
.mm-status-act .mm-ic { font-size: 15px; }

.mm-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px !important; }
.mm-sec-head h3 { margin: 0; font-size: 15px; font-weight: 900; }
.mm-empty { display: flex; gap: 12px; align-items: center; padding: 14px 12px; border-radius: 14px; border: 1px dashed var(--mm-edge); }
.mm-empty p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--mm-mute); }

/* Предложение строки досье. */
.mm-prop { display: grid; gap: 6px; padding: 12px; border-radius: 16px; justify-items: start;
  background: linear-gradient(160deg, rgba(255, 143, 177, 0.16), rgba(156, 123, 255, 0.1)); border: 1px solid rgba(255, 143, 177, 0.35);
  transition: opacity var(--dur-base) var(--ease-out); }
.mm-prop.is-busy { opacity: 0.6; pointer-events: none; }
.mm-prop.is-done { opacity: 0; }
.mm-prop-src { font-size: 11px; font-weight: 800; color: var(--mm-rose); }
.mm-prop-q { font-size: 13.5px; font-weight: 900; }
.mm-prop-text { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--mm-ink); }
.mm-prop-edit { width: 100%; box-sizing: border-box; font-size: 13px; }
.mm-prop-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.mm-yes { color: #2b1600; background: linear-gradient(180deg, #ffd88f, var(--mm-amber)); }
.mm-prop-more { font-size: 11px; color: var(--mm-mute); }

/* Карточка свидания. */
.mm-dates { display: grid; gap: 10px; }
.mm-date { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: var(--mm-deep); border: 1px solid var(--mm-edge); }
.mm-date.is-teaser, .mm-date.is-waiting {
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 143, 177, 0.22), transparent 60%), var(--mm-deep);
  border-color: rgba(255, 143, 177, 0.4);
}
.mm-date.is-open { border-color: rgba(255, 196, 107, 0.45);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 196, 107, 0.18), transparent 60%), var(--mm-deep); }
.mm-date.is-nomatch { background: rgba(255, 255, 255, 0.03); }
.mm-date-top { display: flex; gap: 10px; align-items: center; }
.mm-pair { flex: none; display: flex; align-items: center; }
.mm-pair-heart { margin: 0 -3px; font-size: 14px; color: var(--mm-rose); text-shadow: 0 0 10px rgba(255, 143, 177, 0.9); z-index: 1; }
.mm-date.is-nomatch .mm-pair-heart { color: var(--mm-mute); text-shadow: none; }
.mm-date.is-nomatch .mm-pair { filter: saturate(0.6); opacity: 0.85; }
.mm-date-tx { display: grid; gap: 2px; min-width: 0; }
.mm-date-h { font-size: 14px; font-weight: 900; line-height: 1.25; }
.mm-date.is-teaser .mm-date-h { color: #ffc2d3; }
.mm-date-who { font-size: 12px; font-weight: 700; color: var(--mm-ink); overflow-wrap: anywhere; }
.mm-date-when { font-size: 11px; color: var(--mm-mute); }
/* Размытый кусочек: читается форма фразы, но не слова. */
.mm-teaser { position: relative; margin: 0; padding: 10px 12px; border-radius: 14px 14px 14px 4px; overflow: hidden;
  background: rgba(255, 255, 255, 0.07); font-size: 13px; line-height: 1.45; -webkit-user-select: none; user-select: none; }
.mm-teaser span { display: block; filter: blur(4.5px); opacity: 0.85; }
.mm-teaser::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, rgba(33, 24, 63, 0.7)); }
.mm-date-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mm-date-acts small { flex: 1 1 140px; font-size: 11px; line-height: 1.35; color: var(--mm-mute); }
.mm-want { display: inline-flex; align-items: center; gap: 6px; color: #fff; background: linear-gradient(135deg, #ff6f93, #d977e6); box-shadow: 0 6px 16px rgba(255, 111, 147, 0.4); }
.mm-want .mm-ic { --ic-warm: #fff; --ic-cut: rgba(255, 255, 255, 0.55); }
.mm-read { color: #2b1600; background: linear-gradient(180deg, #ffd88f, var(--mm-amber)); }
.mm-waiting { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #ffc2d3; }
.mm-dots { width: 22px; height: 6px; background: radial-gradient(circle, currentColor 2.4px, transparent 2.6px) 0 0 / 8px 6px repeat-x; animation: mm-wait 1.4s steps(4) infinite; }
@keyframes mm-wait { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.mm-verdict { margin: 0; padding: 8px 10px; border-left: 2px solid var(--mm-edge); font-size: 12.5px; line-height: 1.5; color: var(--mm-mute); font-style: italic; }

.mm-foot { display: grid; margin-top: 6px !important; border-radius: 16px; border: 1px solid var(--mm-edge); overflow: hidden; }
.mm-foot-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 8px 12px; border: 0; box-sizing: border-box;
  background: transparent; color: var(--mm-ink); font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) linear; }
.mm-foot-row + .mm-foot-row { border-top: 1px solid var(--mm-edge); }
.mm-foot-row:hover { background: rgba(255, 255, 255, 0.04); }
.mm-foot-row.is-switch { cursor: default; }
.mm-foot-row.is-switch:hover { background: transparent; }
.mm-foot-row > span:first-of-type:not(.mm-ic), .mm-foot-tx { flex: 1; }
.mm-foot-row .mm-ic { font-size: 18px; color: var(--mm-moon); }
.mm-foot-row em { font-style: normal; font-size: 12px; font-weight: 900; color: var(--mm-amber); }
.mm-chev { font-style: normal; font-size: 18px; color: var(--mm-mute); }
.mm-foot-tx { display: grid; gap: 1px; }
.mm-foot-tx small { font-size: 11px; font-weight: 600; color: var(--mm-mute); }
.mm-foot-row.is-off { justify-content: center; font-size: 12px; color: var(--mm-mute); }

/* -- СВИДАНИЕ: переписка котов --------------------------------------------- */
.mm-dhead { position: relative; display: grid; justify-items: center; gap: 8px; padding: 26px 14px 14px; overflow: hidden; text-align: center; }
.mm-dhead-art { position: absolute; inset: 0; background: var(--mm-art) 70% 40% / cover; opacity: 0.7; }
.mm-dhead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 15, 41, 0.2), var(--mm-night)); }
.mm-dhead.is-nomatch .mm-dhead-art { filter: saturate(0.4); }
.mm-dpair, .mm-dhead-tx { position: relative; z-index: 2; }
.mm-dpair { display: flex; align-items: center; gap: 2px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }
.mm-dpair-heart { font-size: 22px; color: var(--mm-rose); text-shadow: 0 0 16px rgba(255, 143, 177, 0.9); }
.mm-dhead.is-nomatch .mm-dpair-heart { color: var(--mm-moon); text-shadow: 0 0 14px rgba(255, 241, 207, 0.6); }
.mm-dhead-tx { display: grid; gap: 2px; }
.mm-dhead-tx b { font-size: 17px; font-weight: 900; }
.mm-dhead-tx small { font-size: 12px; color: var(--mm-mute); }
.mm-chat { display: grid; gap: 4px; }
.mm-msg { display: flex; align-items: flex-end; gap: 6px; }
.mm-msg.is-first { margin-top: 6px; }
.mm-msg.is-me { flex-direction: row-reverse; }
.mm-msg-ava { flex: none; width: 30px; }
.mm-bub { max-width: 78%; display: grid; gap: 2px; padding: 8px 11px; border-radius: 16px; font-size: 13px; line-height: 1.45;
  background: rgba(255, 255, 255, 0.08); color: var(--mm-ink); overflow-wrap: anywhere; }
.mm-msg.is-them .mm-bub { border-bottom-left-radius: 5px; }
.mm-msg.is-me .mm-bub { border-bottom-right-radius: 5px; color: #2b1d4f;
  background: linear-gradient(160deg, #efe6ff, #d8c8ff); }
.mm-msg:not(.is-first).is-them .mm-bub { border-top-left-radius: 5px; }
.mm-msg:not(.is-first).is-me .mm-bub { border-top-right-radius: 5px; }
.mm-bub-name { font-size: 10.5px; font-weight: 900; color: var(--mm-rose); }
.mm-msg.is-me .mm-bub-name { color: #7a54d6; }
.mm-judge, .mm-after { display: grid; gap: 6px; padding: 12px; border-radius: 16px; background: var(--mm-glass); border: 1px solid var(--mm-edge); }
.mm-judge b, .mm-after b { font-size: 14px; font-weight: 900; }
.mm-judge p, .mm-after p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--mm-mute); }
.mm-judge small { font-size: 11px; color: var(--mm-mute); }
.mm-like { justify-self: start; display: inline-flex; align-items: center; gap: 6px; color: #ffc2d3 !important; border-color: rgba(255, 143, 177, 0.45) !important; }
.mm-after { background: linear-gradient(160deg, rgba(255, 196, 107, 0.14), rgba(255, 196, 107, 0.03)); border-color: rgba(255, 196, 107, 0.35); }


/* -- ВЕБ ------------------------------------------------------------------- */
/* На телефоне ночь — от края до края экрана; с 600 px — карточкой. */
.mm-root { margin: 4px calc(var(--gutter) * -1) 0; border-radius: 0; min-height: 60vh; }
@media (min-width: 600px) { .mm-root { margin: 6px 0 0; border-radius: 22px; } }
.mm-root .mm-ic .ki, .ct-seg .mm-ic .ki { width: 1em; height: 1em; }
.mm-root .btn { min-height: 44px; }
.mm-root .btn.small { min-height: 36px; padding: 0 14px; }
.mm-root .btn.ghost { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--mm-edge); color: var(--mm-ink); }
.mm-root .btn.mm-like { box-shadow: inset 0 0 0 1px rgba(255, 143, 177, 0.45); }
.mm-root .skeleton { background: rgba(255, 255, 255, 0.06); }
.mm-cat .cat-av { width: var(--s) !important; height: var(--s) !important; }
.mm-ta { display: block; width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--mm-edge); border-radius: 12px; resize: none;
  background: rgba(10, 6, 24, 0.45); color: var(--mm-ink); font: inherit; font-size: 14px; line-height: 1.4; outline: 0; }
.mm-ta:focus { border-color: rgba(255, 196, 107, 0.6); }
/* Поля ввода на телефоне — 16 px: iOS иначе приближает страницу. */
@media (max-width: 599px) { .mm-line-text, .mm-ta { font-size: 16px; } }
a.mm-status-act, a.mm-go { text-decoration: none; }
.mm-new { justify-self: start; margin: 0 0 2px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ff6f93, #d977e6); }
.mm-date.is-new { box-shadow: 0 0 0 1px rgba(255, 143, 177, 0.55), 0 10px 30px rgba(255, 111, 147, 0.18); }

/* -- РАЗГОВОР С КОТОМ (screens/catchat.js) --------------------------------- */
.scr-cat { min-height: calc(100vh - var(--hdr-h, 0px)); display: flex; flex-direction: column; color: var(--mm-ink);
  background: radial-gradient(130% 50% at 70% 0%, rgba(122, 76, 196, 0.32), transparent 70%), var(--mm-night); }
.scr-cat > .sub-head { background: rgba(21, 15, 41, 0.85); color: var(--mm-ink); }
.scr-cat > .sub-head .ibtn, .scr-cat > .sub-head .sub-title { color: var(--mm-ink); }
.ct-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin: 2px var(--gutter) 8px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--mm-edge); }
.ct-seg a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 10px;
  color: var(--mm-mute); font-size: 13.5px; font-weight: 800; text-decoration: none;
  transition: background-color var(--dur-fast) linear, color var(--dur-fast) linear; }
.ct-seg a.on { color: #2b1600; background: linear-gradient(180deg, #ffd88f, var(--mm-amber)); }
.ct-seg .mm-ic { font-size: 17px; }
.ct-seg-n { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; box-sizing: border-box; font-style: normal;
  font-size: 10.5px; font-weight: 900; line-height: 16px; background: rgba(255, 196, 107, 0.9); color: #2b1600; }
.ct-seg a.on .ct-seg-n { background: #2b1600; color: var(--mm-amber); }
.ct-seg-n[hidden] { display: none; }
.ct-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ct-stage { position: relative; height: 132px; overflow: hidden; flex: none; }
.ct-stage-art { position: absolute; inset: 0; background: var(--mm-art) 78% 40% / cover; }
.ct-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 15, 41, 0.05), rgba(21, 15, 41, 0.25) 55%, var(--mm-night)); }
.ct-stage-cat { position: absolute; left: 16px; bottom: 2px; z-index: 2; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.ct-stage-tx { position: absolute; left: 112px; right: 14px; bottom: 16px; z-index: 2; display: grid; gap: 2px; }
.ct-stage-tx b { font-size: 17px; font-weight: 900; text-shadow: 0 2px 12px rgba(21, 15, 41, 0.9); }
.ct-stage-tx small { font-size: 12px; line-height: 1.4; color: #ddd3ff; text-shadow: 0 1px 8px rgba(21, 15, 41, 0.9); }
.ct-stage .mm-thought { left: 90px; top: 16px; }
.ct-stage.is-thinking .mm-thought { opacity: 1; transform: none; }
.ct-log { flex: 1; display: grid; align-content: end; gap: 4px; padding: 8px var(--gutter) 10px; }
.ct-log .mm-msg { animation: mm-born 360ms var(--ease-out) both; }
.ct-log .mm-bub { white-space: pre-wrap; }
.ct-note { margin: 4px var(--gutter) 0; font-size: 11.5px; line-height: 1.45; color: var(--mm-mute); text-align: center; }
.ct-learn { justify-self: center; display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; padding: 5px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; color: var(--mm-amber); background: rgba(255, 196, 107, 0.1); text-decoration: none; }
.ct-learn .mm-ic { font-size: 14px; }
.ct-form { position: sticky; bottom: calc(var(--tab-h, 0px) + var(--safe-b, 0px)); z-index: 4; display: flex; align-items: flex-end; gap: 8px;
  padding: 10px var(--gutter) 10px; background: linear-gradient(180deg, rgba(21, 15, 41, 0), var(--mm-night) 35%); }
.ct-form .mm-ta { flex: 1; max-height: 140px; border-radius: 22px; padding: 11px 15px; }
.ct-send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #2b1600; background: linear-gradient(180deg, #ffd88f, var(--mm-amber) 55%, var(--mm-amber-deep));
  box-shadow: 0 6px 18px rgba(255, 159, 67, 0.35); transition: filter var(--dur-base) var(--ease-out); }
.ct-send:disabled { filter: grayscale(0.5) brightness(0.75); cursor: default; }
.ct-send svg { width: 20px; height: 20px; }
.ct-left { margin: 0 var(--gutter); font-size: 11px; color: var(--mm-mute); text-align: right; min-height: 14px; }

/* -- ПОМНИТ ---------------------------------------------------------------- */
.ct-mem { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 4px var(--gutter) 28px; }
.ct-meter { display: flex; align-items: center; gap: 10px; }
.ct-count { flex: none; font-size: 12px; font-weight: 800; color: var(--mm-mute); font-variant-numeric: tabular-nums; }
.ct-meter-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ct-meter-bar b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8c6ee0, var(--mm-moon));
  transition: width var(--dur-slow) var(--ease-out); }
.ct-hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--mm-mute); }
.ct-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ct-fact { display: flex; gap: 6px; align-items: flex-start; padding: 9px 4px 9px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--mm-edge); transition: opacity var(--dur-base) var(--ease-out); }
.ct-fact.in-dossier { border-color: rgba(255, 196, 107, 0.4); box-shadow: inset 3px 0 0 rgba(255, 196, 107, 0.75); }
.ct-fact.is-gone { opacity: 0; }
.ct-fact-main { flex: 1; min-width: 0; display: grid; gap: 7px; }
.ct-fact-text { margin: 0; padding: 0; border: 0; background: none; color: var(--mm-ink); font: inherit; font-size: 13.5px; line-height: 1.45;
  text-align: left; cursor: text; overflow-wrap: anywhere; }
.ct-fact-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ct-dos { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 6px; border: 1px dashed rgba(201, 181, 255, 0.35);
  border-radius: 12px; background: transparent; color: var(--mm-mute); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer;
  transition: background-color var(--dur-fast) linear, color var(--dur-fast) linear, border-color var(--dur-fast) linear; }
.ct-dos .ki { width: 14px; height: 14px; }
.ct-dos.on { border-style: solid; border-color: rgba(255, 196, 107, 0.6); color: var(--mm-amber); background: rgba(255, 196, 107, 0.12); }
.ct-weight { font-size: 10.5px; font-weight: 900; color: var(--mm-k-fact); opacity: 0.85; }
.ct-src { font-size: 10.5px; color: var(--mm-mute); opacity: 0.8; }
.ct-fact-acts { flex: none; display: flex; gap: 0; }
.ct-fact-acts button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--mm-mute); font: inherit; font-size: 14px; opacity: 0.55;
  transition: opacity var(--dur-fast) linear, background-color var(--dur-fast) linear; }
.ct-fact-acts button.on, .ct-fact-acts button:hover { opacity: 1; }
.ct-fact-acts button:active { background: rgba(255, 255, 255, 0.08); }
.ct-add { display: flex; gap: 8px; align-items: flex-end; }
.ct-add .mm-ta { flex: 1; }
.ct-empty { display: grid; justify-items: center; gap: 10px; padding: 22px 14px; border-radius: 16px; border: 1px dashed var(--mm-edge); text-align: center; }
.ct-empty p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mm-mute); }
.ct-dos-head { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--mm-edge); }
.ct-dos-head.is-ok { border-color: rgba(255, 196, 107, 0.45); background: linear-gradient(160deg, rgba(255, 196, 107, 0.14), rgba(255, 196, 107, 0.03)); }
.ct-dos-head > .mm-ic { font-size: 24px; color: var(--mm-moon); }
.ct-dos-head > div { display: grid; gap: 3px; }
.ct-dos-head b { font-size: 13.5px; font-weight: 900; }
.ct-dos-head small { font-size: 12px; line-height: 1.45; color: var(--mm-mute); }
.ct-dos-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ct-dos-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "kind off" "text off"; gap: 4px 6px; padding: 9px 4px 9px 12px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--mm-edge);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--mm-k, var(--mm-k-fact)) 80%, transparent); }
.ct-dos-row.is-taste { --mm-k: var(--mm-k-taste); }
.ct-dos-row.is-trait { --mm-k: var(--mm-k-trait); }
.ct-dos-row.is-style { --mm-k: var(--mm-k-style); }
.ct-dos-row.is-dealbreaker { --mm-k: var(--mm-k-dealbreaker); }
.ct-dos-row .mm-kind { grid-area: kind; justify-self: start; }
.ct-dos-row > span { grid-area: text; font-size: 13.5px; line-height: 1.45; }
.ct-dos-row > .mm-line-x { grid-area: off; align-self: center; }

/* -- ДВИЖЕНИЕ -------------------------------------------------------------- */
/* Витрина входит одним движением: картинка, заголовок, шаги — по очереди. */
.mm-root.is-enter > * { opacity: 0; transform: translateY(8px); }
.mm-root.is-enter.is-in > * { opacity: 1; transform: none;
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.mm-root.is-enter.is-in > :nth-child(2) { transition-delay: 90ms; }
.mm-root.is-enter.is-in > :nth-child(3) { transition-delay: 180ms; }
.mm-root.is-enter.is-in > :nth-child(n + 4) { transition-delay: 260ms; }
/* Волшебный момент: строки досье зажигаются по одной, как звёзды. */
.mm-line.is-born { animation: mm-born 620ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.mm-line.is-born .mm-line-star { animation: mm-star 900ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes mm-born { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mm-star { 0% { transform: scale(0); } 40% { transform: scale(2.6); box-shadow: 0 0 14px #fff1cf; } 100% { transform: scale(1); } }
.mm-chat .mm-msg { animation: mm-born 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.mm-date { animation: mm-born 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) {
  .mm-hearts, .mm-thought i, .mm-dots { animation: none !important; }
  .mm-hearts { display: none; }
  .mm-line.is-born, .mm-line.is-born .mm-line-star, .mm-chat .mm-msg, .mm-date { animation: none !important; }
  .mm-root.is-enter > * { opacity: 1; transform: none; }
}

/* -- ВХОД С ПРИВЕТСТВИЯ «Знакомств» ---------------------------------------- */
.dt-wel-mm {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin: 16px 0 0; padding: 11px 13px;
  border: 1px solid rgba(255, 196, 107, 0.35); border-radius: 16px; text-align: left; text-decoration: none; color: var(--mm-ink);
  background: linear-gradient(100deg, rgba(21, 15, 41, 0.94) 30%, rgba(21, 15, 41, 0.5)),
    url("/assets/matchmaker/matchmaker_bg_sm.webp") right center / cover, var(--mm-deep);
  transition: border-color var(--dur-base) var(--ease-out);
}
.dt-wel-mm:active { border-color: var(--mm-amber); }
.dt-wel-mm-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 196, 107, 0.14); color: var(--mm-moon); font-size: 21px; }
.dt-wel-mm > span:nth-child(2) { flex: 1; display: grid; gap: 1px; }
.dt-wel-mm b { font-size: 14px; font-weight: 900; }
.dt-wel-mm small { font-size: 12px; color: var(--mm-mute); line-height: 1.35; }
.dt-wel-mm > i { font-style: normal; font-size: 22px; color: var(--mm-amber); }
/* «Выключить» — по центру: общий span строки иначе растягивается влево. */
.mm-foot-row.is-off > span { text-align: center; }
/* Подпись строки подвала тянется: число и шеврон — у правого края. */
.mm-foot-row > .mm-ic + span { flex: 1; }
/* Шапка и полоска частей разговора — сплошная ночь и липнут под «‹ Кот»
   (как вкладки «Знакомств», dates.css): реплики под ними не просвечивают. */
.scr-cat > .sub-head { background: var(--mm-night); }
.ct-seg { position: sticky; top: calc(var(--hdr-h) + var(--safe-t) + 52px); z-index: 19; background: linear-gradient(var(--mm-glass), var(--mm-glass)), var(--mm-night);
  box-shadow: 0 -8px 0 var(--mm-night); }
@media (max-width: 1023px) { .ct-seg { top: calc(var(--safe-t) + 52px); } }
.ct-form .mm-ta { overflow-y: auto; scrollbar-width: none; }
.ct-form .mm-ta::-webkit-scrollbar { display: none; }
/* На широком экране сцены выше: арт серенады не превращается в полоску. */
@media (min-width: 600px) { .mm-status { min-height: 220px; } .mm-stage, .ct-stage { height: 170px; } }

/* -- ПЕРЕДАЧКИ ЧЕРЕЗ КОТОВ (26.11) ---------------------------------------- */
.rl-strip { position: sticky; bottom: calc(var(--tab-h, 0px) + var(--safe-b, 0px) + 66px); z-index: 4;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px var(--gutter) 0; }
.rl-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 0 1 auto; }
.rl-chip, .rl-find-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px;
  border: 1px solid var(--mm-edge); border-radius: 999px; background: var(--mm-glass); color: var(--mm-ink);
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.rl-find-btn { padding: 6px 12px; color: var(--mm-mute); }
.rl-chip.on { border-color: var(--mm-amber); color: var(--mm-amber); }
.rl-chip:hover, .rl-find-btn:hover { border-color: var(--mm-amber); }
.rl-av { display: inline-grid; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; }
.rl-row .rl-av { width: 28px; height: 28px; }
.rl-x { font-size: 11px; opacity: 0.8; }
.rl-find { flex-basis: 100%; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--mm-edge); border-radius: 16px;
  background: var(--mm-night); max-height: 46vh; overflow: auto; }
.rl-q { width: 100%; padding: 9px 12px; border: 1px solid var(--mm-edge); border-radius: 12px; background: var(--mm-glass);
  color: var(--mm-ink); font: inherit; }
.rl-list { display: grid; gap: 2px; }
.rl-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border: 0;
  border-radius: 12px; background: none; color: var(--mm-ink); font: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out); }
.rl-row:hover { background: var(--mm-glass); }
.rl-row small, .rl-hint { color: var(--mm-mute); font-size: 12px; }
.rl-hint { margin: 4px 2px; }
.rl-strip.is-on + .ct-form .mm-ta { border-color: var(--mm-amber); }
.mm-msg.rl-in .mm-bub { cursor: pointer; outline: 1px dashed var(--mm-amber); outline-offset: -1px; }
.rl-mute { display: block; margin: 4px 0 0; padding: 0; border: 0; background: none;
  color: var(--mm-mute); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.rl-st { display: block; text-align: right; color: var(--mm-mute); font-size: 11px; }
