/* ───── «Семья» v4.3: чаты и меню «Прочее» ───── */
.nbadge { position: absolute; top: -6px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e5484d; color: #fff; font: 800 10.5px/17px Inter, sans-serif; text-align: center; border: 2px solid #1c1e24; }
.dm-head { padding: 18px 16px 6px; } .dm-head h1 { margin: 0; font-size: 26px; font-weight: 800; } .dm-head .sub { color: var(--hint); font-size: 13px; margin-top: 2px; }
.dm-list { padding: 6px 8px 0; }
.dm-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 8px; border: 0; background: transparent; color: var(--text); text-align: left; border-radius: 14px; font-family: inherit; }
.dm-row:active { background: #1f2229; }
.dm-row .ava { width: 52px; height: 52px; flex: none; font-size: 20px; }
.dm-row .mid { flex: 1; min-width: 0; }
.dm-row .nm { font-weight: 800; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row .last { color: var(--hint); font-size: 13.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row .last.new { color: var(--text); font-weight: 600; } .dm-row .last .me { color: #c9c7c0; }
.dm-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.dm-row .t { font-size: 11.5px; color: var(--hint); }
.dm-row .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #2b1d00; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; }
.dm-row .ck { font-size: 12px; color: var(--hint); } .dm-row .ck.rd { color: #4cd471; }
.dm-sec { margin: 14px 8px 4px; font-size: 12px; font-weight: 800; color: var(--hint); letter-spacing: .4px; text-transform: uppercase; }
.dm-empty { padding: 30px 16px; text-align: center; color: var(--hint); }
/* переписка: на весь экран, нижнее меню прячем */
body.dm-open .tabs { display: none; }
body.dm-open { overflow: hidden; }
.dm-chat { position: fixed; inset: 0; display: flex; flex-direction: column; background: #15171c; z-index: 6; }
.dm-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: #1c1e24; border-bottom: 1px solid #2a2d35; flex: none; }
.dm-back { width: 36px; height: 36px; border: 0; border-radius: 12px; background: #22252c; color: var(--text); font-size: 24px; line-height: 1; padding-bottom: 3px; flex: none; }
.dm-top .who { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.dm-top .who .ava { width: 40px; height: 40px; flex: none; }
.dm-top .nm { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-top .st { font-size: 12px; color: var(--hint); }
.dm-msgs { flex: 1; overflow-y: auto; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 3px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.dm-day { text-align: center; margin: 10px 0 6px; } .dm-day span { background: #22252c; color: var(--hint); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 10px; }
.dm-more { align-self: center; border: 0; background: #22252c; color: var(--text); border-radius: 12px; padding: 8px 14px; font: 700 13px Inter, sans-serif; margin-bottom: 6px; }
.dm-b { max-width: 78%; padding: 7px 10px 6px; border-radius: 16px; font-size: 15px; line-height: 1.35; position: relative; word-wrap: break-word; overflow-wrap: anywhere; -webkit-touch-callout: none; user-select: text; }
.dm-b.them { align-self: flex-start; background: #262931; color: var(--text); }
.dm-b.me { align-self: flex-end; background: #f6c933; color: #1d1600; }
.dm-b.them.tail { border-bottom-left-radius: 5px; margin-bottom: 5px; } .dm-b.me.tail { border-bottom-right-radius: 5px; margin-bottom: 5px; }
.dm-b img { display: block; width: 100%; max-height: 320px; border-radius: 13px; object-fit: cover; cursor: zoom-in; }
.dm-b.ph { padding: 3px; width: 240px; max-width: 72%; }
.dm-b.ph .tx { display: block; padding: 5px 7px 2px; }
.dm-b.ph .meta { margin: 0 7px 3px 10px; }
.dm-b.ph.only { position: relative; }
.dm-b.ph.only .meta { position: absolute; right: 10px; bottom: 9px; margin: 0; padding: 2px 7px; border-radius: 10px; background: rgba(0,0,0,.5); color: #fff; opacity: 1; float: none; }
.dm-b.ph.only .meta b.rd { color: #7dffa8 !important; }
.dm-b .meta { float: right; margin: 6px 0 -2px 10px; font-size: 10.5px; opacity: .65; white-space: nowrap; }
.dm-b .meta b { font-weight: 800; } .dm-b.me .meta b.rd { color: #1e7a3c; opacity: 1; }
.dm-b.del { opacity: .55; } .dm-b.del i { font-size: 13.5px; }
.dm-hello { margin: auto; text-align: center; color: var(--hint); font-size: 14px; line-height: 1.45; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dm-prev { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; background: #1c1e24; flex: none; }
.dm-prev img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; }
.dm-in { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--sab, 0px)); background: #1c1e24; border-top: 1px solid #2a2d35; flex: none; }
.dm-in textarea { flex: 1; min-width: 0; resize: none; margin: 0 !important; min-height: 40px; max-height: 120px; padding: 9px 12px !important; border-radius: 20px !important; font: 15px/1.35 Inter, sans-serif; }
.dm-in .cam { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #2b2f39; color: #c9c7c0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dm-in .send { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--gold); color: #2b1d00; display: flex; align-items: center; justify-content: center; }
.dm-in .send:disabled { opacity: .5; }
/* меню «Прочее» */
.menu-btn { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #22252c; color: var(--text); display: flex; align-items: center; justify-content: center; position: relative; flex: none; }
.menu-btn.on-cover { position: absolute; top: 10px; right: 12px; z-index: 3; background: rgba(0,0,0,.4); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.menu-btn .dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; border: 2px solid #2a2a2a; }
.prof-cover .cover-chip { top: auto; bottom: 10px; }
.sec-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #15171c; border-bottom: 1px solid #2a2d35; }
.sec-top b { flex: 1; font-size: 20px; font-weight: 800; }
.more-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.more-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 14px; background: #22252c; color: var(--text); text-align: left; font-family: inherit; }
.more-it .ic { width: 38px; height: 38px; border-radius: 11px; background: #2b2f39; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.more-it .tx { flex: 1; display: flex; flex-direction: column; } .more-it b { font-size: 15px; } .more-it i { font-style: normal; color: var(--hint); font-size: 12.5px; margin-top: 1px; }
.more-it em { font-style: normal; font-size: 10px; font-weight: 800; background: #e5484d; color: #fff; border-radius: 6px; padding: 1px 5px; margin-left: 4px; vertical-align: 2px; }
.more-it .ar { color: var(--hint); font-size: 22px; }
/* ───── v4.3: эффекты обложки, рамки постов, цвет сообщений ───── */
.fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.fx i { position: absolute; font-style: normal; line-height: 1; will-change: transform, opacity; }
.fx-fall i { top: -10% !important; animation: fxFall linear infinite; }
.fx-rise i { top: auto !important; bottom: -12%; animation: fxRise linear infinite; }
.fx-twinkle i { animation: fxTw ease-in-out infinite; }
.fx-drive i { left: -12% !important; animation: fxDrive linear infinite; }
@keyframes fxFall { from { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateY(190px) rotate(200deg); opacity: .2; } }
@keyframes fxRise { from { transform: translateY(0) scale(.7); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-190px) scale(1.15); opacity: 0; } }
@keyframes fxTw { 0%, 100% { transform: scale(.4); opacity: .1; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes fxDrive { from { transform: translateX(0); } to { transform: translateX(480px); } }
.fx-aurora { background: linear-gradient(120deg, transparent 10%, rgba(31,209,163,.45) 30%, rgba(0,224,255,.35) 45%, rgba(106,61,240,.45) 60%, transparent 80%); background-size: 300% 100%; mix-blend-mode: screen; animation: fxAur 9s ease-in-out infinite alternate; }
@keyframes fxAur { from { background-position: 0% 50%; filter: hue-rotate(0); } to { background-position: 100% 50%; filter: hue-rotate(40deg); } }
.prev-card { position: relative; overflow: hidden; } .prev-card > :not(.fx) { position: relative; z-index: 2; }
.fx-prev { position: relative; overflow: hidden; border-radius: 10px; height: 60px; }
.bub-prev { display: inline-block; padding: 7px 12px; border-radius: 14px 14px 4px 14px; font-weight: 700; font-size: 14px; }
.post-prev { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 48px; border-radius: 12px; font-size: 12px; font-weight: 700; color: var(--hint); }
.post-deco { border: 2px solid transparent !important; background: linear-gradient(#1f2229, #1f2229) padding-box, var(--pb) border-box !important; background-size: 100% 100%, 200% 200% !important; }
.post-deco.glow { box-shadow: 0 0 18px -4px rgba(255,255,255,.25); animation: pdGlow 2.6s ease-in-out infinite; }
.post-deco.shift { animation: pdShift 4s linear infinite; }
@keyframes pdGlow { 50% { box-shadow: 0 0 26px -2px rgba(246,201,51,.35); } }
@keyframes pdShift { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 200% 50%; } }
.dm-b.me[style*="background"] .meta b.rd { color: inherit; }
@media (prefers-reduced-motion: reduce) { .fx i, .fx-aurora, .post-deco { animation: none !important; } }
.dm-b .tx { white-space: pre-wrap; }
/* ───── якутское время и погода ───── */
.hero.has-wx { position: relative; }
.wx-pill { position: absolute; top: 18px; right: 16px; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; border: 0; border-radius: 14px;
  background: linear-gradient(160deg, #15223d, #22375e); box-shadow: inset 0 0 0 1px #2e4672; color: #f1efe9; font: 800 15px Inter, sans-serif; z-index: 2; }
.wx-pill i { width: 1px; height: 18px; background: #3b5480; }
.wx-pill .city { position: absolute; right: 4px; bottom: -17px; font-size: 11.5px; font-weight: 700; color: #8fb3e8; }
.wx-sheet .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wx-sheet .hd b { font-size: 20px; font-weight: 800; } .wx-sheet .hd span { font-size: 12.5px; color: var(--hint); text-align: right; }
.wx-sheet .now { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.wx-sheet .now .t { font-size: 44px; font-weight: 900; line-height: 1; } .wx-sheet .s { font-size: 13px; color: var(--hint); margin-top: 4px; }
.wx-sheet .clock { margin-left: auto; text-align: right; } .wx-sheet .clock .c { font-size: 30px; font-weight: 900; }
.wx-sheet .lbl { margin-top: 16px; font-size: 12px; font-weight: 800; color: var(--hint); letter-spacing: .4px; }
.wx-sheet .wx-day { text-transform: none; letter-spacing: 0; font-size: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #2a2d35; }
.wx-sheet .wx-day .dn { width: 100px; font-weight: 700; } .wx-sheet .wx-day .ds { flex: 1; color: var(--hint); font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wx-sheet .wx-day b { width: 44px; text-align: right; } .wx-sheet .wx-day i { width: 44px; text-align: right; font-style: normal; color: var(--hint); }
.wx-sheet .tiles { display: flex; gap: 8px; margin-top: 14px; }
.wx-sheet .tiles div { flex: 1; background: #22252c; border-radius: 12px; padding: 10px; }
.wx-sheet .tiles span { display: block; font-size: 11.5px; color: var(--hint); } .wx-sheet .tiles b { font-size: 13.5px; }
.wx-sheet .tip { margin-top: 12px; background: #22252c; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 13.5px; }
/* магазин: без горизонтальной прокрутки и с компактной шапкой */
.shop-card { overflow: hidden; }
.shop-card .shop-head { margin-bottom: 10px; } .shop-card .shop-head .sub { margin: 0; } .shop-card .lnk { border: 0; background: none; color: var(--gold); font: 700 12.5px Inter, sans-serif; padding: 0; }
.shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.shop-grid .item { min-width: 0; } .shop-grid .item .prev { padding: 0 6px; min-width: 0; }
.shop-grid .item .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev-card { min-width: 0; } .prev-card .nick { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
html, body { overflow-x: hidden; }
/* ───── живая погода: Probox на трассе ───── */
.wx-scene { position: relative; height: 150px; margin: -4px -4px 14px; border-radius: 16px; overflow: hidden; }
.wx-scene .lay { position: absolute; left: 0; width: 200%; background-repeat: repeat-x; animation: wxScroll linear infinite; }
.wx-scene .hills { bottom: 46px; height: 60px; background-size: 480px 60px; animation-duration: 60s; }
.wx-scene .cloudl { top: 6px; height: 50px; background-size: 420px 50px; animation: wxScrollC 90s linear infinite; } @keyframes wxScrollC { to { transform: translateX(-420px); } }
.wx-scene .forest { bottom: 44px; height: 40px; background-size: 300px 40px; animation: wxScrollF 30s linear infinite; } @keyframes wxScrollF { to { transform: translateX(-300px); } }
.wx-haze { position: absolute; left: 0; right: 0; bottom: 36px; height: 50px; background: linear-gradient(180deg, transparent, rgba(230,240,250,.55)); pointer-events: none; }
.wx-aurora { position: absolute; left: -10%; right: -10%; top: -6px; height: 80px; pointer-events: none; filter: blur(8px); opacity: .75; }
.wx-aurora i { position: absolute; left: 0; right: 0; top: 10px; height: 26px; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(80,255,170,.55) 30%, rgba(120,200,255,.35) 60%, transparent); transform: skewY(-4deg); animation: wxAur 9s ease-in-out infinite alternate; }
.wx-aurora i + i { top: 30px; height: 18px; opacity: .6; animation-duration: 13s; animation-direction: alternate-reverse; background: linear-gradient(90deg, transparent, rgba(160,120,255,.4) 40%, rgba(80,255,170,.45) 70%, transparent); }
@keyframes wxAur { from { transform: skewY(-4deg) translateX(-6%); } to { transform: skewY(3deg) translateX(6%); } }
.wx-scene .trees { bottom: 38px; height: 84px; background-size: 300px 84px; animation-duration: 16s; }
.wx-scene .trees2 { bottom: 42px; height: 50px; background-size: 360px 50px; animation: wxScrollT2 26s linear infinite; } @keyframes wxScrollT2 { to { transform: translateX(-360px); } }
.wx-scene .road { bottom: 10px; height: 30px; background-size: 80px 30px; animation-duration: 1.1s; }
.wx-scene .snowbank { position: absolute; left: 0; right: 0; bottom: 38px; height: 8px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.wx-scene .snowbank.front { bottom: 0; height: 12px; border-radius: 40% 60% 0 0 / 100% 100% 0 0; z-index: 3; }
@keyframes wxScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wx-scene .hills { animation-name: wxScrollH; } @keyframes wxScrollH { to { transform: translateX(-480px); } }
.wx-scene .trees { animation-name: wxScrollT; } @keyframes wxScrollT { to { transform: translateX(-300px); } }
.wx-scene .road { animation-name: wxScrollR; } @keyframes wxScrollR { to { transform: translateX(-80px); } }
.wx-scene .carbox { position: absolute; left: 22%; bottom: 14px; width: 150px; z-index: 2; animation: wxBob .35s ease-in-out infinite alternate; }
.wx-scene .car { width: 150px; height: 62px; display: block; filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); }
/* v5.2: Probox — картинка кузова + отдельные колёса, которые крутятся; свет фар начинается прямо в фаре */
.wx-scene .carimg { position: relative; width: 150px; filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); }
.wx-scene .carimg .cbody { display: block; width: 100%; height: auto; }
.wx-scene .carimg .cwh { position: absolute; top: 79.2%; width: 14.9%; aspect-ratio: 1; margin: -7.45% 0 0 -7.45%; }
.wx-scene .carimg .cwh img { display: block; width: 100%; height: 100%; animation: wxSpinC .35s linear infinite; }
@keyframes wxSpinC { to { transform: rotate(360deg); } }
.wx-scene .carimg.night .cbody, .wx-scene .carimg.night .cwh img { filter: brightness(.7) saturate(.85); }
.wx-scene .carimg .beam { position: absolute; left: 95%; top: 52.6%; width: 120px; height: 46px; transform: translateY(-50%); background: linear-gradient(90deg, rgba(255,244,196,.7), rgba(255,244,196,0));
  clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 56%); pointer-events: none; }
.wx-scene .carimg .beam::before { content: ""; position: absolute; left: -5px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: rgba(255,244,196,.8); filter: blur(3px); }
/* ночью светятся фары: тёплый ореол спереди, красный — у задних фонарей, и отблеск на дороге */
.wx-scene .carimg .glow { position: absolute; z-index: 2; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; }
.wx-scene .carimg .glow.f { left: 95.4%; top: 52.6%; width: 34px; height: 26px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,250,215,.95), rgba(255,236,170,.45) 45%, transparent); animation: wxGlow 2.4s ease-in-out infinite alternate; }
.wx-scene .carimg .glow.r { left: 5.6%; top: 44%; width: 22px; height: 36px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,90,70,.95), rgba(255,40,30,.4) 50%, transparent); animation: wxGlow 2s ease-in-out infinite alternate; }
.wx-scene .carimg .glow.rr { left: 4%; top: 104%; width: 60px; height: 10px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,60,50,.45), transparent); }
@keyframes wxGlow { from { opacity: .85; } to { opacity: 1; } }
.wx-scene .wh { animation: wxSpin .35s linear infinite; }
.wx-scene .car.night { filter: drop-shadow(0 4px 3px rgba(0,0,0,.35)) brightness(.72) saturate(.85); }
@keyframes wxSpin { to { transform: rotate(360deg); } }
@keyframes wxBob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
.wx-scene .smoke { position: absolute; left: -6px; bottom: 6px; }
.wx-scene .smoke i { position: absolute; left: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: rgba(240,244,250,.85); animation: wxSmoke 1.8s ease-out infinite; }
.wx-scene.frost .smoke i { width: 18px; height: 18px; background: #fff; }
@keyframes wxSmoke { from { transform: translate(0, 0) scale(.5); opacity: .9; } to { transform: translate(-60px, -22px) scale(2.6); opacity: 0; } }
.wx-fall { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.wx-fall.snow i { position: absolute; top: -6px; border-radius: 50%; background: #fff; opacity: .9; animation: wxSnow linear infinite; }
@keyframes wxSnow { to { transform: translate(-40px, 165px); } }
.wx-fall.rain i { position: absolute; top: -20px; width: 1.5px; height: 16px; background: rgba(200,220,255,.7); transform: rotate(15deg); animation: wxRain .7s linear infinite; }
@keyframes wxRain { to { transform: translate(-45px, 175px) rotate(15deg); } }
.wx-flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 4; animation: wxFlash 6s infinite; }
@keyframes wxFlash { 0%, 90%, 94%, 100% { opacity: 0; } 91%, 93% { opacity: .6; } }
.wx-fog { position: absolute; left: -50%; right: -50%; top: 30px; height: 90px; z-index: 4; background: radial-gradient(ellipse at 30% 50%, rgba(235,240,245,.75), transparent 60%), radial-gradient(ellipse at 75% 60%, rgba(235,240,245,.6), transparent 55%); animation: wxFog 12s ease-in-out infinite alternate; }
.wx-fog.b { top: 70px; opacity: .8; animation-duration: 17s; animation-direction: alternate-reverse; }
@keyframes wxFog { from { transform: translateX(-12%); } to { transform: translateX(12%); } }
.wx-clouds span { position: absolute; top: 14px; width: 90px; height: 26px; border-radius: 20px; background: rgba(255,255,255,.55); animation: wxCloud 30s linear infinite; }
.wx-clouds span::before { content: ""; position: absolute; left: 18px; top: -12px; width: 40px; height: 30px; border-radius: 50%; background: inherit; }
.wx-clouds span:nth-child(2) { top: 34px; transform: scale(.7); animation-duration: 42s; animation-delay: -14s; }
.wx-clouds span:nth-child(3) { top: 8px; animation-duration: 36s; animation-delay: -26s; }
@keyframes wxCloud { from { left: 105%; } to { left: -40%; } }
.wx-sun { position: absolute; right: 26px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: #ffe48a; box-shadow: 0 0 30px 8px rgba(255,220,120,.6); }
.wx-moon { position: absolute; right: 28px; top: 14px; width: 26px; height: 26px; border-radius: 50%; box-shadow: -7px 4px 0 0 #f4efd8; }
.wx-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: fxTw 3s ease-in-out infinite; }
.wx-frost { position: absolute; inset: 0; z-index: 5; pointer-events: none; box-shadow: inset 0 0 26px 6px rgba(220,238,255,.75); border-radius: 16px; }
.wx-badge { position: absolute; left: 10px; top: 10px; z-index: 6; background: rgba(0,0,0,.42); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 10px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: reduce) { .wx-scene *, .wx-scene .lay { animation: none !important; } }

/* v4.6: голосовые */
.dm-in { position: relative; }
.dm-in .mic { display: flex; background: #2b2f39; color: #c9c7c0; }
.dm-in > .send:not(.mic) { display: none; }
.dm-in.typed > .send:not(.mic) { display: flex; } .dm-in.typed > .mic { display: none; }
.dm-rec { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px calc(8px + var(--sab, 0px)); background: #1c1e24; z-index: 2; }
.dm-rec .dot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; animation: dmRec 1s ease-in-out infinite; flex: none; }
@keyframes dmRec { 50% { opacity: .25; } }
.dm-rec #dmRecT { font-weight: 800; font-variant-numeric: tabular-nums; }
.dm-rec .hint { flex: 1; color: var(--hint); font-size: 13px; }
.dm-rec .cancel { border: 0; background: none; color: #ff8a7a; font: inherit; font-weight: 800; padding: 8px; }
.dm-rec .send { display: flex !important; }
.dm-voice { display: flex; align-items: center; gap: 8px; min-width: 200px; padding: 2px 0; }
.dm-b.them .dm-voice .ft-play { background: #ecebe6; color: #1c1e24; }
.dm-b.me .dm-voice .ft-play { background: #2b1d00; color: #f6c933; }
.dm-voice .ft-wave { height: 30px; } .dm-voice .ft-wave i { background: currentColor; opacity: .4; }
.dm-voice .ft-dur { color: inherit; opacity: .75; font-size: 12px; }
.dm-voice .ft-prog.on { border-right-color: currentColor; } .dm-voice .ft-prog { background: none; }

.menu-btn.on-cover.gear { right: 60px; } .menu-btn.on-cover.gear svg { width: 22px; height: 22px; }

/* v5.6: ответы в личке */
.dm-b { position: relative; }
.dm-q { display: flex; flex-direction: column; gap: 1px; margin: -2px 0 6px; padding: 5px 9px; border-left: 3px solid currentColor; border-radius: 8px; background: rgba(255,255,255,.1); cursor: pointer; max-width: 100%; }
.dm-b.them .dm-q { color: #8fc1ff; } .dm-b.me .dm-q { color: inherit; background: rgba(0,0,0,.1); }
.dm-q b { font-size: 12.5px; font-weight: 800; }
.dm-q span { font-size: 13px; color: var(--text); opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-b.me .dm-q span { color: inherit; }
.dm-b.ph .dm-q { margin: 6px 8px; }
.dm-rbtn { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(127,140,160,.25); color: var(--text);
  display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; }
.dm-b.them .dm-rbtn { right: -38px; } .dm-b.me .dm-rbtn { left: -38px; }
@media (hover: hover) { .dm-rbtn { display: flex; } .dm-b:hover .dm-rbtn { opacity: 1; } }
.dm-b.swr::after { content: "↩"; position: absolute; right: -34px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--accent); }
.dm-b.flash { animation: dmFlash 1.2s ease; } @keyframes dmFlash { 0%, 40% { box-shadow: 0 0 0 3px rgba(143,193,255,.8); } }
.dm-reply { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 8px; border-radius: 14px 14px 0 0; background: rgba(127,140,160,.14); color: #8fc1ff; }
.dm-reply .q { flex: 1; min-width: 0; display: flex; flex-direction: column; border-left: 3px solid #8fc1ff; padding-left: 9px; }
.dm-reply .q b { font-size: 12.5px; } .dm-reply .q span { font-size: 13px; color: var(--text); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-reply button { border: 0; background: none; color: var(--hint); font-size: 16px; padding: 4px 6px; }
.dm-menu { display: flex; flex-direction: column; gap: 6px; }
.dm-menu button { display: flex; align-items: center; gap: 12px; border: 0; background: var(--bg); color: var(--text); border-radius: 14px; padding: 13px 14px; font-size: 15.5px; font-weight: 700; text-align: left; }
.dm-menu button svg { color: var(--accent); }
.dm-menu button.del { color: #ff6b6b; }
