/* TS WhatsApp 15.19 – shared notification, footer and safe in-page media viewer. */
html body.ts-studio .ts19-app-footer{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  flex-wrap:wrap!important;min-height:34px!important;padding:7px 16px!important;margin:0 12px!important;
  border-top:1px solid var(--ts15-line,rgba(120,140,175,.2))!important;
  background:transparent!important;color:var(--ts15-muted,#778399)!important;
  font-size:10px!important;font-weight:500!important;letter-spacing:.01em!important;line-height:1.45!important;text-align:center!important;
}
html body.ts-studio .ts19-notification{position:relative!important;display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;z-index:125!important;min-width:0!important}
html body.ts-studio .ts19-notif-trigger{display:grid!important;place-items:center!important;position:relative!important;cursor:pointer!important}
html body.ts-studio .ts19-notif-trigger svg{width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important;max-width:19px!important;max-height:19px!important}
html body.ts-studio .ts19-notif-popover{display:block!important;position:absolute!important;z-index:1700!important;top:calc(100% + 11px)!important;right:0!important;left:auto!important;
 width:min(365px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:min(580px,75vh)!important;overflow:hidden!important;
 background:var(--ts15-paper,#fff)!important;color:var(--ts15-ink,#142740)!important;
 border:1px solid var(--ts15-line,#dbe4ef)!important;border-radius:14px!important;
 box-shadow:0 20px 48px rgba(4,24,49,.22)!important}
html body.ts-studio .ts19-notif-popover[hidden]{display:none!important}
html body.ts-studio .ts19-notif-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:14px 15px 11px!important;border-bottom:1px solid var(--ts15-line,#dbe4ef)!important}
html body.ts-studio .ts19-notif-title b{font-size:13px!important;color:var(--ts15-heading,#152744)!important}
html body.ts-studio .ts19-notif-title span{font-size:10px!important;color:var(--ts15-muted,#64748b)!important;white-space:nowrap!important}
html body.ts-studio .ts19-notif-list{max-height:370px!important;overflow:auto!important;overscroll-behavior:contain!important}
html body.ts-studio .ts19-notif-item{display:flex!important;align-items:flex-start!important;gap:9px!important;padding:10px 14px!important;text-decoration:none!important;color:var(--ts15-ink,#172c49)!important;border-bottom:1px solid var(--ts15-line,#e1e6ed)!important;background:transparent!important}
html body.ts-studio .ts19-notif-item:hover,html body.ts-studio .ts19-notif-item:focus-visible{background:var(--ts15-soft,#edf4ff)!important}
html body.ts-studio .ts19-notif-item.unread{background:color-mix(in srgb,var(--ts15-blue,#2464ae) 7%,var(--ts15-paper,#fff))!important}
html body.ts-studio .ts19-notif-item>span:last-child{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;flex:1!important}
html body.ts-studio .ts19-notif-item b{display:block!important;color:var(--ts15-heading,#142b4f)!important;font-size:11.5px!important;font-weight:750!important;line-height:1.35!important;overflow-wrap:anywhere!important}
html body.ts-studio .ts19-notif-item small{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;color:var(--ts15-muted,#637790)!important;font-size:10.5px!important;line-height:1.4!important}
html body.ts-studio .ts19-notif-item time{font-size:9.5px!important;color:var(--ts15-muted,#637790)!important}
html body.ts-studio .ts19-notif-dot{width:7px!important;height:7px!important;border-radius:50%!important;flex:0 0 7px!important;margin-top:6px!important;background:transparent!important}
html body.ts-studio .ts19-notif-item.unread .ts19-notif-dot{background:#347dde!important}
html body.ts-studio .ts19-notif-footer{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;padding:10px 12px!important;background:var(--ts15-paper-2,var(--ts15-paper,#fff))!important}
html body.ts-studio .ts19-notif-footer form{margin:0!important;min-width:0!important}
html body.ts-studio .ts19-notif-footer button,html body.ts-studio .ts19-notif-footer .ts19-show-all{height:34px!important;min-height:34px!important;padding:7px 11px!important;border-radius:8px!important;border:1px solid var(--ts15-line,#d9e1ec)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:10.5px!important;font-weight:700!important;text-decoration:none!important;line-height:1.2!important;white-space:nowrap!important}
html body.ts-studio .ts19-notif-footer button{background:var(--ts15-blue,#205b99)!important;color:white!important;border-color:transparent!important}
html body.ts-studio .ts19-notif-footer button:disabled{opacity:.5!important;cursor:not-allowed!important}
html body.ts-studio .ts19-notif-footer .ts19-show-all{background:var(--ts15-paper,#fff)!important;color:var(--ts15-heading,#0b2d58)!important}
html body.ts-studio .ts19-notif-empty,html body.ts-studio .ts19-notif-status{margin:0!important;padding:14px!important;font-size:11px!important;color:var(--ts15-muted,#64748b)!important}
@media(max-width:980px){html body.ts-studio .topbar .ts19-notification{z-index:300!important}}
@media(max-width:430px){html body.ts-studio .ts19-notif-popover{position:fixed!important;top:62px!important;right:12px!important;left:12px!important;width:auto!important;max-width:initial!important;max-height:calc(100dvh - 85px)!important}}

/* Chat: make the trigger part of the bubble hitbox, not a detached hover target. */
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble{position:relative!important;overflow:visible!important;padding:7px 10px!important;max-width:min(470px,82%)!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-body{font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important;white-space:normal!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-meta{display:inline-flex!important;vertical-align:baseline!important;align-items:baseline!important;justify-content:flex-end!important;float:none!important;margin:0 0 0 8px!important;gap:4px!important;white-space:nowrap!important;line-height:1!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row .ts19-message-actions{position:absolute!important;top:3px!important;right:3px!important;left:auto!important;bottom:auto!important;margin:0!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .1s linear!important;z-index:450!important;display:block!important;transform:none!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble:is(:hover,:focus-within,.ts14-message-selected) .ts19-message-actions,
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-actions:has([aria-expanded="true"]){opacity:1!important;visibility:visible!important;pointer-events:auto!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-actions>.ts14-message-action-trigger{position:relative!important;display:grid!important;place-items:center!important;width:26px!important;min-width:26px!important;max-width:26px!important;height:26px!important;min-height:26px!important;max-height:26px!important;margin:0!important;padding:0!important;line-height:1!important;font-size:17px!important;color:var(--ts15-heading,#10274d)!important;background:var(--ts15-paper,#fff)!important;border:1px solid var(--ts15-line,#d6e0ed)!important;border-radius:7px!important;box-shadow:0 3px 8px rgba(0,0,0,.12)!important;cursor:pointer!important;opacity:1!important;visibility:visible!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-action-menu{display:flex!important;flex-direction:column!important;gap:0!important;position:absolute!important;top:calc(100% + 3px)!important;right:0!important;left:auto!important;bottom:auto!important;min-width:188px!important;width:max-content!important;max-width:min(250px,calc(100vw - 28px))!important;max-height:265px!important;overflow-y:auto!important;padding:5px!important;margin:0!important;background:var(--ts15-paper,#fff)!important;border:1px solid var(--ts15-line,#dce4ef)!important;border-radius:10px!important;box-shadow:0 14px 32px rgba(10,27,48,.22)!important;transform:translateX(var(--ts19-menu-offset,0px))!important;z-index:900!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;white-space:normal!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-action-menu[hidden]{display:none!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts14-open-above .ts19-message-action-menu{top:auto!important;bottom:calc(100% + 3px)!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.in .ts19-message-action-menu{left:0!important;right:auto!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.out .ts19-message-action-menu{left:auto!important;right:0!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-action-menu :is(button,a){display:flex!important;align-items:center!important;text-align:left!important;justify-content:flex-start!important;width:100%!important;min-height:34px!important;height:auto!important;margin:0!important;padding:7px 9px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--ts15-ink,#163252)!important;text-decoration:none!important;font-size:11px!important;font-weight:600!important;white-space:normal!important;line-height:1.35!important;cursor:pointer!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-action-menu :is(button,a):hover{background:var(--ts15-soft,#e6f0fa)!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-action-menu form{display:block!important;width:100%!important;margin:0!important;padding:0!important;opacity:1!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-action-menu form button{color:#c02b39!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-media-trigger{cursor:pointer!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;max-width:100%!important;height:auto!important;min-height:0!important;display:block!important;text-align:left!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-media-trigger:focus-visible{outline:2px solid #2680ce!important;outline-offset:3px!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-media-trigger img{display:block!important;width:auto!important;max-width:min(290px,100%)!important;height:auto!important;max-height:280px!important;border-radius:8px!important;object-fit:cover!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-video-thumb{position:relative!important;max-width:min(320px,100%)!important;min-height:120px!important;border-radius:8px!important;overflow:hidden!important;background:#111e32!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-video-thumb video{display:block!important;width:100%!important;max-height:220px!important;pointer-events:none!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-video-thumb span{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;background:rgba(7,24,45,.83)!important;color:#fff!important;border-radius:9px!important;padding:7px 12px!important;font-size:12px!important;font-weight:700!important;white-space:nowrap!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-file-card{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px!important;width:min(290px,100%)!important;min-height:54px!important;padding:10px!important;border:1px solid var(--ts15-line,#d3e2ee)!important;border-radius:9px!important;background:color-mix(in srgb,var(--ts15-paper,#fff) 75%,transparent)!important;color:var(--ts15-ink,#152f54)!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-file-card>span:nth-child(2){min-width:0!important;flex:1 1 auto!important;overflow-wrap:anywhere!important;font-weight:650!important;font-size:11px!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-file-card small{flex:1 1 100%!important;color:var(--ts15-muted,#66778a)!important;font-size:9px!important}
@media (hover:none), (pointer:coarse){html body.ts-studio.page-inbox .inbox-message-wall .message-bubble.ts14-message-selected .ts19-message-actions{opacity:1!important;visibility:visible!important;pointer-events:auto!important}}
@media(max-width:480px){html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble{max-width:90%!important}html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-action-menu{min-width:170px!important}}

/* Private in-app lightbox: never send authenticated media to third-party viewers. */
.ts19-lightbox{position:fixed;inset:0;z-index:99999;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;background:rgba(5,14,27,.91);color:#fff}
.ts19-lightbox[hidden]{display:none!important}
.ts19-lightbox-toolbar{display:flex;align-items:center;gap:10px;width:min(1100px,100%);padding:0 0 10px}
.ts19-lightbox-toolbar strong{font:600 13px/1.4 system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.ts19-lightbox-toolbar :is(button,a){display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;padding:7px 10px;border:1px solid rgba(255,255,255,.24);border-radius:8px;background:#15283d;color:#fff;text-decoration:none;font:600 12px/1.3 system-ui,sans-serif;cursor:pointer}
.ts19-lightbox-content{width:min(1100px,100%);max-height:calc(100dvh - 100px);min-height:100px;display:flex;align-items:center;justify-content:center;overflow:auto;border-radius:10px}
.ts19-lightbox-content img{display:block;max-width:100%;max-height:calc(100dvh - 110px);object-fit:contain;border-radius:5px}
.ts19-lightbox-content :is(video,iframe){display:block;width:100%;height:min(75dvh,720px);max-height:calc(100dvh - 105px);border:0;background:#090d15}
.ts19-lightbox-content pre{display:block;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;color:#18283d;font:13px/1.55 system-ui,sans-serif;padding:24px;border-radius:10px;max-height:calc(100dvh - 130px);overflow:auto;width:100%;margin:0}
.ts19-lightbox-info{padding:22px;background:#fff;color:#17314f;text-align:center;border-radius:10px;max-width:520px;width:100%;font:13px/1.5 system-ui,sans-serif}
@media(max-width:480px){.ts19-lightbox{padding:8px}.ts19-lightbox-toolbar{gap:6px}.ts19-lightbox-toolbar strong{font-size:11px}.ts19-lightbox-toolbar a{font-size:10px;padding:6px 8px}}
/* Let the notification menu escape old header clipping without changing the header sizing. */
html body.ts-studio .topbar,html body.ts-studio .topbar .topbar-right{overflow:visible!important}
html body.ts-studio .workspace>.ts19-app-footer{margin-top:auto!important;flex-shrink:0!important}


/* V15.20: action button stays clickable and is adjacent to the message, not detached from hover. */
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble{width:max-content!important;max-width:min(470px,calc(100% - 43px))!important;flex:0 1 auto!important;min-width:0!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row .ts19-message-actions{
  display:block!important;position:absolute!important;top:0!important;bottom:auto!important;
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  transform:none!important;transition:none!important;margin:0!important;z-index:401!important;
  width:27px!important;min-width:27px!important;max-width:27px!important;height:28px!important;
}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.in .ts19-message-actions{left:calc(100% + 4px)!important;right:auto!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.out .ts19-message-actions{right:calc(100% + 4px)!important;left:auto!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-actions>.ts14-message-action-trigger{
  display:grid!important;place-items:center!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important;max-width:27px!important;
  background:var(--ts15-paper,#fff)!important;color:var(--ts15-ink,#14304f)!important;border:1px solid var(--ts15-line,#d9e1ea)!important;
  box-shadow:0 1px 3px rgba(8,26,51,.08)!important;border-radius:8px!important;padding:0!important;font-size:16px!important;
}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-actions>.ts14-message-action-trigger:is(:hover,:focus-visible),
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-actions>.ts14-message-action-trigger[aria-expanded=true]{background:var(--ts15-soft,#e7f1fe)!important;outline-offset:2px!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-action-menu{top:calc(100% + 1px)!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts14-open-above .ts19-message-action-menu{bottom:calc(100% + 1px)!important;top:auto!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.in .ts19-message-action-menu{left:0!important;right:auto!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.out .ts19-message-action-menu{right:0!important;left:auto!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts20-image-load-error[hidden]{display:none!important}
html body.ts-studio.page-inbox .inbox-message-wall .ts20-image-load-error{display:block!important;color:var(--ts15-muted,#6d7c8d)!important;font-size:11px!important;padding:8px!important}
@media(max-width:480px){
 html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble{max-width:calc(100% - 43px)!important}
 html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-actions>.ts14-message-action-trigger{width:28px!important;height:28px!important;min-height:28px!important;min-width:28px!important}
}
/* Image viewer: actual scrollable image pixels + caption, not a separate tab. */
.ts19-lightbox{gap:8px!important}
.ts19-lightbox-toolbar{flex-shrink:0!important;flex-wrap:wrap!important;row-gap:5px!important}
.ts20-zoom-buttons{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto}
.ts20-zoom-buttons[hidden]{display:none!important}
.ts20-zoom-buttons button{min-width:34px!important;min-height:34px!important;padding:4px 7px!important}
.ts20-zoom-readout{font:600 11px/1 system-ui,sans-serif;min-width:35px;text-align:center;white-space:nowrap}
.ts19-lightbox-content{flex:1 1 auto!important;min-height:80px!important;min-width:0!important;max-height:none!important;overflow:auto!important;align-items:stretch!important;justify-content:stretch!important;overscroll-behavior:contain!important}
.ts20-image-stage{width:100%;height:100%;min-height:0;min-width:0;overflow:auto;display:block;overscroll-behavior:contain;scrollbar-width:thin}
.ts20-image-canvas{position:relative;margin:auto;min-width:1px;min-height:1px;transition:width .08s ease,height .08s ease}
.ts19-lightbox-content .ts20-image-canvas img{display:block;position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:fill!important;border-radius:4px;user-select:none;-webkit-user-drag:none}
.ts20-lightbox-caption{flex:0 0 auto;align-self:center;width:min(900px,100%);max-height:19vh;overflow:auto;padding:9px 13px;border-radius:9px;background:rgba(24,42,66,.92);color:#f6f9ff;font:12px/1.5 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left}
.ts20-lightbox-caption[hidden]{display:none!important}
@media(max-width:480px){
 .ts19-lightbox-toolbar{gap:5px!important}
 .ts19-lightbox-toolbar strong{flex-basis:100%!important;max-width:100%!important}
 .ts20-zoom-buttons{margin-right:auto}
 .ts19-lightbox-toolbar :is(button,a){min-height:33px!important;min-width:32px!important}
 .ts20-lightbox-caption{font-size:11.5px}
}


/* V15.21 — Desktop hover / touch long-press. A single body-level menu prevents stacking. */
html body.ts-studio.page-inbox .inbox-message-wall .message-row .ts19-message-actions{
  display:block!important;position:absolute!important;top:1px!important;bottom:auto!important;
  width:26px!important;min-width:26px!important;max-width:26px!important;height:29px!important;
  margin:0!important;transform:none!important;transition:opacity .12s ease!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;z-index:500!important;
}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.in .ts19-message-actions{left:calc(100% + 2px)!important;right:auto!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.out .ts19-message-actions{right:calc(100% + 2px)!important;left:auto!important}
/* Invisible pointer bridge between bubble and option button prevents hover flicker. */
html body.ts-studio.page-inbox .inbox-message-wall .message-row .ts19-message-actions:before{
 content:"";position:absolute;top:0;bottom:0;left:-7px;width:9px;pointer-events:auto;
}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.out .ts19-message-actions:before{left:auto;right:-7px}
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-actions>.ts14-message-action-trigger{
 width:26px!important;height:26px!important;min-height:26px!important;min-width:26px!important;
 padding:0!important;border-radius:7px!important;font-size:16px!important;
}
@media (hover:hover) and (pointer:fine){
 html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble:hover .ts19-message-actions,
 html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble:focus-within .ts19-message-actions{
   opacity:1!important;visibility:visible!important;pointer-events:auto!important;
 }
}
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble.ts21-menu-active .ts19-message-actions{
 opacity:1!important;visibility:visible!important;pointer-events:auto!important;
}
/* A previous touch tap must never activate the menu by accident. */
@media (hover:none),(pointer:coarse){
 html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble.ts14-message-selected:not(.ts21-menu-active) .ts19-message-actions{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
 }
 html body.ts-studio.page-inbox .inbox-message-wall .message-bubble{
  -webkit-touch-callout:none;-webkit-user-select:none;user-select:none;
 }
}
/* Menu lives under <body>, not each bubble: no overflow clipping or overlapping copies. */
html body.ts-studio .ts21-message-popup,
html body.ts-studio .ts21-message-popup:not([hidden]){
 display:flex!important;flex-direction:column!important;gap:2px!important;
 position:fixed!important;right:auto!important;bottom:auto!important;
 margin:0!important;padding:6px!important;width:218px!important;min-width:180px!important;
 max-width:calc(100vw - 20px)!important;max-height:min(320px,calc(100dvh - 20px))!important;
 overflow-y:auto!important;border-radius:11px!important;border:1px solid var(--ts15-line,#dce4ee)!important;
 background:var(--ts15-paper,#fff)!important;color:var(--ts15-ink,#19314e)!important;
 box-shadow:0 18px 42px rgba(4,21,42,.26)!important;z-index:9998!important;
 opacity:1!important;visibility:visible!important;pointer-events:auto!important;
 transform:none!important;white-space:normal!important;
}
html body.ts-studio .ts21-message-popup[hidden]{display:none!important}
html body.ts-studio .ts21-message-popup :is(button,a){
 width:100%!important;min-height:36px!important;display:flex!important;align-items:center!important;
 padding:8px 10px!important;border:0!important;border-radius:7px!important;
 background:transparent!important;color:var(--ts15-ink,#19314e)!important;
 font-size:12px!important;font-weight:600!important;line-height:1.3!important;text-decoration:none!important;
 text-align:left!important;cursor:pointer!important;
}
html body.ts-studio .ts21-message-popup :is(button,a):hover,
html body.ts-studio .ts21-message-popup :is(button,a):focus-visible{
 background:var(--ts15-soft,#e9f2ff)!important;
}
html body.ts-studio .ts21-message-popup form{position:static!important;display:block!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;opacity:1!important;visibility:visible!important;box-shadow:none!important}
html body.ts-studio .ts21-message-popup form button{color:#c13343!important}
html[data-theme="dark"] body.ts-studio .ts21-message-popup form button{color:#ffb6bf!important}
@media(max-width:480px){
 html body.ts-studio .ts21-message-popup :is(button,a){min-height:42px!important;font-size:12.5px!important}
}
/* Some legacy styles force visibility:visible on the button itself; explicitly reset child visibility. */
html body.ts-studio.page-inbox .inbox-message-wall .message-row .ts19-message-actions>.ts14-message-action-trigger{
 visibility:hidden!important;opacity:0!important;pointer-events:none!important;
}
@media (hover:hover) and (pointer:fine){
 html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble:hover .ts19-message-actions>.ts14-message-action-trigger,
 html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble:focus-within .ts19-message-actions>.ts14-message-action-trigger{
  visibility:visible!important;opacity:1!important;pointer-events:auto!important;
 }
}
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble.ts21-menu-active .ts19-message-actions>.ts14-message-action-trigger{
 visibility:visible!important;opacity:1!important;pointer-events:auto!important;
}
/* Legacy scripts cannot render duplicate in-bubble menus; only the active portal is displayed. */
html body.ts-studio.page-inbox .inbox-message-wall .ts19-message-action-menu{display:none!important}


/* V15.22 — Fix the sticky three-dot icon on BOTH inbound and outbound messages.
   Hover only on fine-pointer desktop. Touch displays no persistent trigger:
   a long-press opens the single menu portal directly. */
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble.ts22-trigger-disarmed .ts19-message-actions,
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble.ts21-menu-active .ts19-message-actions{
 opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble.ts22-trigger-disarmed .ts19-message-actions>.ts14-message-action-trigger,
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble.ts21-menu-active .ts19-message-actions>.ts14-message-action-trigger{
 opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
@media (hover:hover) and (pointer:fine){
 /* Focus used by a previous mouse click must NOT keep controls stuck visible. */
 html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble:not(:hover):focus-within .ts19-message-actions,
 html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble:not(:hover):focus-within .ts19-message-actions>.ts14-message-action-trigger{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
 }
}
@media (hover:none),(pointer:coarse){
 /* No three-dot icon ever sits on the bubbles on mobile; only the long-press menu shows. */
 html body.ts-studio.page-inbox .inbox-message-wall .message-row .ts19-message-actions,
 html body.ts-studio.page-inbox .inbox-message-wall .message-row .ts19-message-actions>.ts14-message-action-trigger{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
 }
}
/* Body-level popup remains interactive even when its originating icon is hidden. */
html body.ts-studio .ts21-message-popup:not([hidden]){pointer-events:auto!important;}
