/* V7.0.233: premium messaging redesign inspired by desktop social messenger layout */
#v7DmShell.v7-dm-shell{height:calc(100vh - 104px);min-height:700px;display:grid;grid-template-columns:88px 320px minmax(0,1fr) 320px;gap:0;border-radius:28px;overflow:hidden;border:1px solid rgba(124,146,255,.18);background:linear-gradient(180deg,rgba(8,12,28,.96),rgba(4,8,20,.98));box-shadow:0 30px 90px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.03)}
#v7DmShell .v7-msg-rail,#v7DmShell .v7-msg-listpane,#v7DmShell .v7-msg-main,#v7DmShell .v7-msg-info{min-width:0;position:relative}
#v7DmShell .v7-msg-rail{display:flex;flex-direction:column;padding:18px 12px;background:linear-gradient(180deg,rgba(6,9,23,.98),rgba(3,6,16,.98));border-right:1px solid rgba(255,255,255,.06)}
#v7DmShell .v7-msg-brand{display:flex;align-items:center;gap:12px;padding:8px 6px 20px;font-weight:1000;font-size:18px;letter-spacing:-.03em}
#v7DmShell .v7-msg-brand-mark{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;font-weight:1000;background:linear-gradient(135deg,#ff3c9e,#7f51ff 52%,#1fd7ff);box-shadow:0 14px 30px rgba(127,81,255,.35)}
#v7DmShell .v7-msg-rail-nav{display:grid;gap:8px;margin-top:6px}
#v7DmShell .v7-msg-rail-btn{position:relative;height:46px;border-radius:16px;border:1px solid transparent;background:transparent;color:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:0 14px;font-weight:800}
#v7DmShell .v7-msg-rail-btn.active{background:linear-gradient(135deg,rgba(66,90,255,.28),rgba(122,57,255,.22));border-color:rgba(88,124,255,.38);box-shadow:inset 0 0 0 1px rgba(255,255,255,.02),0 12px 26px rgba(52,77,255,.14)}
#v7DmShell .v7-msg-rail-btn .count{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:linear-gradient(135deg,#4b67ff,#8f54ff);display:grid;place-items:center;font-size:10px;font-weight:1000}
#v7DmShell .v7-msg-rail-footer{margin-top:auto;padding-top:14px}
#v7DmShell .v7-msg-me{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
#v7DmShell .v7-msg-listpane{display:grid;grid-template-rows:auto auto auto 1fr;padding:18px 14px;background:linear-gradient(180deg,rgba(8,12,29,.88),rgba(7,10,25,.95));border-right:1px solid rgba(255,255,255,.06)}
#v7DmShell .v7-dm-title{padding:0 4px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
#v7DmShell .v7-dm-title h2{font-size:30px;letter-spacing:-.05em}
#v7DmShell .v7-dm-search{padding:0 4px 12px}
#v7DmShell .v7-dm-search input{height:46px;border-radius:15px;padding:0 44px 0 14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}
#v7DmShell .v7-dm-search .kbd{position:absolute;right:16px;top:50%;transform:translateY(-50%);padding:4px 7px;border-radius:9px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);font-size:10px;color:var(--muted);font-weight:900}
#v7DmShell .v7-msg-filters{display:flex;gap:9px;padding:0 4px 14px;overflow:auto}
#v7DmShell .v7-msg-filter{height:38px;padding:0 16px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:#fff;font-size:13px;font-weight:900;display:flex;align-items:center;gap:8px;flex:0 0 auto}
#v7DmShell .v7-msg-filter.active{background:linear-gradient(135deg,#4567ff,#9250ff 70%,#1fd7ff);border-color:transparent;box-shadow:0 14px 30px rgba(76,97,255,.25)}
#v7DmShell .v7-msg-filter .count{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.18);display:grid;place-items:center;font-size:10px;font-weight:1000}
#v7DmShell .v7-dm-people{overflow:auto;padding:2px 4px 8px;display:flex;flex-direction:column;gap:7px}
#v7DmShell .v7-dm-person{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border-radius:20px;border:1px solid transparent;background:transparent;color:#fff;text-align:left;position:relative}
#v7DmShell .v7-dm-person:hover{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.04)}
#v7DmShell .v7-dm-person.active{background:linear-gradient(135deg,rgba(53,86,255,.24),rgba(34,47,107,.38));border-color:rgba(95,126,255,.35);box-shadow:0 16px 34px rgba(36,53,120,.20)}
#v7DmShell .v7-dm-person.active::before{content:"";position:absolute;left:-4px;top:14px;bottom:14px;width:3px;border-radius:999px;background:linear-gradient(180deg,#2ad5ff,#4567ff,#9a46ff)}
#v7DmShell .v7-dm-avatar,#v7DmShell .v7-msg-avatar,#v7DmShell .v7-msg-profile-avatar{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#f04ca9,#8452ff 58%,#22d9ff);font-weight:1000;color:#fff;overflow:hidden;position:relative;box-shadow:0 10px 24px rgba(0,0,0,.26)}
#v7DmShell .v7-msg-profile-avatar{width:68px;height:68px;border-radius:22px;margin-top:-34px;border:4px solid rgba(8,12,28,.95)}
#v7DmShell .v7-dm-avatar img,#v7DmShell .v7-msg-avatar img,#v7DmShell .v7-msg-profile-avatar img{width:100%;height:100%;object-fit:cover}
#v7DmShell .v7-online{position:absolute;width:12px;height:12px;border-radius:50%;right:1px;bottom:1px;background:#28dc88;border:2px solid #0b1023}
#v7DmShell .v7-msg-avatar-col{min-width:0}
#v7DmShell .v7-msg-avatar-col .top{display:flex;align-items:center;gap:10px}
#v7DmShell .v7-msg-avatar-col b,#v7DmShell .v7-msg-avatar-col small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#v7DmShell .v7-msg-avatar-col small{font-size:12px;color:var(--muted);margin-top:4px}
#v7DmShell .v7-msg-time{font-size:12px;color:rgba(255,255,255,.56);font-weight:800;justify-self:end;align-self:start}
#v7DmShell .v7-unread{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:linear-gradient(135deg,#4f67ff,#8d50ff);display:grid;place-items:center;font-size:10px;font-weight:1000;justify-self:end}
#v7DmShell .v7-msg-main{display:grid;grid-template-rows:auto 1fr auto;min-width:0;background:radial-gradient(circle at 50% -5%,rgba(69,103,255,.28),transparent 38%),radial-gradient(circle at 50% 120%,rgba(143,80,255,.18),transparent 32%),linear-gradient(180deg,rgba(6,10,24,.96),rgba(4,8,20,.98))}
#v7DmShell .v7-chat-head{height:88px;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.06);display:flex;align-items:center;gap:14px;background:rgba(6,10,24,.66);backdrop-filter:blur(18px)}
#v7DmShell .v7-chat-head .v7-head-meta{min-width:0}
#v7DmShell .v7-chat-head .v7-head-meta b{display:block;font-size:20px;letter-spacing:-.03em}
#v7DmShell .v7-chat-head .v7-head-meta div{font-size:13px;color:#64f1a3;font-weight:700}
#v7DmShell .v7-chat-actions{display:flex;gap:10px;margin-left:auto}
#v7DmShell .v7-chat-actions .v7-btn{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);display:grid;place-items:center}
#v7DmShell .v7-chat-messages{overflow:auto;padding:22px 18px 16px;display:flex;flex-direction:column;gap:10px;background:
 radial-gradient(circle at 65% 18%,rgba(59,93,255,.18),transparent 22%),
 radial-gradient(circle at 46% 64%,rgba(143,80,255,.14),transparent 28%),
 linear-gradient(180deg,rgba(5,10,23,.60),rgba(5,10,23,.88));position:relative}
#v7DmShell .v7-chat-messages::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 48%,rgba(255,255,255,.05),transparent 54%);pointer-events:none}
#v7DmShell .v7-message-day{align-self:center;padding:9px 14px;border-radius:999px;background:rgba(20,27,62,.72);border:1px solid rgba(255,255,255,.07);font-size:12px;color:#d5defd;position:relative;z-index:1}
#v7DmShell .v7-load-old{align-self:center;height:36px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#fff;font-size:12px;font-weight:900;position:relative;z-index:1}
#v7DmShell .v7-msg-row{display:flex;gap:10px;align-items:flex-end;position:relative;z-index:1}
#v7DmShell .v7-msg-row.me{justify-content:flex-end}
#v7DmShell .v7-msg-mini-avatar{width:34px;height:34px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#f04ca9,#8452ff 60%,#22d9ff);overflow:hidden;flex:0 0 auto}
#v7DmShell .v7-msg-mini-avatar img{width:100%;height:100%;object-fit:cover}
#v7DmShell .v7-bubble{max-width:min(56%,560px);padding:13px 14px 12px;border-radius:22px 22px 22px 8px;background:linear-gradient(180deg,rgba(26,36,78,.82),rgba(22,29,63,.82));border:1px solid rgba(255,255,255,.06);line-height:1.45;font-size:15px;align-self:flex-start;box-shadow:0 14px 26px rgba(0,0,0,.18)}
#v7DmShell .v7-bubble.me{align-self:flex-end;border-radius:22px 22px 8px 22px;background:linear-gradient(180deg,#5f87ff,#6080ff 35%,#6f59ff 100%);border:0;box-shadow:0 18px 34px rgba(95,135,255,.28)}
#v7DmShell .v7-bubble small{display:block;margin-top:7px;opacity:.74;font-size:11px;text-align:right}
#v7DmShell .v7-typing{display:flex;gap:5px;padding:12px 14px;align-self:flex-start;border-radius:16px;background:rgba(255,255,255,.08);position:relative;z-index:1;margin-left:44px}
#v7DmShell .v7-compose{padding:14px 18px;border-top:1px solid rgba(255,255,255,.06);display:grid;grid-template-columns:auto auto minmax(0,1fr) auto auto auto;gap:10px;background:rgba(6,10,24,.9)}
#v7DmShell .v7-compose button{width:44px;height:44px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);color:#fff}
#v7DmShell .v7-compose .send{background:linear-gradient(135deg,#546fff,#8e4fff);border:0;box-shadow:0 14px 30px rgba(84,111,255,.28)}
#v7DmShell .v7-compose input{min-width:0;height:44px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);color:#fff;border-radius:18px;padding:0 15px}
#v7DmShell .v7-msg-info{padding:14px;background:linear-gradient(180deg,rgba(7,11,27,.92),rgba(5,8,20,.98));border-left:1px solid rgba(255,255,255,.06);overflow:auto}
#v7DmShell .v7-msg-card{border-radius:22px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.03);padding:14px;margin-bottom:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}
#v7DmShell .v7-msg-profile-cover{height:74px;border-radius:18px;background:radial-gradient(circle at 72% 26%,rgba(159,101,255,.75),transparent 22%),linear-gradient(135deg,#09133d,#17165a 46%,#1a447d 80%,#071226);background-size:cover;background-position:center}
#v7DmShell .v7-msg-profile-head{padding:0 4px 8px}
#v7DmShell .v7-msg-profile-head h3{font-size:16px;margin-top:10px}
#v7DmShell .v7-msg-profile-head .handle{color:var(--muted);font-size:13px;margin-top:2px}
#v7DmShell .v7-msg-profile-head .status{color:#64f1a3;font-size:13px;font-weight:700;margin-top:3px}
#v7DmShell .v7-msg-action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
#v7DmShell .v7-msg-action{display:grid;place-items:center;gap:8px;padding:12px 8px;border-radius:18px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025);font-size:12px;font-weight:800;text-align:center}
#v7DmShell .v7-msg-action.primary{background:linear-gradient(135deg,#546fff,#8f50ff);border-color:transparent}
#v7DmShell .v7-msg-action .icon-wrap{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08)}
#v7DmShell .v7-msg-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-weight:900}
#v7DmShell .v7-msg-line{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;color:#fff}
#v7DmShell .v7-msg-line small{color:var(--muted);display:block;margin-top:3px}
#v7DmShell .v7-msg-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
#v7DmShell .v7-msg-thumb{aspect-ratio:1;border-radius:12px;background:linear-gradient(135deg,rgba(90,112,255,.35),rgba(160,88,255,.32),rgba(42,213,255,.28));overflow:hidden;border:1px solid rgba(255,255,255,.06)}
#v7DmShell .v7-msg-thumb img{width:100%;height:100%;object-fit:cover}
#v7DmShell .v7-msg-empty{padding:28px 16px;border-radius:18px;border:1px dashed rgba(255,255,255,.09);text-align:center;color:var(--muted)}
#v7DmShell .v7-msg-ghost-btn{width:34px;height:34px;border-radius:12px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.04);display:grid;place-items:center;color:#fff}
#v7DmShell .v7-msg-mobile-back{display:none}
@media (max-width: 1320px){#v7DmShell.v7-dm-shell{grid-template-columns:80px 300px minmax(0,1fr) 300px}}
@media (max-width: 1160px){#v7DmShell.v7-dm-shell{grid-template-columns:80px 320px minmax(0,1fr)}#v7DmShell .v7-msg-info{display:none}}
@media (max-width: 860px){#v7DmShell.v7-dm-shell{grid-template-columns:1fr 1.2fr;height:calc(100vh - 74px);min-height:0;border-radius:0;border-left:0;border-right:0}#v7DmShell .v7-msg-rail{display:none}#v7DmShell .v7-compose{grid-template-columns:auto auto minmax(0,1fr) auto auto}#v7DmShell .v7-compose [data-action="dm-video"]{display:none}}
@media (max-width: 700px){#v7DmShell.v7-dm-shell{grid-template-columns:1fr;height:calc(100vh - 64px)}#v7DmShell .v7-msg-info,#v7DmShell .v7-msg-rail{display:none}#v7DmShell .v7-msg-listpane{display:none;border-right:0}#v7DmShell.show-list .v7-msg-listpane{display:grid}#v7DmShell.show-list .v7-msg-main{display:none}#v7DmShell .v7-msg-mobile-back{display:grid}#v7DmShell .v7-chat-head{height:72px;padding:12px}#v7DmShell .v7-bubble{max-width:82%}#v7DmShell .v7-compose{padding:10px;grid-template-columns:auto auto minmax(0,1fr) auto auto}#v7DmShell .v7-compose [data-action="dm-video"]{display:none}}



/* V7.0.234: screen-match messages overrides */
#v7DmShell.v7-dm-shell{--msg-wallpaper:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop stop-color='%2308122d'/><stop offset='1' stop-color='%23040916'/></linearGradient><radialGradient id='r1' cx='70%' cy='15%' r='45%'><stop stop-color='%233158ff' stop-opacity='.28'/><stop offset='1' stop-color='%233158ff' stop-opacity='0'/></radialGradient><radialGradient id='r2' cx='42%' cy='62%' r='35%'><stop stop-color='%238e4fff' stop-opacity='.24'/><stop offset='1' stop-color='%238e4fff' stop-opacity='0'/></radialGradient></defs><rect width='1600' height='900' fill='url(%23g)'/><rect width='1600' height='900' fill='url(%23r1)'/><rect width='1600' height='900' fill='url(%23r2)'/><g fill='%23dce5ff' opacity='.6'><circle cx='110' cy='110' r='1.6'/><circle cx='210' cy='80' r='1.2'/><circle cx='320' cy='150' r='1.4'/><circle cx='430' cy='90' r='1'/><circle cx='560' cy='120' r='1.2'/><circle cx='710' cy='100' r='1.8'/><circle cx='830' cy='150' r='1.2'/><circle cx='920' cy='80' r='1'/><circle cx='1080' cy='120' r='1.6'/><circle cx='1220' cy='96' r='1.2'/><circle cx='1350' cy='160' r='1.4'/><circle cx='1480' cy='100' r='1.1'/><circle cx='180' cy='220' r='1.2'/><circle cx='290' cy='260' r='1.4'/><circle cx='390' cy='220' r='1.1'/><circle cx='520' cy='280' r='1.6'/><circle cx='660' cy='230' r='1.2'/><circle cx='760' cy='300' r='1'/><circle cx='890' cy='210' r='1.3'/><circle cx='1030' cy='270' r='1.1'/><circle cx='1180' cy='220' r='1.5'/><circle cx='1320' cy='260' r='1.2'/><circle cx='1460' cy='230' r='1.4'/></g><circle cx='1370' cy='95' r='52' fill='%2398a4ff' opacity='.22'/><circle cx='1370' cy='95' r='42' fill='%23b8c4ff' opacity='.18'/><path d='M0 690 C150 620 210 640 330 585 C430 540 505 585 610 548 C700 515 775 562 860 530 C970 488 1040 540 1130 500 C1250 448 1340 540 1600 470 L1600 900 L0 900 Z' fill='%2308122a'/><path d='M0 740 C140 676 255 715 365 660 C470 610 540 645 650 620 C740 600 850 620 955 595 C1080 565 1170 610 1265 592 C1370 572 1465 600 1600 560 L1600 900 L0 900 Z' fill='%230a1433'/><path d='M0 800 C150 745 250 780 350 730 C420 694 505 734 590 700 C685 662 760 708 865 675 C985 637 1095 718 1180 682 C1290 636 1390 700 1600 640 L1600 900 L0 900 Z' fill='%230d183a'/></svg>");--msg-cover:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 220'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop stop-color='%230b1644'/><stop offset='.52' stop-color='%231a1661'/><stop offset='1' stop-color='%2314305a'/></linearGradient></defs><rect width='600' height='220' rx='24' fill='url(%23g)'/><circle cx='506' cy='48' r='28' fill='%23b2baff' opacity='.35'/><path d='M0 160 C70 130 120 146 190 122 C262 96 322 130 392 108 C454 89 520 122 600 84 L600 220 L0 220 Z' fill='%23091230'/><path d='M0 182 C76 148 148 175 221 148 C287 124 360 160 428 140 C494 121 548 142 600 125 L600 220 L0 220 Z' fill='%2311224a'/></svg>");grid-template-columns:86px 316px minmax(0,1fr) 318px;border-radius:24px;background:linear-gradient(180deg,#040914,#030712 100%);}
#v7DmShell .v7-msg-rail{padding:16px 10px 14px;background:linear-gradient(180deg,#050913,#050914 100%)}
#v7DmShell .v7-msg-brand{padding:6px 10px 18px;font-size:17px}
#v7DmShell .v7-msg-brand-mark{width:42px;height:42px;border-radius:13px}
#v7DmShell .v7-msg-rail-btn{height:44px;border-radius:14px;font-size:15px;gap:11px}
#v7DmShell .v7-msg-rail-btn.active{background:linear-gradient(90deg,rgba(53,93,255,.42),rgba(85,116,255,.16) 75%);box-shadow:inset 0 0 0 1px rgba(115,145,255,.20),0 10px 24px rgba(44,72,180,.20)}
#v7DmShell .v7-msg-rail-btn.active::before{content:"";position:absolute;left:-10px;top:8px;bottom:8px;width:3px;border-radius:99px;background:linear-gradient(180deg,#2fdaff,#6684ff,#9e52ff)}
#v7DmShell .v7-msg-rail-btn .count{background:linear-gradient(180deg,#4f67ff,#4f67ff);box-shadow:none}
#v7DmShell .v7-msg-rail-btn:nth-child(5) .count{background:linear-gradient(180deg,#ff4b78,#ff4b78)}
#v7DmShell .v7-msg-listpane{padding:16px 14px 10px;background:linear-gradient(180deg,#09101f,#070d1a 100%)}
#v7DmShell .v7-dm-title{padding:0 2px 12px}
#v7DmShell .v7-dm-title h2{font-size:28px}
#v7DmShell .v7-dm-search input{height:48px;border-radius:15px;background:rgba(255,255,255,.03)}
#v7DmShell .v7-msg-filters{padding:0 2px 14px;gap:10px}
#v7DmShell .v7-msg-filter{height:40px;padding:0 18px;font-size:14px;background:#0b1020;border-color:rgba(255,255,255,.05)}
#v7DmShell .v7-msg-filter.active{background:linear-gradient(135deg,#4966ff 0%,#6f5bff 58%,#20d7ff 100%);box-shadow:0 12px 24px rgba(84,111,255,.22)}
#v7DmShell .v7-dm-people{gap:6px;padding-right:2px}
#v7DmShell .v7-dm-person{padding:10px 10px 10px 12px;border-radius:18px}
#v7DmShell .v7-dm-person.active{background:linear-gradient(180deg,rgba(63,92,229,.26),rgba(22,31,70,.52));box-shadow:inset 0 0 0 1px rgba(109,139,255,.18),0 14px 28px rgba(29,41,98,.22)}
#v7DmShell .v7-dm-avatar,#v7DmShell .v7-msg-avatar{width:54px;height:54px;border-radius:17px}
#v7DmShell .v7-msg-time{font-size:11px}
#v7DmShell .v7-unread{min-width:23px;height:23px;background:#4f67ff}
#v7DmShell .v7-msg-main{background:#060a15}
#v7DmShell .v7-chat-head{height:84px;padding:18px 18px 16px;background:linear-gradient(180deg,rgba(7,11,22,.98),rgba(7,11,22,.82));border-bottom-color:rgba(255,255,255,.05)}
#v7DmShell .v7-chat-actions .v7-btn{width:44px;height:44px;background:rgba(255,255,255,.02)}
#v7DmShell .v7-chat-messages{padding:20px 18px 18px;background-image:var(--msg-wallpaper);background-size:cover;background-position:center;background-repeat:no-repeat}
#v7DmShell .v7-chat-messages::before{background:linear-gradient(180deg,rgba(5,8,18,.18),rgba(5,8,18,.08))}
#v7DmShell .v7-chat-messages::-webkit-scrollbar,#v7DmShell .v7-dm-people::-webkit-scrollbar,#v7DmShell .v7-msg-info::-webkit-scrollbar{width:10px}
#v7DmShell .v7-chat-messages::-webkit-scrollbar-track,#v7DmShell .v7-dm-people::-webkit-scrollbar-track,#v7DmShell .v7-msg-info::-webkit-scrollbar-track{background:transparent}
#v7DmShell .v7-chat-messages::-webkit-scrollbar-thumb,#v7DmShell .v7-dm-people::-webkit-scrollbar-thumb,#v7DmShell .v7-msg-info::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(69,103,255,.65),rgba(143,80,255,.65));border:2px solid rgba(6,10,21,.95);border-radius:999px}
#v7DmShell .v7-message-day{background:rgba(17,25,59,.82);font-weight:800}
#v7DmShell .v7-msg-row{margin-top:8px}
#v7DmShell .v7-msg-mini-avatar{width:38px;height:38px;border-radius:14px}
#v7DmShell .v7-bubble{max-width:174px;padding:14px 14px 10px;border-radius:18px 18px 18px 8px;background:linear-gradient(180deg,rgba(33,39,69,.95),rgba(26,31,58,.95));font-size:15px}
#v7DmShell .v7-bubble.me{max-width:166px;border-radius:18px 18px 8px 18px;background:linear-gradient(180deg,#6391ff,#4f7fff 34%,#5870ff 100%)}
#v7DmShell .v7-compose{padding:14px 16px 18px;background:linear-gradient(180deg,rgba(4,7,16,.52),rgba(4,7,16,.96));border-top-color:rgba(255,255,255,.04)}
#v7DmShell .v7-compose button{width:46px;height:46px;border-radius:18px;background:rgba(255,255,255,.04)}
#v7DmShell .v7-compose input{height:50px;border-radius:18px;background:rgba(255,255,255,.03)}
#v7DmShell .v7-compose .send{background:linear-gradient(135deg,#586fff 0%,#8457ff 100%)}
#v7DmShell .v7-msg-info{padding:14px 14px 10px;background:linear-gradient(180deg,#060c18,#070b17)}
#v7DmShell .v7-msg-card{padding:14px;border-radius:20px;background:rgba(255,255,255,.025)}
#v7DmShell .v7-msg-profile-cover{height:88px;background-image:var(--msg-cover);background-size:cover;background-position:center;border-radius:16px}
#v7DmShell .v7-msg-profile-avatar{width:72px;height:72px;border-radius:24px;margin-top:-38px}
#v7DmShell .v7-msg-action-grid{grid-template-columns:repeat(4,1fr);gap:12px}
#v7DmShell .v7-msg-action{padding:10px 4px;font-size:11px}
#v7DmShell .v7-msg-action .icon-wrap{width:46px;height:46px}
#v7DmShell .v7-msg-thumbs{grid-template-columns:repeat(4,1fr)}
#v7DmShell .v7-msg-thumb{aspect-ratio:1;border-radius:11px}
@media (max-width:1160px){#v7DmShell.v7-dm-shell{grid-template-columns:86px 316px minmax(0,1fr)}}


/* V235: single authoritative messenger shell on all viewports */
@media(min-width:900px){.page[data-page-name="messages"]{width:calc(100vw - 16px)!important;max-width:none!important;margin:0 8px!important;}.page[data-page-name="messages"] #pageContent{width:100%;max-width:none!important;padding:0!important;}}
@media(min-width:1400px){#v7DmShell.v7-dm-shell{grid-template-columns:176px 318px minmax(0,1fr) 326px}}
@media(min-width:1400px){#v7DmShell .v7-msg-rail{padding:16px 10px}#v7DmShell .v7-msg-brand{font-size:21px}}
#v7DmShell .v7-msg-info .v7-msg-card [data-action]{cursor:pointer}
#v7DmShell .v7-msg-rail-btn{cursor:pointer}
#v7DmShell .v7-msg-time{font-variant-numeric:tabular-nums}
#v7DmShell .v7-msg-row .vyral-message-bubble{max-width:min(62%,600px);margin:0}
#v7DmShell .v7-msg-row.me .vyral-message-bubble{margin-left:auto}
#v7DmShell .vyral-message-meta{font-size:11px;opacity:.72;margin-top:6px;text-align:right}
#v7DmShell .vyral-message-reactions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
#v7DmShell .v7-msg-avatar,#v7DmShell .v7-dm-avatar{flex-shrink:0}
#v7DmShell .v7-msg-rail-btn[data-action="open-page"]{width:100%;text-align:left}
#v7DmShell .v7-msg-filter:focus-visible,#v7DmShell .v7-dm-person:focus-visible{outline:2px solid #7c9dff;outline-offset:2px}
@media(max-width:700px){#v7DmShell.v7-dm-shell{min-height:0;height:calc(100dvh - 75px)}#v7DmShell .v7-msg-rail{display:none}#v7DmShell .v7-msg-info{display:none}#v7DmShell .v7-msg-listpane{display:none}#v7DmShell.show-list .v7-msg-listpane{display:grid}#v7DmShell.show-list .v7-msg-main{display:none}#v7DmShell .v7-msg-mobile-back{display:inline-flex!important}#v7DmShell .v7-compose{grid-template-columns:auto minmax(0,1fr) auto auto}#v7DmShell .v7-compose [data-action="dm-plus"],#v7DmShell .v7-compose [data-action="dm-video"]{display:none}#v7DmShell .v7-msg-row .vyral-message-bubble{max-width:82%}}
@media(prefers-reduced-motion:reduce){#v7DmShell *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* V235 final mobile layout wins over all older breakpoint rules. */
@media(max-width:700px){
 #v7DmShell.v7-dm-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important}
 #v7DmShell .v7-msg-main{min-width:0!important;width:100%!important}
 #v7DmShell .v7-msg-listpane{min-width:0!important;width:100%!important}
 #v7DmShell .v7-msg-rail,#v7DmShell .v7-msg-info{display:none!important}
 #v7DmShell .v7-chat-head{gap:9px}
 #v7DmShell .v7-chat-head .v7-head-meta{min-width:0;flex:1}
 #v7DmShell .v7-chat-head .v7-head-meta b,#v7DmShell .v7-chat-head .v7-head-meta div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #v7DmShell .v7-compose{grid-template-columns:42px minmax(0,1fr) 42px 42px!important;gap:6px!important}
 #v7DmShell .v7-compose input{min-width:0!important;width:100%}
 #v7DmShell .v7-compose button{width:42px;height:44px}
 #v7DmShell .v7-chat-actions{gap:5px}
 #v7DmShell .v7-chat-actions .v7-btn{width:34px;height:34px}
}

@keyframes v7Typing{50%{opacity:.25;transform:translateY(-3px)}}


/* V7.0.236 — safe isolated messenger layout: no external CSS request required. */
.page[data-page-name="messages"]{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
.page[data-page-name="messages"] #pageContent{width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
#v7DmShell.v7-dm-shell{box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(152px,176px) minmax(255px,318px) minmax(0,1fr) minmax(280px,326px)!important;width:100%!important;max-width:100%!important;max-height:calc(100dvh - 83px)!important;min-height:0!important;height:calc(100dvh - 83px)!important;overflow:hidden!important;isolation:isolate}
#v7DmShell .v7-msg-rail,#v7DmShell .v7-msg-listpane,#v7DmShell .v7-msg-main,#v7DmShell .v7-msg-info{box-sizing:border-box!important;min-width:0!important;min-height:0!important;max-width:100%!important;overflow-x:hidden!important}
#v7DmShell .v7-msg-rail{display:flex!important;flex-direction:column!important}
#v7DmShell .v7-msg-listpane{display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr)!important}
#v7DmShell .v7-msg-main{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important}
#v7DmShell .v7-msg-info{display:block!important;overflow-y:auto!important}
#v7DmShell .v7-dm-people,#v7DmShell .v7-chat-messages{min-height:0!important;overflow:auto!important;overscroll-behavior:contain}
#v7DmShell img{display:block!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important}
#v7DmShell .v7-dm-avatar,#v7DmShell .v7-msg-avatar{display:grid!important;place-items:center!important;width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important;flex:0 0 52px!important;border-radius:17px!important;overflow:hidden!important}
#v7DmShell .v7-msg-profile-avatar{display:grid!important;place-items:center!important;width:72px!important;height:72px!important;min-width:72px!important;max-width:72px!important;min-height:72px!important;max-height:72px!important;border-radius:23px!important;overflow:hidden!important}
#v7DmShell .v7-msg-mini-avatar{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;flex:0 0 36px!important;overflow:hidden!important}
#v7DmShell .v7-msg-thumbs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
#v7DmShell .v7-msg-thumb{min-width:0!important;max-width:100%!important;aspect-ratio:1!important;overflow:hidden!important}
#v7DmShell .v7-msg-thumb img,#v7DmShell .v7-msg-profile-avatar img,#v7DmShell .v7-dm-avatar img,#v7DmShell .v7-msg-avatar img,#v7DmShell .v7-msg-mini-avatar img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important}
#v7DmShell .v7-msg-profile-cover{width:100%!important;height:88px!important;max-height:88px!important;background-position:center!important;background-size:cover!important;overflow:hidden!important}
#v7DmShell .v7-dm-person{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;width:100%!important;align-items:center!important}
#v7DmShell .v7-msg-avatar-col,#v7DmShell .v7-msg-avatar-col .top{min-width:0!important;max-width:100%!important;overflow:hidden!important}
#v7DmShell .v7-msg-avatar-col .top{display:flex!important;justify-content:space-between!important}
#v7DmShell .v7-msg-avatar-col small,#v7DmShell .v7-msg-avatar-col b{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#v7DmShell .v7-chat-head{display:flex!important;align-items:center!important;min-width:0!important}
#v7DmShell .v7-compose{display:grid!important;grid-template-columns:44px 44px minmax(0,1fr) 44px 44px 44px!important}
#v7DmShell .v7-compose input{width:100%!important;min-width:0!important}
#v7DmShell .v7-msg-row{display:flex!important;align-items:flex-end!important}
#v7DmShell .v7-msg-row.me{justify-content:flex-end!important}
#v7DmShell .v7-msg-row .vyral-message-bubble{max-width:min(75%,560px)!important;overflow-wrap:anywhere!important}
@media(max-width:1370px){#v7DmShell.v7-dm-shell{grid-template-columns:minmax(80px,100px) minmax(260px,308px) minmax(0,1fr) minmax(270px,310px)!important}#v7DmShell .v7-msg-brand div:last-child,#v7DmShell .v7-msg-rail-btn span:not(.ico):not(.count),#v7DmShell .v7-msg-me>div{display:none!important}#v7DmShell .v7-msg-rail-btn{justify-content:center!important}}
@media(max-width:1130px){#v7DmShell.v7-dm-shell{grid-template-columns:82px minmax(250px,330px) minmax(0,1fr)!important}#v7DmShell .v7-msg-info{display:none!important}}
@media(max-width:860px){#v7DmShell.v7-dm-shell{grid-template-columns:minmax(240px,40%) minmax(0,1fr)!important}#v7DmShell .v7-msg-rail{display:none!important}#v7DmShell .v7-compose{grid-template-columns:44px 44px minmax(0,1fr) 44px 44px!important}#v7DmShell .v7-compose [data-action="dm-video"]{display:none!important}}
@media(max-width:700px){#v7DmShell.v7-dm-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;height:calc(100dvh - 64px)!important;max-height:calc(100dvh - 64px)!important;border:0!important;border-radius:0!important}#v7DmShell .v7-msg-rail,#v7DmShell .v7-msg-info{display:none!important}#v7DmShell .v7-msg-listpane{display:none!important}#v7DmShell.show-list .v7-msg-listpane{display:grid!important}#v7DmShell.show-list .v7-msg-main{display:none!important}#v7DmShell .v7-msg-main{display:grid!important}#v7DmShell .v7-msg-mobile-back{display:inline-flex!important}#v7DmShell .v7-compose{grid-template-columns:42px minmax(0,1fr) 42px 42px!important;gap:6px!important}#v7DmShell .v7-compose [data-action="dm-plus"],#v7DmShell .v7-compose [data-action="dm-video"]{display:none!important}#v7DmShell .v7-msg-row .vyral-message-bubble{max-width:83%!important}}


/* V7.0.237 — messages refined to match the reference desktop layout more closely. */
#v7DmShell .v7-avatar-fallback{position:absolute;inset:0;display:grid;place-items:center;font-weight:1000;color:#fff;background:linear-gradient(135deg,#ff4ca0,#7f53ff 58%,#25d8ff)}
#v7DmShell .v7-dm-avatar img,#v7DmShell .v7-msg-avatar img,#v7DmShell .v7-msg-profile-avatar img,#v7DmShell .v7-msg-mini-avatar img{position:relative;z-index:1}
#v7DmShell .v7-verified-mini{display:inline-grid;place-items:center;vertical-align:middle;width:15px;height:15px;margin-left:4px;border-radius:50%;background:linear-gradient(135deg,#30b9ff,#5f7dff);font-size:10px;font-weight:1000;color:#fff;box-shadow:0 8px 16px rgba(62,111,255,.24)}
#v7DmShell .v7-msg-brand{padding:2px 6px 18px}
#v7DmShell .v7-dm-title{padding-bottom:14px}
#v7DmShell .v7-dm-title-actions{display:flex;align-items:center;gap:10px}
#v7DmShell .v7-msg-ghost-btn.broadcast{height:38px;padding:0 14px;border-radius:14px;border:1px solid rgba(95,124,255,.24);background:linear-gradient(135deg,rgba(84,111,255,.16),rgba(142,79,255,.14));color:#dbe3ff;font-weight:900}
#v7DmShell .v7-msg-me{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.07)}
#v7DmShell .v7-msg-me-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
#v7DmShell .v7-msg-me-settings{width:34px;height:34px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);display:grid;place-items:center;color:#cfd8ff;flex:0 0 auto}
#v7DmShell .v7-dm-person{grid-template-columns:54px minmax(0,1fr) !important}
#v7DmShell .v7-msg-avatar-col .top{align-items:flex-start;gap:8px}
#v7DmShell .v7-msg-avatar-col b{display:flex;align-items:center;gap:4px;font-size:15px}
#v7DmShell .v7-msg-avatar-col small{font-size:13px;color:#b8c2dd}
#v7DmShell .v7-chat-head .v7-head-meta b{display:flex;align-items:center;gap:4px}
#v7DmShell .v7-chat-actions{gap:12px}
#v7DmShell .v7-chat-actions .v7-btn{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}
#v7DmShell .v7-msg-profile-head{text-align:left}
#v7DmShell .v7-msg-profile-head h3{display:flex;align-items:center;gap:4px;font-size:18px;margin-bottom:2px}
#v7DmShell .v7-msg-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
#v7DmShell .v7-msg-action{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-height:118px;padding:12px 6px;border-radius:18px;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.07);font-size:12px;text-align:center;line-height:1.2}
#v7DmShell .v7-msg-action.primary{background:linear-gradient(180deg,#7e63ff,#6f5cff 72%,#566fff);box-shadow:0 18px 36px rgba(95,94,255,.18)}
#v7DmShell .v7-msg-action .icon-wrap{width:54px;height:54px;border-radius:18px;background:rgba(255,255,255,.08)}
#v7DmShell .v7-msg-action.primary .icon-wrap{background:rgba(255,255,255,.14)}
#v7DmShell .v7-msg-action .label{display:block;max-width:70px;white-space:normal}
#v7DmShell .v7-msg-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#v7DmShell .v7-msg-card small{font-size:12px}
#v7DmShell .v7-msg-thumbs{gap:8px !important}
#v7DmShell .v7-msg-thumb{border-radius:13px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.03)}
@media(max-width:1130px){#v7DmShell .v7-msg-action{min-height:108px}#v7DmShell .v7-msg-action .icon-wrap{width:50px;height:50px}}
@media(max-width:700px){#v7DmShell .v7-dm-title-actions .broadcast{display:none !important}#v7DmShell .v7-msg-me-settings{display:none}#v7DmShell .v7-chat-actions{gap:6px}#v7DmShell .v7-chat-actions .v7-btn{width:38px;height:38px}}
