/*
 * PromoChat UI refresh — loaded last, on top of the existing sheets.
 *
 * Two jobs:
 *   1. Global polish shared by every page (focus, cards, buttons, tables,
 *      sidebar, page headers, toggles) so the workspace reads as one system.
 *   2. The components the calling, staff, plans and usage screens need.
 *
 * Everything new is namespaced .pcx-* so it cannot collide with the older
 * .ref-* / .live-* rules.
 */

:root{
  --pcx-ink:#0b1740;
  --pcx-ink-soft:#5a6b96;
  --pcx-line:#e6ebf5;
  --pcx-line-strong:#d4dcec;
  --pcx-surface:#fff;
  --pcx-canvas:#f7f9fd;
  --pcx-shadow-sm:0 1px 2px rgba(15,32,74,.06),0 1px 3px rgba(15,32,74,.04);
  --pcx-shadow:0 4px 16px rgba(15,32,74,.06),0 1px 3px rgba(15,32,74,.04);
  --pcx-shadow-lg:0 18px 44px rgba(15,32,74,.10);
  --pcx-radius:14px;
  --pcx-radius-lg:18px;
  --pcx-gold:#f5a623;
  --pcx-gold-soft:#fff6e6;
}

/* ---------------------------------------------------------------- global */

/* Keyboard users reach the page content without tabbing the whole sidebar. */
.skip-link{position:absolute;left:12px;top:-60px;z-index:100;background:var(--red);color:#fff;
  padding:11px 18px;border-radius:0 0 11px 11px;font-weight:700;transition:top .15s ease}
.skip-link:focus{top:0}
#main-content:focus{outline:none}

/* One visible focus treatment everywhere, so keyboard users never get lost. */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--red);outline-offset:2px;border-radius:8px;
}
input:focus,select:focus,textarea:focus{outline:none}
.field input:focus,.field select:focus,.field textarea:focus,
input[type=text]:focus,input[type=tel]:focus,input[type=email]:focus,
input[type=search]:focus,input[type=date]:focus,input[type=time]:focus{
  border-color:var(--red);box-shadow:0 0 0 3px rgba(239,10,37,.12);
}

@media (prefers-reduced-motion:no-preference){
  .card,.btn,.pcx-rate-card,.pcx-stat,.pcx-control,.pcx-quick-grid a,.pcx-plan{
    transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease,background .18s ease;
  }
}

.btn{border-radius:11px}
.btn.primary{box-shadow:0 2px 8px rgba(228,0,29,.22)}
.btn.primary:hover{filter:brightness(1.05)}
.btn.outline:hover{background:var(--pink)}
.btn.soft:hover{background:#eef2fa}
.btn:disabled,.btn[disabled]{opacity:.55;cursor:not-allowed;box-shadow:none;filter:none}
.btn .lucide{width:18px;height:18px;flex:0 0 auto}

.card{box-shadow:var(--pcx-shadow-sm);border-color:var(--pcx-line)}
.section-title h2{font-size:17px;letter-spacing:-.2px;margin:0}
.section-title>a,.section-title>span:last-child{font-size:12px;font-weight:600;color:var(--pcx-ink-soft)}
.section-title>a:hover{color:var(--red)}

.pill{font-weight:700;letter-spacing:.1px;line-height:1.4}

/* Sidebar: a rounded active pill instead of a hard left border. */
.sidebar nav a{border-radius:11px;gap:12px;padding:10px 12px;color:var(--pcx-ink-soft)}
.sidebar nav a:hover{background:var(--pcx-canvas);color:var(--pcx-ink)}
.sidebar nav a.active{border-left:0;padding-left:12px;background:var(--pink);color:var(--red);
  box-shadow:inset 3px 0 0 var(--red)}
.sidebar nav a .lucide{width:19px;height:19px}

/* A consistent page header for every workspace screen. */
.pcx-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  flex-wrap:wrap;margin-bottom:18px}
.pcx-page-head h1{font-size:30px;letter-spacing:-.8px;margin-bottom:4px}
.pcx-page-head p{margin:0;font-size:14px}
.pcx-page-head-actions{display:flex;gap:10px;flex-wrap:wrap}
.pcx-premium-flag{display:inline-flex;align-items:center;gap:7px;background:var(--pcx-gold-soft);
  color:#8a5a00;border:1px solid #f4dcae;border-radius:999px;padding:7px 14px;font-size:12px;font-weight:700}
.pcx-premium-flag .lucide{width:15px;height:15px}

/* Tables read better with a tinted head, generous rows and a hover cue. */
.table-wrap{border:1px solid var(--pcx-line);border-radius:var(--pcx-radius);overflow:auto}
.table-wrap table{border-collapse:separate;border-spacing:0}
.table-wrap thead th{background:var(--pcx-canvas);font-size:11px;letter-spacing:.6px;
  text-transform:uppercase;color:var(--pcx-ink-soft);font-weight:700;padding:12px 14px;
  text-align:left;border-bottom:1px solid var(--pcx-line);white-space:nowrap}
.table-wrap tbody td{padding:13px 14px;border-bottom:1px solid var(--pcx-line);vertical-align:middle}
.table-wrap tbody tr:last-child td{border-bottom:0}
.table-wrap tbody tr:hover td{background:#fbfcff}

/* Toggles that actually save read as switches; green when on. */
.toggle-row i{transition:background .15s ease}
.toggle-row input:checked+i{background:var(--green)}
.pcx-switch{width:42px;height:24px;border-radius:999px;background:#d7deec;position:relative;
  flex:0 0 auto;display:inline-block}
.pcx-switch i{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(11,23,64,.3);transition:left .16s ease}
.pcx-switch.on{background:var(--green)}
.pcx-switch.on i{left:21px}

/* Top bar: a softer search pill and clearer hit areas for the icon buttons. */
.global-search{border-radius:999px;height:44px;transition:border-color .16s ease,background .16s ease}
.global-search:focus-within{border-color:var(--red);background:#fff;box-shadow:0 0 0 3px rgba(239,10,37,.10)}
.global-search input{background:transparent;border:0;width:100%}
.topbar .help,.topbar .notification{border-radius:10px;padding:8px;display:inline-flex;align-items:center;gap:7px}
.topbar .help:hover,.topbar .notification:hover{background:var(--pcx-canvas)}
.header-upgrade{border-radius:999px}
.header-upgrade:hover{background:var(--pink)}
.user-menu>.user{border-radius:999px;padding:5px 10px 5px 5px}
.user-menu>.user:hover{background:var(--pcx-canvas)}
.user-dropdown a,.user-dropdown button{border-radius:8px}

/* ------------------------------------------------------- calling cockpit */

.pcx-calling-home{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}
.pcx-main{min-width:0}
.pcx-rail{position:sticky;top:88px;display:flex;flex-direction:column;gap:14px}
.pcx-rail-card{margin-bottom:0}

.pcx-service-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:var(--pcx-canvas);
  border:1px solid var(--pcx-line);border-radius:var(--pcx-radius-lg);padding:6px;max-width:660px;margin:0 auto}
.pcx-service-switch a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:11px 14px;
  border-radius:13px;color:var(--pcx-ink-soft);text-align:center;border:1px solid transparent}
.pcx-service-switch a b{font-size:14px}
.pcx-service-switch a small{font-size:11px}
.pcx-service-switch a .lucide{width:18px;height:18px;margin-bottom:2px}
.pcx-service-switch a:hover{background:#fff;color:var(--pcx-ink)}
.pcx-service-switch a.active{background:var(--red);color:#fff;border-color:var(--red);
  box-shadow:0 4px 12px rgba(228,0,29,.24)}
.pcx-service-switch a.premium.active{background:linear-gradient(100deg,#f7b733,#e8890a);
  border-color:#e8890a;box-shadow:0 4px 12px rgba(232,137,10,.26)}
.pcx-switch-note{text-align:center;font-size:12px;margin:8px 0 18px}

.pcx-rates .pcx-gst{font-size:12px;color:var(--pcx-ink-soft);font-weight:600}
.pcx-rate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.pcx-rate-card{border:1px solid var(--pcx-line);border-radius:var(--pcx-radius);padding:16px;
  display:flex;flex-direction:column;gap:12px;background:#fff}
.pcx-rate-card:hover{border-color:var(--pcx-line-strong);box-shadow:var(--pcx-shadow)}
.pcx-rate-card header{display:flex;align-items:center;gap:11px}
.pcx-rate-card header>div{min-width:0;flex:1}
.pcx-rate-card h3{margin:0;font-size:15px;letter-spacing:-.2px}
.pcx-rate-card .pill{font-size:10px;padding:4px 9px}
.pcx-rate-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex:0 0 auto;
  background:var(--pink);color:var(--red)}
.pcx-rate-icon .lucide{width:21px;height:21px}
.pcx-ch-whatsapp .pcx-rate-icon{background:#e7f8ee;color:#12a150}
.pcx-ch-promochat .pcx-rate-icon{background:#eef0ff;color:#5b5bd6}
.pcx-ch-phone .pcx-rate-icon{background:#e9f1ff;color:#0877f9}
.pcx-rate-tier{display:inline-block;margin-top:3px;font-size:10px;font-weight:700;letter-spacing:.3px;
  padding:3px 8px;border-radius:999px;background:var(--pink);color:#c4001a}
.pcx-rate-tier.premium{background:var(--pcx-gold-soft);color:#8a5a00}
.pcx-rate-split{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 0;
  border-top:1px solid var(--pcx-line);border-bottom:1px solid var(--pcx-line)}
.pcx-rate-split>div+div{border-left:1px solid var(--pcx-line);padding-left:10px}
.pcx-rate-split small{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--pcx-ink-soft);
  font-weight:600;margin-bottom:3px}
.pcx-rate-split small .lucide{width:13px;height:13px}
.pcx-rate-split>div:first-child small .lucide{color:var(--green)}
.pcx-rate-split>div+div small .lucide{color:var(--red)}
.pcx-rate-split b{font-size:20px;letter-spacing:-.6px;display:block;color:var(--pcx-ink)}
.pcx-rate-split b i{font-size:11px;font-weight:600;color:var(--pcx-ink-soft);font-style:normal;margin-left:2px}
.pcx-rate-card .btn{width:100%;margin:0}
.pcx-rate-card footer{font-size:11px;color:var(--pcx-ink-soft);text-align:center;line-height:1.4}

.pcx-stat-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.pcx-stat{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--pcx-line);
  border-radius:var(--pcx-radius);padding:14px;box-shadow:var(--pcx-shadow-sm)}
.pcx-stat:hover{border-color:var(--pcx-line-strong);box-shadow:var(--pcx-shadow);transform:translateY(-1px)}
.pcx-stat>div{min-width:0;flex:1}
.pcx-stat small{display:block;font-size:11px;color:var(--pcx-ink-soft);font-weight:600;margin-bottom:2px}
/* Money and minutes must never be cut off: shrink first, then wrap. */
.pcx-stat b{font-size:clamp(15px,1.25vw,18px);letter-spacing:-.4px;display:block;overflow-wrap:break-word}
.pcx-stat .iconbox{width:42px;height:42px;border-radius:13px}
.pcx-stat .iconbox .lucide{width:20px;height:20px}
/* The whole tile is the link; the arrow only took room from the value. */
.pcx-stat>.lucide{display:none}

.pcx-control-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.pcx-control{background:#fff;border:1px solid var(--pcx-line);border-radius:var(--pcx-radius);padding:16px;
  display:flex;flex-direction:column;gap:8px;box-shadow:var(--pcx-shadow-sm)}
.pcx-control:hover{box-shadow:var(--pcx-shadow)}
.pcx-control header{display:flex;align-items:center;gap:9px}
.pcx-control header>span:first-child{width:34px;height:34px;border-radius:10px;background:var(--pink);
  color:var(--red);display:grid;place-items:center;flex:0 0 auto}
.pcx-control header>span:first-child .lucide{width:17px;height:17px}
.pcx-control h3{margin:0;flex:1;font-size:14px}
.pcx-control p{margin:0;font-size:12px;line-height:1.45}
.pcx-control>b{font-size:13px;color:var(--pcx-ink)}
.pcx-control .btn{width:100%;margin-top:auto}
.pcx-staff-chip{display:flex;align-items:center;gap:10px}
.pcx-staff-chip>span{width:34px;height:34px;border-radius:50%;background:var(--pcx-canvas);
  border:1px solid var(--pcx-line);display:grid;place-items:center;font-size:12px;font-weight:700;
  color:var(--pcx-ink-soft);flex:0 0 auto}
.pcx-staff-chip b{display:block;font-size:13px}
.pcx-staff-chip small{font-size:11px;color:var(--pcx-ink-soft)}

.pcx-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.pcx-quick-grid a{display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:var(--pcx-radius);
  border:1px solid var(--pcx-line);background:var(--pcx-canvas)}
.pcx-quick-grid a:hover{background:#fff;border-color:var(--red);box-shadow:var(--pcx-shadow)}
.pcx-quick-grid a .lucide{width:19px;height:19px;color:var(--red);margin-bottom:4px}
.pcx-quick-grid b{font-size:13px}
.pcx-quick-grid small{font-size:11px;color:var(--pcx-ink-soft)}

.pcx-live-dot{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--pcx-ink-soft)}
.pcx-live-dot:before{content:"";width:8px;height:8px;border-radius:50%;background:#c3ccdf}
.pcx-live-dot.on{color:var(--green)}
.pcx-live-dot.on:before{background:var(--green);animation:pcx-pulse 1.6s ease-in-out infinite}
@keyframes pcx-pulse{0%,100%{box-shadow:0 0 0 0 rgba(8,174,99,.5)}50%{box-shadow:0 0 0 6px rgba(8,174,99,0)}}
@media (prefers-reduced-motion:reduce){.pcx-live-dot.on:before{animation:none}}

.pcx-live-call{border:1px solid var(--pcx-line);border-radius:var(--pcx-radius);padding:13px;margin-top:12px;
  display:flex;flex-direction:column;gap:10px;background:#fff}
.pcx-live-call header{display:flex;align-items:center;gap:10px}
.pcx-live-call header>div{min-width:0;flex:1}
.pcx-live-call header b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pcx-live-call header small{font-size:11px;color:var(--pcx-ink-soft)}
.pcx-live-call .iconbox{width:36px;height:36px;border-radius:11px}
.pcx-live-call .iconbox .lucide{width:18px;height:18px}
.pcx-live-call time{font-variant-numeric:tabular-nums;font-weight:800;color:var(--green);font-size:15px}
.pcx-live-call dl{margin:0;display:flex;flex-direction:column;gap:6px;background:var(--pcx-canvas);
  border-radius:10px;padding:10px}
.pcx-live-call dl>div{display:flex;justify-content:space-between;gap:10px;font-size:12px}
.pcx-live-call dt{color:var(--pcx-ink-soft)}
.pcx-live-call dd{margin:0;font-weight:700}
.pcx-live-call .btn{width:100%;margin:0}
.pcx-rail-all{width:100%;margin-top:12px}
.pcx-rail-empty{text-align:center;padding:26px 12px 8px;color:var(--pcx-ink-soft)}
.pcx-rail-empty .lucide{width:30px;height:30px;color:#c3ccdf;margin-bottom:8px}
.pcx-rail-empty b{display:block;font-size:14px;color:var(--pcx-ink);margin-bottom:4px}
.pcx-rail-empty p{margin:0;font-size:12px;line-height:1.45}

.pcx-glance{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.pcx-glance li{display:flex;align-items:center;gap:10px;padding:9px 8px;border-radius:10px;font-size:13px}
.pcx-glance li:hover{background:var(--pcx-canvas)}
.pcx-glance li .lucide{width:17px;height:17px;color:var(--pcx-ink-soft);flex:0 0 auto}
.pcx-glance li span{flex:1;color:var(--pcx-ink-soft)}
.pcx-glance li b{font-variant-numeric:tabular-nums}

/* ------------------------------------------------------------ responsive */

/* Laptop widths with the right rail still open leave four stat tiles too narrow for a rupee amount. */
@media (min-width:1241px) and (max-width:1380px){
  .pcx-stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1240px){
  .pcx-calling-home{grid-template-columns:minmax(0,1fr)}
  .pcx-rail{position:static;flex-direction:row;flex-wrap:wrap}
  .pcx-rail>*{flex:1 1 300px}
  .pcx-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1020px){
  .pcx-rate-grid,.pcx-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pcx-stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  /* The phone header has room for the bell and the account menu only; support stays on the dashboard and in Settings. */
  .topbar .help{display:none}
  .pcx-page-head h1{font-size:24px}
  .pcx-rate-grid,.pcx-control-grid,.pcx-stat-strip,.pcx-quick-grid,
  .pcx-service-switch{grid-template-columns:minmax(0,1fr)}
  .pcx-rail{flex-direction:column}
  .pcx-service-switch a{flex-direction:row;gap:8px;justify-content:flex-start;text-align:left}
  .pcx-service-switch a small{display:none}
}

/* Inline server validation message under a field (set by showFieldErrors in app.js). */
.field-msg{display:block;margin-top:5px;color:#c8102e;font-size:12px;font-weight:600;line-height:1.35}
.ledger-row .ledger-note{display:block;color:#b4233a;font-weight:600;margin-top:2px}

/* Shared workspace design language: the same surfaces and rhythm across modules. */
:root{--red:#e11d48;--pink:#fff1f4;--navy:#17213a;--muted:#667085;--line:#e5e9f0;--soft:#f6f7fb;--pcx-ink:#17213a;--pcx-ink-soft:#667085;--pcx-canvas:#f6f7fb;--pcx-line:#e5e9f0;--pcx-radius:16px;--pcx-shadow-sm:0 2px 5px rgba(23,33,58,.025);--pcx-shadow:0 8px 28px rgba(23,33,58,.06)}
body[data-workspace="true"]{background:var(--pcx-canvas);color:var(--pcx-ink);font-size:14px;line-height:1.55}
body[data-workspace="true"] .content{min-width:0}
body[data-workspace="true"] :is(.hm-page,.st-page,.pl-page,.rc-page,.pp-page,.wl-page,.pn-page,.rv-page){max-width:1360px}
body[data-workspace="true"] :is(.card,.hm-card,.lp-card,.cb-card,.pj-card,.cx-card,.oc-card,.kn-card,.kb-card,.wl-ledger,.rp-board){border:1px solid var(--line);border-radius:16px;box-shadow:var(--pcx-shadow-sm)}
body[data-workspace="true"] :is(.hm-hero,.st-hero,.pl-hero,.lp-hero,.cb-hero,.rp-hero,.an-hero,.kn-hero,.pn-hero,.pp-hero,.rv-deck,.ct-hero,.sc-hero){background:radial-gradient(ellipse at top right,rgba(225,29,72,.12),transparent 65%),linear-gradient(120deg,#17213a,#263455);border-radius:20px;box-shadow:0 12px 32px -24px rgba(23,33,58,.5)}
body[data-workspace="true"] :is(.hm-hero,.st-hero,.pl-hero,.lp-hero,.cb-hero,.rp-hero,.an-hero,.kn-hero,.pn-hero,.pp-hero,.sc-hero){padding:22px 24px}
body[data-workspace="true"] :is(.hm-hero,.st-hero,.pl-hero,.lp-hero,.cb-hero,.rp-hero,.an-hero,.kn-hero,.pn-hero,.pp-hero,.sc-hero):before{opacity:.15}
body[data-workspace="true"] :is(.hm-hero,.st-hero,.pl-hero,.lp-hero,.cb-hero,.rp-hero,.an-hero,.kn-hero,.pn-hero,.pp-hero,.sc-hero) h1{font-size:clamp(25px,2.2vw,32px);letter-spacing:-.8px;line-height:1.2}
body[data-workspace="true"] :is(.hm-date,.hm-kpi small,.st-stat small,.cb-stat small,.pp-facts small){font-size:12px;letter-spacing:.2px;text-transform:none}
body[data-workspace="true"] :is(.hm-kicker,.st-kicker,.pl-kicker,.lp-kicker,.cb-kicker,.mn-kicker,.kn-kicker,.rp-kicker){font-size:12px;letter-spacing:.5px}
body[data-workspace="true"] :is(.btn,.hm-btn,.st-btn){min-height:44px;border-radius:11px;font-size:14px;font-weight:600;box-shadow:none}
body[data-workspace="true"] .btn.primary{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 3px 8px rgba(225,29,72,.13)}
body[data-workspace="true"] .btn.outline{background:#fff;border-color:#d7deea;color:var(--navy)}
body[data-workspace="true"] .btn.soft{background:#f0f3f8;color:#34435e}
body[data-workspace="true"] :is(.field,.sf-field,.pd-field) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){border-radius:11px;border-color:#d7deea;font-size:14px;min-height:44px;background:#fff}
body[data-workspace="true"] :is(.field,.sf-field,.pd-field)>span{font-size:13px;font-weight:600}
body[data-workspace="true"] :is(.table-wrap tbody td,.ledger-row){font-size:14px}
body[data-workspace="true"] :is(.table-wrap thead th,.pd-hint,.pd-facts dt,.pn-text time){font-size:12px;letter-spacing:.15px}
body[data-workspace="true"] .sidebar nav a{min-height:44px;border-radius:10px;font-size:14px;font-weight:500}
body[data-workspace="true"] .sidebar nav a.active{background:#fff1f4;color:#be123c;box-shadow:inset 3px 0 #e11d48}
body[data-workspace="true"] .global-search{border-radius:11px;background:#f6f7fb}
body[data-workspace="true"] .st-card.pcx-staff-card{border-radius:16px;box-shadow:var(--pcx-shadow-sm)}
body[data-workspace="true"] .st-band{background:linear-gradient(115deg,#e9edf6,#f8eaf0)}
body[data-workspace="true"] .pl-step{border-radius:16px;box-shadow:var(--pcx-shadow-sm)}
body[data-workspace="true"] .pcx-save-bar{position:sticky;bottom:16px;z-index:12;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 16px;box-shadow:0 8px 28px rgba(23,33,58,.09)}
:where(button,a,input,select,textarea):focus-visible{outline:3px solid #93b4fa;outline-offset:3px}
[hidden]{display:none!important}
.ux-confirm{width:min(92vw,460px);border:1px solid #e5e9f0;border-radius:20px;padding:28px;color:#17213a;box-shadow:0 24px 80px rgba(15,23,42,.22);max-height:90dvh;overflow:auto}
.ux-confirm::backdrop{background:rgba(15,23,42,.48);backdrop-filter:blur(4px)}
.ux-confirm h2{font-size:22px;letter-spacing:-.5px;margin:16px 0 8px}
.ux-confirm p{font-size:14px;line-height:1.65;color:#667085;white-space:pre-line;overflow-wrap:anywhere}
.ux-confirm-symbol{display:grid;place-items:center;width:44px;height:44px;background:#fff1f4;color:#be123c;border-radius:14px;font-size:22px;font-weight:700}
.ux-confirm footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.ux-confirm .btn{min-height:44px;border-radius:11px}
.ux-note textarea{width:100%;resize:vertical}
.ux-password{position:relative;display:flex;align-items:center;width:100%}
.ux-password input{width:100%;padding-right:64px!important}
.ux-password>button{position:absolute;right:5px;min-width:52px;min-height:40px;border:0;background:transparent;color:#475569;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.ux-inline-success{padding:12px 14px;border-radius:10px;background:#ecfdf3;color:#176544;font-size:13px}
.ux-connection{position:fixed;top:8px;left:50%;transform:translateX(-50%);z-index:1000;width:max-content;max-width:92vw;padding:12px 18px;background:#fff8e6;color:#805600;box-shadow:0 8px 24px #17213a22;border:1px solid #f1d89d;border-radius:12px;font-size:13px}
#toast{max-width:min(440px,calc(100vw - 32px));white-space:normal;line-height:1.55;border:1px solid #ffffff20;box-shadow:0 12px 40px #17213a30}
#toast[data-tone="error"]{background:#8f1934}
.ux-live-health{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#667085;margin:8px 0}
.ux-live-health[data-stale="true"]{color:#9a6700;background:#fff7df;border-radius:8px;padding:6px 10px}
.ux-picker{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.ux-picker-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;background:#f6f7fb;border-bottom:1px solid var(--line);font-size:13px}
.ux-picker-list{max-height:300px;overflow:auto;overscroll-behavior:contain}
.ux-picker-row{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #f0f2f6;cursor:pointer;font-size:14px}
.ux-picker-row:hover,.ux-picker-row:has(:checked){background:#fff4f6}
.ux-picker-row input{width:18px;height:18px;accent-color:var(--red)}
.ux-picker-empty{padding:18px;color:var(--muted);font-size:14px}
.ux-picker-tools button{border:0;background:none;color:#be123c;cursor:pointer;font:inherit;font-weight:600;min-height:36px}
.ux-reading-dialog{width:min(92vw,860px)!important}
.ux-reading-dialog .dialog-context{white-space:pre-wrap;font-weight:400;line-height:1.75;max-height:60dvh;overflow:auto;overflow-wrap:anywhere}
.ux-reading-dialog input[type=search]{width:100%;min-height:44px;margin-top:14px}
@media(min-width:761px){body[data-workspace="true"] .workspace-topbar{border-bottom:1px solid #e5e9f0;background:#fff}body[data-workspace="true"] .sidebar{background:#fff;border-right:1px solid #e5e9f0}}
@media(max-width:760px){
 body[data-workspace="true"]{font-size:14px}
 body[data-workspace="true"] :is(.hm-hero,.st-hero,.pl-hero,.lp-hero,.cb-hero,.rp-hero,.an-hero,.kn-hero,.pn-hero,.pp-hero,.sc-hero){padding:20px;border-radius:16px}
 body[data-workspace="true"] .pcx-save-bar{bottom:88px;flex-wrap:wrap}
 body.ux-keyboard .bottom-nav{display:none}
 body.ux-keyboard .pcx-save-bar{bottom:8px}
 body[data-workspace="true"] :is(.form-grid,.pd-fields){gap:16px}
 body[data-workspace="true"] :is(input,select,textarea){font-size:16px!important}
 .ux-confirm{padding:22px}.ux-confirm footer .btn{flex:1}
 body[data-workspace="true"] .table-wrap{overscroll-behavior-x:contain}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.ux-advanced{border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:16px}
.ux-advanced>summary{font-weight:600;font-size:14px;cursor:pointer;min-height:24px;color:#475569}
.ux-advanced>.sf-group{margin:16px 0 0}
body[data-workspace="false"] .auth-card{border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 40px #17213a0a}
body[data-workspace="false"] .auth-card .field input{min-height:48px;border-radius:11px}
body[data-workspace="false"] .auth-tabs{background:#f6f7fb;padding:5px;border-radius:12px}
body[data-workspace="false"] .auth-tabs button{min-height:44px;border-radius:9px}
body[data-workspace="false"] .auth-tabs button.active{background:#fff;box-shadow:0 2px 6px #17213a0c;color:#be123c}
body[data-workspace="false"] .legal-dialog{border:1px solid var(--line);border-radius:20px;max-height:90dvh;overflow:auto}
body[data-workspace="true"] :is(.hm-hero,.st-hero,.pl-hero,.lp-hero,.cb-hero,.rp-hero,.an-hero,.kn-hero,.pn-hero,.pp-hero,.sc-hero){color:#fff}
body[data-workspace="true"] :is(.pn-hero,.pp-hero,.kn-hero) h1{color:#fff}
body[data-workspace="true"] :is(.pn-hero,.pp-hero,.kn-hero)>p,body[data-workspace="true"] :is(.pn-hero-text,.kn-hero-text)>p{color:#d2d9e8}

body[data-workspace="true"] :is(.rp-btn,.lp-btn,.cb-btn,.pn-actions .btn){min-height:44px;border-radius:11px;font-size:14px;font-weight:600}
body[data-workspace="true"] .table-wrap th{position:sticky;top:0;z-index:1}
body[data-workspace="true"] :is(.pd-body,.sf-body,.cw-messages,.ux-picker-list){scrollbar-width:thin;scrollbar-color:#cbd3e0 transparent;scrollbar-gutter:stable}
body[data-workspace="true"] :is(input,select,textarea)[aria-invalid="true"]{border-color:#d92d20;box-shadow:0 0 0 3px #d92d2012}
body[data-workspace="true"] .field-msg{display:block;color:#b42318;background:#fff3f1;border-radius:8px;padding:8px 10px;font-size:13px;line-height:1.5}
body[data-workspace="true"] .cs-card-flow{max-height:150px;overflow:auto;scrollbar-width:thin}
body[data-workspace="true"] .cs-editor>.button-row{position:sticky;bottom:16px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;z-index:4}
body[data-workspace="true"] .hm-hero{padding:22px 24px}
body[data-workspace="true"] .hm-hero-stats{margin-top:16px}
body[data-workspace="true"] .hm-kpi{padding:12px}
body[data-workspace="true"] .hm-kpi>svg{width:26px;height:26px;margin-bottom:2px;padding:5px}
body[data-workspace="true"] .hm-kpi b{font-size:25px}
@media(max-width:760px){body[data-workspace="true"] .cs-editor>.button-row{bottom:88px}body[data-workspace="true"] :is(.kb-icon,.report-play,.cw-icon-btn){min-width:40px;min-height:40px}body[data-workspace="true"] .hm-week{display:none}body[data-workspace="true"] .hm-hero-stats{grid-template-columns:minmax(0,1fr)}}
