/* TS WhatsApp — Studio Workspace 13
 * Primary design language: calm neutral surfaces, sapphire action color,
 * strict 8px spacing, accessible density. Native CRM handlers remain intact.
 */
:root,[data-theme="light"]{
  --studio-bg:#f6f8fc; --studio-paper:#fff; --studio-ink:#17223b;
  --studio-sub:#708099; --studio-line:#e7ebf3; --studio-line-strong:#dbe2ec;
  --studio-accent:#325fe9; --studio-accent-hi:#244bd4; --studio-wash:#eef3ff;
  --studio-tint:#f9fafe; --studio-good:#16a67a; --studio-amber:#eaa348;
  --studio-shadow:0 3px 18px rgba(31,49,83,.034); --studio-menu:rgba(255,255,255,.98);
  --r-bg:var(--studio-bg); --r-surface:var(--studio-paper); --r-surface2:var(--studio-tint);
  --r-border:var(--studio-line); --r-text:var(--studio-ink); --r-muted:var(--studio-sub);
  --r-primary:var(--studio-accent); --r-primary-pale:var(--studio-wash); --r-sidebar:var(--studio-paper);
  --r-shadow:var(--studio-shadow);
}
[data-theme="dark"]{
  --studio-bg:#0c1220; --studio-paper:#151d2d; --studio-ink:#eff4ff;
  --studio-sub:#99a9c1; --studio-line:#2c374b; --studio-line-strong:#3a4760;
  --studio-accent:#89a2ff; --studio-accent-hi:#b0bfff; --studio-wash:#24345b;
  --studio-tint:#1b2538; --studio-good:#3dd8ac; --studio-amber:#efb45c;
  --studio-shadow:0 3px 18px rgba(0,0,0,.13); --studio-menu:#192439;
  --r-bg:var(--studio-bg); --r-surface:var(--studio-paper); --r-surface2:var(--studio-tint);
  --r-border:var(--studio-line); --r-text:var(--studio-ink); --r-muted:var(--studio-sub);
  --r-primary:var(--studio-accent); --r-primary-pale:var(--studio-wash); --r-sidebar:var(--studio-paper);
}
html body.ts-studio{background:var(--studio-bg)!important;color:var(--studio-ink)!important;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:13px!important;line-height:1.55!important}
body.ts-studio :is(button,input,select,textarea){font-family:inherit!important}
body.ts-studio [hidden]{display:none!important}
body.ts-studio :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--studio-accent)!important;outline-offset:3px!important}
body.ts-studio .app-shell{display:grid!important;grid-template-columns:242px minmax(0,1fr)!important;gap:0!important;background:var(--studio-bg)!important;min-height:100dvh!important;max-width:none!important}
body.ts-studio .app-shell>.sidebar{width:242px!important;min-width:0!important;height:100dvh!important;position:sticky!important;top:0!important;padding:0!important;background:var(--studio-paper)!important;border-right:1px solid var(--studio-line)!important;box-shadow:none!important;color:var(--studio-ink)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;z-index:65!important}
body.ts-studio .studio-brandbar{display:flex!important;align-items:center!important;gap:6px!important;padding:23px 19px 21px!important;margin:0!important;border-bottom:1px solid var(--studio-line)!important}
body.ts-studio .studio-brandbar .brand{flex:1!important;min-width:0!important;display:flex!important;gap:11px!important;align-items:center!important;text-decoration:none!important}
body.ts-studio .studio-brandbar .brand-mark{width:41px!important;min-width:41px!important;height:41px!important;border-radius:13px!important;display:grid!important;place-items:center!important;background:linear-gradient(145deg,#426bfc,#253dc0)!important;box-shadow:0 6px 14px #345dec33!important;border:0!important}
body.ts-studio .studio-brandbar .brand-mark img{width:27px!important;height:27px!important;max-width:27px!important;max-height:27px!important;object-fit:contain}
body.ts-studio .studio-brandbar .brand-copy{display:block!important;min-width:0!important}
body.ts-studio .studio-brandbar .brand-copy b{display:block!important;white-space:nowrap!important;font-size:14px!important;letter-spacing:-.45px!important;color:var(--studio-ink)!important;font-weight:800!important;line-height:1.15!important}
body.ts-studio .studio-brandbar .brand-copy span{display:block!important;font-size:10px!important;letter-spacing:.15px!important;margin-top:4px!important;color:var(--studio-sub)!important}
body.ts-studio .sidebar-collapse{width:31px!important;height:31px!important;padding:6px!important;border:1px solid var(--studio-line)!important;border-radius:9px!important;background:var(--studio-tint)!important;color:var(--studio-sub)!important;display:grid!important;place-items:center!important;flex:none!important}
body.ts-studio .sidebar-collapse svg{width:17px!important;height:17px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important}
body.ts-studio .studio-space-label{display:flex!important;align-items:center!important;gap:9px!important;padding:11px 12px!important;margin:18px 12px 3px!important;background:var(--studio-tint)!important;border:1px solid var(--studio-line)!important;border-radius:11px!important;color:var(--studio-ink)!important;font-size:11px!important;font-weight:760!important;min-height:46px!important;line-height:1.4!important;overflow:hidden!important}
body.ts-studio .studio-space-label>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
body.ts-studio .studio-space-label small{display:none}
body.ts-studio .studio-space-dot{width:8px!important;height:8px!important;flex:0 0 8px!important;background:#25c89b!important;border-radius:50%!important;box-shadow:0 0 0 4px #2bc9a51b!important}
body.ts-studio .sidebar-scroll{display:flex!important;flex-direction:column!important;overflow:auto!important;overscroll-behavior:contain!important;padding:6px 12px 15px!important;flex:1!important;min-height:0!important;gap:8px!important;scrollbar-width:thin}
body.ts-studio .studio-nav-section{display:block!important;min-width:0!important}
body.ts-studio .studio-nav-section>.sidebar-label{color:var(--studio-sub)!important;font-size:10px!important;font-weight:760!important;letter-spacing:1px!important;padding:0!important;margin:20px 13px 9px!important}
body.ts-studio .studio-nav-section .side-nav{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;margin:0!important;padding:0!important}
body.ts-studio .side-nav .nav-item,body.ts-studio .logout-link{display:flex!important;align-items:center!important;gap:12px!important;min-height:40px!important;padding:9px 12px!important;margin:0!important;border-radius:10px!important;border:1px solid transparent!important;background:transparent!important;color:#607087!important;text-decoration:none!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important;line-height:1.2!important;white-space:nowrap!important}
[data-theme="dark"] body.ts-studio .side-nav .nav-item,[data-theme="dark"] body.ts-studio .logout-link{color:#abbbd2!important}
body.ts-studio .side-nav .nav-item:hover,body.ts-studio .logout-link:hover{background:var(--studio-tint)!important;color:var(--studio-ink)!important;border-color:var(--studio-line)!important}
body.ts-studio .side-nav .nav-item.active{background:var(--studio-wash)!important;color:var(--studio-accent)!important;font-weight:760!important;border-color:transparent!important;box-shadow:inset 3px 0 0 var(--studio-accent)!important}
body.ts-studio .side-nav .nav-icon,body.ts-studio .logout-link .nav-icon{display:grid!important;place-items:center!important;flex:0 0 19px!important;width:19px!important;height:19px!important;color:inherit!important}
body.ts-studio .side-nav .nav-icon svg,body.ts-studio .logout-link .nav-icon svg{display:block!important;width:18px!important;height:18px!important;stroke:currentColor!important;stroke-width:1.7!important;fill:none!important}
body.ts-studio .side-nav .nav-badge{margin-left:auto!important;display:grid!important;place-items:center!important;min-width:20px!important;height:20px!important;font-size:10px!important;font-style:normal!important;padding:0 5px!important;border-radius:20px!important;background:var(--studio-accent)!important;color:white!important}
body.ts-studio .sidebar .nav-disabled{opacity:.46!important;pointer-events:none!important}
body.ts-studio .studio-sidebar-footer{padding:12px!important;border-top:1px solid var(--studio-line)!important;margin-top:auto!important}
body.ts-studio .studio-sidebar-footer .cloud-status{display:flex!important;align-items:center!important;gap:11px!important;padding:12px 11px!important;margin:0 0 8px!important;border:1px solid var(--studio-line)!important;background:var(--studio-tint)!important;border-radius:12px!important;color:var(--studio-ink)!important}
body.ts-studio .cloud-status b{font-size:11px!important;font-weight:780!important;color:var(--studio-ink)!important}
body.ts-studio .cloud-status small{display:block!important;color:var(--studio-sub)!important;font-size:10px!important;margin-top:2px!important;max-width:160px!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
body.ts-studio .cloud-status .status-dot{background:#2dbd94!important;width:8px!important;height:8px!important;flex:0 0 8px!important}
body.ts-studio .cloud-status .status-dot.off{background:#acb7c7!important}
body.ts-studio .studio-sidebar-footer .logout-link{padding:9px 12px!important;color:var(--studio-sub)!important}
body.ts-studio .workspace{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:100%!important;background:var(--studio-bg)!important}
body.ts-studio .topbar{position:sticky!important;top:0!important;z-index:60!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:21px!important;width:100%!important;min-height:76px!important;height:76px!important;padding:0 30px!important;border-bottom:1px solid var(--studio-line)!important;background:var(--studio-paper)!important;box-shadow:none!important}
body.ts-studio .studio-topbar-left,body.ts-studio .studio-topbar-center,body.ts-studio .topbar-right{display:flex!important;align-items:center!important;min-width:0!important;flex:0 0 auto!important}
body.ts-studio .studio-topbar-left{min-width:145px!important;gap:12px!important}
body.ts-studio .studio-topbar-center{flex:1 1 auto!important;justify-content:center!important}
body.ts-studio .breadcrumb{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;flex:none!important}
body.ts-studio .breadcrumb-eyebrow{font-size:10px!important;color:var(--studio-sub)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:205px!important}
body.ts-studio .studio-slash{color:var(--studio-line-strong)!important;margin:0 4px!important}
body.ts-studio .breadcrumb strong{font-size:14px!important;font-weight:760!important;color:var(--studio-ink)!important;letter-spacing:-.3px!important}
body.ts-studio .studio-topbar-center .topbar-search{width:min(100%,430px)!important;min-width:0!important;max-width:430px!important;margin:0!important}
body.ts-studio .topbar-search form{position:relative!important;display:flex!important;align-items:center!important;min-width:0!important;width:100%!important}
body.ts-studio .topbar-search input{width:100%!important;height:38px!important;border-radius:10px!important;background:var(--studio-tint)!important;border:1px solid var(--studio-line)!important;padding:0 44px 0 37px!important;color:var(--studio-ink)!important;font-size:11px!important;box-shadow:none!important}
body.ts-studio .topbar-search input::placeholder{color:var(--studio-sub)!important;opacity:1!important}
body.ts-studio .studio-search-mark{position:absolute!important;z-index:2!important;top:6px!important;left:13px!important;color:var(--studio-sub)!important;font-size:24px!important;line-height:23px!important;pointer-events:none!important}
body.ts-studio .topbar-search kbd{position:absolute!important;right:10px!important;top:9px!important;font-size:10px!important;color:var(--studio-sub)!important;border:1px solid var(--studio-line-strong)!important;background:var(--studio-paper)!important;border-radius:5px!important;min-width:18px!important;line-height:16px!important;text-align:center!important;pointer-events:none!important}
body.ts-studio .topbar-right{gap:10px!important;flex:none!important;margin:0!important}
body.ts-studio .workspace-switcher,body.ts-studio .workspace-static{height:40px!important;min-height:40px!important;display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;max-width:220px!important;padding:5px 10px!important;background:var(--studio-tint)!important;border:1px solid var(--studio-line)!important;border-radius:10px!important;box-shadow:none!important}
body.ts-studio .workspace-switcher>span,body.ts-studio .workspace-static>span{font-size:9px!important;letter-spacing:.4px!important;color:var(--studio-sub)!important;text-transform:uppercase!important;font-weight:700!important}
body.ts-studio .workspace-switcher select{min-width:60px!important;max-width:138px!important;padding:4px!important;border:0!important;background:transparent!important;color:var(--studio-ink)!important;font-size:11px!important;font-weight:800!important;box-shadow:none!important;text-overflow:ellipsis!important}
body.ts-studio .workspace-static b{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:var(--studio-ink)!important}
body.ts-studio .notif-chip{height:40px!important;width:40px!important;min-width:40px!important;background:var(--studio-paper)!important;border:1px solid var(--studio-line)!important;color:var(--studio-sub)!important;border-radius:10px!important;display:grid!important;place-items:center!important;padding:9px!important}
body.ts-studio .notif-chip svg{width:18px!important;height:18px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.8!important}
body.ts-studio .notif-chip em{background:#e95568!important;color:white!important}
body.ts-studio .account-trigger{height:41px!important;min-height:41px!important;padding:4px 8px 4px 5px!important;display:flex!important;align-items:center!important;gap:9px!important;background:var(--studio-paper)!important;border:1px solid var(--studio-line)!important;border-radius:11px!important;box-shadow:none!important;color:var(--studio-ink)!important}
body.ts-studio .account-trigger .avatar{background:linear-gradient(145deg,#5f74eb,#3538ac)!important;width:31px!important;height:31px!important;border-radius:9px!important;color:#fff!important;display:grid!important;place-items:center!important;font-size:12px!important;font-weight:820!important}
body.ts-studio .account-trigger .user-copy{display:flex!important;flex-direction:column!important;gap:0!important;text-align:left!important}
body.ts-studio .account-trigger .user-copy b{color:var(--studio-ink)!important;font-weight:790!important;font-size:11px!important;max-width:100px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.ts-studio .account-trigger .user-copy span{color:var(--studio-sub)!important;font-size:9px!important}
body.ts-studio .account-chevron svg{width:13px!important;height:13px!important;stroke:var(--studio-sub)!important;fill:none!important;stroke-width:2!important}
body.ts-studio .account-dropdown{position:absolute!important;z-index:200!important;right:0!important;top:calc(100% + 9px)!important;width:310px!important;max-width:calc(100vw - 28px)!important;border-radius:15px!important;border:1px solid var(--studio-line)!important;background:var(--studio-menu)!important;box-shadow:0 16px 48px #14244227!important;color:var(--studio-ink)!important;overflow:hidden!important}
body.ts-studio .account-dropdown :is(.account-head,.account-section,.account-links){background:transparent!important}
body.ts-studio .account-dropdown [data-theme-value]{color:var(--studio-ink)!important}
body.ts-studio .content{width:100%!important;max-width:1660px!important;min-width:0!important;margin:0 auto!important;padding:29px 32px 72px!important;background:transparent!important}
body.ts-studio .studio-page-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin-bottom:25px!important;padding:0!important;min-width:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.ts-studio .studio-overline,body.ts-studio .studio-module-eyebrow{color:var(--studio-accent)!important;font-size:10px!important;font-weight:820!important;letter-spacing:1.15px!important;line-height:1.2!important;display:flex!important;gap:9px!important;align-items:center!important}
body.ts-studio .studio-overline .studio-mini-mark{display:inline-block!important;width:7px!important;height:7px!important;background:var(--studio-accent)!important;border-radius:2px!important;transform:rotate(45deg)!important}
body.ts-studio .studio-overline-separator{color:var(--studio-sub)!important}
body.ts-studio .studio-page-heading h1{font-size:29px!important;font-weight:820!important;line-height:1.14!important;letter-spacing:-1.1px!important;color:var(--studio-ink)!important;margin:10px 0 6px!important}
body.ts-studio .studio-page-heading p{font-size:12px!important;line-height:1.5!important;color:var(--studio-sub)!important;margin:0!important;max-width:725px!important}
body.ts-studio .studio-page-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:none!important}
body.ts-studio .studio-action-primary{display:inline-flex!important;gap:9px!important;align-items:center!important;justify-content:center!important;border-radius:10px!important;background:var(--studio-accent)!important;color:#fff!important;min-height:40px!important;padding:0 16px!important;text-decoration:none!important;font-weight:750!important;font-size:11px!important;border:1px solid transparent!important;box-shadow:0 5px 14px #3b62ee20!important;white-space:nowrap!important}
body.ts-studio .studio-action-primary:hover{background:var(--studio-accent-hi)!important;color:#fff!important;transform:translateY(-1px)!important}
body.ts-studio .studio-action-primary svg{width:16px!important;height:16px!important;stroke:white!important;fill:none!important;stroke-width:1.8!important}
body.ts-studio .content :is(.card,.panel,.stats-card,.stat-card,.content-card,.module-card,.provider-section,.table-card){background:var(--studio-paper)!important;border:1px solid var(--studio-line)!important;border-radius:15px!important;color:var(--studio-ink)!important;box-shadow:var(--studio-shadow)!important}
body.ts-studio .content :is(.section-heading,.section-head) h3{font-size:15px!important;color:var(--studio-ink)!important;letter-spacing:-.3px!important}
body.ts-studio .content :is(.eyebrow,.section-number){color:var(--studio-accent)!important;font-weight:780!important}
body.ts-studio .content :is(.muted,small,p){color:var(--studio-sub)}
body.ts-studio .content :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){max-width:100%;border:1px solid var(--studio-line-strong)!important;border-radius:9px!important;background:var(--studio-paper)!important;color:var(--studio-ink)!important;min-height:39px;padding:9px 12px;box-shadow:none!important;font-size:12px!important}
body.ts-studio .content :is(input,textarea)::placeholder{color:#9aa8bb!important;opacity:1}
body.ts-studio .content :is(input,select,textarea):focus{border-color:var(--studio-accent)!important;box-shadow:0 0 0 3px #466de91a!important}
body.ts-studio .content :is(.btn,button,input[type=submit]){border-radius:9px!important;font-size:11px!important;font-weight:730!important;min-height:36px!important;line-height:1.3!important;transition:background .15s,color .15s,border-color .15s,transform .12s!important}
body.ts-studio .content :is(.btn,button):not(:disabled):active{transform:translateY(1px)!important}
body.ts-studio .content :is(button,.btn):disabled{opacity:.47!important;cursor:not-allowed!important}
body.ts-studio .content .btn:not(.ghost):not(.secondary){background:var(--studio-accent)!important;color:#fff!important;border-color:var(--studio-accent)!important}
body.ts-studio .content :is(.btn.ghost,.btn.secondary){background:var(--studio-paper)!important;color:var(--studio-ink)!important;border:1px solid var(--studio-line-strong)!important;box-shadow:none!important}
body.ts-studio .content .btn.ghost:hover{background:var(--studio-wash)!important;color:var(--studio-accent)!important}
body.ts-studio .content :is(.pill,.badge){font-size:10px!important;letter-spacing:0!important;font-weight:720!important;border-radius:7px!important}
body.ts-studio .content table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;font-size:11px!important}
body.ts-studio .content table th{font-size:10px!important;font-weight:790!important;text-transform:uppercase!important;letter-spacing:.5px!important;padding:12px 13px!important;background:var(--studio-tint)!important;color:var(--studio-sub)!important;border-bottom:1px solid var(--studio-line)!important}
body.ts-studio .content table td{font-size:11.5px!important;padding:12px 13px!important;color:var(--studio-ink)!important;border-bottom:1px solid var(--studio-line)!important;vertical-align:middle!important}
body.ts-studio .content table tbody tr:hover td{background:var(--studio-tint)!important}
body.ts-studio .content .table-wrap{border-radius:11px!important;border:1px solid var(--studio-line)!important;overflow:auto!important;max-width:100%!important}
body.ts-studio .content .notice{border-radius:11px!important;padding:12px 16px!important;font-size:12px!important}
/* Rebuilt dashboard layout: glanceable command center, not a list of disconnected boxes */
body.ts-studio .workspace-summary-hero{padding:23px 28px!important;border-left:4px solid var(--studio-accent)!important;background:var(--studio-paper)!important}
body.ts-studio .studio-dashboard-overview{display:grid!important;gap:21px!important;min-width:0!important;margin-top:22px!important}
body.ts-studio .studio-dashboard-overview .dashboard-overview-heading{margin:0 0 11px!important}
body.ts-studio .studio-dashboard-overview .dashboard-overview-heading h3{color:var(--studio-ink)!important;font-size:15px!important;letter-spacing:-.3px!important}
body.ts-studio .dashboard-attention-tiles{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px!important}
body.ts-studio .dashboard-attention-tiles a{min-width:0!important;min-height:93px!important;padding:18px!important;background:var(--studio-paper)!important;color:var(--studio-ink)!important;border:1px solid var(--studio-line)!important;border-radius:13px!important;text-decoration:none!important;box-shadow:var(--studio-shadow)!important;transition:transform .15s,border-color .15s!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:8px!important}
body.ts-studio .dashboard-attention-tiles a:hover{border-color:var(--studio-accent)!important;transform:translateY(-2px)!important}
body.ts-studio .dashboard-attention-tiles a b{color:var(--studio-ink)!important;font-size:29px!important;line-height:1!important;letter-spacing:-1px!important}
body.ts-studio .dashboard-attention-tiles a span{font-size:11px!important;color:var(--studio-sub)!important}
body.ts-studio .stats-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:11px!important}
body.ts-studio .stats-grid .stat-card{min-width:0!important;padding:18px!important;border-radius:13px!important;border:1px solid var(--studio-line)!important;background:var(--studio-paper)!important}
body.ts-studio .stat-number{font-size:29px!important;line-height:1.2!important;letter-spacing:-1px!important;color:var(--studio-ink)!important;font-weight:820!important}
body.ts-studio .stat-label{color:var(--studio-sub)!important;font-size:11px!important}
body.ts-studio .studio-dashboard-detail{margin-top:20px!important;gap:15px!important}
body.ts-studio .studio-dashboard-detail>.card{min-width:0!important;padding:21px!important}
/* Inbox: three explicit functional panes + modern conversation density */
body.ts-studio.page-inbox .content{max-width:none!important;padding:14px 17px 28px!important;min-height:0!important}
body.ts-studio.page-inbox .studio-page-heading{margin:6px 7px 14px!important}
body.ts-studio.page-inbox .studio-page-heading h1{font-size:22px!important}
body.ts-studio.page-inbox .studio-inbox-account{border:1px solid var(--studio-line)!important;border-radius:13px!important;background:var(--studio-paper)!important;padding:11px 16px!important;margin:0 0 12px!important;box-shadow:var(--studio-shadow)!important;color:var(--studio-ink)!important}
body.ts-studio.page-inbox .studio-inbox-account .wa-account-photo{width:38px!important;height:38px!important;border-radius:12px!important;background:var(--studio-wash)!important;color:var(--studio-accent)!important}
body.ts-studio.page-inbox .studio-inbox-account .inbox-account-copy b{color:var(--studio-ink)!important;font-size:12px!important}
body.ts-studio.page-inbox .studio-inbox-account :is(small,.eyebrow){font-size:10px!important;color:var(--studio-sub)!important}
body.ts-studio.page-inbox .studio-inbox{border:1px solid var(--studio-line)!important;border-radius:14px!important;overflow:hidden!important;background:var(--studio-paper)!important;box-shadow:var(--studio-shadow)!important;min-height:clamp(560px,calc(100dvh - 227px),920px)!important;height:calc(100dvh - 225px)!important;max-height:none!important}
body.ts-studio.page-inbox .studio-inbox .inbox-v2-rail{background:var(--studio-tint)!important;border-right:1px solid var(--studio-line)!important;color:var(--studio-ink)!important;min-width:0!important}
body.ts-studio.page-inbox .studio-inbox .inbox-v2-list-panel{background:var(--studio-paper)!important;border-right:1px solid var(--studio-line)!important;color:var(--studio-ink)!important;min-width:0!important}
body.ts-studio.page-inbox .studio-inbox .inbox-v2-main{background:var(--studio-paper)!important;color:var(--studio-ink)!important;min-width:0!important}
body.ts-studio.page-inbox .studio-inbox .inbox-rail-head h2,body.ts-studio.page-inbox .studio-inbox .inbox-list-head h2{color:var(--studio-ink)!important;font-weight:790!important;letter-spacing:-.3px!important}
body.ts-studio.page-inbox .studio-inbox :is(.inbox-rail-head small,.inbox-list-head span,.inbox-row-preview,.inbox-row-meta){color:var(--studio-sub)!important}
body.ts-studio.page-inbox .studio-inbox .inbox-views a{border-radius:8px!important;color:var(--studio-sub)!important}
body.ts-studio.page-inbox .studio-inbox .inbox-views a.active{background:var(--studio-wash)!important;color:var(--studio-accent)!important}
body.ts-studio.page-inbox .studio-inbox .inbox-conversation{background:var(--studio-paper)!important;border-bottom:1px solid var(--studio-line)!important;border-radius:0!important;transition:background .14s!important}
body.ts-studio.page-inbox .studio-inbox .inbox-conversation:hover{background:var(--studio-tint)!important}
body.ts-studio.page-inbox .studio-inbox .inbox-conversation.active{background:var(--studio-wash)!important;border-left:3px solid var(--studio-accent)!important}
body.ts-studio.page-inbox .studio-inbox .inbox-row-title b{color:var(--studio-ink)!important;font-weight:750!important}
body.ts-studio.page-inbox .studio-inbox :is(.inbox-avatar,.conv-avatar){border-radius:12px!important;background:#e7ecff!important;color:#344de0!important}
body.ts-studio.page-inbox .studio-inbox :is(.inbox-chat-workspace,.inbox-chat-layout){min-width:0!important}
body.ts-studio.page-inbox .studio-inbox .inbox-chat-header{background:var(--studio-paper)!important;border-bottom:1px solid var(--studio-line)!important}
body.ts-studio.page-inbox .studio-inbox .inbox-composer{background:var(--studio-paper)!important;border-top:1px solid var(--studio-line)!important}
body.ts-studio.page-inbox .studio-inbox :is(button,.btn,input,select,textarea){font-size:11px!important}
/* Broadcast: two-column creation studio, sticky visual review */
body.ts-studio .studio-broadcast .bc-title{display:flex!important;justify-content:space-between!important;gap:14px!important;align-items:center!important;margin:0 0 16px!important;padding:0!important}
body.ts-studio .studio-broadcast .bc-title h2{font-size:20px!important;letter-spacing:-.55px!important;font-weight:830!important;color:var(--studio-ink)!important;margin:8px 0 4px!important}
body.ts-studio .studio-broadcast .bc-title p{font-size:11px!important;color:var(--studio-sub)!important;margin:0!important}
body.ts-studio .studio-broadcast .bc-link{display:inline-flex!important;align-items:center!important;color:var(--studio-accent)!important;text-decoration:none!important;font-weight:760!important;font-size:11px!important;white-space:nowrap!important}
body.ts-studio .studio-flow-steps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:0 0 14px!important}
body.ts-studio .studio-flow-steps span{display:flex!important;align-items:center!important;gap:9px!important;min-height:38px!important;border:1px solid var(--studio-line)!important;border-radius:10px!important;padding:8px 12px!important;background:var(--studio-paper)!important;color:var(--studio-sub)!important;font-size:11px!important;font-weight:680!important}
body.ts-studio .studio-flow-steps b{display:grid!important;place-items:center!important;flex:0 0 21px!important;width:21px!important;height:21px!important;border-radius:6px!important;background:var(--studio-wash)!important;color:var(--studio-accent)!important;font-size:10px!important}
body.ts-studio .studio-broadcast .bc-shell{border-radius:15px!important;border:1px solid var(--studio-line)!important;background:var(--studio-paper)!important;box-shadow:var(--studio-shadow)!important;overflow:hidden!important}
html body.ts-studio .studio-broadcast .bc-grid{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(300px,.78fr)!important;gap:0!important;padding:0!important;align-items:stretch!important}
html body.ts-studio .studio-broadcast .bc-grid>.bc-fields{background:var(--studio-paper)!important;padding:23px 26px!important;min-width:0!important}
html body.ts-studio .studio-broadcast .bc-grid>.bc-preview{background:var(--studio-tint)!important;border:0!important;border-left:1px solid var(--studio-line)!important;padding:23px!important;min-width:0!important;position:relative!important}
body.ts-studio .studio-broadcast .bc-fields label{font-size:11px!important;font-weight:730!important;color:var(--studio-ink)!important}
body.ts-studio .studio-broadcast .studio-required{font-weight:530!important;font-size:10px!important;color:var(--studio-amber)!important}
body.ts-studio .studio-broadcast .bc-fields input,body.ts-studio .studio-broadcast .bc-fields select{width:100%!important;background:var(--studio-paper)!important;color:var(--studio-ink)!important;min-height:42px!important;border:1px solid var(--studio-line-strong)!important;border-radius:10px!important}
body.ts-studio .studio-broadcast .bc-preview-title{font-weight:770!important;color:var(--studio-ink)!important}
body.ts-studio .studio-broadcast .bc-phone{background:#e7edea!important;border-radius:17px!important;box-shadow:0 13px 33px #14243b13!important;border:1px solid #cedbd7!important;max-width:355px!important;margin:12px auto!important;overflow:hidden!important}
body.ts-studio .studio-broadcast .bc-bottom{padding:16px 23px!important;gap:14px!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;border-top:1px solid var(--studio-line)!important;background:var(--studio-paper)!important}
body.ts-studio .studio-broadcast .bc-recipient{background:transparent!important;color:var(--studio-ink)!important}
body.ts-studio .studio-broadcast .bc-actions{display:flex!important;gap:8px!important;align-items:center!important}
body.ts-studio .studio-broadcast .bc-actions #bc-send{background:var(--studio-accent)!important;color:white!important;border-color:var(--studio-accent)!important;box-shadow:none!important;padding:10px 18px!important}
body.ts-studio .studio-broadcast .bc-worker-warning{border-radius:11px!important;background:#fff8eb!important;border:1px solid #f5d9a9!important;color:#835a24!important;padding:13px 15px!important;margin:0 0 13px!important}
/* Contacts: deliberate toolbar, account scope, search, data table */
body.ts-studio .studio-module-intro{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:19px 22px!important;margin:0 0 15px!important;background:var(--studio-paper)!important;border:1px solid var(--studio-line)!important;border-radius:14px!important;box-shadow:var(--studio-shadow)!important}
body.ts-studio .studio-module-intro strong{display:block!important;margin-top:8px!important;color:var(--studio-ink)!important;font-size:15px!important;letter-spacing:-.3px!important}
body.ts-studio .studio-module-intro p{font-size:11px!important;color:var(--studio-sub)!important;margin:3px 0 0!important}
body.ts-studio .studio-inline-link{flex:none!important;color:var(--studio-accent)!important;text-decoration:none!important;font-weight:770!important;font-size:11px!important}
body.ts-studio .account-scope-card{padding:15px 20px!important;margin-bottom:12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px!important}
body.ts-studio .account-scope-card b{font-size:12px!important;color:var(--studio-ink)!important;display:block!important}
body.ts-studio .account-scope-card small{font-size:10px!important;color:var(--studio-sub)!important}
body.ts-studio .studio-contacts-toolbar{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;margin:0 0 12px!important;padding:12px!important;border:1px solid var(--studio-line)!important;border-radius:12px!important;background:var(--studio-paper)!important}
body.ts-studio .studio-contacts-toolbar>div{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important}
body.ts-studio .contact-search-shell{background:var(--studio-paper)!important;border:1px solid var(--studio-line)!important;border-radius:12px!important;margin:0 0 14px!important;padding:15px!important}
/* AI console: colored hero, horizontal tabs, real summary-driven accordion */
body.ts-studio .studio-ai-hero{background:linear-gradient(123deg,#233c9f,#4b65d5 80%)!important;color:#fff!important;border:0!important;border-radius:16px!important;padding:27px 30px!important;box-shadow:0 9px 23px #3055ae23!important;display:flex!important;justify-content:space-between!important;gap:20px!important}
body.ts-studio .studio-ai-hero :is(h1,h2,b,.eyebrow){color:#fff!important}
body.ts-studio .studio-ai-hero p{color:#e2eaff!important}
body.ts-studio .studio-ai-hero .ai-console-mark{display:grid!important;place-items:center!important;background:#ffffff27!important;border:1px solid #ffffff4d!important;border-radius:12px!important;color:white!important;min-width:47px!important;height:47px!important;font-size:14px!important;font-weight:850!important}
body.ts-studio .studio-ai-hero .ai-console-status>span{background:#ffffff21!important;border:1px solid #ffffff38!important;border-radius:11px!important;color:#e9edff!important}
body.ts-studio .studio-ai-tabs{display:flex!important;align-items:center!important;gap:6px!important;overflow-x:auto!important;white-space:nowrap!important;scrollbar-width:thin!important;padding:6px!important;margin:15px 0!important;border:1px solid var(--studio-line)!important;border-radius:12px!important;background:var(--studio-paper)!important}
body.ts-studio .studio-ai-tabs a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:7px 14px!important;border-radius:8px!important;color:var(--studio-sub)!important;text-decoration:none!important;font-size:11px!important;font-weight:720!important;white-space:nowrap!important}
body.ts-studio .studio-ai-tabs a.active{background:var(--studio-wash)!important;color:var(--studio-accent)!important}
body.ts-studio .studio-ai-numbers{background:var(--studio-paper)!important;border:1px solid var(--studio-line)!important;border-radius:15px!important;padding:20px!important}
body.ts-studio .ai-bot-accordion{border:1px solid var(--studio-line)!important;border-radius:12px!important;background:var(--studio-paper)!important;overflow:hidden!important;margin:9px 0!important;color:var(--studio-ink)!important}
body.ts-studio .ai-bot-accordion[open]{border-color:var(--studio-accent)!important;box-shadow:0 0 0 3px #3868d70c!important}
body.ts-studio .ai-bot-summary{padding:14px 16px!important;cursor:pointer!important;min-height:65px!important;color:var(--studio-ink)!important;list-style:none!important}
body.ts-studio .ai-bot-summary-main .ai-bot-name{font-weight:770!important;color:var(--studio-ink)!important}
body.ts-studio .ai-bot-summary-main .ai-bot-meta{color:var(--studio-sub)!important;font-size:11px!important}
body.ts-studio .ai-bot-card{border-top:1px solid var(--studio-line)!important;padding:18px!important}
/* Modules, health, device and template listing share the new surface discipline */
body.ts-studio .studio-health-summary{padding:20px 24px!important;border:1px solid var(--studio-line)!important;border-radius:14px!important;background:var(--studio-paper)!important;box-shadow:var(--studio-shadow)!important;display:flex!important;justify-content:space-between!important;gap:13px!important;align-items:center!important}
body.ts-studio .studio-health-summary b{color:var(--studio-ink)!important;font-size:17px!important}
body.ts-studio .studio-device-list{background:var(--studio-paper)!important;border:1px solid var(--studio-line)!important;border-radius:14px!important;padding:20px!important}
body.ts-studio .health-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
body.ts-studio .health-card{border:1px solid var(--studio-line)!important;border-radius:10px!important;background:var(--studio-paper)!important;padding:14px!important;min-width:0!important;box-shadow:none!important}
body.ts-studio .health-card.ok{border-left:3px solid var(--studio-good)!important}
body.ts-studio .health-card.bad{border-left:3px solid #ef687e!important}
body.ts-studio .health-card b{color:var(--studio-ink)!important}
body.ts-studio .health-card small{color:var(--studio-sub)!important}
/* Guarantee native overlays, details and dropdowns win over decorative styling */
body.ts-studio :is(.modal,[role="dialog"],.account-dropdown,.device-more-menu,.v2-palette-dialog){max-width:calc(100vw - 26px)!important}
body.ts-studio :is(details,summary){scroll-margin-top:95px}
body.ts-studio .content section,body.ts-studio .content article{min-width:0}
body.ts-studio :is(.table-wrap,.table-responsive){overscroll-behavior-x:contain}
body.ts-studio .content :is(input[type=checkbox],input[type=radio]){accent-color:var(--studio-accent)!important}
body.ts-studio .v2-command-open{border:1px solid var(--studio-line)!important;background:var(--studio-paper)!important;color:var(--studio-sub)!important;border-radius:10px!important;min-height:39px!important;box-shadow:none!important}
body.ts-studio .v2-palette[hidden]{display:none!important}
/* Desktop collapse respects existing JS and localStorage. */
@media(min-width:981px){
 body.ts-studio.sidebar-collapsed .app-shell{grid-template-columns:72px minmax(0,1fr)!important}
 body.ts-studio.sidebar-collapsed .app-shell>.sidebar{width:72px!important;max-width:72px!important}
 body.ts-studio.sidebar-collapsed .sidebar .studio-brandbar{padding:18px 13px!important;display:flex!important;justify-content:center!important}
 body.ts-studio.sidebar-collapsed .sidebar .brand{flex:none!important}
 body.ts-studio.sidebar-collapsed .sidebar .brand-mark{width:39px!important;height:39px!important;min-width:39px!important}
 body.ts-studio.sidebar-collapsed .sidebar .brand-copy,body.ts-studio.sidebar-collapsed .sidebar .studio-space-label,body.ts-studio.sidebar-collapsed .sidebar .sidebar-label,body.ts-studio.sidebar-collapsed .sidebar .cloud-status,body.ts-studio.sidebar-collapsed .sidebar .nav-label,body.ts-studio.sidebar-collapsed .sidebar .nav-badge{display:none!important}
 body.ts-studio.sidebar-collapsed .sidebar .sidebar-collapse{position:static!important;margin:8px auto 0!important}
 body.ts-studio.sidebar-collapsed .sidebar .sidebar-scroll{padding:10px!important}
 body.ts-studio.sidebar-collapsed .sidebar .side-nav{gap:6px!important}
 body.ts-studio.sidebar-collapsed .sidebar .side-nav .nav-item,body.ts-studio.sidebar-collapsed .sidebar .logout-link{justify-content:center!important;padding:9px!important;min-width:42px!important}
 body.ts-studio.sidebar-collapsed .sidebar .studio-sidebar-footer{padding:12px 10px!important}
}
@media(max-width:1370px){
 body.ts-studio .topbar{gap:11px!important;padding:0 22px!important}
 body.ts-studio .topbar-search input{font-size:10px!important}
 body.ts-studio .workspace-switcher>span,body.ts-studio .workspace-static>span{display:none!important}
 body.ts-studio .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:1120px){
 body.ts-studio .studio-topbar-center{display:none!important}
 body.ts-studio .topbar{justify-content:space-between!important}
 body.ts-studio .content{padding:22px 20px 52px!important}
 body.ts-studio .dashboard-attention-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.ts-studio .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.ts-studio .studio-broadcast .bc-grid{grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr)!important}
}
@media(max-width:980px){
 body.ts-studio .app-shell{display:block!important}
 body.ts-studio .app-shell>.sidebar{position:fixed!important;inset:0 auto 0 0!important;transform:translateX(-103%)!important;transition:transform .2s ease!important;width:min(290px,88vw)!important;max-width:min(290px,88vw)!important;height:100dvh!important;z-index:120!important}
 body.ts-studio.sidebar-open .app-shell>.sidebar,body.ts-studio.mobile-nav-open .app-shell>.sidebar{transform:translateX(0)!important}
 body.ts-studio .menu-toggle{display:grid!important;place-items:center!important;width:39px!important;height:39px!important;min-height:39px!important;border:1px solid var(--studio-line)!important;background:var(--studio-paper)!important;color:var(--studio-ink)!important;border-radius:9px!important;padding:9px!important}
 body.ts-studio .menu-toggle svg{width:18px!important;height:18px!important;stroke:currentColor!important;fill:none!important;stroke-width:2!important}
 body.ts-studio .studio-topbar-left{gap:12px!important}
 body.ts-studio .topbar{min-height:66px!important;height:66px!important;padding:0 16px!important}
 body.ts-studio.page-inbox .content{padding:10px!important}
}
@media(max-width:780px){
 body.ts-studio .studio-page-heading{align-items:flex-start!important;flex-wrap:wrap!important}
 body.ts-studio .studio-page-heading h1{font-size:25px!important}
 body.ts-studio .studio-flow-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.ts-studio .studio-broadcast .bc-grid{grid-template-columns:minmax(0,1fr)!important}
 html body.ts-studio .studio-broadcast .bc-grid>.bc-preview{border-left:0!important;border-top:1px solid var(--studio-line)!important}
 body.ts-studio .dashboard-attention-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.ts-studio .health-grid{grid-template-columns:minmax(0,1fr)!important}
 body.ts-studio .studio-ai-hero{flex-direction:column!important;padding:21px!important}
 body.ts-studio .studio-broadcast .bc-bottom{flex-wrap:wrap!important}
 body.ts-studio .studio-contacts-toolbar{align-items:stretch!important;flex-direction:column!important}
 body.ts-studio .studio-module-intro{align-items:flex-start!important}
 body.ts-studio.page-inbox .studio-inbox{min-height:calc(100dvh - 145px)!important;height:auto!important}
}
@media(max-width:560px){
 body.ts-studio .topbar{gap:7px!important;padding:0 12px!important}
 body.ts-studio .breadcrumb-eyebrow{max-width:140px!important}
 body.ts-studio .breadcrumb strong{font-size:12px!important}
 body.ts-studio .account-trigger{padding:4px!important;border:0!important}
 body.ts-studio .account-trigger :is(.user-copy,.account-chevron){display:none!important}
 body.ts-studio .workspace-switcher,body.ts-studio .workspace-static{display:none!important}
 body.ts-studio .content{padding:19px 12px 46px!important}
 body.ts-studio .studio-page-heading{gap:12px!important;margin-bottom:19px!important}
 body.ts-studio .studio-page-heading h1{font-size:24px!important}
 body.ts-studio .studio-page-heading p{font-size:11px!important}
 body.ts-studio .studio-page-actions{width:100%!important}
 body.ts-studio .studio-action-primary{flex:1!important}
 body.ts-studio .dashboard-attention-tiles{gap:9px!important}
 body.ts-studio .dashboard-attention-tiles a{padding:14px!important;min-height:91px!important}
 body.ts-studio .dashboard-attention-tiles a b{font-size:24px!important}
 body.ts-studio .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.ts-studio .stats-grid .stat-card{padding:13px!important}
 body.ts-studio .studio-flow-steps span{padding:7px 9px!important;font-size:10px!important}
 html body.ts-studio .studio-broadcast .bc-grid>.bc-fields{padding:16px!important}
 html body.ts-studio .studio-broadcast .bc-grid>.bc-preview{padding:16px!important}
 body.ts-studio .studio-broadcast .bc-bottom{padding:13px!important}
 body.ts-studio .studio-broadcast .bc-actions{width:100%!important}
 body.ts-studio .studio-broadcast .bc-actions button{flex:1!important}
 body.ts-studio .studio-module-intro{padding:14px!important;flex-direction:column!important;gap:9px!important}
 body.ts-studio .studio-health-summary{padding:16px!important}
}
@media(prefers-reduced-motion:reduce){body.ts-studio *,body.ts-studio *:before,body.ts-studio *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Compatibility: command palette is a topbar action rather than being inserted into a nested search parent. */
body.ts-studio .topbar-right .v2-command-open{min-height:39px!important;padding:7px 10px!important;font-size:10px!important;display:inline-flex!important;gap:6px!important;align-items:center!important;white-space:nowrap!important;flex:none!important}
body.ts-studio .topbar-right .v2-command-open kbd{font-size:9px!important;border:1px solid var(--studio-line)!important;background:var(--studio-tint)!important;border-radius:5px!important;padding:3px 5px!important;color:var(--studio-sub)!important}
@media(max-width:1200px){body.ts-studio .topbar-right .v2-command-open span,body.ts-studio .topbar-right .v2-command-open kbd{display:none!important}}
@media(max-width:560px){body.ts-studio .topbar-right .v2-command-open{width:35px!important;justify-content:center!important;padding:6px!important}}
/* Section hierarchy: replace legacy grid positioning with deliberate alignment. */
body.ts-studio .workspace-summary-hero{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:12px!important}
body.ts-studio .workspace-summary-hero>.eyebrow{margin:0!important;font-size:10px!important;letter-spacing:.8px!important}
body.ts-studio .workspace-summary-hero>h2{margin:0!important;font-size:22px!important;letter-spacing:-.65px!important;line-height:1.25!important;text-align:left!important;max-width:720px!important}
body.ts-studio .workspace-summary-hero>p{margin:0!important;color:var(--studio-sub)!important;font-size:12px!important;text-align:left!important}
body.ts-studio .workspace-summary-hero>.actions{margin:7px 0 0!important;display:flex!important;gap:9px!important;align-items:center!important;justify-content:flex-start!important}
body.ts-studio .dashboard-overview-heading{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}
body.ts-studio .dashboard-overview-heading>.eyebrow{margin:0!important}
body.ts-studio .dashboard-overview-heading>h3{margin:0!important;font-size:15px!important}
body.ts-studio .dashboard-overview-heading>p{margin:0 0 0 auto!important}
body.ts-studio .studio-brandbar{padding-left:14px!important;padding-right:13px!important}
body.ts-studio .studio-brandbar .brand{max-width:none!important;width:auto!important}
body.ts-studio .studio-brandbar .brand-copy{max-width:none!important;width:auto!important;flex:1!important}


/* TS WhatsApp v13.0.1 — Alignment & consistency polish */
body.ts-studio .topbar :is(button,a,select,input),
body.ts-studio .studio-page-actions :is(a,button),
body.ts-studio .studio-contacts-toolbar :is(a,button,select,input),
body.ts-studio .studio-broadcast :is(a,button,select,input,textarea),
body.ts-studio .content :is(.btn,.btn-primary,.btn-secondary,.button,.action-button){vertical-align:middle!important}

/* universal control rhythm */
body.ts-studio .content :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea),
body.ts-studio .topbar-right :is(select,input),
body.ts-studio .workspace-switcher select,
body.ts-studio .workspace-static,
body.ts-studio .notif-chip,
body.ts-studio .menu-toggle,
body.ts-studio .account-trigger,
body.ts-studio .v2-command-open{border-radius:12px!important}
body.ts-studio .content :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select),
body.ts-studio .workspace-switcher select,
body.ts-studio .workspace-static,
body.ts-studio .notif-chip,
body.ts-studio .menu-toggle,
body.ts-studio .account-trigger,
body.ts-studio .v2-command-open{min-height:42px!important;height:42px!important}
body.ts-studio .content textarea{min-height:92px!important;line-height:1.55!important}
body.ts-studio :is(input,select,textarea)::placeholder{color:color-mix(in srgb,var(--studio-sub) 85%, transparent)!important}

/* fix icon/text centering */
body.ts-studio .side-nav .nav-item,
body.ts-studio .logout-link,
body.ts-studio .account-trigger,
body.ts-studio .notif-chip,
body.ts-studio .menu-toggle,
body.ts-studio .sidebar-collapse,
body.ts-studio .studio-action-primary,
body.ts-studio .studio-inline-link,
body.ts-studio .content :is(.btn,.btn-primary,.btn-secondary,.button,.action-button){display:inline-flex!important;align-items:center!important}
body.ts-studio .side-nav .nav-icon,
body.ts-studio .logout-link .nav-icon{align-self:center!important;margin-top:0!important}
body.ts-studio .side-nav .nav-label,
body.ts-studio .logout-link .nav-label{display:block!important;line-height:1.2!important;transform:none!important}
body.ts-studio .side-nav .nav-badge{align-self:center!important}
body.ts-studio .side-nav .nav-item>svg,
body.ts-studio .logout-link>svg,
body.ts-studio .studio-action-primary svg,
body.ts-studio .notif-chip svg,
body.ts-studio .menu-toggle svg,
body.ts-studio .sidebar-collapse svg,
body.ts-studio .account-trigger svg,
body.ts-studio .content .btn svg{vertical-align:middle!important;flex:none!important}

/* sidebar tighter, no skewed section labels */
body.ts-studio .studio-brandbar{padding:20px 18px!important}
body.ts-studio .studio-brandbar .brand-copy b{letter-spacing:-.2px!important}
body.ts-studio .studio-space-label{margin:16px 12px 5px!important;padding:12px!important;min-height:48px!important}
body.ts-studio .studio-nav-section>.sidebar-label{margin:18px 12px 8px!important;font-size:10px!important;line-height:1!important}
body.ts-studio .side-nav .nav-item,
body.ts-studio .logout-link{min-height:42px!important;padding:10px 12px!important;border-radius:11px!important}
body.ts-studio .studio-sidebar-footer{padding:12px!important}
body.ts-studio .studio-sidebar-footer .cloud-status{min-height:56px!important;align-items:flex-start!important}
body.ts-studio .cloud-status div{min-width:0!important}
body.ts-studio .cloud-status small{white-space:normal!important;line-height:1.35!important;max-width:none!important}

/* topbar discipline */
body.ts-studio .topbar{min-height:72px!important;height:72px!important;padding:0 22px!important}
body.ts-studio .breadcrumb{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:2px!important;min-width:0!important}
body.ts-studio .breadcrumb strong{line-height:1.15!important;letter-spacing:-.25px!important}
body.ts-studio .breadcrumb-eyebrow{line-height:1.1!important}
body.ts-studio .topbar-search form{display:flex!important;align-items:center!important;gap:10px!important;min-height:42px!important;padding:0 12px!important}
body.ts-studio .topbar-search input{height:100%!important;min-height:40px!important;padding:0!important;border:0!important;background:transparent!important}
body.ts-studio .studio-search-mark{display:grid!important;place-items:center!important;align-self:center!important;line-height:1!important;opacity:.72!important}
body.ts-studio .topbar-search kbd{align-self:center!important;line-height:1!important;margin-left:auto!important}
body.ts-studio .workspace-switcher,
body.ts-studio .workspace-static,
body.ts-studio .account-menu{align-self:center!important}
body.ts-studio .workspace-switcher{min-height:42px!important;padding:4px 10px!important;gap:8px!important}
body.ts-studio .workspace-switcher>span,
body.ts-studio .workspace-static>span{line-height:1!important}
body.ts-studio .workspace-switcher select{padding:0 28px 0 0!important;background-position:right 6px center!important}
body.ts-studio .workspace-static b{line-height:1.2!important}
body.ts-studio .notif-chip{justify-content:center!important;width:42px!important;min-width:42px!important;height:42px!important;padding:0!important}
body.ts-studio .account-trigger{gap:10px!important;min-height:46px!important;padding:6px 12px 6px 6px!important}
body.ts-studio .account-trigger .avatar{align-self:center!important}
body.ts-studio .account-trigger .user-copy{display:flex!important;flex-direction:column!important;justify-content:center!important;line-height:1.2!important}
body.ts-studio .account-trigger .account-chevron{display:grid!important;place-items:center!important;align-self:center!important}

/* page heading alignment */
body.ts-studio .studio-page-heading{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px!important;margin-bottom:18px!important}
body.ts-studio .studio-page-heading .page-heading-main{min-width:0!important}
body.ts-studio .studio-page-heading h1{margin:8px 0 4px!important;line-height:1.05!important;letter-spacing:-.6px!important}
body.ts-studio .studio-page-heading p{margin:0!important;max-width:780px!important}
body.ts-studio .studio-overline{display:flex!important;align-items:center!important;gap:8px!important;line-height:1!important;flex-wrap:wrap!important}
body.ts-studio .studio-mini-mark{flex:none!important}

/* cards, sections, collapse icons */
body.ts-studio .surface-card,
body.ts-studio .studio-panel,
body.ts-studio .dashboard-card,
body.ts-studio .studio-module-intro,
body.ts-studio .studio-health-summary,
body.ts-studio .studio-device-list,
body.ts-studio .contact-search-shell,
body.ts-studio .account-scope-card,
body.ts-studio .studio-contacts-toolbar{border-radius:15px!important}
body.ts-studio .content :is(.card-header,.section-header,.module-header,.accordion-head){display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
body.ts-studio .content :is(.card-header,.section-header,.module-header,.accordion-head) :is(h2,h3,h4,strong){margin:0!important;line-height:1.2!important}
body.ts-studio .content :is(.collapse-toggle,[data-collapse-toggle],.section-minimize,.accordion-toggle){display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border-radius:8px!important;line-height:1!important}

/* tables and toolbars */
body.ts-studio .table-wrap,
body.ts-studio .table-responsive{border-radius:14px!important;overflow:auto!important}
body.ts-studio table{border-collapse:separate!important;border-spacing:0!important}
body.ts-studio th,body.ts-studio td{vertical-align:middle!important}
body.ts-studio .studio-contacts-toolbar,
body.ts-studio .bulk-toolbar,
body.ts-studio .list-toolbar{min-height:58px!important}
body.ts-studio .studio-contacts-toolbar>div:last-child{justify-content:flex-end!important}

/* inbox exact polish */
body.ts-studio .studio-inbox-shell{gap:0!important}
body.ts-studio .studio-inbox-account-bar{padding:14px 18px!important}
body.ts-studio .studio-inbox-account-bar :is(b,strong,h3){line-height:1.2!important}
body.ts-studio .studio-inbox-left,
body.ts-studio .studio-inbox-middle,
body.ts-studio .studio-inbox-right{min-height:620px!important}
body.ts-studio .studio-inbox-left .list-search,
body.ts-studio .studio-inbox-middle .list-search{display:flex!important;align-items:center!important;gap:8px!important}
body.ts-studio .studio-inbox-left .list-search input,
body.ts-studio .studio-inbox-middle .list-search input{min-height:40px!important;height:40px!important}
body.ts-studio .studio-inbox-filter,
body.ts-studio .studio-conv-filter{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:10px 12px!important}
body.ts-studio .studio-conv-empty,
body.ts-studio .studio-chat-empty{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important}
body.ts-studio .studio-chat-empty p{max-width:360px!important;margin:6px auto 0!important}
body.ts-studio .studio-chat-shortcuts{display:flex!important;justify-content:center!important;gap:8px!important;flex-wrap:wrap!important}

/* broadcast exact polish */
body.ts-studio .studio-broadcast .bc-stepper{align-items:stretch!important}
body.ts-studio .studio-broadcast .bc-step{display:flex!important;align-items:center!important;gap:10px!important;min-height:52px!important}
body.ts-studio .studio-broadcast .bc-step-index{display:grid!important;place-items:center!important;flex:none!important}
body.ts-studio .studio-broadcast .bc-body{align-items:start!important}
body.ts-studio .studio-broadcast .bc-field label{display:block!important;margin-bottom:6px!important;line-height:1.2!important}
body.ts-studio .studio-broadcast .bc-preview-card{position:sticky!important;top:92px!important}
body.ts-studio .studio-broadcast .bc-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}
body.ts-studio .studio-broadcast .bc-actions{margin-left:auto!important;flex-wrap:wrap!important;justify-content:flex-end!important}

/* contacts exact polish */
body.ts-studio .contact-search-shell input{min-height:38px!important;height:38px!important}
body.ts-studio .account-scope-card{min-height:76px!important}

/* AI & forms */
body.ts-studio .studio-ai-tabs{padding:6px!important;gap:8px!important}
body.ts-studio .studio-ai-tabs a{min-height:38px!important}
body.ts-studio .ai-bot-summary{display:flex!important;align-items:center!important}
body.ts-studio .theme-switch{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
body.ts-studio .theme-switch button{min-height:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important}

/* safer mobile behavior */
@media (max-width: 980px){
  body.ts-studio .studio-page-heading{align-items:flex-start!important;flex-direction:column!important}
  body.ts-studio .studio-page-actions{width:100%!important}
  body.ts-studio .studio-page-actions :is(a,button){width:100%!important;justify-content:center!important}
  body.ts-studio .studio-broadcast .bc-body{grid-template-columns:1fr!important}
  body.ts-studio .studio-broadcast .bc-preview-card{position:static!important}
  body.ts-studio .studio-inbox-left,
  body.ts-studio .studio-inbox-middle,
  body.ts-studio .studio-inbox-right{min-height:auto!important}
}
@media (max-width: 640px){
  body.ts-studio .topbar{padding:0 14px!important;min-height:66px!important;height:66px!important}
  body.ts-studio .content{padding:18px 14px 42px!important}
  body.ts-studio .studio-brandbar{padding:16px 14px!important}
  body.ts-studio .studio-space-label{margin:12px 10px 4px!important}
  body.ts-studio .studio-sidebar-footer{padding:10px!important}
  body.ts-studio .studio-contacts-toolbar,
  body.ts-studio .bulk-toolbar,
  body.ts-studio .list-toolbar{min-height:auto!important}
}
