/* TS WHATSAPP / TAQIN STUDIO — Navy Workspace V15
   Visual architecture based on the customer-supplied Watzap admin reference.
   No modified endpoints, forms, tokens, database queries or WhatsApp delivery logic.
   The legacy app.css remains ONLY for functional components, while this style
   owns shell, navigation, layout, typography, tables, cards and responsiveness. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root, html[data-theme="light"]{
  color-scheme:light;
  --ts15-bg:#f3f5fa;--ts15-paper:#fff;--ts15-paper-2:#fafbfe;
  --ts15-ink:#243249;--ts15-heading:#142a4c;--ts15-muted:#7b879a;
  --ts15-line:#e4e7ef;--ts15-line-dark:#d5dce8;
  --ts15-navy:#0b2b58;--ts15-navy2:#154487;--ts15-blue:#276ac0;
  --ts15-soft:#eef4fd;--ts15-success:#15865b;--ts15-success-bg:#dcfae9;
  --ts15-shadow:0 3px 14px rgba(18,43,80,.035);
  --bg:var(--ts15-bg);--panel:var(--ts15-paper);--panel-2:var(--ts15-paper-2);
  --panel-3:#f2f5f9;--sidebar:var(--ts15-paper);--border:var(--ts15-line);
  --border-soft:#eef0f4;--text:var(--ts15-ink);--muted:var(--ts15-muted);
  --muted2:#9aa6b6;--green:#1d649f;--green-2:#0b3b7c;
  --green-soft:#edf4fd;--green-border:#c4d5ee;--blue:#2563bb;
  --shadow:var(--ts15-shadow)
}
html[data-theme="dark"]{
  color-scheme:dark;
  --ts15-bg:#0c1729;--ts15-paper:#15263d;--ts15-paper-2:#192c46;
  --ts15-ink:#e7edfb;--ts15-heading:#f2f6ff;--ts15-muted:#a4b1c9;
  --ts15-line:#2e4562;--ts15-line-dark:#405774;
  --ts15-navy:#142c51;--ts15-navy2:#24599e;--ts15-blue:#73a5f1;
  --ts15-soft:#1c3455;--ts15-success:#64d5a0;--ts15-success-bg:#153a30;
  --ts15-shadow:0 6px 20px rgba(0,0,0,.12);
  --bg:var(--ts15-bg);--panel:var(--ts15-paper);--panel-2:var(--ts15-paper-2);
  --panel-3:#1e3551;--sidebar:var(--ts15-paper);--border:var(--ts15-line);
  --border-soft:var(--ts15-line);--text:var(--ts15-ink);--muted:var(--ts15-muted);
  --muted2:#869bb9;--green:#689ee9;--green-2:#4a82c9;
  --green-soft:#203653;--green-border:#476489;--blue:#84b0f6;
  --shadow:var(--ts15-shadow)
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
html body.ts-studio{margin:0!important;font:400 14px/1.55 'DM Sans',Inter,system-ui,-apple-system,'Segoe UI',sans-serif!important;background:var(--ts15-bg)!important;color:var(--ts15-ink)!important;-webkit-font-smoothing:antialiased}
html body.ts-studio a{transition:color .15s,background .15s,border-color .15s}
html body.ts-studio :is(button,input,select,textarea){font-family:inherit!important;font-size:14px}
html body.ts-studio :is(img,svg,video,canvas){max-width:100%}
html body.ts-studio :is(h1,h2,h3,h4){color:var(--ts15-heading);letter-spacing:-.025em}
html body.ts-studio :is(p,.muted,small){line-height:1.55}
html body.ts-studio .app-shell{display:grid!important;grid-template-columns:268px minmax(0,1fr)!important;min-height:100dvh!important;background:var(--ts15-bg)!important;max-width:none!important;overflow:clip}
html body.ts-studio .workspace{min-width:0!important;background:var(--ts15-bg)!important;max-width:none!important}
/* The brand tile and the top header together form one uninterrupted navy bar. */
html body.ts-studio .app-shell>.sidebar{position:sticky!important;top:0!important;height:100dvh!important;max-height:100dvh!important;padding:0!important;z-index:35!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;background:var(--ts15-paper)!important;border-right:1px solid var(--ts15-line)!important;box-shadow:none!important}
html body.ts-studio .brand-row.studio-brandbar{display:flex!important;flex-shrink:0!important;min-height:76px!important;height:76px!important;padding:0 19px!important;margin:0!important;background:linear-gradient(110deg,#071d42 0%,#153e79 100%)!important;border:0!important;box-shadow:none!important}
html body.ts-studio .studio-brandbar .brand{display:flex!important;align-items:center!important;gap:11px!important;padding:0!important;margin:0!important;text-decoration:none!important}
html body.ts-studio .studio-brandbar .brand-mark{width:44px!important;height:44px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.12)!important;border-radius:12px!important;padding:6px!important;box-shadow:none!important;border:1px solid rgba(255,255,255,.22)!important}
html body.ts-studio .studio-brandbar img{width:100%!important;height:100%!important;object-fit:contain!important}
html body.ts-studio .studio-brandbar .brand-copy{display:flex!important;flex-direction:column!important;line-height:1.1!important}
html body.ts-studio .studio-brandbar .brand-copy b{font-size:18px!important;font-weight:800!important;letter-spacing:.01em!important;color:#fff!important;white-space:nowrap!important}
html body.ts-studio .studio-brandbar .brand-copy span{font-size:11px!important;color:#c9dafe!important;margin-top:4px!important;white-space:nowrap!important}
html body.ts-studio .ts15-sidebar-scroll{flex:1!important;padding:15px 11px 20px 0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin!important;scrollbar-color:#d5dbea transparent!important;background:var(--ts15-paper)!important}
html body.ts-studio .ts15-nav-group{padding:0 4px 0 0!important;margin-bottom:15px!important}
html body.ts-studio .ts15-nav-group .sidebar-label{font-size:11px!important;font-weight:700!important;color:#97a1af!important;letter-spacing:.045em!important;padding:11px 18px 9px 24px!important;margin:0!important;text-transform:uppercase!important}
html body.ts-studio .ts15-nav-group .side-nav{display:flex!important;flex-direction:column!important;gap:4px!important;padding:0!important}
html body.ts-studio .ts15-nav-group .nav-item{position:relative!important;display:flex!important;align-items:center!important;min-height:42px!important;margin:0 0 0 0!important;padding:10px 15px 10px 24px!important;border-radius:0 23px 23px 0!important;color:var(--ts15-ink)!important;background:transparent!important;font-size:13.5px!important;font-weight:500!important;line-height:1.2!important;text-decoration:none!important;box-shadow:none!important;gap:13px!important;white-space:nowrap!important}
html body.ts-studio .ts15-nav-group .nav-item:hover{color:var(--ts15-blue)!important;background:var(--ts15-soft)!important}
html body.ts-studio .ts15-nav-group .nav-item.active{background:linear-gradient(105deg,#092d67 0%,#1758a7 84%,#2879ca 100%)!important;color:#fff!important;font-weight:700!important;box-shadow:0 7px 17px rgba(16,59,120,.19)!important}
html body.ts-studio .ts15-nav-group .nav-item.active:before{display:none!important}
html body.ts-studio .ts15-nav-group .nav-icon{width:18px!important;height:18px!important;flex:0 0 18px!important;color:#798699!important}
html body.ts-studio .ts15-nav-group .nav-icon svg{width:18px!important;height:18px!important;stroke-width:1.85!important;fill:none!important}
html body.ts-studio .ts15-nav-group .nav-item.active .nav-icon{color:white!important}
html body.ts-studio .nav-item.nav-disabled{opacity:.44!important;cursor:not-allowed!important}
html body.ts-studio .nav-badge{margin-left:auto!important;background:#d7ebff!important;color:#164c92!important;font-size:10px!important;padding:3px 7px!important;border-radius:50px!important;font-style:normal!important}
html body.ts-studio .nav-item.active .nav-badge{background:#eff7ff!important;color:#0d3c7a!important}
html body.ts-studio .studio-sidebar-footer{background:var(--ts15-paper)!important;border-top:1px solid var(--ts15-line)!important;padding:11px 14px 15px!important;flex:0 0 auto!important;box-shadow:none!important}
html body.ts-studio .studio-sidebar-footer .cloud-status{background:var(--ts15-soft)!important;border:1px solid var(--ts15-line)!important;border-radius:11px!important;padding:9px 11px!important;margin:0 0 9px!important}
html body.ts-studio .studio-sidebar-footer .cloud-status b{color:var(--ts15-heading)!important;font-size:12px!important}
html body.ts-studio .studio-sidebar-footer .cloud-status small{font-size:11px!important;color:var(--ts15-muted)!important}
html body.ts-studio .sidebar-width-toggle{border:0!important;background:transparent!important;min-height:34px!important;padding:8px 12px!important;color:var(--ts15-muted)!important;font-size:12px!important}
html body.ts-studio .logout-text-link{color:var(--ts15-muted)!important;font-size:12px!important;text-decoration:none!important;margin-left:12px!important}
/* Top horizontal gradient like the supplied Watzap reference, TS navy instead of magenta. */
html body.ts-studio .topbar{height:76px!important;min-height:76px!important;max-height:76px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:0 26px!important;background:linear-gradient(100deg,#153e79 0%,#1c4a90 50%,#2871bc 100%)!important;border:0!important;box-shadow:0 5px 12px rgba(15,43,86,.11)!important;color:#fff!important;position:sticky!important;top:0!important;z-index:25!important;backdrop-filter:none!important}
html body.ts-studio .studio-topbar-left{display:flex!important;align-items:center!important;gap:15px!important;min-width:0!important;flex-shrink:0!important}
html body.ts-studio .ts15-header-home{display:none!important}
html body.ts-studio .ts15-topbar-shortcut{color:#fff!important;background:rgba(255,255,255,.16)!important;border:1px solid rgba(255,255,255,.18)!important;padding:9px 14px!important;border-radius:9px!important;text-decoration:none!important;font-size:12px!important;font-weight:700!important;white-space:nowrap!important}
html body.ts-studio .ts15-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#7ee8c3;margin-right:7px;box-shadow:0 0 0 3px rgba(126,232,195,.2)}
html body.ts-studio .menu-toggle,html body.ts-studio .studio-mobile-search-toggle{width:36px!important;height:36px!important;color:#fff!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:9px!important}
html body.ts-studio .studio-topbar-center{flex:1 1 340px!important;max-width:420px!important;min-width:0!important}
html body.ts-studio .topbar-search{max-width:100%!important;background:rgba(255,255,255,.15)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:9px!important;box-shadow:none!important}
html body.ts-studio .topbar-search :is(form,input){background:transparent!important;color:#fff!important}
html body.ts-studio .topbar-search input::placeholder{color:#dae7fb!important;opacity:.9!important}
html body.ts-studio .topbar-search svg{stroke:#d2e2f8!important}
html body.ts-studio .topbar-search kbd{color:#e8f0fb!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.16)!important}
html body.ts-studio .topbar-right{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:11px!important;min-width:0!important;flex:0 1 auto!important}
html body.ts-studio .topbar-right :is(.workspace-switcher,.workspace-static,.ts46-device-scope){background:rgba(255,255,255,.11)!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff!important;border-radius:9px!important;min-height:39px!important;box-shadow:none!important}
html body.ts-studio .topbar-right :is(.workspace-switcher,.workspace-static,.ts46-device-scope) span{color:#dce9fc!important}
html body.ts-studio .topbar-right select{color:#fff!important;background:transparent!important;border:0!important;max-width:175px!important;font-size:12px!important}
html body.ts-studio .topbar-right select option{color:#172640!important;background:#fff!important}
html body.ts-studio .topbar-right .notif-chip{color:#fff!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important}
html body.ts-studio .topbar-right .account-trigger{background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important;min-width:0!important}
html body.ts-studio .topbar-right .account-trigger b,html body.ts-studio .topbar-right .account-trigger span{color:#fff!important}
html body.ts-studio .topbar-right .user-copy span{opacity:.74!important;font-size:11px!important}
html body.ts-studio .topbar-right .avatar{background:rgba(255,255,255,.22)!important;border:1px solid rgba(255,255,255,.17)!important;color:#fff!important}
html body.ts-studio .account-dropdown{color:var(--ts15-ink)!important;background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;box-shadow:0 18px 44px rgba(0,23,55,.15)!important;z-index:70!important}
html body.ts-studio .account-dropdown :is(b,span,a){color:var(--ts15-ink)!important}
/* Main page, matching reference spacious light canvas and flat white content cards. */
html body.ts-studio:not(.page-inbox) .content{width:100%!important;max-width:1700px!important;margin:0 auto!important;padding:31px 30px 65px!important;background:transparent!important;min-width:0!important}
html body.ts-studio .ts15-page-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;flex-wrap:wrap!important;margin:0 0 22px!important;padding:0!important;border:0!important}
html body.ts-studio .ts15-page-heading .page-heading-main{min-width:0!important;flex:1 1 240px!important}
html body.ts-studio .ts15-breadcrumb{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--ts15-muted);margin:0 0 4px}
html body.ts-studio .ts15-breadcrumb a{color:var(--ts15-navy2);text-decoration:none}
html body.ts-studio .ts15-page-heading h1{margin:0!important;font-size:25px!important;font-weight:600!important;line-height:1.25!important;color:var(--ts15-heading)!important;letter-spacing:-.04em!important}
html body.ts-studio .ts15-page-heading p{display:none!important}
html body.ts-studio .ts15-page-heading .studio-page-actions{display:flex!important;gap:8px!important;align-items:center!important;flex:0 0 auto!important}
html body.ts-studio :is(.ts15-primary-action,.studio-action-primary){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;background:linear-gradient(100deg,#10336a,#246bbf)!important;border:0!important;border-radius:6px!important;min-height:41px!important;padding:10px 17px!important;color:#fff!important;box-shadow:0 4px 10px rgba(16,59,120,.14)!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important}
html body.ts-studio .studio-action-primary svg{width:17px;height:17px}
html body.ts-studio .content :is(.card,.provider-section,.device-section-card,.ai-simple-panel,.ts46-accordion,.settings-section-card,.customer-list-shell,.report-toolbar){background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;border-radius:8px!important;box-shadow:var(--ts15-shadow)!important;color:var(--ts15-ink)!important}
html body.ts-studio .content .card{padding:21px!important}
html body.ts-studio .content .card :is(h2,h3){color:var(--ts15-heading)!important}
html body.ts-studio .content :is(.eyebrow,.studio-module-eyebrow){font-size:10px!important;letter-spacing:.085em!important;color:var(--ts15-blue)!important;font-weight:800!important;text-transform:uppercase!important}
html body.ts-studio .content :is(.section-heading,.section-head,.device-section-head,.ts-dashboard-section-head){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
html body.ts-studio .content :is(.section-heading,.section-head) h3{font-size:18px!important;font-weight:650!important;margin:0 0 4px!important}
html body.ts-studio .content .muted{color:var(--ts15-muted)!important}
html body.ts-studio .content :is(.card,.table-wrap,.module-search-shell,.toolbar-primary,section){min-width:0}
html body.ts-studio .content :is(.btn,button:not(.nav-item):not(.icon-btn):not(.account-trigger):not(.menu-toggle):not(.studio-mobile-search-toggle):not(.inbox-view-link):not(.template-row)):where(:not(.inbox-empty-logo)){border-radius:6px}
html body.ts-studio .content :is(.btn,button):focus-visible,html body.ts-studio .content :is(a,input,select,textarea):focus-visible{outline:3px solid rgba(43,110,205,.24)!important;outline-offset:2px!important}
html body.ts-studio .content .btn:not(.ghost):not(.secondary):not(.danger),html body.ts-studio .content button[type=submit]:not(.ghost):not(.secondary):not(.danger),html body.ts-studio .content button:not([class]):not(.template-row):not(.icon-btn){background:linear-gradient(98deg,#123c79,#286fc1)!important;color:#fff!important;border:1px solid transparent!important;box-shadow:0 3px 6px rgba(14,53,120,.09)!important;font-weight:700!important;min-height:39px!important;padding:9px 16px!important}
html body.ts-studio .content .btn.secondary,html body.ts-studio .content .btn.ghost,html body.ts-studio .content button.ghost,html body.ts-studio .content button.secondary{background:var(--ts15-paper)!important;border:1px solid var(--ts15-line-dark)!important;color:var(--ts15-heading)!important;box-shadow:none!important;font-weight:600!important}
html body.ts-studio .content .btn.danger,html body.ts-studio .content button.danger{background:#b91c35!important;color:#fff!important;border-color:transparent!important}
html body.ts-studio .content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){border-radius:6px!important;border:1px solid var(--ts15-line-dark)!important;background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;min-height:39px!important;padding:9px 12px!important;box-shadow:none!important;max-width:100%}
html body.ts-studio .content textarea{min-height:90px!important;resize:vertical!important}
html body.ts-studio .content :is(input,select,textarea)::placeholder{color:#a2adba!important;opacity:1!important}
html body.ts-studio .content :is(label){font-size:12.5px!important;color:var(--ts15-ink)!important;font-weight:600!important}
html body.ts-studio .content :is(.module-search-shell,.toolbar-primary){background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;border-radius:8px!important;padding:14px!important;box-shadow:none!important;margin-bottom:14px!important}
html body.ts-studio .content .module-search-main{background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;border-radius:6px!important;box-shadow:none!important}
html body.ts-studio .content .module-search-main input{border:0!important;background:transparent!important}
html body.ts-studio .content .module-search-advanced{border:0!important;background:none!important}
html body.ts-studio .content :is(.actions,.inline-actions,.form-actions,.toolbar-actions){display:flex;align-items:center;flex-wrap:wrap;gap:9px!important}
html body.ts-studio .content :is(.notice,.alert){border-radius:7px!important;box-shadow:none!important}
/* Watzap-like white tables: a single continuous flat panel, defined header and rows. */
html body.ts-studio .content :is(.table-wrap,.table-responsive,.data-table-wrap){width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;background:var(--ts15-paper)!important;border-radius:8px!important;border:1px solid var(--ts15-line)!important;box-shadow:none!important}
html body.ts-studio .content .card>.table-wrap{border:0!important;border-top:1px solid var(--ts15-line)!important;border-radius:0!important;margin:10px 0 0!important}
html body.ts-studio .content table{border-collapse:collapse!important;width:100%!important;min-width:680px!important;background:var(--ts15-paper)!important;table-layout:auto!important;font-size:13px!important;color:var(--ts15-ink)!important}
html body.ts-studio .content table thead,html body.ts-studio .content table thead tr{background:var(--ts15-paper-2)!important}
html body.ts-studio .content table th{border:0!important;border-bottom:1px solid var(--ts15-line)!important;text-align:left!important;font-size:12px!important;letter-spacing:0!important;font-weight:650!important;color:var(--ts15-muted)!important;padding:16px 15px!important;white-space:nowrap!important}
html body.ts-studio .content table td{border:0!important;border-bottom:1px solid var(--ts15-line)!important;background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;padding:15px!important;vertical-align:middle!important;line-height:1.45!important}
html body.ts-studio .content table tr:last-child td{border-bottom:0!important}
html body.ts-studio .content table tbody tr:hover td{background:var(--ts15-soft)!important}
html body.ts-studio .content table td:first-child{font-weight:500}
html body.ts-studio .content :is(.pill,.badge,.status-badge){display:inline-flex;align-items:center;gap:5px;border-radius:99px!important;padding:5px 11px!important;line-height:1!important;border:0!important;font-size:11px!important;font-weight:700!important;white-space:nowrap!important}
html body.ts-studio .content :is(.pill.green,.badge.green,.pill.ok){background:var(--ts15-success-bg)!important;color:var(--ts15-success)!important}
html body.ts-studio .content :is(.pill.red,.badge.red){background:#fee5e9!important;color:#ae334a!important}
html body.ts-studio .content :is(.pill.gray,.pill.yellow){background:#edf1f8!important;color:#6f7d90!important}
html body.ts-studio .pagination{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;margin:18px 0!important}
html body.ts-studio .pagination a{border:1px solid var(--ts15-line)!important;border-radius:5px!important;background:var(--ts15-paper)!important;padding:6px 11px!important;color:var(--ts15-muted)!important;text-decoration:none!important}
html body.ts-studio .pagination a.active{background:var(--ts15-blue)!important;color:#fff!important;border-color:var(--ts15-blue)!important}
html body.ts-studio .content :is(.empty-state,.inbox-v2-empty,.provider-empty-workspace){background:var(--ts15-paper)!important;color:var(--ts15-muted)!important;border-color:var(--ts15-line)!important}
/* Home dashboard, paper cards and modular KPI. */
html body.ts-studio.page-index .workspace-summary-hero{border-left:4px solid var(--ts15-blue)!important;background:var(--ts15-paper)!important;box-shadow:none!important;border-radius:7px!important}
html body.ts-studio.page-index .workspace-summary-hero h2{font-size:19px!important;color:var(--ts15-heading)!important}
html body.ts-studio.page-index :is(.dashboard-overview-group,.ts-dashboard-chart-card,.ts-dashboard-activity-card){background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;border-radius:8px!important;box-shadow:none!important;padding:18px!important}
html body.ts-studio.page-index :is(.dashboard-live-overview,.ts-dashboard-insights,.dashboard-grid){display:grid!important;gap:16px!important;min-width:0!important}
html body.ts-studio.page-index .dashboard-live-overview{grid-template-columns:1fr!important}
html body.ts-studio.page-index :is(.dashboard-attention-tiles,.dashboard-stat-tiles,.stats-grid){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
html body.ts-studio.page-index :is(.dashboard-attention-tiles>a,.stat-card){background:var(--ts15-paper-2)!important;border:1px solid var(--ts15-line)!important;border-radius:8px!important;padding:15px 17px!important;box-shadow:none!important;color:var(--ts15-ink)!important}
html body.ts-studio.page-index :is(.dashboard-attention-tiles>a,.stat-card):hover{border-color:#b7cce8!important;background:var(--ts15-soft)!important;transform:none!important}
html body.ts-studio.page-index :is(.dashboard-attention-tiles b,.stat-number){font-size:28px!important;line-height:1.15!important;color:var(--ts15-heading)!important;font-weight:750!important}
html body.ts-studio.page-index :is(.dashboard-attention-tiles span,.stat-label,.stat-foot){font-size:12px!important;color:var(--ts15-muted)!important}
html body.ts-studio.page-index .ts-dashboard-insights{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)!important}
/* Broadcast: list first, campaign composer follows a distinct panel. */
html body.ts-studio.page-campaigns .bc-page{display:flex!important;flex-direction:column!important;gap:16px!important}
html body.ts-studio.page-campaigns .ts15-broadcast-index{order:0!important}
html body.ts-studio.page-campaigns .ts15-broadcast-create{order:1!important}
html body.ts-studio.page-campaigns .bc-title{background:transparent!important;padding:0!important;margin:0 0 13px!important;border:0!important}
html body.ts-studio.page-campaigns .bc-title h2{font-size:17px!important;font-weight:650!important}
html body.ts-studio.page-campaigns .bc-shell{border-radius:8px!important;background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;box-shadow:none!important}
html body.ts-studio.page-campaigns .bc-preview{background:var(--ts15-paper-2)!important;border-color:var(--ts15-line)!important}
html body.ts-studio.page-campaigns .bc-bottom{background:var(--ts15-paper-2)!important;border-color:var(--ts15-line)!important}
/* Template: reference-style flat rows with obvious selection and preview. */
html body.ts-studio.page-templates .studio-module-intro{background:var(--ts15-paper)!important;border-radius:8px!important;border:1px solid var(--ts15-line)!important;padding:13px 17px!important;margin:0 0 14px!important}
html body.ts-studio.page-templates .template-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(240px,30%)!important;gap:16px!important;margin:0 0 17px!important}
html body.ts-studio.page-templates .template-list{background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;border-radius:7px!important;overflow:hidden!important}
html body.ts-studio.page-templates .template-row{display:grid!important;grid-template-columns:minmax(0,1.7fr) minmax(80px,1fr) minmax(96px,1fr) minmax(100px,1fr)!important;align-items:center!important;gap:12px!important;width:100%!important;border-radius:0!important;border:0!important;border-bottom:1px solid var(--ts15-line)!important;background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;padding:17px!important;min-height:65px!important;text-align:left!important;box-shadow:none!important}
html body.ts-studio.page-templates .template-row:last-child{border-bottom:0!important}
html body.ts-studio.page-templates .template-row:hover,html body.ts-studio.page-templates .template-row.active{background:var(--ts15-soft)!important}
html body.ts-studio.page-templates .template-row :is(b,small){display:block!important}
html body.ts-studio.page-templates .template-row b{font-weight:650!important;font-size:13px!important}
html body.ts-studio.page-templates .template-row small{font-size:11px!important;color:var(--ts15-muted)!important}
html body.ts-studio.page-templates .template-row .ts15-tpl-lang,html body.ts-studio.page-templates .template-row .ts15-tpl-category{font-size:12px!important;color:var(--ts15-muted)!important}
html body.ts-studio.page-templates .ts15-template-table-head{display:grid!important;grid-template-columns:minmax(0,1.7fr) minmax(80px,1fr) minmax(96px,1fr) minmax(100px,1fr)!important;gap:12px!important;padding:13px 17px!important;border-bottom:1px solid var(--ts15-line)!important;background:var(--ts15-paper-2)!important;color:var(--ts15-muted)!important;font-size:11px!important;font-weight:650!important}
/* Device / settings / AI modules retain existing form behavior, but receive a consistent white interface. */
html body.ts-studio .content :is(.device-connect-head,.device-section-head,.ai-config-head,.ai-simple-header,.provider-status-grid,.ai-simple-main){color:var(--ts15-ink)!important}
html body.ts-studio .content :is(.device-section-card,.ai-console-pane,.ai-simple-panel,.ts-numbers-customer-card,.provider-status-grid>div){background:var(--ts15-paper)!important;border-color:var(--ts15-line)!important;box-shadow:none!important}
html body.ts-studio .content :is(.ts46-accordion>summary,.bc-options>summary,details>summary){color:var(--ts15-heading)!important}
html body.ts-studio .content :is(.ai-console-tab,.ai-console-tabs button,.ai-simple-tabs button){border-radius:6px!important}
html body.ts-studio .content :is(.ai-simple-panel,.ai-config-drawer,.ai-console-pane){border-radius:8px!important}
html body.ts-studio .content :is(.settings-admin-layout,.settings-grid,.form-grid-2,.profile-grid){gap:16px!important}
/* Inbox rebuilt into a practical 2-column inbox with filter drawer. */
html body.ts-studio.page-inbox .content{padding:17px 22px 20px!important;margin:0!important;max-width:none!important;background:var(--ts15-bg)!important;min-height:calc(100dvh - 76px)!important;min-width:0!important}
html body.ts-studio.page-inbox .ts15-page-heading{margin:0 0 10px!important}
html body.ts-studio.page-inbox .ts15-page-heading h1{font-size:21px!important}
html body.ts-studio.page-inbox .inbox-account-selector{background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;border-radius:8px!important;box-shadow:none!important;margin-bottom:11px!important;color:var(--ts15-ink)!important;padding:10px 13px!important;min-height:0!important}
html body.ts-studio.page-inbox .inbox-account-current{min-width:0!important}
html body.ts-studio.page-inbox .inbox-account-copy :is(b,small,span){color:var(--ts15-ink)!important}
html body.ts-studio.page-inbox .inbox-v2{--inbox-rail:0px;--inbox-list:365px;position:relative!important;display:grid!important;grid-template-columns:minmax(320px,365px) minmax(0,1fr)!important;min-height:0!important;height:calc(100dvh - 196px)!important;border:1px solid var(--ts15-line)!important;border-radius:8px!important;background:var(--ts15-paper)!important;box-shadow:none!important;overflow:hidden!important}
html body.ts-studio.page-inbox .inbox-v2-rail{display:none!important;position:absolute!important;top:0!important;bottom:0!important;left:0!important;width:260px!important;z-index:22!important;overflow:auto!important;box-shadow:7px 0 24px rgba(10,36,71,.17)!important;border-right:1px solid var(--ts15-line)!important;background:var(--ts15-paper)!important;padding:15px 12px!important}
html body.ts-studio.page-inbox .inbox-v2.ts15-rail-open .inbox-v2-rail{display:flex!important}
html body.ts-studio.page-inbox .inbox-rail-head h2{color:var(--ts15-heading)!important}
html body.ts-studio.page-inbox .inbox-views .inbox-view-link{color:var(--ts15-ink)!important;background:transparent!important;border-radius:7px!important;font-size:12px!important}
html body.ts-studio.page-inbox .inbox-views .inbox-view-link.active{background:var(--ts15-soft)!important;color:var(--ts15-blue)!important}
html body.ts-studio.page-inbox .inbox-v2-list-panel{display:flex!important;flex-direction:column!important;min-height:0!important;min-width:0!important;background:var(--ts15-paper)!important;border-right:1px solid var(--ts15-line)!important;overflow:hidden!important}
html body.ts-studio.page-inbox .inbox-list-head{display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important;background:var(--ts15-paper)!important;border-bottom:1px solid var(--ts15-line)!important;padding:15px 16px!important;color:var(--ts15-ink)!important}
html body.ts-studio.page-inbox .inbox-list-head h2{font-size:17px!important;color:var(--ts15-heading)!important;margin:0!important}
html body.ts-studio.page-inbox .inbox-list-head span{color:var(--ts15-muted)!important;font-size:11px!important}
html body.ts-studio.page-inbox .ts15-inbox-filters-trigger{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-width:40px;min-height:36px;padding:7px 11px;border-radius:6px!important;border:1px solid var(--ts15-line)!important;background:var(--ts15-soft)!important;color:var(--ts15-navy)!important;font-size:12px!important;cursor:pointer}
html body.ts-studio.page-inbox .inbox-list-search,html body.ts-studio.page-inbox .inbox-search{background:var(--ts15-paper)!important;border-color:var(--ts15-line)!important;color:var(--ts15-ink)!important}
html body.ts-studio.page-inbox .inbox-filter-tabs{background:var(--ts15-paper)!important;border-color:var(--ts15-line)!important}
html body.ts-studio.page-inbox .inbox-conversation-list{display:block!important;flex:1 1 0%!important;min-height:0!important;overflow-y:auto!important;background:var(--ts15-paper)!important;color:var(--ts15-ink)!important}
html body.ts-studio.page-inbox .inbox-row,html body.ts-studio.page-inbox .inbox-conversation-row{background:var(--ts15-paper)!important;border:0!important;border-bottom:1px solid var(--ts15-line)!important;color:var(--ts15-ink)!important;border-radius:0!important;box-shadow:none!important}
html body.ts-studio.page-inbox .inbox-row:hover,html body.ts-studio.page-inbox .inbox-conversation-row:hover{background:var(--ts15-soft)!important}
html body.ts-studio.page-inbox .inbox-row.active,html body.ts-studio.page-inbox .inbox-conversation-row.active{background:var(--ts15-soft)!important;border-left:3px solid var(--ts15-blue)!important}
html body.ts-studio.page-inbox :is(.inbox-row-title,.inbox-conversation-title,.inbox-contact-name){color:var(--ts15-heading)!important}
html body.ts-studio.page-inbox :is(.inbox-row-preview,.inbox-row-time,.inbox-list-foot,.inbox-list-head small){color:var(--ts15-muted)!important}
html body.ts-studio.page-inbox .inbox-v2-main{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;background:var(--ts15-paper-2)!important;color:var(--ts15-ink)!important;overflow:hidden!important}
html body.ts-studio.page-inbox .inbox-v2-empty{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;flex:1!important;background:var(--ts15-paper-2)!important;border:0!important}
html body.ts-studio.page-inbox .inbox-v2-empty h2{color:var(--ts15-heading)!important;font-size:21px!important}
html body.ts-studio.page-inbox .inbox-v2-empty p{max-width:340px!important;color:var(--ts15-muted)!important}
html body.ts-studio.page-inbox .inbox-chat-layout{display:flex!important;min-height:0!important;flex:1 1 auto!important;background:var(--ts15-paper-2)!important}
html body.ts-studio.page-inbox .inbox-chat-workspace{flex:1 1 auto!important;min-width:0!important;min-height:0!important;display:flex!important;flex-direction:column!important;background:var(--ts15-paper-2)!important}
html body.ts-studio.page-inbox .inbox-chat-header,html body.ts-studio.page-inbox .inbox-chat-top{background:var(--ts15-paper)!important;color:var(--ts15-heading)!important;border-bottom:1px solid var(--ts15-line)!important}
html body.ts-studio.page-inbox .inbox-message-wall{background:var(--ts15-paper-2)!important;color:var(--ts15-ink)!important;min-height:0!important;flex:1 1 0%!important;overflow-y:auto!important}
html body.ts-studio.page-inbox .inbox-v2 .inbox-compose,html body.ts-studio.page-inbox .inbox-v2 .message-composer{background:var(--ts15-paper)!important;border-top:1px solid var(--ts15-line)!important}
html body.ts-studio.page-inbox .inbox-details{background:var(--ts15-paper)!important;border-left:1px solid var(--ts15-line)!important;color:var(--ts15-ink)!important}
html body.ts-studio.page-inbox .inbox-v2 :is(.bubble.out,.message-bubble.out,.inbox-message.out){background:#dbeafb!important;color:#12335a!important}
html body.ts-studio.page-inbox .inbox-v2 :is(.bubble.in,.message-bubble.in,.inbox-message.in){background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;border:1px solid var(--ts15-line)!important}
html body.ts-studio.page-inbox .inbox-page-nav{background:var(--ts15-paper)!important;border-top:1px solid var(--ts15-line)!important}
html body.ts-studio.page-inbox .inbox-page-nav :is(a,.disabled){color:var(--ts15-blue)!important}
html body.ts-studio.page-inbox .inbox-v2 :is(.inbox-filter-drawer,.ts23-inbox-menu-panel){background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;border-color:var(--ts15-line)!important}
/* Login/auth still matching brand. */
html body.ts-studio.auth-body{background:linear-gradient(145deg,#e9effb,#f7f9fd)!important}
html body.ts-studio.auth-body :is(.auth-card,.auth-main,.login-panel){border-color:var(--ts15-line)!important;color:var(--ts15-ink)!important}
/* Responsive: truly different navigation, table and inbox layouts, not scaled desktop. */
@media(min-width:981px){
 html body.ts-studio.sidebar-collapsed .app-shell{grid-template-columns:72px minmax(0,1fr)!important}
 html body.ts-studio.sidebar-collapsed .app-shell>.sidebar{width:72px!important;max-width:72px!important}
 html body.ts-studio.sidebar-collapsed .ts15-nav-group .nav-item{width:62px!important;min-width:62px!important;padding-left:22px!important;gap:0!important}
 html body.ts-studio.sidebar-collapsed .brand-copy,html body.ts-studio.sidebar-collapsed .sidebar-label{display:none!important}
 html body.ts-studio.sidebar-collapsed .brand-row.studio-brandbar{padding:0 13px!important}
 html body.ts-studio.sidebar-collapsed .studio-brandbar .brand-mark{width:42px!important;min-width:42px!important}
}
@media(max-width:1240px){
 html body.ts-studio .app-shell{grid-template-columns:234px minmax(0,1fr)!important}
 html body.ts-studio .studio-brandbar .brand-copy b{font-size:16px!important}
 html body.ts-studio .topbar{padding:0 16px!important;gap:8px!important}
 html body.ts-studio .topbar-right :is(.workspace-switcher,.workspace-static){max-width:170px!important}
 html body.ts-studio .topbar-search{max-width:260px!important}
 html body.ts-studio.page-index .ts-dashboard-insights{grid-template-columns:1fr!important}
 html body.ts-studio.page-index .dashboard-stat-tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html body.ts-studio.page-templates .template-layout{grid-template-columns:1fr!important}
}
@media(max-width:980px){
 html body.ts-studio .app-shell{display:block!important;min-height:100dvh!important}
 html body.ts-studio .app-shell>.sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;max-height:100dvh!important;width:272px!important;transform:translateX(-106%)!important;transition:transform .2s ease!important;z-index:60!important;box-shadow:18px 0 35px rgba(10,25,50,.16)!important}
 html body.ts-studio.sidebar-open .app-shell>.sidebar{transform:translateX(0)!important}
 html body.ts-studio .topbar{height:65px!important;min-height:65px!important;max-height:65px!important;padding:0 15px!important}
 html body.ts-studio .ts15-header-home{display:inline-flex!important;align-items:center;gap:9px;color:#fff!important;text-decoration:none!important;font-weight:750!important;font-size:14px!important;line-height:1.1!important}
 html body.ts-studio .ts15-header-home small{display:block;color:#cbdcf3;font-size:10px;font-weight:400;margin-top:2px}
 html body.ts-studio .ts15-header-mark{display:grid;place-items:center;width:31px;height:31px;background:rgba(255,255,255,.15);border-radius:8px;font-size:20px}
 html body.ts-studio .ts15-topbar-shortcut{display:none!important}
 html body.ts-studio .studio-topbar-center{flex:1 1 220px!important;max-width:270px!important}
 html body.ts-studio .topbar-right :is(.workspace-switcher,.workspace-static,.ts46-device-scope){display:none!important}
 html body.ts-studio:not(.page-inbox) .content{padding:24px 20px 50px!important}
 html body.ts-studio.page-inbox .content{padding:13px!important;min-height:calc(100dvh - 65px)!important}
 html body.ts-studio.page-inbox .inbox-v2{height:calc(100dvh - 180px)!important}
 html body.ts-studio.page-inbox .inbox-v2-rail{width:242px!important}
}
@media(max-width:700px){
 html body.ts-studio .topbar{padding:0 10px!important;gap:6px!important}
 html body.ts-studio .topbar-right{gap:5px!important}
 html body.ts-studio .studio-topbar-center{display:none!important}
 html body.ts-studio .studio-mobile-search-toggle{display:inline-flex!important}
 html body.ts-studio.navy-search-open .studio-topbar-center,html body.ts-studio.ts15-search-open .studio-topbar-center{display:block!important;position:absolute!important;top:60px!important;left:8px!important;right:8px!important;max-width:none!important;padding:6px!important;background:var(--ts15-navy)!important;border-radius:9px!important;box-shadow:0 12px 28px rgba(0,22,60,.17)!important}
 html body.ts-studio .topbar-right .user-copy,html body.ts-studio .account-chevron{display:none!important}
 html body.ts-studio:not(.page-inbox) .content{padding:18px 11px 40px!important}
 html body.ts-studio .ts15-page-heading{align-items:flex-start!important;gap:11px!important;margin-bottom:17px!important}
 html body.ts-studio .ts15-page-heading h1{font-size:22px!important}
 html body.ts-studio .studio-page-actions{width:100%!important;justify-content:flex-start!important}
 html body.ts-studio :is(.ts15-primary-action,.studio-action-primary){padding:10px 13px!important;font-size:12px!important}
 html body.ts-studio .content .card{padding:14px!important}
 html body.ts-studio .content :is(.module-search-shell,.toolbar-primary){padding:12px!important}
 html body.ts-studio .content :is(.toolbar-primary,.module-search-form,.module-search-filters){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important}
 html body.ts-studio .content :is(.toolbar-primary input,.toolbar-primary select,.module-search-form input,.module-search-form select){width:100%!important;max-width:none!important}
 html body.ts-studio.page-index :is(.dashboard-attention-tiles,.dashboard-stat-tiles,.stats-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body.ts-studio.page-index :is(.dashboard-attention-tiles>a,.stat-card){padding:12px!important}
 html body.ts-studio.page-index :is(.dashboard-attention-tiles b,.stat-number){font-size:24px!important}
 html body.ts-studio.page-inbox .content{padding:0!important;height:calc(100dvh - 65px)!important;overflow:hidden!important}
 html body.ts-studio.page-inbox .ts15-page-heading{display:none!important}
 html body.ts-studio.page-inbox .inbox-account-selector{border:0!important;border-bottom:1px solid var(--ts15-line)!important;border-radius:0!important;margin:0!important;padding:7px 9px!important}
 html body.ts-studio.page-inbox .inbox-v2{height:calc(100dvh - 130px)!important;min-height:0!important;grid-template-columns:1fr!important;border:0!important;border-radius:0!important}
 html body.ts-studio.page-inbox .inbox-v2-list-panel{grid-column:1!important;width:100%!important;height:100%!important}
 html body.ts-studio.page-inbox .inbox-v2-main{display:none!important;grid-column:1!important;width:100%!important;height:100%!important}
 html body.ts-studio.page-inbox .inbox-v2:not([data-selected-id="0"]) .inbox-v2-list-panel{display:none!important}
 html body.ts-studio.page-inbox .inbox-v2:not([data-selected-id="0"]) .inbox-v2-main{display:flex!important}
 html body.ts-studio.page-inbox .inbox-v2-rail{width:min(275px,85vw)!important}
 html body.ts-studio.page-inbox .inbox-v2 .inbox-details{position:absolute!important;z-index:23!important;right:0!important;top:0!important;bottom:0!important;max-width:90vw!important;background:var(--ts15-paper)!important}
 html body.ts-studio.page-inbox .inbox-message-wall{padding:11px!important}
 html body.ts-studio .content :is(.form-grid-2,.profile-grid){grid-template-columns:1fr!important}
 html body.ts-studio.page-templates .template-row,html body.ts-studio.page-templates .ts15-template-table-head{grid-template-columns:minmax(0,1.7fr) minmax(65px,1fr) 85px!important;gap:5px!important;padding:12px 10px!important}
 html body.ts-studio.page-templates .template-row .ts15-tpl-lang,html body.ts-studio.page-templates .ts15-template-table-head .ts15-tpl-lang{display:none!important}
}
@media(max-width:420px){
 html body.ts-studio .ts15-header-home{font-size:12px!important}
 html body.ts-studio .ts15-header-mark{width:27px;height:27px}
 html body.ts-studio.page-index :is(.dashboard-attention-tiles b,.stat-number){font-size:21px!important}
 html body.ts-studio.page-inbox .inbox-list-head{padding:10px!important}
}
@media(prefers-reduced-motion:reduce){html body.ts-studio *,html body.ts-studio *::before,html body.ts-studio *::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
/* Combined list workspaces */
html body.ts-studio .content .ts15-data-sheet{background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;border-radius:8px!important;box-shadow:none!important;overflow:hidden!important;margin-top:16px!important}
html body.ts-studio .ts15-data-sheet>.module-search-shell{border:0!important;border-bottom:1px solid var(--ts15-line)!important;border-radius:0!important;margin:0!important;padding:15px!important}
html body.ts-studio .ts15-data-sheet>.table-wrap{border:0!important;border-radius:0!important;margin:0!important}
html body.ts-studio.page-followups .stats-mini{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
html body.ts-studio.page-followups .stats-mini>a{background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;border-radius:8px!important;padding:14px!important;color:var(--ts15-ink)!important}
html body.ts-studio.page-followups .stats-mini b{color:var(--ts15-heading)!important}
html body.ts-studio.page-templates .template-row{cursor:pointer}
html body.ts-studio.page-templates .template-row .pill{justify-self:start}
html body.ts-studio.page-campaigns .ts15-broadcast-index>.card{margin:0!important}
html body.ts-studio.page-campaigns .ts15-broadcast-create{display:block!important}
@media(max-width:700px){html body.ts-studio.page-followups .stats-mini{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* Reference-aligned list management toolbar */
html body.ts-studio .ts15-list-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:12px!important;background:var(--ts15-paper)!important;padding:15px!important;border:1px solid var(--ts15-line)!important;border-radius:7px 7px 0 0!important;margin-top:13px!important}
html body.ts-studio .ts15-list-toolbar :is(.ts15-list-search,.ts15-list-status){display:flex!important;align-items:center!important;gap:9px!important;margin:0!important;font-size:12px!important;color:var(--ts15-muted)!important;font-weight:600!important}
html body.ts-studio .ts15-list-toolbar .ts15-list-search{min-width:210px!important;max-width:370px!important;flex:1 1 260px!important;position:relative!important}
html body.ts-studio .ts15-list-toolbar .ts15-list-search>span{position:absolute!important;left:13px!important;color:var(--ts15-muted)!important;font-size:20px!important;z-index:1!important}
html body.ts-studio .ts15-list-toolbar .ts15-list-search input{width:100%!important;padding-left:36px!important;height:42px!important;background:var(--ts15-paper)!important;border:1px solid var(--ts15-line-dark)!important}
html body.ts-studio .ts15-list-toolbar .ts15-list-status select{width:168px!important;height:42px!important;border:1px solid var(--ts15-line-dark)!important;background:var(--ts15-paper)!important;color:var(--ts15-ink)!important}
html body.ts-studio .ts15-broadcast-index>.card{padding:0!important}
html body.ts-studio .ts15-broadcast-index>.card>.section-heading{padding:18px 19px 0!important;margin:0!important}
html body.ts-studio .ts15-broadcast-index>.card>.bulk-actions-bar{padding:11px 15px!important;margin:0!important;border-bottom:1px solid var(--ts15-line)!important}
html body.ts-studio .ts15-broadcast-index>.card>.table-wrap{margin:0!important;padding:0!important;border:0!important}
html body.ts-studio .ts15-broadcast-index table{border:0!important}
html body.ts-studio .ts15-broadcast-index .table-primary{color:var(--ts15-heading)!important;font-size:13px!important;font-weight:650!important;text-decoration:none!important}
html body.ts-studio .ts15-broadcast-index table small{display:block!important;font-weight:400!important;font-size:11px!important;color:var(--ts15-muted)!important;margin-top:3px!important}
html body.ts-studio .ts15-broadcast-index .pill{font-size:11px!important}
html body.ts-studio .ts15-template-index .ts15-list-toolbar{margin-top:0!important;border:0!important;border-bottom:1px solid var(--ts15-line)!important;border-radius:0!important}
html body.ts-studio .ts15-template-index .template-list{border-radius:0 0 7px 7px!important}
html body.ts-studio .ts15-template-index .card{padding:0!important}
html body.ts-studio .ts15-template-index .card>h3{font-size:16px!important;margin:0!important;padding:16px 18px 11px!important}
html body.ts-studio .ts15-template-index .meta-strip{margin:0 18px 13px!important}
html body.ts-studio .template-row[hidden]{display:none!important}
html body.ts-studio .ts15-broadcast-index tbody tr[hidden]{display:none!important}
@media(max-width:700px){
 html body.ts-studio .ts15-list-toolbar{padding:10px!important;flex-direction:column!important;align-items:stretch!important}
 html body.ts-studio .ts15-list-toolbar :is(.ts15-list-search,.ts15-list-status){width:100%!important;max-width:none!important;flex:1 1 auto!important}
 html body.ts-studio .ts15-list-toolbar .ts15-list-status select{width:100%!important}
}
/* Full-screen style empty pages from the supplied references. */
html body.ts-studio .content .ts15-empty-page{min-height:430px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;text-align:center!important;gap:10px!important;padding:54px 20px!important;background:var(--ts15-paper)!important;color:var(--ts15-ink)!important}
html body.ts-studio .content .ts15-empty-page img{width:84px!important;height:84px!important;object-fit:contain!important;margin-bottom:8px!important;filter:drop-shadow(0 8px 12px rgba(18,60,120,.09))}
html body.ts-studio .content .ts15-empty-page h2{font-size:23px!important;font-weight:600!important;margin:0!important}
html body.ts-studio .content .ts15-empty-page p{font-size:13px!important;color:var(--ts15-muted)!important;margin:0 0 12px!important;max-width:380px!important}
html body.ts-studio .content .ts15-empty-page .btn{min-width:180px!important;text-decoration:none!important}
html body.ts-studio .content table thead th{background:var(--ts15-paper-2)!important;color:var(--ts15-muted)!important}
@media(max-width:700px){html body.ts-studio .content .ts15-empty-page{min-height:320px!important;padding:35px 16px!important}}
/* Manage Numbers: reference-inspired top table, without replacing advanced controls. */
html body.ts-studio.page-devices .ts15-device-summary{margin:16px 0!important;padding:0!important}
html body.ts-studio.page-devices .ts15-device-summary-head{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:12px!important;padding:17px 20px!important;border-bottom:1px solid var(--ts15-line)!important}
html body.ts-studio.page-devices .ts15-device-summary-head h2{font-size:19px!important;margin:0 0 3px!important}
html body.ts-studio.page-devices .ts15-device-summary-head p{font-size:12px!important;margin:0!important}
html body.ts-studio.page-devices .ts15-device-summary .table-wrap{margin:0!important;border:0!important;border-radius:0!important}
html body.ts-studio.page-devices .ts15-number-table td{padding:16px!important}
html body.ts-studio.page-devices .ts15-number-table .ts15-wa-num{display:flex;gap:10px;align-items:center}
html body.ts-studio.page-devices .ts15-wa-icon{width:36px;height:36px;border-radius:50%;background:#e2f7eb;color:#178857;font-size:10px;font-weight:800;display:grid;place-items:center;flex:none}
html body.ts-studio.page-devices .ts15-number-table .ts15-wa-num strong{display:block!important;color:var(--ts15-heading)!important}
html body.ts-studio.page-devices .ts15-number-table .ts15-wa-num small{display:block!important;color:var(--ts15-muted)!important;font-size:11px!important}
html body.ts-studio.page-devices .ts15-device-summary .ts15-empty-page{border:0!important}
/* Ctrl+K quick navigation, carried over from the functional frontend. */
html body.ts-studio .navy-command-backdrop{position:fixed!important;inset:0!important;z-index:9999!important;background:rgba(6,22,47,.52)!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;padding:12vh 16px 25px!important}
html body.ts-studio .navy-command-dialog{width:min(560px,100%)!important;max-height:min(600px,78vh)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;border-radius:13px!important;box-shadow:0 25px 60px rgba(7,27,59,.25)!important}
html body.ts-studio .navy-command-search{display:flex!important;align-items:center!important;gap:10px!important;border-bottom:1px solid var(--ts15-line)!important;padding:13px 16px!important;color:var(--ts15-muted)!important}
html body.ts-studio .navy-command-search input{flex:1!important;min-width:0!important;border:0!important;outline:0!important;background:transparent!important;color:var(--ts15-ink)!important;font-size:15px!important}
html body.ts-studio .navy-command-search kbd{font-size:10px!important;padding:4px 6px!important;background:var(--ts15-soft)!important;border:1px solid var(--ts15-line)!important;color:var(--ts15-muted)!important;border-radius:4px!important}
html body.ts-studio .navy-command-results{overflow-y:auto!important;flex:1!important;padding:8px!important}
html body.ts-studio .navy-command-item{display:flex!important;align-items:center!important;gap:12px!important;border-radius:7px!important;padding:11px!important;color:var(--ts15-ink)!important;font-size:13px!important;text-decoration:none!important}
html body.ts-studio .navy-command-item.selected,html body.ts-studio .navy-command-item:hover{background:var(--ts15-soft)!important;color:var(--ts15-blue)!important}
html body.ts-studio .navy-command-item .navy-command-arrow{margin-left:auto!important}
html body.ts-studio .navy-command-foot{display:flex!important;justify-content:space-between!important;gap:8px!important;padding:10px 14px!important;border-top:1px solid var(--ts15-line)!important;color:var(--ts15-muted)!important;font-size:10px!important}
html body.ts-studio .navy-command-empty{padding:20px!important;text-align:center!important;color:var(--ts15-muted)!important}
@media(max-width:700px){html body.ts-studio .navy-command-backdrop{padding-top:7vh!important}}


/* =======================================================================
   TS WhatsApp 15.2 — production layout correction (10 Nov 2026)
   Fix: unsized SVG glyphs covering navbar, clipped content, unusably narrow
   inbox chat and old compact typography. Visual-only, no endpoint changes.
   ======================================================================= */
/* Hidden until keyboard focus; was visible as a raw link above the navbar. */
html body.ts-studio .navy-skip-link{
 position:fixed!important;left:12px!important;top:-100px!important;z-index:99999!important;
 background:#fff!important;color:#0b2b58!important;padding:9px 14px!important;
 border-radius:8px!important;border:2px solid #316ac0!important;text-decoration:none!important;
 font-size:13px!important;transition:none!important;
}
html body.ts-studio .navy-skip-link:focus{top:10px!important}
/* Every icon that came from ui_icon() has a viewBox but NO intrinsic width.
   The old icon stylesheet was removed in V15, so Chrome rendered its 300x150
   replaced-element defaults; some path shapes were opaque black. */
html body.ts-studio .topbar svg,
html body.ts-studio .app-shell>.sidebar .nav-item svg,
html body.ts-studio .studio-page-actions svg,
html body.ts-studio.page-inbox .send-button svg,
html body.ts-studio.page-inbox .inbox-chat-actions svg{
 width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;
 min-height:18px!important;max-height:18px!important;display:block!important;
 flex:0 0 18px!important;fill:none!important;stroke:currentColor!important;
 stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important;
 overflow:visible!important;vertical-align:middle!important;
}
html body.ts-studio .topbar .notif-chip svg{width:19px!important;height:19px!important;min-width:19px!important;flex-basis:19px!important}
html body.ts-studio .topbar .studio-search-mark svg{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;max-width:17px!important;max-height:17px!important}
html body.ts-studio .topbar .account-chevron svg{width:15px!important;height:15px!important;min-width:15px!important;flex-basis:15px!important}
html body.ts-studio .topbar .ts46-device-tag svg{width:16px!important;height:16px!important;min-width:16px!important;flex-basis:16px!important}
html body.ts-studio .topbar{isolation:isolate!important;overflow:visible!important;min-width:0!important}
html body.ts-studio .topbar>div{min-width:0!important}
html body.ts-studio .topbar .studio-topbar-center{display:flex!important;flex:0 1 365px!important;max-width:365px!important;min-width:170px!important;align-items:center!important;justify-content:center!important}
html body.ts-studio .topbar .topbar-search{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:0!important;overflow:hidden!important}
html body.ts-studio .topbar .topbar-search form{display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;height:100%!important;min-height:0!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0 11px!important;border:0!important;box-shadow:none!important;position:relative!important;overflow:hidden!important}
html body.ts-studio .topbar .studio-search-mark{display:grid!important;place-items:center!important;flex:0 0 18px!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;position:static!important;inset:auto!important;margin:0!important;padding:0!important;overflow:hidden!important;opacity:.95!important;line-height:1!important}
html body.ts-studio .topbar .topbar-search input,
html body.ts-studio .topbar .topbar-search input[type=search]{flex:1 1 auto!important;min-width:0!important;width:100%!important;max-width:100%!important;height:36px!important;min-height:36px!important;max-height:36px!important;margin:0!important;padding:0!important;border:0!important;outline:none!important;box-shadow:none!important;font-size:12px!important;color:#fff!important;background:transparent!important}
html body.ts-studio .topbar .topbar-search kbd{flex:0 0 auto!important;position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:21px!important;height:23px!important;min-width:21px!important;padding:0!important;margin:0!important;border-radius:5px!important;line-height:1!important;font-size:11px!important}
html body.ts-studio .topbar .topbar-right{flex:0 1 auto!important;align-items:center!important;min-width:0!important;max-width:65%!important;overflow:visible!important}
html body.ts-studio .topbar .notif-chip{flex:0 0 39px!important;width:39px!important;height:39px!important;min-width:39px!important;min-height:39px!important;max-width:39px!important;max-height:39px!important;display:grid!important;place-items:center!important;padding:0!important}
html body.ts-studio .topbar .account-menu{flex:0 0 auto!important;min-width:0!important}
html body.ts-studio .topbar .account-trigger{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;white-space:nowrap!important;min-width:0!important;max-width:180px!important;min-height:39px!important;margin:0!important;padding:3px 6px!important}
html body.ts-studio .topbar .account-trigger .avatar{flex:0 0 32px!important;width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;display:grid!important;place-items:center!important}
html body.ts-studio .topbar .user-copy{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:110px!important;overflow:hidden!important}
html body.ts-studio .topbar .user-copy :is(b,span){overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;display:block!important}
html body.ts-studio .topbar .topbar-right :is(.workspace-switcher,.workspace-static,.ts46-device-scope){min-width:0!important;flex:0 1 auto!important;max-width:210px!important;overflow:hidden!important;white-space:nowrap!important;padding:5px 8px!important}
html body.ts-studio .topbar .topbar-right select{min-width:80px!important;max-width:150px!important;text-overflow:ellipsis!important;overflow:hidden!important}
/* Primary nav and cards: ensure the user-facing typography never inherits
   V13's 7–11px density from app.css on common screens. */
html body.ts-studio .ts15-nav-group .nav-item{font-size:13.5px!important}
html body.ts-studio .content .page-heading h1{overflow-wrap:anywhere!important}
html body.ts-studio .content .card :is(input,select,textarea){font-size:13px!important}
html body.ts-studio .content .table-wrap{max-width:100%!important}
/* Inbox is a fullscreen two-column workspace. Messages own the whole second
   column; customer details overlay on request instead of stealing chat width.
   Explicit track sizing fixes the blank right-hand area in the screenshot. */
html body.ts-studio.page-inbox main.content{
 display:flex!important;flex-direction:column!important;
 height:calc(100dvh - 76px)!important;min-height:0!important;max-height:none!important;
 min-width:0!important;overflow:hidden!important;gap:9px!important;
 padding:13px 17px 15px!important;
}
html body.ts-studio.page-inbox .content>.ts15-page-heading,
html body.ts-studio.page-inbox .content>.inbox-account-selector,
html body.ts-studio.page-inbox .content>.notice{flex:0 0 auto!important;margin-bottom:0!important}
html body.ts-studio.page-inbox .content>.ts15-page-heading{min-height:44px!important;margin:0!important}
html body.ts-studio.page-inbox .inbox-account-selector{min-height:69px!important;max-height:91px!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
html body.ts-studio.page-inbox .inbox-account-current{flex:1 1 auto!important;overflow:hidden!important}
html body.ts-studio.page-inbox .inbox-account-picker{flex:0 1 470px!important;max-width:470px!important;min-width:0!important;overflow:hidden!important}
html body.ts-studio.page-inbox .inbox-account-picker select{min-width:0!important;max-width:100%!important}
html body.ts-studio.page-inbox .inbox-v2{
 display:grid!important;grid-template-columns:minmax(275px,345px) minmax(0,1fr)!important;
 flex:1 1 0%!important;width:100%!important;height:auto!important;min-height:0!important;
 max-height:none!important;margin:0!important;overflow:hidden!important;
}
html body.ts-studio.page-inbox .inbox-v2-list-panel{grid-column:1!important;min-height:0!important;height:100%!important;overflow:hidden!important}
html body.ts-studio.page-inbox .inbox-v2-main{
 grid-column:2!important;grid-row:1!important;
 display:flex!important;flex-direction:column!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 min-height:0!important;height:100%!important;overflow:hidden!important;
}
html body.ts-studio.page-inbox .inbox-chat-layout{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 position:relative!important;width:100%!important;max-width:none!important;
 min-width:0!important;height:100%!important;min-height:0!important;
 flex:1 1 0%!important;overflow:hidden!important;
}
html body.ts-studio.page-inbox .inbox-chat-workspace{
 grid-column:1!important;grid-row:1!important;
 display:grid!important;grid-template-rows:58px minmax(0,1fr) auto!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 height:100%!important;min-height:0!important;overflow:hidden!important;
}
html body.ts-studio.page-inbox .inbox-details{
 position:absolute!important;top:0!important;bottom:0!important;right:0!important;left:auto!important;
 width:min(360px,95%)!important;max-width:95%!important;height:100%!important;
 z-index:40!important;grid-column:auto!important;grid-row:auto!important;
 visibility:hidden!important;pointer-events:none!important;opacity:0!important;
 transform:translateX(calc(100% + 4px))!important;
 transition:transform .2s ease,opacity .2s ease,visibility .2s ease!important;
 box-shadow:-15px 0 34px rgba(6,26,55,.14)!important;
 overflow-y:auto!important;
}
html body.ts-studio.page-inbox .inbox-v2.details-open .inbox-details,
html body.ts-studio.page-inbox .inbox-v2.details-expanded:not(.details-collapsed) .inbox-details{
 transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important;opacity:1!important;
}
html body.ts-studio.page-inbox .inbox-v2.details-collapsed .inbox-details{
 transform:translateX(calc(100% + 4px))!important;visibility:hidden!important;pointer-events:none!important;opacity:0!important;
}
html body.ts-studio.page-inbox .inbox-v2.details-expanded .inbox-details{width:min(440px,96%)!important}
html body.ts-studio.page-inbox .inbox-list-head{min-height:63px!important;max-height:80px!important;padding:12px 14px!important}
html body.ts-studio.page-inbox .inbox-list-head h2{font-size:17px!important;line-height:1.35!important}
html body.ts-studio.page-inbox .inbox-conversation-list{min-height:0!important;overflow-y:auto!important}
html body.ts-studio.page-inbox .inbox-row{min-height:67px!important;padding:10px 12px!important}
html body.ts-studio.page-inbox .inbox-row :is(.inbox-row-title,.inbox-contact-name){font-size:13px!important;line-height:1.3!important}
html body.ts-studio.page-inbox .inbox-row :is(.inbox-row-preview,.inbox-row-time){font-size:11.5px!important;line-height:1.35!important}
html body.ts-studio.page-inbox .inbox-chat-head{width:100%!important;min-width:0!important;min-height:58px!important;max-height:58px!important;padding:10px 14px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;overflow:visible!important}
html body.ts-studio.page-inbox .inbox-chat-person{min-width:0!important;flex:1 1 auto!important;overflow:hidden!important}
html body.ts-studio.page-inbox .inbox-chat-person h2{font-size:14px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.ts-studio.page-inbox .inbox-chat-person p{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.ts-studio.page-inbox .inbox-chat-actions{display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:5px!important;min-width:0!important;max-width:55%!important}
html body.ts-studio.page-inbox .inbox-message-wall{width:100%!important;min-width:0!important;max-width:none!important;min-height:0!important;height:auto!important;overflow-y:auto!important;padding:18px 22px 22px!important}
html body.ts-studio.page-inbox .message-row{max-width:100%!important}
html body.ts-studio.page-inbox .message-bubble{min-width:90px!important;max-width:min(520px,76%)!important;padding:10px 13px!important;border-radius:12px!important;font-size:13px!important;line-height:1.5!important}
html body.ts-studio.page-inbox .message-body{font-size:13px!important;line-height:1.55!important;overflow-wrap:anywhere!important}
html body.ts-studio.page-inbox .message-origin{font-size:10px!important;line-height:1.3!important}
html body.ts-studio.page-inbox .message-meta{font-size:10px!important;line-height:1.4!important}
html body.ts-studio.page-inbox .inbox-composer{width:100%!important;min-width:0!important;min-height:75px!important;max-height:min(295px,42dvh)!important;overflow:auto!important;background:var(--ts15-paper)!important}
html body.ts-studio.page-inbox .composer-tabs.modern{height:38px!important;min-height:38px!important;gap:6px!important;padding:0 12px!important;background:var(--ts15-paper)!important}
html body.ts-studio.page-inbox .composer-tabs.modern button{height:36px!important;min-height:36px!important;padding:6px 12px!important;font-size:12px!important;font-weight:650!important}
html body.ts-studio.page-inbox .composer-pane.modern{padding:10px 12px!important}
html body.ts-studio.page-inbox .composer-tools :is(select,span){font-size:11px!important}
html body.ts-studio.page-inbox .composer-closed{padding:10px 12px!important;min-height:55px!important}
html body.ts-studio.page-inbox .composer-closed :is(b,span){font-size:11.5px!important;line-height:1.4!important}
html body.ts-studio.page-inbox .composer-input{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:9px!important}
html body.ts-studio.page-inbox .composer-input textarea{min-height:46px!important;max-height:122px!important;font-size:13px!important;padding:11px 13px!important;resize:vertical!important}
html body.ts-studio.page-inbox .composer-input .send-button{min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important;padding:10px!important}
html body.ts-studio.page-inbox .inbox-page-nav{min-height:39px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;font-size:11px!important}
html body.ts-studio.page-inbox .inbox-v2 .icon-btn{display:inline-grid!important;place-items:center!important;min-width:34px!important;width:34px!important;min-height:34px!important;height:34px!important;padding:6px!important;font-size:16px!important}
/* Muted colours must be readable in dark mode as well. */
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-row :is(.inbox-row-preview,.inbox-row-time){color:#b3c6de!important}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-chat-head{background:#192c46!important}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-chat-person :is(h2,p){color:#e6efff!important}
html[data-theme="dark"] body.ts-studio.page-inbox .message-row.in .message-bubble{background:#243950!important;color:#e6efff!important}
html[data-theme="dark"] body.ts-studio.page-inbox .message-row.out .message-bubble{background:#1a5480!important;color:#fff!important}
html[data-theme="dark"] body.ts-studio.page-inbox .composer-tabs.modern button{color:#d2e4ff!important}
/* Medium desktop: hide search before it crushes business/number selectors. */
@media(max-width:1470px) and (min-width:981px){
 html body.ts-studio .topbar .studio-topbar-center{flex-basis:255px!important;max-width:255px!important;min-width:180px!important}
 html body.ts-studio .topbar .topbar-right :is(.workspace-switcher,.workspace-static,.ts46-device-scope){max-width:150px!important}
}
@media(max-width:1190px) and (min-width:981px){
 html body.ts-studio .topbar .studio-topbar-center{display:none!important}
 html body.ts-studio .topbar .topbar-right{max-width:76%!important}
 html body.ts-studio.page-inbox .inbox-v2{grid-template-columns:300px minmax(0,1fr)!important}
}
@media(max-width:980px){
 html body.ts-studio .topbar .studio-topbar-center{flex:0 1 210px!important;min-width:0!important;max-width:210px!important}
 html body.ts-studio .topbar .topbar-right{max-width:60%!important}
 html body.ts-studio.page-inbox main.content{height:calc(100dvh - 65px)!important;padding:9px!important}
 html body.ts-studio.page-inbox .inbox-v2{grid-template-columns:315px minmax(0,1fr)!important}
 html body.ts-studio.page-inbox .inbox-account-current{max-width:48%!important}
}
@media(max-width:700px){
 html body.ts-studio .topbar .studio-topbar-center{display:none!important;position:absolute!important;max-width:none!important;min-width:0!important}
 html body.ts-studio.navy-search-open .topbar .studio-topbar-center,
 html body.ts-studio.ts15-search-open .topbar .studio-topbar-center{display:flex!important;left:9px!important;right:9px!important;top:60px!important;max-width:none!important;min-width:0!important;padding:6px!important}
 html body.ts-studio .topbar .topbar-right{max-width:none!important}
 html body.ts-studio.page-inbox main.content{padding:0!important;height:calc(100dvh - 65px)!important;gap:0!important}
 html body.ts-studio.page-inbox .content>.ts15-page-heading{display:none!important}
 html body.ts-studio.page-inbox .inbox-account-selector{max-height:none!important;min-height:56px!important;padding:7px 10px!important;gap:7px!important;overflow:visible!important}
 html body.ts-studio.page-inbox .inbox-account-current{max-width:40%!important}
 html body.ts-studio.page-inbox .inbox-account-picker{max-width:60%!important;flex:1 1 auto!important;min-width:0!important}
 html body.ts-studio.page-inbox .inbox-account-picker :is(label,select){font-size:10px!important}
 html body.ts-studio.page-inbox .inbox-v2{display:grid!important;grid-template-columns:minmax(0,1fr)!important;height:auto!important;min-height:0!important;flex:1 1 0%!important;border:0!important}
 html body.ts-studio.page-inbox .inbox-v2-list-panel{grid-column:1!important;grid-row:1!important;width:100%!important}
 html body.ts-studio.page-inbox .inbox-v2-main{grid-column:1!important;grid-row:1!important;width:100%!important}
 html body.ts-studio.page-inbox .inbox-v2[data-selected-id="0"] .inbox-v2-list-panel{display:flex!important}
 html body.ts-studio.page-inbox .inbox-v2[data-selected-id="0"] .inbox-v2-main{display:none!important}
 html body.ts-studio.page-inbox .inbox-v2:not([data-selected-id="0"]) .inbox-v2-list-panel{display:none!important}
 html body.ts-studio.page-inbox .inbox-v2:not([data-selected-id="0"]) .inbox-v2-main{display:flex!important}
 html body.ts-studio.page-inbox .inbox-chat-workspace{grid-template-rows:57px minmax(0,1fr) auto!important}
 html body.ts-studio.page-inbox .inbox-message-wall{padding:10px 10px 15px!important}
 html body.ts-studio.page-inbox .message-bubble{max-width:85%!important;font-size:12px!important}
 html body.ts-studio.page-inbox .message-body{font-size:12px!important}
 html body.ts-studio.page-inbox .inbox-chat-head{padding:8px 10px!important;min-height:57px!important;max-height:57px!important}
 html body.ts-studio.page-inbox .inbox-chat-actions{max-width:60%!important;gap:4px!important}
 html body.ts-studio.page-inbox .inbox-details{width:min(345px,94vw)!important;max-width:94vw!important}
 html body.ts-studio.page-inbox .inbox-account-picker{display:flex!important;align-items:center!important;gap:6px!important}
 html body.ts-studio.page-inbox .composer-pane.modern{padding:8px 9px!important}
}
@media(max-width:430px){
 html body.ts-studio.page-inbox .inbox-account-selector{display:flex!important;flex-wrap:wrap!important;max-height:none!important;min-height:0!important}
 html body.ts-studio.page-inbox .inbox-account-current{max-width:100%!important;flex-basis:100%!important}
 html body.ts-studio.page-inbox .inbox-account-picker{max-width:100%!important;flex:1 1 100%!important}
 html body.ts-studio.page-inbox .inbox-chat-actions .inline-form{display:none!important}
 html body.ts-studio.page-inbox .inbox-chat-actions .window-chip{display:none!important}
}
/* Actual Inbox component selectors (older app.css uses !important). */
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-current :is(b,small,span){color:var(--ts15-ink)!important}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-current .eyebrow{color:var(--ts15-blue)!important}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker label{color:var(--ts15-heading)!important}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker select{color:var(--ts15-ink)!important;background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important}
html body.ts-studio.page-inbox .inbox-v2 .inbox-chat-head{background:var(--ts15-paper)!important;border-bottom:1px solid var(--ts15-line)!important;color:var(--ts15-heading)!important}
html body.ts-studio.page-inbox .inbox-v2 .inbox-chat-head :is(h2,p,span){color:var(--ts15-heading)!important}
html body.ts-studio.page-inbox .inbox-v2 .inbox-chat-head p{color:var(--ts15-muted)!important}
html body.ts-studio.page-inbox .inbox-v2 .inbox-chat-head .icon-btn{background:var(--ts15-soft)!important;border:1px solid var(--ts15-line)!important;color:var(--ts15-heading)!important}
html body.ts-studio.page-inbox .inbox-v2 .inbox-chat-head .window-chip{font-size:10px!important;white-space:nowrap!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.out .message-bubble{background:#d9eafc!important;border:1px solid #c3d9f4!important;color:#17365d!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row.in .message-bubble{background:#fff!important;border:1px solid #e1e8f2!important;color:#243249!important}
html body.ts-studio.page-inbox .inbox-message-wall .message-row .message-bubble :is(.message-body,.message-origin,.message-meta){color:inherit!important}
html body.ts-studio.page-inbox .inbox-composer .composer-tabs.modern{border-bottom:1px solid var(--ts15-line)!important}
html body.ts-studio.page-inbox .inbox-composer .composer-tabs.modern button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;background:transparent!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;box-shadow:none!important;color:var(--ts15-muted)!important;padding:7px 12px!important;font-size:12px!important;min-width:0!important}
html body.ts-studio.page-inbox .inbox-composer .composer-tabs.modern button:is(.active,[aria-selected="true"]){border-bottom-color:var(--ts15-navy2)!important;color:var(--ts15-heading)!important;font-weight:700!important}
html body.ts-studio.page-inbox .inbox-composer .composer-closed{display:flex!important;align-items:center!important;gap:9px!important;background:var(--ts15-soft)!important;color:var(--ts15-ink)!important;border:1px solid var(--ts15-line)!important;border-radius:8px!important;max-width:100%!important}
html body.ts-studio.page-inbox .inbox-composer .composer-closed button{margin-left:auto!important;flex:0 0 auto!important;font-size:11px!important}
html body.ts-studio.page-inbox .inbox-composer .composer-closed :is(span,b){color:var(--ts15-ink)!important}
html body.ts-studio.page-inbox .inbox-composer .composer-input textarea{background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;border:1px solid var(--ts15-line-dark)!important}
html body.ts-studio.page-inbox .inbox-composer .send-button{background:var(--ts15-navy2)!important;color:#fff!important;border:0!important}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-message-wall .message-row.out .message-bubble{background:#205685!important;border-color:#356b9a!important;color:#f0f7ff!important}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-message-wall .message-row.in .message-bubble{background:#293d56!important;border-color:#3d526c!important;color:#ecf4ff!important}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-v2 .inbox-chat-head{background:#192c46!important}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-v2 .inbox-chat-head :is(h2,p,span){color:#eaf2ff!important}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-composer .composer-closed{background:#203754!important}
@media(max-width:700px){
 html body.ts-studio.page-inbox .inbox-account-selector{flex-wrap:wrap!important;min-height:0!important;max-height:none!important}
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-current{max-width:100%!important;min-width:0!important;flex:1 1 100%!important;overflow:hidden!important}
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker{width:100%!important;min-width:0!important;max-width:100%!important;flex:1 1 100%!important;gap:7px!important}
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker select{min-width:0!important;max-width:100%!important;width:100%!important;flex:1 1 auto!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-closed{padding:8px!important;flex-wrap:wrap!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-closed button{min-height:32px!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-tabs.modern{justify-content:flex-start!important;overflow-x:auto!important}
}
/* Existing app.js controls desktop details via details-collapsed, while mobile
   uses details-open. Preserve both interaction contracts. */
@media(min-width:1281px){
 html body.ts-studio.page-inbox .inbox-v2:not(.details-collapsed) .inbox-details{
  transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important;opacity:1!important;
 }
}
@media(max-width:1280px){
 html body.ts-studio.page-inbox .inbox-v2.details-open .inbox-details{
  transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important;opacity:1!important;
 }
}


/* V15.3 compact WhatsApp-number selector — stable and responsive. */
html body.ts-studio .topbar .topbar-right .ts46-device-scope.ts16-device-scope{
  box-sizing:border-box!important;display:flex!important;flex:0 1 235px!important;
  align-items:center!important;gap:9px!important;min-width:145px!important;
  width:235px!important;max-width:235px!important;min-height:44px!important;
  height:44px!important;margin:0!important;padding:5px 10px!important;
  overflow:hidden!important;border:1px solid rgba(255,255,255,.22)!important;
  border-radius:9px!important;background:rgba(255,255,255,.11)!important;
  color:#fff!important;white-space:nowrap!important;
}
html body.ts-studio .topbar .ts16-device-icon{display:grid!important;place-items:center!important;flex:0 0 19px!important;max-width:19px!important;color:#fff!important}
html body.ts-studio .topbar .ts16-device-icon svg{width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;max-height:18px!important;stroke:currentColor!important;fill:none!important}
html body.ts-studio .topbar .ts16-device-control{display:flex!important;flex:1 1 0%!important;min-width:0!important;max-width:100%!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;gap:1px!important;overflow:hidden!important}
html body.ts-studio .topbar .ts16-device-control label{display:block!important;white-space:nowrap!important;font-size:10px!important;line-height:12px!important;letter-spacing:.025em!important;font-weight:700!important;color:#dceafb!important;cursor:pointer!important;margin:0!important;padding:0!important}
html body.ts-studio .topbar .topbar-right .ts16-device-control select,
html body.ts-studio .topbar .ts16-device-control .ts16-device-single{
  box-sizing:border-box!important;display:block!important;width:100%!important;max-width:100%!important;
  min-width:0!important;min-height:20px!important;height:21px!important;line-height:20px!important;
  margin:0!important;padding:0 17px 0 0!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:#fff!important;font-size:12px!important;font-weight:700!important;
  overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;box-shadow:none!important;
}
html body.ts-studio .topbar .ts16-device-control .ts16-device-single{padding-right:0!important}
html body.ts-studio .topbar .ts16-device-control option{background:#fff!important;color:#142b4d!important;font-size:13px!important}
html body.ts-studio .topbar .topbar-right{gap:9px!important;max-width:none!important;min-width:0!important}
@media(max-width:1470px) and (min-width:981px){
 html body.ts-studio .topbar .topbar-right .ts46-device-scope.ts16-device-scope{flex-basis:205px!important;width:205px!important;max-width:205px!important}
}
@media(max-width:1240px){
 html body.ts-studio .topbar .topbar-right .ts46-device-scope.ts16-device-scope{flex-basis:175px!important;width:175px!important;max-width:175px!important}
}
@media(max-width:980px){
 html body.ts-studio .topbar .topbar-right .ts46-device-scope.ts16-device-scope{display:flex!important;flex-basis:170px!important;width:170px!important;max-width:170px!important}
 html body.ts-studio .topbar .studio-topbar-center{display:none!important}
}
@media(max-width:700px){
 html body.ts-studio .topbar{gap:7px!important;padding:0 10px!important}
 html body.ts-studio .topbar .topbar-right{gap:5px!important}
 html body.ts-studio .topbar .topbar-right .ts46-device-scope.ts16-device-scope{flex-basis:136px!important;width:136px!important;max-width:136px!important;min-width:96px!important;gap:5px!important;padding:5px 7px!important}
 html body.ts-studio .topbar .ts16-device-icon{display:none!important}
 html body.ts-studio .topbar .ts16-device-control label{font-size:9px!important}
 html body.ts-studio .topbar .topbar-right .ts16-device-control select,html body.ts-studio .topbar .ts16-device-control .ts16-device-single{font-size:11px!important}
}
@media(max-width:400px){
 html body.ts-studio .topbar .topbar-right .ts46-device-scope.ts16-device-scope{flex-basis:105px!important;width:105px!important;max-width:105px!important}
 html body.ts-studio .topbar .ts16-device-control label{font-size:8.5px!important}
}


/* V15.4 — inbox search moved into overflow menu, plus desktop/mobile inbox polish. */
html body.ts-studio.page-inbox .inbox-v2{grid-template-columns:minmax(320px,390px) minmax(0,1fr)!important}
html body.ts-studio.page-inbox .inbox-list-head{justify-content:space-between!important;flex-wrap:wrap!important;row-gap:8px!important}
html body.ts-studio.page-inbox .inbox-list-head > div:first-child{min-width:0!important;flex:1 1 auto!important}
html body.ts-studio.page-inbox .inbox-list-head .ts23-inbox-menu{margin-left:auto!important}
html body.ts-studio.page-inbox .inbox-search-drawer{display:flex!important;align-items:center!important;gap:10px!important;padding:10px 14px!important;border-bottom:1px solid var(--ts15-line)!important;background:var(--ts15-paper)!important}
html body.ts-studio.page-inbox .inbox-search-drawer[hidden]{display:none!important}
html body.ts-studio.page-inbox .inbox-search-drawer .ts46-inline-search-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;color:var(--ts15-muted)!important;flex:0 0 auto!important}
html body.ts-studio.page-inbox .inbox-search-drawer input[name=q]{flex:1 1 auto!important;min-width:0!important;height:38px!important;border:1px solid var(--ts15-line)!important;border-radius:8px!important;padding:0 12px!important;background:var(--ts15-paper-2)!important;color:var(--ts15-ink)!important}
html body.ts-studio.page-inbox .inbox-search-drawer button,html body.ts-studio.page-inbox .inbox-search-drawer .inbox-search-reset{flex:0 0 auto!important;height:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 14px!important;border-radius:8px!important;border:1px solid var(--ts15-line)!important;text-decoration:none!important;font-size:12px!important;font-weight:700!important}
html body.ts-studio.page-inbox .inbox-search-drawer button{background:var(--ts15-blue)!important;color:#fff!important;border-color:transparent!important}
html body.ts-studio.page-inbox .inbox-search-drawer .inbox-search-reset{background:var(--ts15-soft)!important;color:var(--ts15-navy)!important}
html body.ts-studio.page-inbox .ts23-inbox-menu-panel{min-width:220px!important}
html body.ts-studio.page-inbox .ts23-menu-info b{color:var(--ts15-heading)!important}
html body.ts-studio.page-inbox .inbox-chat-head{gap:10px!important}
html body.ts-studio.page-inbox .inbox-chat-person{min-width:0!important;flex:1 1 auto!important}
html body.ts-studio.page-inbox .inbox-chat-person h2{font-size:16px!important;line-height:1.25!important}
html body.ts-studio.page-inbox .inbox-chat-person p{display:block!important;white-space:normal!important;line-height:1.35!important}
html body.ts-studio.page-inbox .inbox-chat-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 1 auto!important;min-width:0!important}
html body.ts-studio.page-inbox .inbox-chat-actions .inline-form{display:flex!important;align-items:center!important;gap:6px!important}
html body.ts-studio.page-inbox .inbox-composer{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 4px)!important}
@media(max-width:980px){
 html body.ts-studio.page-inbox .inbox-v2{grid-template-columns:1fr!important}
}
@media(max-width:700px){
 html body.ts-studio.page-inbox .inbox-list-head{padding:10px 12px!important;align-items:center!important}
 html body.ts-studio.page-inbox .inbox-list-head h2{font-size:16px!important}
 html body.ts-studio.page-inbox .ts15-inbox-filters-trigger span{display:none!important}
 html body.ts-studio.page-inbox .inbox-search-drawer{padding:10px 12px!important;gap:8px!important;flex-wrap:wrap!important}
 html body.ts-studio.page-inbox .inbox-search-drawer input[name=q]{order:1!important;flex:1 1 100%!important;width:100%!important}
 html body.ts-studio.page-inbox .inbox-search-drawer button,html body.ts-studio.page-inbox .inbox-search-drawer .inbox-search-reset{height:36px!important;padding:0 12px!important}
 html body.ts-studio.page-inbox .inbox-chat-head{padding:10px 10px 8px!important;align-items:flex-start!important}
 html body.ts-studio.page-inbox .inbox-chat-person h2{font-size:15px!important}
 html body.ts-studio.page-inbox .inbox-chat-person p{font-size:11px!important}
 html body.ts-studio.page-inbox .inbox-chat-actions{width:100%!important;overflow-x:auto!important;padding-bottom:2px!important;justify-content:flex-start!important}
 html body.ts-studio.page-inbox .inbox-chat-actions::-webkit-scrollbar{height:0!important}
 html body.ts-studio.page-inbox .window-chip{flex:0 0 auto!important}
 html body.ts-studio.page-inbox .inbox-chat-actions .icon-btn,html body.ts-studio.page-inbox .ts-mobile-more{flex:0 0 auto!important}
 html body.ts-studio.page-inbox .composer-tabs.modern{overflow-x:auto!important;scrollbar-width:none!important}
 html body.ts-studio.page-inbox .composer-tabs.modern::-webkit-scrollbar{display:none!important}
}
@media(max-width:420px){
 html body.ts-studio.page-inbox .inbox-search-drawer{padding:9px 10px!important}
 html body.ts-studio.page-inbox .inbox-chat-head{gap:8px!important}
 html body.ts-studio.page-inbox .inbox-chat-person .inbox-avatar.large{width:36px!important;height:36px!important}
}


/*
   TS WhatsApp v15.5 — Inbox visual QA corrections. CSS-only layout/theme
   corrections scoped to page-inbox. No change to WhatsApp APIs or CSRF forms.
*/
html[data-theme="light"] {--ts155-inbox-control:#f3f7fd;--ts155-inbox-control-text:#24436e;--ts155-inbox-active:#dfeeff;--ts155-inbox-card:#fff;--ts155-inbox-hover:#edf4fe}
html[data-theme="dark"] {--ts155-inbox-control:#203958;--ts155-inbox-control-text:#e6f0ff;--ts155-inbox-active:#244871;--ts155-inbox-card:#16283f;--ts155-inbox-hover:#203957}

/* Compact inbox account selector: preserve the photo, account and switcher. */
html body.ts-studio.page-inbox .content>.inbox-account-selector {
  height:auto!important;min-height:57px!important;max-height:66px!important;
  padding:7px 12px!important;margin:0!important;gap:12px!important;
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
  background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;
  border-radius:9px!important;box-shadow:none!important;overflow:hidden!important;
}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-current {
  min-width:0!important;max-width:none!important;flex:1 1 44%!important;
  display:flex!important;align-items:center!important;gap:9px!important;overflow:hidden!important;
}
html body.ts-studio.page-inbox .inbox-account-selector .wa-account-photo {
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  max-width:38px!important;max-height:38px!important;flex:0 0 38px!important;
  border-radius:10px!important;overflow:hidden!important;
}
html body.ts-studio.page-inbox .inbox-account-selector .wa-account-photo img{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important;
}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-copy {
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  min-width:0!important;max-width:100%!important;flex:1 1 auto!important;
  gap:0!important;overflow:hidden!important;line-height:1.25!important;
}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-copy .eyebrow{
  color:var(--ts15-blue)!important;font-size:9px!important;line-height:12px!important;
  font-weight:800!important;letter-spacing:.075em!important;margin:0!important;
}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-copy b{
  font-size:12px!important;line-height:15px!important;max-width:100%!important;
  text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;
  color:var(--ts15-heading)!important;margin:0!important;
}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-copy small{
  font-size:10px!important;line-height:13px!important;color:var(--ts15-muted)!important;
  max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;
  text-overflow:ellipsis!important;margin:0!important;
}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  flex:0 1 460px!important;max-width:460px!important;min-width:0!important;
  width:auto!important;gap:9px!important;overflow:hidden!important;
  background:transparent!important;border:0!important;padding:0!important;margin:0!important;
}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker label{
  font-size:10px!important;white-space:nowrap!important;line-height:1.2!important;
  color:var(--ts15-heading)!important;font-weight:800!important;margin:0!important;
}
html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker select{
  min-width:0!important;width:100%!important;max-width:270px!important;height:35px!important;
  min-height:35px!important;padding:0 28px 0 10px!important;
  background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;
  border:1px solid var(--ts15-line-dark)!important;border-radius:7px!important;
  font-size:11px!important;white-space:nowrap!important;text-overflow:ellipsis!important;
}

/* Black square and oversized inherited icons: bound SVG dimensions, strokes and buttons. */
html body.ts-studio.page-inbox .inbox-v2-rail svg,
html body.ts-studio.page-inbox .inbox-list-head svg,
html body.ts-studio.page-inbox .inbox-filter-drawer svg,
html body.ts-studio.page-inbox .ts-wa-inbox-filters svg,
html body.ts-studio.page-inbox .ts23-inbox-menu svg,
html body.ts-studio.page-inbox .inbox-chat-actions svg {
  display:inline-block!important;vertical-align:middle!important;
  box-sizing:border-box!important;width:17px!important;height:17px!important;
  min-width:17px!important;min-height:17px!important;
  max-width:17px!important;max-height:17px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
  flex:0 0 17px!important;overflow:visible!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail :is(.inbox-view-link,.inbox-rail-section a){
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  min-height:35px!important;height:auto!important;gap:10px!important;
  padding:8px 9px!important;border-radius:8px!important;
  background:transparent!important;color:var(--ts15-ink)!important;
  font-size:12px!important;font-weight:550!important;line-height:18px!important;
  text-decoration:none!important;box-shadow:none!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail :is(.inbox-view-link,.inbox-rail-section a):hover {
  background:var(--ts155-inbox-hover)!important;color:var(--ts15-heading)!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail .inbox-view-link.active{
  background:var(--ts155-inbox-active)!important;color:var(--ts15-heading)!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail .inbox-view-icon,
html body.ts-studio.page-inbox .inbox-v2-rail .inbox-rail-section a svg{
  width:17px!important;max-width:17px!important;flex:0 0 17px!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail .inbox-view-link em{
  margin-left:auto!important;font-size:10px!important;line-height:1.2!important;
  background:var(--ts155-inbox-control)!important;color:var(--ts155-inbox-control-text)!important;
  border:1px solid var(--ts15-line)!important;border-radius:99px!important;padding:3px 6px!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail{
  width:min(254px,85vw)!important;max-width:min(254px,85vw)!important;
  padding:10px 11px!important;gap:6px!important;
  background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;
  border-right:1px solid var(--ts15-line)!important;
}
html body.ts-studio.page-inbox .inbox-v2.ts15-rail-open .inbox-v2-rail{
  display:flex!important;flex-direction:column!important;
  overflow-y:auto!important;overflow-x:hidden!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail .inbox-rail-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  padding:3px 3px 9px!important;gap:10px!important;border-bottom:1px solid var(--ts15-line)!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail .inbox-rail-head h2{
  margin:0!important;font-size:14px!important;line-height:1.3!important;color:var(--ts15-heading)!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail .inbox-rail-head small{
  font-size:10px!important;line-height:1.35!important;color:var(--ts15-muted)!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail .inbox-rail-section{
  padding:10px 2px 4px!important;margin-top:5px!important;
  border-top:1px solid var(--ts15-line)!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail .inbox-rail-section > span{
  font-size:10px!important;line-height:1.4!important;font-weight:800!important;
  color:var(--ts15-muted)!important;margin:0 8px 6px!important;
}
html body.ts-studio.page-inbox .inbox-list-head .ts23-inbox-menu > summary.icon-btn.ts155-inbox-overflow,
html body.ts-studio.page-inbox .inbox-list-head .ts15-inbox-filters-trigger {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;width:35px!important;min-width:35px!important;max-width:35px!important;
  height:35px!important;min-height:35px!important;max-height:35px!important;
  border-radius:8px!important;border:1px solid var(--ts15-line-dark)!important;
  background:var(--ts155-inbox-control)!important;color:var(--ts155-inbox-control-text)!important;
  padding:0!important;box-shadow:none!important;cursor:pointer!important;
}
html body.ts-studio.page-inbox .inbox-list-head .ts15-inbox-filters-trigger{
  width:auto!important;max-width:105px!important;padding:0 11px!important;min-width:35px!important;
  gap:6px!important;font-size:11px!important;
}
html body.ts-studio.page-inbox .inbox-list-head .ts23-inbox-menu > summary.ts155-inbox-overflow > span{
  font-size:24px!important;line-height:25px!important;font-weight:700!important;color:inherit!important;
}
html body.ts-studio.page-inbox .inbox-list-head .ts23-inbox-menu > summary.ts155-inbox-overflow::marker{content:""}
html body.ts-studio.page-inbox .inbox-list-head .ts23-inbox-menu > summary.ts155-inbox-overflow::-webkit-details-marker{display:none}
html body.ts-studio.page-inbox .ts23-inbox-menu-panel{
  background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;
  border:1px solid var(--ts15-line-dark)!important;border-radius:10px!important;
  box-shadow:0 14px 32px rgba(10,31,65,.16)!important;
  min-width:min(240px,calc(100vw - 30px))!important;z-index:90!important;
}
html body.ts-studio.page-inbox .ts23-inbox-menu-panel .ts23-menu-action{
  display:flex!important;align-items:center!important;gap:10px!important;
  min-height:36px!important;padding:8px 11px!important;border:0!important;
  background:transparent!important;color:var(--ts15-ink)!important;
  font-size:12px!important;text-align:left!important;box-shadow:none!important;
}
html body.ts-studio.page-inbox .ts23-inbox-menu-panel .ts23-menu-action:hover{
  background:var(--ts155-inbox-hover)!important;color:var(--ts15-heading)!important;
}
html body.ts-studio.page-inbox .ts23-inbox-menu-panel .ts23-menu-heading{
  font-size:10px!important;color:var(--ts15-muted)!important;font-weight:800!important;
}

/* Compact composer — preserve tabs, templates and actual PHP forms. */
html body.ts-studio.page-inbox .inbox-composer {
  width:100%!important;min-height:0!important;height:auto!important;
  max-height:min(260px,42dvh)!important;overflow-y:auto!important;overflow-x:hidden!important;
  background:var(--ts15-paper)!important;border-top:1px solid var(--ts15-line)!important;
  padding:0!important;box-shadow:none!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-tabs.modern{
  height:32px!important;min-height:32px!important;max-height:32px!important;
  display:flex!important;gap:2px!important;padding:0 8px!important;
  background:var(--ts15-paper)!important;border-bottom:1px solid var(--ts15-line)!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-tabs.modern button{
  min-height:31px!important;height:31px!important;max-height:31px!important;
  padding:4px 10px!important;font-size:11px!important;line-height:1.25!important;
  color:var(--ts15-muted)!important;background:transparent!important;border:0!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-tabs.modern button.active{
  color:var(--ts15-heading)!important;border-bottom:2px solid var(--ts15-blue)!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-pane.modern{
  padding:7px 10px 9px!important;min-width:0!important;background:var(--ts15-paper)!important;
}
html body.ts-studio.page-inbox .inbox-composer .message-compose-form{
  display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;justify-content:space-between!important;
  gap:5px 10px!important;min-height:26px!important;padding:0!important;margin:0!important;
  color:var(--ts15-muted)!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools .ts-wa-quick-label{
  font-size:9px!important;letter-spacing:.04em!important;color:var(--ts15-muted)!important;font-weight:800!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools select{
  min-width:120px!important;max-width:min(245px,60vw)!important;
  height:28px!important;min-height:28px!important;padding:3px 9px!important;
  border:1px solid var(--ts15-line-dark)!important;border-radius:6px!important;
  background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;
  font-size:11px!important;margin:0!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools .ts-wa-shortcut{
  font-size:10px!important;line-height:1.35!important;color:var(--ts15-muted)!important;
}
html body.ts-studio.page-inbox .inbox-composer .ts-wa-quick-chips{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;
  gap:5px 6px!important;min-width:0!important;max-width:100%!important;
  max-height:64px!important;overflow-y:auto!important;overflow-x:hidden!important;
  margin:1px 0 2px!important;padding:0!important;scrollbar-width:thin!important;
}
html body.ts-studio.page-inbox .inbox-composer .ts-wa-quick-chip{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 1 auto!important;max-width:100%!important;
  min-height:28px!important;height:auto!important;max-height:34px!important;
  margin:0!important;padding:5px 9px!important;
  color:#fff!important;background:var(--ts15-navy2)!important;border:1px solid transparent!important;
  border-radius:7px!important;box-shadow:none!important;
  font-size:11px!important;line-height:1.3!important;font-weight:650!important;
  white-space:normal!important;overflow-wrap:anywhere!important;cursor:pointer!important;
}
html body.ts-studio.page-inbox .inbox-composer .ts-wa-quick-chip:hover{
  background:var(--ts15-navy)!important;filter:brightness(1.16)!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-input{
  display:grid!important;grid-template-columns:minmax(0,1fr) 40px!important;
  align-items:end!important;gap:7px!important;min-width:0!important;margin:0!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-input textarea{
  min-height:40px!important;height:40px!important;max-height:98px!important;
  padding:9px 11px!important;margin:0!important;resize:vertical!important;
  border:1px solid var(--ts15-line-dark)!important;border-radius:8px!important;
  background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;
  font-size:12px!important;line-height:19px!important;box-shadow:none!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-input textarea::placeholder{color:var(--ts15-muted)!important}
html body.ts-studio.page-inbox .inbox-composer .composer-input .send-button{
  width:40px!important;min-width:40px!important;max-width:40px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  padding:9px!important;border-radius:8px!important;
  background:var(--ts15-navy2)!important;color:#fff!important;border:0!important;
}
html body.ts-studio.page-inbox .inbox-composer .composer-input .send-button svg{
  width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;
  min-height:19px!important;max-height:19px!important;fill:none!important;
  stroke:currentColor!important;stroke-width:1.8!important;
}

/* Stronger light/dark palette ownership across all inbox subpanels. */
html body.ts-studio.page-inbox .inbox-v2,
html body.ts-studio.page-inbox .inbox-v2-list-panel,
html body.ts-studio.page-inbox .inbox-v2-rail,
html body.ts-studio.page-inbox .inbox-chat-head,
html body.ts-studio.page-inbox .inbox-composer,
html body.ts-studio.page-inbox .inbox-composer .composer-pane.modern {
  background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;border-color:var(--ts15-line)!important;
}
html body.ts-studio.page-inbox .inbox-v2-main,
html body.ts-studio.page-inbox .inbox-chat-workspace,
html body.ts-studio.page-inbox .inbox-message-wall{
  background:var(--ts15-paper-2)!important;color:var(--ts15-ink)!important;
}
html body.ts-studio.page-inbox .inbox-v2-rail :is(h2,b,label,.eyebrow),
html body.ts-studio.page-inbox .inbox-composer .composer-tools b,
html body.ts-studio.page-inbox .inbox-list-head :is(h2,b){color:var(--ts15-heading)!important}
html body.ts-studio.page-inbox .inbox-composer :is(.composer-tools,.ts-wa-shortcut,.ts-wa-quick-label){color:var(--ts15-muted)!important}
html body.ts-studio.page-inbox .inbox-v2 .inbox-search-drawer input,
html body.ts-studio.page-inbox .inbox-v2 .inbox-filter-drawer select,
html body.ts-studio.page-inbox .inbox-v2 .inbox-filter-drawer input{
  background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;border-color:var(--ts15-line-dark)!important;
}
html body.ts-studio.page-inbox .inbox-v2 .inbox-search-drawer [hidden],
html body.ts-studio.page-inbox .inbox-v2-rail [hidden]{display:none!important}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-v2 .inbox-chat-head p{
  color:var(--ts15-muted)!important;
}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-v2 :is(.ts15-inbox-filters-trigger,.ts155-inbox-overflow){
  background:var(--ts155-inbox-control)!important;color:var(--ts155-inbox-control-text)!important;
  border-color:var(--ts15-line-dark)!important;
}
html body.ts-studio.page-inbox .inbox-v2 :is(.ts15-inbox-filters-trigger,.ts155-inbox-overflow,.ts-wa-quick-chip,.send-button):focus-visible{
  outline:2px solid var(--ts15-blue)!important;outline-offset:2px!important;
}

/* Tablet retains two usable panes; phone switches to one pane. */
@media(min-width:701px) and (max-width:980px){
 html body.ts-studio.page-inbox .inbox-v2 {grid-template-columns:minmax(260px,37%) minmax(0,1fr)!important}
 html body.ts-studio.page-inbox .inbox-v2-list-panel {grid-column:1!important;grid-row:1!important}
 html body.ts-studio.page-inbox .inbox-v2-main {display:flex!important;grid-column:2!important;grid-row:1!important}
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker label{display:none!important}
}
@media(max-width:700px){
 html body.ts-studio.page-inbox .inbox-account-selector{
   display:flex!important;flex-wrap:wrap!important;height:auto!important;
   max-height:none!important;min-height:0!important;padding:7px 10px!important;
   gap:5px!important;border-radius:0!important;
 }
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-current{
   width:100%!important;flex:1 1 100%!important;max-width:100%!important;gap:7px!important;
 }
 html body.ts-studio.page-inbox .inbox-account-selector .wa-account-photo{
   width:29px!important;min-width:29px!important;max-width:29px!important;
   height:29px!important;min-height:29px!important;max-height:29px!important;flex-basis:29px!important;
 }
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-copy .eyebrow{font-size:8px!important;line-height:10px!important}
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-copy b{font-size:11px!important;line-height:13px!important}
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-copy small{font-size:9px!important;line-height:11px!important}
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker{
   width:100%!important;max-width:100%!important;min-width:0!important;
   flex:1 1 100%!important;gap:0!important;justify-content:stretch!important;
 }
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker label{display:none!important}
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-picker select{
   height:29px!important;min-height:29px!important;max-width:100%!important;
   width:100%!important;font-size:10px!important;
 }
 html body.ts-studio.page-inbox .inbox-v2{grid-template-columns:minmax(0,1fr)!important}
 html body.ts-studio.page-inbox .inbox-v2-list-panel{grid-column:1!important;grid-row:1!important}
 html body.ts-studio.page-inbox .inbox-v2-main{grid-column:1!important;grid-row:1!important}
 html body.ts-studio.page-inbox .inbox-list-head{min-height:51px!important;max-height:68px!important;padding:8px 10px!important;gap:7px!important}
 html body.ts-studio.page-inbox .inbox-list-head h2{font-size:15px!important}
 html body.ts-studio.page-inbox .inbox-list-head .ts15-inbox-filters-trigger{
   width:35px!important;min-width:35px!important;max-width:35px!important;padding:0!important;
 }
 html body.ts-studio.page-inbox .inbox-list-head .ts15-inbox-filters-trigger span{display:none!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-tabs.modern{padding:0 5px!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-tabs.modern button{padding:4px 9px!important;font-size:11px!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-pane.modern{padding:6px 8px 8px!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools{gap:5px!important;min-height:23px!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools select{max-width:calc(100vw - 115px)!important}
 html body.ts-studio.page-inbox .inbox-composer .ts-wa-quick-chips{max-height:64px!important;gap:5px!important}
 html body.ts-studio.page-inbox .inbox-composer .ts-wa-quick-chip{font-size:10.5px!important;padding:5px 8px!important;min-height:28px!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-input{grid-template-columns:minmax(0,1fr) 39px!important;gap:6px!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-input textarea{height:39px!important;min-height:39px!important;font-size:12px!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-input .send-button{
   width:39px!important;min-width:39px!important;max-width:39px!important;
   height:39px!important;min-height:39px!important;max-height:39px!important;
 }
 html body.ts-studio.page-inbox .inbox-chat-actions .inline-form{display:none!important}
 html body.ts-studio.page-inbox .inbox-chat-actions{gap:5px!important;width:auto!important;max-width:none!important;overflow:visible!important}
 html body.ts-studio.page-inbox .inbox-chat-head{
   min-height:55px!important;max-height:65px!important;padding:7px 9px!important;
   display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
 }
 html body.ts-studio.page-inbox .inbox-chat-person{min-width:0!important}
 html body.ts-studio.page-inbox .inbox-chat-person h2{font-size:13px!important}
 html body.ts-studio.page-inbox .inbox-chat-person p{font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 html body.ts-studio.page-inbox .inbox-chat-head .icon-btn,
 html body.ts-studio.page-inbox .inbox-chat-head .ts-mobile-more{
   width:31px!important;min-width:31px!important;max-width:31px!important;
   height:31px!important;min-height:31px!important;max-height:31px!important;padding:4px!important;
 }
}
@media(max-width:370px){
 html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools .ts-wa-shortcut{display:none!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools select{min-width:95px!important;max-width:calc(100vw - 105px)!important}
 html body.ts-studio.page-inbox .inbox-account-selector .inbox-account-copy small{display:none!important}
}


html[data-theme="light"] body.ts-studio.page-inbox {--ts15-muted:#5e6d82;}
html[data-theme="dark"] body.ts-studio.page-inbox {--ts15-muted:#b2bfd3;}

/* Make conversation list legible again despite old v11.7 8px overrides. */
html body.ts-studio.page-inbox .inbox-v2 .ts-wa-inbox-filters{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex-wrap:wrap!important;gap:5px!important;margin:0!important;
  padding:7px 10px!important;background:var(--ts15-paper)!important;
  border-bottom:1px solid var(--ts15-line)!important;
}
html body.ts-studio.page-inbox .inbox-v2 .ts-wa-inbox-filters > :is(a,details){
  display:inline-flex!important;align-items:center!important;min-width:0!important;
  flex:0 0 auto!important;margin:0!important;
}
html body.ts-studio.page-inbox .inbox-v2 .ts-wa-inbox-filters a,
html body.ts-studio.page-inbox .inbox-v2 .ts-wa-inbox-filters summary{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:27px!important;padding:5px 9px!important;border-radius:7px!important;
  background:var(--ts155-inbox-control)!important;color:var(--ts155-inbox-control-text)!important;
  border:1px solid var(--ts15-line)!important;text-decoration:none!important;
  font-size:11px!important;line-height:1.3!important;white-space:nowrap!important;
}
html body.ts-studio.page-inbox .inbox-v2 .ts-wa-inbox-filters a.active{
  background:var(--ts155-inbox-active)!important;color:var(--ts15-heading)!important;
}
html body.ts-studio.page-inbox .inbox-v2 .ts-wa-inbox-filters em{font-style:normal!important;margin-left:4px!important;font-weight:700!important}
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation{
  margin:0!important;border:0!important;border-bottom:1px solid var(--ts15-line)!important;
  background:var(--ts15-paper)!important;
}
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation .inbox-row-link{
  display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;
  align-items:center!important;gap:9px!important;min-height:65px!important;
  padding:8px 11px!important;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;color:var(--ts15-ink)!important;
}
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation.active{
  background:var(--ts155-inbox-active)!important;border-left:3px solid var(--ts15-blue)!important;
}
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation:hover{
  background:var(--ts155-inbox-hover)!important;
}
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation .inbox-avatar{
  width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;
  border-radius:10px!important;font-size:11px!important;
  display:grid!important;place-items:center!important;
}
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation .inbox-row-main{
  min-width:0!important;overflow:hidden!important;
}
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation .inbox-row-title b{
  font-size:12.5px!important;line-height:1.3!important;font-weight:750!important;
  color:var(--ts15-heading)!important;
}
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation .inbox-row-title time{
  font-size:10px!important;line-height:1.3!important;color:var(--ts15-muted)!important;
}
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation .inbox-row-preview,
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation .inbox-row-preview span{
  font-size:11px!important;line-height:1.4!important;color:var(--ts15-muted)!important;
}
html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation .inbox-row-flags em{
  font-size:10px!important;line-height:1.3!important;padding:3px 6px!important;
}
@media(max-width:700px){
 html body.ts-studio.page-inbox .inbox-v2 .ts-wa-inbox-filters{padding:5px 8px!important;gap:4px!important}
 html body.ts-studio.page-inbox .inbox-v2 .ts-wa-inbox-filters a,
 html body.ts-studio.page-inbox .inbox-v2 .ts-wa-inbox-filters summary{padding:5px 7px!important;font-size:10.5px!important}
 html body.ts-studio.page-inbox .inbox-v2 .inbox-conversation .inbox-row-link{min-height:63px!important;padding:8px 10px!important}
}



/* TS WhatsApp V15.6 — sidebar navigation polish, distinct icons, stable collapse. */
html body.ts-studio .app-shell>.sidebar{isolation:isolate!important;overflow:hidden!important}
html body.ts-studio .brand-row.studio-brandbar{position:relative!important;top:0!important;left:0!important;right:auto!important;transform:none!important;margin:0!important;width:100%!important;z-index:2!important;flex:0 0 76px!important;overflow:hidden!important}
html body.ts-studio .ts15-sidebar-scroll{
  flex:1 1 0%!important;min-height:0!important;min-width:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:none!important;-ms-overflow-style:none!important;
  border:0!important;outline:0!important;
  padding-top:10px!important;padding-bottom:16px!important;
  overscroll-behavior:contain!important;
}
html body.ts-studio .ts15-sidebar-scroll::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
html body.ts-studio .ts15-nav-group .nav-icon{display:grid!important;place-items:center!important}
html body.ts-studio .ts15-nav-group .nav-icon svg{
  display:block!important;box-sizing:border-box!important;width:19px!important;height:19px!important;
  min-width:19px!important;max-width:19px!important;min-height:19px!important;max-height:19px!important;
  stroke:currentColor!important;fill:none!important;stroke-width:1.8!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
}
html body.ts-studio .studio-sidebar-footer{position:relative!important;z-index:2!important;flex:0 0 auto!important}
html body.ts-studio .sidebar-width-toggle{
  box-sizing:border-box!important;width:100%!important;min-height:40px!important;
  display:flex!important;align-items:center!important;gap:10px!important;
  padding:7px 10px!important;border:1px solid transparent!important;
  border-radius:10px!important;background:transparent!important;
  color:var(--ts15-ink)!important;font-weight:650!important;
  transition:background .16s ease,color .16s ease!important;
}
html body.ts-studio .sidebar-width-toggle:hover{background:var(--ts15-soft)!important;color:var(--ts15-blue)!important}
html body.ts-studio .sidebar-width-toggle:focus-visible{
 outline:2px solid var(--ts15-blue)!important;outline-offset:2px!important;
}
html body.ts-studio .sidebar-toggle-icon{
 display:grid!important;place-items:center!important;flex:0 0 22px!important;
 width:22px!important;height:22px!important;transition:transform .18s ease!important;
 transform:rotate(0deg)!important;
}
html body.ts-studio .sidebar-toggle-icon svg{
 display:block!important;width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;
 min-height:19px!important;max-height:19px!important;stroke:currentColor!important;
 fill:none!important;stroke-width:2.1!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
html body.ts-studio .logout-text-link{
 display:flex!important;align-items:center!important;gap:11px!important;min-height:38px!important;
 padding:8px 10px!important;margin:2px 0 0!important;border-radius:10px!important;
 text-decoration:none!important;color:var(--ts15-muted)!important;
}
html body.ts-studio .logout-text-link:hover{background:var(--ts15-soft)!important;color:var(--ts15-blue)!important}
html body.ts-studio .sidebar-logout-icon{display:grid!important;place-items:center!important;flex:0 0 21px!important;width:21px!important;height:21px!important}
html body.ts-studio .sidebar-logout-icon svg{display:block!important;width:18px!important;height:18px!important;stroke:currentColor!important;stroke-width:1.85!important;fill:none!important}
@media (min-width:981px){
 html body.ts-studio.sidebar-collapsed .app-shell{grid-template-columns:72px minmax(0,1fr)!important}
 html body.ts-studio.sidebar-collapsed .app-shell>.sidebar{width:72px!important;min-width:72px!important;max-width:72px!important}
 html body.ts-studio.sidebar-collapsed .brand-row.studio-brandbar{
   width:72px!important;min-width:72px!important;padding:0!important;
   display:flex!important;align-items:center!important;justify-content:center!important;
 }
 html body.ts-studio.sidebar-collapsed .brand-row.studio-brandbar .brand{width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important}
 html body.ts-studio.sidebar-collapsed .studio-brandbar .brand-mark{
   width:42px!important;min-width:42px!important;max-width:42px!important;
   height:42px!important;min-height:42px!important;max-height:42px!important;
   margin:0!important;padding:7px!important;flex:0 0 42px!important;
 }
 html body.ts-studio.sidebar-collapsed .ts15-sidebar-scroll{width:72px!important;padding:10px 7px 14px!important}
 html body.ts-studio.sidebar-collapsed .ts15-nav-group{padding:0!important;margin:0 0 8px!important;min-width:0!important}
 html body.ts-studio.sidebar-collapsed .ts15-nav-group + .ts15-nav-group{border-top:1px solid var(--ts15-line)!important;padding-top:7px!important}
 html body.ts-studio.sidebar-collapsed .ts15-nav-group .sidebar-label{display:none!important}
 html body.ts-studio.sidebar-collapsed .ts15-nav-group .side-nav{gap:5px!important;padding:0!important;align-items:center!important}
 html body.ts-studio.sidebar-collapsed .ts15-nav-group .nav-item{
   box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
   width:48px!important;min-width:48px!important;max-width:48px!important;
   height:45px!important;min-height:45px!important;max-height:45px!important;
   padding:0!important;margin:0 auto!important;gap:0!important;
   border-radius:12px!important;overflow:visible!important;
 }
 html body.ts-studio.sidebar-collapsed .ts15-nav-group .nav-item.active{box-shadow:0 5px 14px rgba(18,64,131,.17)!important}
 html body.ts-studio.sidebar-collapsed .ts15-nav-group .nav-item .nav-label{display:none!important}
 html body.ts-studio.sidebar-collapsed .ts15-nav-group .nav-icon,
 html body.ts-studio.sidebar-collapsed .ts15-nav-group .nav-icon svg{
   width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;
   max-width:20px!important;max-height:20px!important;flex:0 0 20px!important;
 }
 html body.ts-studio.sidebar-collapsed .ts15-nav-group .nav-badge{
   position:absolute!important;right:-4px!important;top:-4px!important;left:auto!important;
   display:inline-flex!important;align-items:center!important;justify-content:center!important;
   width:auto!important;min-width:23px!important;height:18px!important;min-height:18px!important;
   padding:0 4px!important;margin:0!important;border-radius:99px!important;
   font-size:9px!important;line-height:1!important;white-space:nowrap!important;
   border:1px solid var(--ts15-paper)!important;z-index:3!important;
 }
 html body.ts-studio.sidebar-collapsed .studio-sidebar-footer{
   display:flex!important;flex-direction:column!important;align-items:center!important;
   gap:6px!important;width:72px!important;padding:10px 6px 12px!important;
 }
 html body.ts-studio.sidebar-collapsed .studio-sidebar-footer .cloud-status{
   box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
   width:48px!important;min-width:48px!important;max-width:48px!important;height:36px!important;
   min-height:36px!important;margin:0!important;padding:0!important;gap:0!important;
 }
 html body.ts-studio.sidebar-collapsed .studio-sidebar-footer .cloud-status>div{display:none!important}
 html body.ts-studio.sidebar-collapsed .studio-sidebar-footer .cloud-status .status-dot{margin:0!important;flex:0 0 auto!important}
 html body.ts-studio.sidebar-collapsed .sidebar-width-toggle,
 html body.ts-studio.sidebar-collapsed .logout-text-link{
   box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
   width:48px!important;min-width:48px!important;max-width:48px!important;
   height:42px!important;min-height:42px!important;padding:0!important;margin:0!important;gap:0!important;
   background:transparent!important;border-radius:11px!important;
 }
 html body.ts-studio.sidebar-collapsed .sidebar-toggle-icon{transform:rotate(180deg)!important}
 html body.ts-studio.sidebar-collapsed .studio-sidebar-footer .nav-label{display:none!important}
 html body.ts-studio.sidebar-collapsed .ts15-nav-group .nav-item[data-label]:hover::after{
   left:54px!important;top:50%!important;transform:translateY(-50%)!important;
   background:var(--ts15-paper)!important;color:var(--ts15-heading)!important;
   border:1px solid var(--ts15-line-dark)!important;box-shadow:0 12px 24px rgba(16,37,69,.16)!important;
   border-radius:8px!important;z-index:100!important;
 }
}
@media(max-width:980px){
 html body.ts-studio .sidebar-width-toggle{display:none!important}
 html body.ts-studio .ts15-sidebar-scroll{padding-top:10px!important}
}
@media(prefers-reduced-motion:reduce){html body.ts-studio .sidebar-toggle-icon{transition:none!important}}


/* v15.7: Single, inline Inbox actions panel. No duplicating filter controls,
   no oversized popover overlaying conversations, and no old rail activation. */
html body.ts-studio.page-inbox .inbox-list-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex-wrap:nowrap!important;min-height:62px!important;height:auto!important;
  max-height:none!important;padding:12px 14px!important;gap:10px!important;
}
html body.ts-studio.page-inbox .inbox-list-head > div:first-child{flex:1 1 auto!important;min-width:0!important;max-width:calc(100% - 50px)!important}
html body.ts-studio.page-inbox .inbox-list-head > div:first-child > span{display:block!important;font-size:11px!important;line-height:1.45!important}
html body.ts-studio.page-inbox .inbox-list-head > button.ts17-overflow-trigger{
  flex:0 0 36px!important;display:inline-grid!important;place-items:center!important;
  box-sizing:border-box!important;width:36px!important;min-width:36px!important;max-width:36px!important;
  height:36px!important;min-height:36px!important;max-height:36px!important;
  margin:0!important;padding:0!important;border:1px solid var(--ts15-line-dark)!important;
  border-radius:9px!important;background:var(--ts155-inbox-control,var(--ts15-soft))!important;
  color:var(--ts155-inbox-control-text,var(--ts15-ink))!important;cursor:pointer!important;
  box-shadow:none!important;overflow:hidden!important;
}
html body.ts-studio.page-inbox .inbox-list-head .ts17-overflow-trigger > span{
  display:block!important;font-size:24px!important;font-weight:700!important;
  line-height:22px!important;width:auto!important;height:auto!important;color:inherit!important;
}
html body.ts-studio.page-inbox .inbox-list-head .ts17-overflow-trigger[aria-expanded="true"]{
  background:var(--ts155-inbox-active,var(--ts15-soft))!important;
  border-color:var(--ts15-blue)!important;color:var(--ts15-heading)!important;
}
html body.ts-studio.page-inbox .inbox-v2-list-panel > .ts17-inbox-actions{
  display:flex!important;flex:0 0 auto!important;flex-direction:column!important;gap:7px!important;
  position:relative!important;inset:auto!important;transform:none!important;
  width:100%!important;max-width:100%!important;height:auto!important;max-height:180px!important;
  overflow-y:auto!important;overflow-x:hidden!important;margin:0!important;padding:11px 12px!important;
  background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;
  border:0!important;border-bottom:1px solid var(--ts15-line)!important;
  box-shadow:none!important;border-radius:0!important;z-index:auto!important;
}
html body.ts-studio.page-inbox .inbox-v2-list-panel > .ts17-inbox-actions[hidden]{display:none!important}
html body.ts-studio.page-inbox .ts17-actions-label{font-size:10px!important;font-weight:750!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:var(--ts15-muted)!important}
html body.ts-studio.page-inbox .ts17-actions-buttons{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:7px!important;min-width:0!important}
html body.ts-studio.page-inbox .ts17-actions-buttons > :is(a,button){
  display:inline-flex!important;flex:1 1 auto!important;align-items:center!important;justify-content:flex-start!important;
  gap:7px!important;min-width:0!important;min-height:36px!important;max-height:none!important;
  box-sizing:border-box!important;margin:0!important;padding:7px 9px!important;
  border:1px solid var(--ts15-line)!important;border-radius:8px!important;
  background:var(--ts155-inbox-control,var(--ts15-soft))!important;
  color:var(--ts155-inbox-control-text,var(--ts15-ink))!important;
  text-decoration:none!important;font:inherit!important;font-size:11px!important;
  line-height:1.35!important;white-space:normal!important;text-align:left!important;
  box-shadow:none!important;cursor:pointer!important;
}
html body.ts-studio.page-inbox .ts17-actions-buttons > :is(a,button):hover{background:var(--ts155-inbox-hover,var(--ts15-soft))!important}
html body.ts-studio.page-inbox .ts17-actions-buttons > :is(a,button) > span{flex:0 0 auto!important;font-size:16px!important;line-height:1!important;color:var(--ts15-blue)!important}
html body.ts-studio.page-inbox .ts17-menu-hint{margin:0!important;font-size:10.5px!important;line-height:1.45!important;color:var(--ts15-muted)!important}
html body.ts-studio.page-inbox .inbox-v2-list-panel > .ts17-filter-panel{
  display:block!important;flex:0 0 auto!important;position:relative!important;inset:auto!important;
  width:100%!important;max-width:100%!important;height:auto!important;max-height:235px!important;
  margin:0!important;padding:10px 12px!important;overflow-y:auto!important;overflow-x:hidden!important;
  background:var(--ts15-paper)!important;border-bottom:1px solid var(--ts15-line)!important;
  color:var(--ts15-ink)!important;box-shadow:none!important;
}
html body.ts-studio.page-inbox .inbox-v2-list-panel > .ts17-filter-panel[hidden]{display:none!important}
html body.ts-studio.page-inbox .ts17-filter-title{font-size:11px!important;font-weight:700!important;line-height:1.35!important;margin-bottom:8px!important;color:var(--ts15-heading)!important}
html body.ts-studio.page-inbox .ts17-filter-views{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:0 0 10px!important;padding:0!important}
html body.ts-studio.page-inbox .ts17-filter-views > a,
html body.ts-studio.page-inbox .ts17-active-view{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:27px!important;padding:5px 8px!important;border:1px solid var(--ts15-line)!important;
  border-radius:7px!important;background:var(--ts155-inbox-control,var(--ts15-soft))!important;
  color:var(--ts155-inbox-control-text,var(--ts15-ink))!important;
  font-size:11px!important;line-height:1.25!important;text-decoration:none!important;
}
html body.ts-studio.page-inbox .ts17-filter-views > a.active,
html body.ts-studio.page-inbox .ts17-active-view{
  background:var(--ts155-inbox-active,var(--ts15-soft))!important;color:var(--ts15-heading)!important;font-weight:700!important;
}
html body.ts-studio.page-inbox .ts17-filter-panel .inbox-filter-drawer{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:center!important;gap:7px!important;width:100%!important;margin:0!important;
  padding:0!important;border:0!important;background:transparent!important;
  box-shadow:none!important;border-radius:0!important;
}
html body.ts-studio.page-inbox .ts17-filter-panel .inbox-filter-drawer > select{width:100%!important;min-width:0!important;max-width:100%!important;height:36px!important;min-height:36px!important;padding:6px 8px!important;font-size:11px!important;border-color:var(--ts15-line)!important;background:var(--ts15-paper-2)!important;color:var(--ts15-ink)!important}
html body.ts-studio.page-inbox .ts17-filter-panel .inbox-filter-drawer > :is(a,button){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  height:36px!important;min-height:36px!important;padding:7px 9px!important;margin:0!important;
  border-radius:7px!important;font-size:11px!important;line-height:1.2!important;
  background:var(--ts155-inbox-control,var(--ts15-soft))!important;color:var(--ts155-inbox-control-text,var(--ts15-ink))!important;
  border:1px solid var(--ts15-line)!important;text-decoration:none!important;
}
html body.ts-studio.page-inbox .ts17-filter-panel .inbox-filter-drawer button{background:var(--ts15-blue)!important;color:#fff!important;border-color:transparent!important}
html body.ts-studio.page-inbox .inbox-v2-list-panel > .inbox-search-drawer[hidden]{display:none!important}
html body.ts-studio.page-inbox .inbox-v2-list-panel > .ts-wa-inbox-filters{flex:0 0 auto!important}
html body.ts-studio.page-inbox .ts17-overflow-trigger:focus-visible,
html body.ts-studio.page-inbox .ts17-actions-buttons :is(a,button):focus-visible,
html body.ts-studio.page-inbox .ts17-filter-views a:focus-visible{
  outline:2px solid var(--ts15-blue)!important;outline-offset:2px!important;
}
@media(max-width:700px){
 html body.ts-studio.page-inbox .inbox-list-head{min-height:54px!important;padding:9px 11px!important;gap:8px!important}
 html body.ts-studio.page-inbox .inbox-list-head > div:first-child > span{font-size:10.5px!important}
 html body.ts-studio.page-inbox .inbox-list-head > button.ts17-overflow-trigger{flex-basis:34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important}
 html body.ts-studio.page-inbox .ts17-actions-buttons{display:flex!important;gap:6px!important}
 html body.ts-studio.page-inbox .ts17-actions-buttons > :is(a,button){flex:1 1 132px!important;min-height:36px!important}
 html body.ts-studio.page-inbox .ts17-filter-panel .inbox-filter-drawer{grid-template-columns:minmax(0,1fr) auto!important}
 html body.ts-studio.page-inbox .ts17-filter-panel .inbox-filter-drawer > a{grid-column:1 / -1!important;justify-self:start!important;height:30px!important;min-height:30px!important}
}
@media(max-width:360px){
 html body.ts-studio.page-inbox .ts17-actions-buttons > :is(a,button){flex-basis:100%!important}
 html body.ts-studio.page-inbox .ts17-filter-panel{max-height:220px!important}
}


/* V15.7 — quick reply toolbar, compact chat bubbles, and quick replies manager. */
html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools{justify-content:flex-start!important;gap:6px 10px!important}
html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools .ts-wa-quick-picker{display:inline-flex!important;align-items:center!important;gap:8px!important;flex:0 1 auto!important;min-width:0!important}
html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools .ts-wa-quick-label{flex:0 0 auto!important;margin:0!important}
html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools select{flex:0 1 280px!important;min-width:160px!important;max-width:min(320px,52vw)!important;margin:0!important}
html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools .ts-wa-shortcut{margin-left:auto!important;white-space:nowrap!important}
html body.ts-studio.page-inbox .inbox-composer .ts-wa-quick-chips{gap:4px 6px!important;max-height:58px!important;margin:0!important}
html body.ts-studio.page-inbox .inbox-composer .ts-wa-quick-chip{min-height:26px!important;max-height:none!important;padding:4px 9px!important;border-radius:8px!important;font-size:10.75px!important;font-weight:700!important}
html body.ts-studio.page-inbox .inbox-composer .composer-input{grid-template-columns:minmax(0,1fr) 38px!important;gap:6px!important}
html body.ts-studio.page-inbox .inbox-composer .composer-input textarea{min-height:38px!important;height:38px!important;max-height:88px!important;padding:8px 10px!important;border-radius:8px!important;line-height:1.45!important}
html body.ts-studio.page-inbox .inbox-composer .composer-input .send-button{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;border-radius:8px!important}
html body.ts-studio.page-inbox .message-list{padding:10px 14px!important}
html body.ts-studio.page-inbox .message-row{margin:0 0 8px!important}
html body.ts-studio.page-inbox .message-bubble{min-width:72px!important;max-width:min(480px,72%)!important;padding:7px 10px!important;border-radius:9px!important;font-size:12px!important;line-height:1.42!important;box-shadow:none!important}
html body.ts-studio.page-inbox .message-row.in .message-bubble{border-top-left-radius:5px!important}
html body.ts-studio.page-inbox .message-row.out .message-bubble{border-top-right-radius:5px!important}
html body.ts-studio.page-inbox .message-bubble .message-body{font-size:12px!important;line-height:1.48!important}
html body.ts-studio.page-inbox .message-bubble .message-origin{font-size:10px!important;margin-bottom:3px!important;opacity:.85!important}
html body.ts-studio.page-inbox .message-bubble .message-meta{font-size:10px!important;margin-top:4px!important;gap:4px!important}
html body.ts-studio.page-inbox .message-bubble .message-delete-form button{padding:0 2px!important;font-size:10px!important}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-message-wall .message-row.out .message-bubble{background:#234f77!important;border-color:#2f648f!important;color:#f3f8ff!important}
html[data-theme="dark"] body.ts-studio.page-inbox .inbox-message-wall .message-row.in .message-bubble{background:#22364d!important;border-color:#33475e!important;color:#edf5ff!important}
html body.ts-studio.page-quick_replies .studio-page-shell{max-width:1440px!important}
html body.ts-studio.page-quick_replies .page-heading.studio-page-heading{margin-bottom:14px!important}
html body.ts-studio.page-quick_replies .tsqr-page{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(320px,.9fr)!important;gap:18px!important;align-items:start!important}
html body.ts-studio.page-quick_replies .tsqr-page .card{background:var(--ts15-paper)!important;border:1px solid var(--ts15-line)!important;border-radius:18px!important;box-shadow:0 10px 26px rgba(15,23,42,.06)!important}
html body.ts-studio.page-quick_replies .tsqr-list-card{padding:18px!important}
html body.ts-studio.page-quick_replies .tsqr-header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin-bottom:14px!important}
html body.ts-studio.page-quick_replies .tsqr-header h2{margin:4px 0 6px!important;font-size:26px!important;color:var(--ts15-heading)!important}
html body.ts-studio.page-quick_replies .tsqr-header .muted{max-width:760px!important;line-height:1.5!important;color:var(--ts15-muted)!important}
html body.ts-studio.page-quick_replies .tsqr-primary-action,html body.ts-studio.page-quick_replies .tsqr-save{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:10px 14px!important;background:var(--ts15-blue)!important;color:#fff!important;border-radius:10px!important;text-decoration:none!important;border:none!important;font-weight:700!important}
html body.ts-studio.page-quick_replies .tsqr-toolbar{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto!important;gap:10px!important;align-items:center!important;margin-bottom:10px!important}
html body.ts-studio.page-quick_replies .tsqr-toolbar label{font-size:12px!important;font-weight:700!important;color:var(--ts15-muted)!important}
html body.ts-studio.page-quick_replies .tsqr-toolbar input{height:40px!important;border:1px solid var(--ts15-line)!important;border-radius:10px!important;padding:0 12px!important;background:var(--ts15-paper-2)!important;color:var(--ts15-ink)!important}
html body.ts-studio.page-quick_replies .tsqr-toolbar button,html body.ts-studio.page-quick_replies .tsqr-clear,html body.ts-studio.page-quick_replies .tsqr-edit,html body.ts-studio.page-quick_replies .tsqr-delete{height:40px!important;padding:0 12px!important;border-radius:10px!important;border:1px solid var(--ts15-line)!important;background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;text-decoration:none!important;font-weight:700!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
html body.ts-studio.page-quick_replies .tsqr-toolbar button{background:var(--ts15-blue)!important;color:#fff!important;border-color:transparent!important}
html body.ts-studio.page-quick_replies .tsqr-list-meta{display:flex!important;justify-content:space-between!important;gap:12px!important;font-size:12px!important;color:var(--ts15-muted)!important;margin:10px 0 12px!important}
html body.ts-studio.page-quick_replies .tsqr-table-wrap{border:1px solid var(--ts15-line)!important;border-radius:14px!important;overflow:hidden!important;background:var(--ts15-paper)!important}
html body.ts-studio.page-quick_replies .tsqr-table{width:100%!important;border-collapse:collapse!important}
html body.ts-studio.page-quick_replies .tsqr-table thead th{padding:12px 14px!important;text-align:left!important;background:var(--ts15-soft)!important;color:var(--ts15-heading)!important;font-size:12px!important}
html body.ts-studio.page-quick_replies .tsqr-table tbody td{padding:12px 14px!important;border-top:1px solid var(--ts15-line)!important;vertical-align:middle!important}
html body.ts-studio.page-quick_replies .tsqr-identity{display:flex!important;flex-direction:column!important;gap:2px!important}
html body.ts-studio.page-quick_replies .tsqr-identity b{font-size:14px!important;color:var(--ts15-heading)!important}
html body.ts-studio.page-quick_replies .tsqr-slug{display:inline-flex!important;align-items:center!important;width:max-content!important;max-width:100%!important;padding:4px 8px!important;border-radius:999px!important;background:var(--ts15-soft)!important;color:var(--ts15-blue)!important;font-size:12px!important;font-weight:700!important}
html body.ts-studio.page-quick_replies .tsqr-category,html body.ts-studio.page-quick_replies .tsqr-scope{display:inline-flex!important;padding:4px 8px!important;border-radius:999px!important;background:var(--ts15-paper-2)!important;color:var(--ts15-ink)!important;font-size:12px!important}
html body.ts-studio.page-quick_replies .tsqr-row-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important}
html body.ts-studio.page-quick_replies .tsqr-delete{background:#fff5f5!important;color:#b42318!important;border-color:#f3c7c7!important}
html body.ts-studio.page-quick_replies .tsqr-edit{background:#eef4ff!important;color:#1d4ed8!important;border-color:#bfd1ff!important}
html body.ts-studio.page-quick_replies .tsqr-pagination{display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-end!important;margin-top:14px!important}
html body.ts-studio.page-quick_replies .tsqr-pagination a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:38px!important;height:38px!important;padding:0 12px!important;border-radius:10px!important;border:1px solid var(--ts15-line)!important;background:var(--ts15-paper)!important;color:var(--ts15-ink)!important;text-decoration:none!important;font-weight:700!important}
html body.ts-studio.page-quick_replies .tsqr-pagination a.active,html body.ts-studio.page-quick_replies .tsqr-pagination a[aria-current="page"]{background:var(--ts15-blue)!important;border-color:transparent!important;color:#fff!important}
html body.ts-studio.page-quick_replies .tsqr-empty{padding:28px 16px!important;text-align:center!important;color:var(--ts15-muted)!important}
html body.ts-studio.page-quick_replies .tsqr-editor{padding:18px!important;position:sticky!important;top:88px!important}
html body.ts-studio.page-quick_replies .tsqr-editor-heading{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:12px!important;margin-bottom:14px!important}
html body.ts-studio.page-quick_replies .tsqr-editor-heading h2{margin:4px 0 0!important;font-size:22px!important;color:var(--ts15-heading)!important}
html body.ts-studio.page-quick_replies .tsqr-editor-heading a{color:var(--ts15-muted)!important;text-decoration:none!important;font-weight:700!important}
html body.ts-studio.page-quick_replies .tsqr-edit-form{display:flex!important;flex-direction:column!important;gap:12px!important}
html body.ts-studio.page-quick_replies .tsqr-fields{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
html body.ts-studio.page-quick_replies :is(.tsqr-fields input,.tsqr-body-label textarea){width:100%!important;border:1px solid var(--ts15-line)!important;border-radius:10px!important;background:var(--ts15-paper-2)!important;color:var(--ts15-ink)!important;padding:10px 12px!important}
html body.ts-studio.page-quick_replies .tsqr-fields label,html body.ts-studio.page-quick_replies .tsqr-body-label,html body.ts-studio.page-quick_replies .tsqr-global{display:flex!important;flex-direction:column!important;gap:6px!important;font-size:12px!important;font-weight:700!important;color:var(--ts15-muted)!important}
html body.ts-studio.page-quick_replies .tsqr-body-label textarea{min-height:180px!important;resize:vertical!important}
html body.ts-studio.page-quick_replies .tsqr-global{flex-direction:row!important;align-items:center!important;font-weight:600!important}
html body.ts-studio.page-quick_replies .tsqr-editor-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:center!important}
html body.ts-studio.page-quick_replies .tsqr-editor-actions a{color:var(--ts15-muted)!important;text-decoration:none!important;font-weight:700!important}
html[data-theme="dark"] body.ts-studio.page-quick_replies .tsqr-page .card{box-shadow:none!important}
@media(max-width:1100px){
 html body.ts-studio.page-quick_replies .tsqr-page{grid-template-columns:1fr!important}
 html body.ts-studio.page-quick_replies .tsqr-editor{position:static!important}
}
@media(max-width:760px){
 html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools{align-items:flex-start!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools .ts-wa-quick-picker{width:100%!important;flex-wrap:wrap!important;gap:6px!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools select{width:100%!important;max-width:100%!important;min-width:0!important;flex:1 1 100%!important}
 html body.ts-studio.page-inbox .inbox-composer .composer-tools.ts-wa-quick-tools .ts-wa-shortcut{margin-left:0!important;width:100%!important;font-size:10px!important}
 html body.ts-studio.page-inbox .message-bubble{max-width:86%!important;padding:7px 9px!important}
 html body.ts-studio.page-quick_replies .tsqr-list-card,html body.ts-studio.page-quick_replies .tsqr-editor{padding:14px!important}
 html body.ts-studio.page-quick_replies .tsqr-header{flex-direction:column!important}
 html body.ts-studio.page-quick_replies .tsqr-toolbar{grid-template-columns:1fr!important}
 html body.ts-studio.page-quick_replies .tsqr-list-meta{flex-direction:column!important;align-items:flex-start!important}
 html body.ts-studio.page-quick_replies .tsqr-fields{grid-template-columns:1fr!important}
 html body.ts-studio.page-quick_replies .tsqr-table thead{display:none!important}
 html body.ts-studio.page-quick_replies .tsqr-table tbody tr{display:grid!important;grid-template-columns:1fr!important;padding:10px 12px!important}
 html body.ts-studio.page-quick_replies .tsqr-table tbody td{display:flex!important;justify-content:space-between!important;gap:10px!important;padding:6px 0!important;border-top:none!important}
 html body.ts-studio.page-quick_replies .tsqr-table tbody td::before{content:attr(data-label);font-weight:700!important;color:var(--ts15-muted)!important;min-width:88px!important}
 html body.ts-studio.page-quick_replies .tsqr-table tbody td[data-label="Shortcut"]{display:block!important}
 html body.ts-studio.page-quick_replies .tsqr-table tbody td[data-label="Shortcut"]::before{display:block!important;margin-bottom:6px!important}
}
