/* Ташла: личные сообщения (24.10.2026) */
.tvDmSlot{flex-basis:100%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:10px}
.tvdmOpen{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:9px 16px;border-radius:12px;border:1px solid #0b918b;background:#e8f6f4;color:#0b6f6a;font:700 15px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.tvdmHint{color:#68756d;font-size:12px}
.tvdm{position:fixed;inset:0;z-index:2147483400;background:rgba(10,20,22,.5);display:flex;align-items:center;justify-content:center;padding:12px}
.tvdmCard{background:#fff;color:#18231d;width:100%;max-width:520px;max-height:min(720px,calc(100vh - 24px));display:flex;flex-direction:column;border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.3);font:15px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;overflow:hidden}
.tvdmHead{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #e3ebe6;flex-wrap:wrap}
.tvdmTitle{flex:1;min-width:0}.tvdmTitle b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tvdmTitle small{color:#68756d}
.tvdmX{border:0;background:none;font-size:28px;line-height:1;cursor:pointer;color:#68756d}
.tvdmBack{flex-basis:100%;text-align:left;border:0;background:none;color:#0b7f79;font-weight:700;cursor:pointer;padding:0}
.tvdmList{overflow:auto;padding:6px}.tvdmEmpty{color:#68756d;padding:14px;margin:0}
.tvdmRow{display:flex;width:100%;gap:10px;text-align:left;border:0;border-bottom:1px solid #eef3f0;background:none;padding:10px;cursor:pointer;color:inherit;font:inherit}
.tvdmRow>div:first-child{flex:1;min-width:0}.tvdmRow b,.tvdmRow small,.tvdmRow span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tvdmRow small{color:#0b7f79;font-size:12px}.tvdmRow span{color:#68756d;font-size:13px}
.tvdmRow.new b{color:#0b6f6a}.tvdmMeta{text-align:right}.tvdmMeta small{color:#68756d!important}
.tvdmMeta i,.tvdmBadge i{display:inline-block;min-width:20px;padding:1px 6px;border-radius:10px;background:#e0412f;color:#fff;font:700 12px/18px system-ui;text-align:center;font-style:normal;margin-top:4px}
.tvdmMsgs{flex:1;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:#f4f7f4;min-height:200px}
.tvdmMsg{align-self:flex-start;max-width:85%;background:#fff;border:1px solid #e3ebe6;border-radius:14px 14px 14px 4px;padding:8px 10px}
.tvdmMsg.mine{align-self:flex-end;background:#dff3ef;border-color:#c5e8e1;border-radius:14px 14px 4px 14px}
.tvdmMsg p{margin:0;white-space:pre-wrap;word-break:break-word}.tvdmMsg small{display:block;color:#68756d;font-size:11px;margin-top:3px;text-align:right}
.tvdmMsg audio,.tvdmRec audio{display:block;width:240px;max-width:100%;height:40px}
.tvdmRec{padding:8px 12px;border-top:1px solid #e3ebe6;font-size:13px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tvdmDel{border:1px solid #e0b4ae;background:#fff;color:#a52424;border-radius:10px;padding:6px 10px;cursor:pointer}
.tvdmForm{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #e3ebe6;align-items:flex-end}
.tvdmForm textarea{flex:1;resize:none;border:1px solid #cfdcd5;border-radius:12px;padding:10px;font:inherit;max-height:120px;min-height:42px;box-sizing:border-box}
.tvdmMic{width:44px;height:42px;border-radius:12px;border:1px solid #cfdcd5;background:#fff;font-size:20px;cursor:pointer}.tvdmMic.on{background:#ffe3df;border-color:#e0412f}
.tvdmSend{height:42px;border:0;border-radius:12px;background:#0b918b;color:#fff;font-weight:800;padding:0 16px;cursor:pointer}.tvdmSend:disabled{opacity:.6}
.tvdmErr{color:#a52424;font-size:13px;padding:0 12px 8px;min-height:0}.tvdmErr:empty{display:none}
.tvdmTools{display:flex;gap:8px;padding:0 12px 10px}.tvdmTools button{border:1px solid #cfdcd5;background:#fff;border-radius:10px;padding:6px 10px;font-size:13px;cursor:pointer;color:#18231d}
.tvdmBadge{position:fixed;left:14px;bottom:14px;z-index:2147482900;display:inline-flex;align-items:center;gap:6px;border:1px solid #cfdcd5;background:#fff;color:#18231d;border-radius:999px;padding:8px 14px;font:700 14px/1 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 6px 18px rgba(0,0,0,.12);cursor:pointer}
.tvdmBadge.new{border-color:#0b918b;color:#0b6f6a}.tvdmBadge i{margin:0}
@media(max-width:600px){.tvdm{padding:0;align-items:stretch}.tvdmCard{max-width:none;max-height:none;height:100%;border-radius:0}.tvdmBadge{bottom:calc(86px + env(safe-area-inset-bottom,0px));left:10px;padding:7px 12px;font-size:13px}}
:root[data-tv-theme="dark"] .tvdmCard{background:#1b2629;color:#dce6e0}:root[data-tv-theme="dark"] .tvdmMsgs{background:#141d20}:root[data-tv-theme="dark"] .tvdmMsg{background:#1b2629;border-color:#2d3a3e}:root[data-tv-theme="dark"] .tvdmMsg.mine{background:#123a37;border-color:#1d5450}:root[data-tv-theme="dark"] .tvdmBadge,:root[data-tv-theme="dark"] .tvdmForm textarea,:root[data-tv-theme="dark"] .tvdmMic{background:#1b2629;color:#dce6e0;border-color:#2d3a3e}
.tvdmMsg{position:relative}.tvdmMsg small{display:flex;justify-content:flex-end;align-items:center;gap:6px}
.tvdmDots{border:0;background:none;color:#68756d;font-size:16px;line-height:1;padding:2px 6px;cursor:pointer;border-radius:6px;margin-right:auto}.tvdmDots:hover{background:rgba(0,0,0,.06)}
.tvdmMenu{position:absolute;z-index:5;bottom:26px;left:6px;display:flex;flex-direction:column;min-width:210px;background:#fff;border:1px solid #dfe8e3;border-radius:12px;box-shadow:0 10px 26px rgba(0,0,0,.18);overflow:hidden}
.tvdmMsg.mine .tvdmMenu{left:auto;right:6px}
.tvdmMenu button{border:0;background:none;text-align:left;padding:10px 14px;font:500 14px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;color:#18231d;cursor:pointer}.tvdmMenu button:hover{background:#f1f6f3}
.tvdmGone{color:#8a978f;font-style:italic}.tvdmMsg.del{opacity:.75}
.tvdmSavedRow div{font-weight:700;color:#0b6f6a}.tvdmFrom{justify-content:flex-start!important;color:#0b7f79!important;margin:0 0 4px!important}
.tvdmDl{display:inline-block;margin-top:4px;font-size:13px;color:#0b7f79}
:root[data-tv-theme="dark"] .tvdmMenu{background:#1b2629;border-color:#2d3a3e}:root[data-tv-theme="dark"] .tvdmMenu button{color:#dce6e0}
.tvdmMic{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.tvdmMic.on{transform:scale(1.15);background:#e0412f;border-color:#e0412f}.tvdmMic.cancel{background:#888;border-color:#888}
/* свой плеер голосовых и панель записи (e) */
.tvdmVoice{display:flex;align-items:center;gap:8px;min-width:200px;max-width:260px}
.tvdmPlay{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:#0b918b;color:#fff;font-size:15px;line-height:36px;cursor:pointer;padding:0}
.tvdmBar{flex:1;height:6px;border-radius:3px;background:#cfe0da;cursor:pointer;overflow:hidden}.tvdmBar i{display:block;height:100%;width:0;background:#0b918b;transition:width .2s linear}
.tvdmDur{flex:none;font-size:12px;color:#55625b;min-width:34px;text-align:right}
.tvdmRec{gap:10px}.tvdmRecDot{width:10px;height:10px;border-radius:50%;background:#e0412f;animation:tvdmBlink 1s infinite}@keyframes tvdmBlink{50%{opacity:.25}}
.tvdmRecT{font-variant-numeric:tabular-nums}.tvdmRecHint{color:#68756d;flex:1}
.tvdmRecX{border:1px solid #cfdcd5;background:#fff;border-radius:10px;padding:8px 12px;cursor:pointer;color:#a52424;font-weight:700}
.tvdmRecGo{border:0;background:#0b918b;color:#fff;border-radius:10px;padding:8px 14px;cursor:pointer;font-weight:800}
.tvdmForm.recording textarea,.tvdmForm.recording .tvdmSend{opacity:.4;pointer-events:none}
@media(max-width:600px){.tvdmRecHint{display:none}.tvdmRecX,.tvdmRecGo{flex:1}}
.tvdmSending{color:#0b6f6a;font-weight:700}.tvdmOk{color:#128c4a;font-weight:700}.tvdmErrBig{color:#a52424;font-weight:700}
