/* NEXSURE_REFERENCE_UI_100 — unified light workspace, replacing legacy theme layers. */
body.unified.nx-rebuild{--ink:#263241;--muted:#67768a;--line:#dce1e8;--blue:#0768e8;--soft:#edf5ff;background:#fff;color:var(--ink);font-family:Arial,'Noto Sans Hebrew',sans-serif;font-size:14px;color-scheme:light}
html body.nx-rebuild *{box-sizing:border-box}
html body.nx-rebuild [hidden]{display:none!important}
html body.nx-rebuild :is(button,input,select,textarea){font:inherit;letter-spacing:0}
html body.nx-rebuild :is(input,select,textarea){background:#fff;color:#273341;border:1px solid #d3d9e2;border-radius:5px;min-height:34px;padding:7px 10px;box-shadow:none;max-width:100%}
html body.nx-rebuild input[type=checkbox]{min-height:0;width:16px;height:16px;accent-color:var(--blue)}
html body.nx-rebuild label{color:#344152;font-size:13px;gap:7px}
html body.nx-rebuild :is(button,.action){box-shadow:none;border-radius:5px;min-height:34px;padding:7px 12px;transform:none;transition:background-color .12s,color .12s;border:1px solid #d5dce7;font-weight:500;background:#fff;color:#245c9c;cursor:pointer}
html body.nx-rebuild .action:not(.secondary){background:var(--blue);border-color:var(--blue);color:#fff}
html body.nx-rebuild :is(button,.action):not(:disabled):hover{background:#e5f0ff;color:#074aab;border-color:#a2c7fa;filter:none;transform:none}
html body.nx-rebuild .action:not(.secondary):not(:disabled):hover{background:#0756bb;color:white;border-color:#0756bb}
html body.nx-rebuild :is(button,input,select,textarea,summary,a):focus-visible{outline:3px solid #77b8ff;outline-offset:2px}
html body.nx-rebuild button:disabled{opacity:.5;cursor:not-allowed}
html body.nx-rebuild .action.danger{background:#fff1f1;color:#b32b2b;border-color:#f1b6b6}
html body.nx-rebuild .action.danger:hover{background:#ffe1e1;color:#8e1515}
html body.nx-rebuild :is(h1,h2,h3,h4){color:#263241;font-family:inherit;letter-spacing:0}
html body.nx-rebuild h1{font-size:20px;margin:0}
html body.nx-rebuild h2{font-size:18px;margin:0 0 14px}
html body.nx-rebuild h3{font-size:15px;margin:0 0 10px}
html body.nx-rebuild p{line-height:1.6}
html body.nx-rebuild :is(.sub,.ref-muted){color:#68788b;font-size:12px}
html body.nx-rebuild .error:empty{display:none}
html body.nx-rebuild .error{color:#a82222;background:#fff2f2;padding:10px;border-radius:4px}
html body.nx-rebuild .shell{max-width:none;width:100%;padding:0;margin:0}
html body.nx-rebuild>header{height:44px;min-height:44px;background:#fff;border-bottom:1px solid var(--line);box-shadow:none;position:relative;padding:0 14px;z-index:15}
html body.nx-rebuild>header .top{height:44px;min-height:0;padding:0;display:flex;justify-content:space-between}
html body.nx-rebuild .brand{gap:7px}.nx-rebuild .brand img{width:26px;height:26px}.nx-rebuild .brand small{display:none}.nx-rebuild .brand b{font-size:14px;color:#0868db}
html body.nx-rebuild .side-actions{gap:6px}.nx-rebuild .side-actions button{font-size:12px;min-height:28px;padding:4px 9px}
html body.nx-rebuild main.shell{padding:0}
html body.nx-rebuild main>#error:not(:empty){margin:5px 70px 5px 12px}
html body.nx-rebuild #manager .manager-layout{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:0!important;direction:rtl;min-height:calc(100vh - 44px);margin:0}
html body.nx-rebuild #manager .rail{position:sticky;top:0;height:calc(100vh - 44px);min-height:0;overflow:visible;align-self:start;width:58px;background:#fff;border:0;border-left:1px solid var(--line);border-radius:0;padding:8px 4px;z-index:12;box-shadow:none}
html body.nx-rebuild #manager .rail.ops-expanded{width:212px;box-shadow:-8px 0 25px #1d3a6015}
html body.nx-rebuild #manager .workspace{max-width:none!important;min-width:0;width:100%;margin:0;padding:0 16px 24px;background:white}
html body.nx-rebuild :is(.refined-heading,.desk-header,.rail-label,.refined-brand,.premium-rail-footer,.command-actions){display:none!important}
html body.nx-rebuild #tabs{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0}
html body.nx-rebuild #manager .rail button{display:flex;align-items:center;justify-content:center;min-height:42px;width:48px;padding:10px 6px;border:0;background:white;color:#6b7f99;border-radius:4px;font-size:13px;margin:0;gap:12px;text-align:right}
html body.nx-rebuild .rail svg{height:22px;width:22px;flex-shrink:0}
html body.nx-rebuild .rail .ops-nav-icon{display:flex}
html body.nx-rebuild .rail .ops-nav-label{display:none}
html body.nx-rebuild .rail.ops-expanded button{width:202px;justify-content:flex-start;padding-inline:12px}
html body.nx-rebuild .rail.ops-expanded .ops-nav-label{display:inline}
html body.nx-rebuild #manager .rail button[aria-pressed=true]{color:#075ed1;background:#eaf3ff;border-right:3px solid #0969eb}
html body.nx-rebuild #manager .rail button:not(:disabled):hover{background:#e7f0fc;color:#0754b1}
html body.nx-rebuild .ref-more{position:relative;margin-top:12px;text-align:center;list-style:none}
html body.nx-rebuild .ref-more summary{padding:8px;cursor:pointer;color:#657a97}
html body.nx-rebuild .ref-more .premium-shortcuts{position:absolute;right:52px;top:0;width:220px;background:white;border:1px solid var(--line);box-shadow:0 8px 30px #1b35551c;padding:8px;border-radius:6px}
html body.nx-rebuild .ref-more .premium-shortcuts button{width:100%;justify-content:flex-start}
html body.nx-rebuild .ref-more .ops-nav-label{display:inline}
html body.nx-rebuild .ref-titlebar{height:48px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--line);margin:0 -16px 16px;padding:0 20px;background:#fff}
html body.nx-rebuild :is(.ops-section-tabs,.ref-tabs){display:flex;gap:20px;border:0;border-bottom:1px solid var(--line);border-radius:0;justify-content:flex-start;background:white;margin:0 0 16px;padding:0;min-height:42px}
html body.nx-rebuild :is(.ops-section-tabs,.ref-tabs) button{border:0;border-radius:0;background:transparent;color:#4e5a6a;min-height:42px;padding:9px 16px}
html body.nx-rebuild :is(.ops-section-tabs,.ref-tabs) button[aria-pressed=true]{border-bottom:3px solid var(--blue);color:var(--blue);font-weight:700;background:#fff}
html body.nx-rebuild :is(.panel,.card){background:white;border:1px solid var(--line);border-radius:5px;box-shadow:none}
html body.nx-rebuild .panel{padding:16px}
html body.nx-rebuild #reportFilters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;background:#fff;border:1px solid var(--line);border-radius:5px;padding:12px;margin:0 0 14px}
html body.nx-rebuild #reportFilters #viewTitle{display:none}
html body.nx-rebuild #reportFilters label{min-width:130px}
html body.nx-rebuild .range-controls{display:flex;align-items:end;flex-wrap:wrap;gap:8px;flex:1}
html body.nx-rebuild .range-presets{display:flex;gap:4px}.nx-rebuild .range-caption{flex-basis:100%;margin:0;font-size:11px;color:#64758a}
html body.nx-rebuild :is(.range-error,.cc-error):empty{display:none}
html body.nx-rebuild :is(.ref-filters,.cc-tools){display:flex;align-items:end;flex-wrap:wrap;gap:12px;background:#fff;border:0;border-bottom:1px solid var(--line);padding:10px 0 18px;margin:0 0 18px}
html body.nx-rebuild .ref-filters label{display:flex;flex-direction:column;flex:1 1 140px;max-width:220px;min-width:130px}
html body.nx-rebuild :is(.ref-filters,.cc-tools) :is(input,select){width:100%}
html body.nx-rebuild .ref-filters .action:not(.secondary){background:#ed7100;border-color:#ed7100;color:white}
html body.nx-rebuild .ref-filters .action:not(.secondary):hover{background:#bb5600;border-color:#bb5600}
html body.nx-rebuild :is(.ref-table-wrap,.tablewrap,.cc-table-wrap){overflow:auto;border:1px solid var(--line);border-radius:3px}
html body.nx-rebuild table{width:100%;border-collapse:collapse;font-size:13px;text-align:right;background:#fff}
html body.nx-rebuild th{background:#f5f6f8;color:#3e4c5e;font-weight:500;white-space:nowrap;padding:10px;border-bottom:1px solid #cfd7e1}
html body.nx-rebuild td{padding:8px 10px;border-bottom:1px solid #e5e8ed;color:#2d3746;background:transparent}
html body.nx-rebuild tbody tr:hover{background:#f1f6ff}
html body.nx-rebuild td button{min-height:24px;padding:2px 5px;border:0;background:transparent;color:#0865d5;text-align:right}
html body.nx-rebuild .ref-phone{direction:ltr;unicode-bidi:isolate;display:inline-block;white-space:nowrap;font-variant-numeric:tabular-nums}
html body.nx-rebuild .ref-pager{display:flex;gap:8px;align-items:center;border-top:2px solid var(--blue);padding:12px 0;margin-top:14px}
html body.nx-rebuild .ref-pager>span{margin-left:auto}
html body.nx-rebuild :is(.pill,.ref-status,.cc-state){display:inline-block;font-size:12px;line-height:1.4;padding:3px 7px;border-radius:4px;background:#edf1f6;color:#4a617b}
html body.nx-rebuild :is(.ref-status.active,.ref-status.done,.pill.positive,.cc-state-talk,.cc-state-ready){background:#e2f6e8;color:#127d30}
html body.nx-rebuild :is(.ref-status.followup,.pill.amber,.cc-state-personal){background:#fff0dd;color:#aa5a00}
html body.nx-rebuild .ref-empty{padding:30px;text-align:center;color:#68778a;background:#fafbfd;border:1px dashed #d2dbe6;border-radius:4px}
html body.nx-rebuild .cc-heading{display:flex;align-items:center;justify-content:space-between;margin:10px 0}
html body.nx-rebuild .cc-heading h2{font-size:15px;margin:0}.nx-rebuild .cc-stamp{font-size:11px;color:#778698}
html body.nx-rebuild .cc-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:12px 0 16px}
html body.nx-rebuild .cc-kpi{background:#fff;border:1px solid #d8dee6;border-radius:5px;padding:16px;text-align:center;box-shadow:none}
html body.nx-rebuild .cc-kpi :is(span,small){display:block;color:#627083;font-size:12px}.nx-rebuild .cc-kpi strong{display:block;font-size:29px;line-height:1.5;font-weight:500;font-variant-numeric:tabular-nums;color:#2c3340}
html body.nx-rebuild .cc-guide{font-size:11px;color:#7c8796;line-height:1.5}.nx-rebuild .cc-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;font-size:11px;margin:15px 0}
html body.nx-rebuild .cc-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:2px;margin-left:5px;background:#c4cad2}
html body.nx-rebuild .cc-legend-talk:before{background:#0768e8}.nx-rebuild .cc-legend-incoming:before{background:#0a9a4a}.nx-rebuild .cc-legend-personal:before{background:#fc8300}.nx-rebuild .cc-legend-work:before{background:#8a6ab9}
html body.nx-rebuild .cc-timeline-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:4px;padding:12px 16px;margin:10px 0;background:#fff}
html body.nx-rebuild .cc-timeline-head{display:flex;justify-content:space-between;align-items:center;order:0}.nx-rebuild .cc-timeline-head h3{margin:0}.nx-rebuild .cc-timeline-head span{font-size:11px;color:#798797}
html body.nx-rebuild .cc-time-scroll{overflow:auto;order:1;margin:12px 0}.nx-rebuild .cc-time-canvas{min-width:660px;direction:ltr}
html body.nx-rebuild .cc-time-axis{height:20px;position:relative;margin:0 18px;color:#6d798a;font-size:10px}.nx-rebuild .cc-time-axis span{position:absolute;transform:translateX(-50%);white-space:nowrap}
html body.nx-rebuild .cc-time-lane{height:12px;position:relative;background:#f0f2f5;margin:3px 18px;overflow:hidden;border-radius:1px}
html body.nx-rebuild .cc-segment{position:absolute;top:0;height:12px;min-height:12px;min-width:2px;padding:0;border:0;border-radius:1px;background:#bfc6cf}
html body.nx-rebuild .cc-segment-talk{background:#0768e8}.nx-rebuild .cc-segment-incoming{background:#16a34a}.nx-rebuild .cc-segment-personal{background:#ff8708}.nx-rebuild .cc-segment-work{background:#9671c0}.nx-rebuild .cc-segment-ring{background:#5ab3d2}.nx-rebuild .cc-segment-summary{background:#d0619f}
html body.nx-rebuild .cc-mini{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;order:2;border-top:1px solid #edf0f4;padding-top:10px}.nx-rebuild .cc-mini>div{text-align:center}.nx-rebuild .cc-mini small{display:block;font-size:11px;color:#637083}.nx-rebuild .cc-mini b{font-size:15px;font-weight:500;line-height:1.9;font-variant-numeric:tabular-nums}
html body.nx-rebuild .cc-timeline-card>small{order:3;color:#7c8797;font-size:10px;margin-top:8px}
html body.nx-rebuild .cc-definitions{font-size:12px;border-top:1px solid var(--line);margin-top:20px;padding:10px}.nx-rebuild .cc-definitions summary{cursor:pointer}
html body.nx-rebuild [aria-busy=true]{opacity:1;filter:none}
html body.nx-rebuild .nx-page-heading{display:none}.nx-rebuild .nx-campaign-filter{display:flex;gap:12px;align-items:center;margin:14px 0}.nx-rebuild .nx-campaign-filter input{max-width:280px}
html body.nx-rebuild .campaign-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;align-items:start}
html body.nx-rebuild .campaign-card{background:#fff;border:1px solid #d7dee7;border-radius:4px;padding:12px;min-width:0;box-shadow:none;min-height:410px;display:flex;flex-direction:column}
html body.nx-rebuild .campaign-card h3{font-size:17px;margin:12px 0 16px;line-height:1.4;min-height:24px}
html body.nx-rebuild .campaign-card-head{display:flex;justify-content:space-between;align-items:center;min-height:22px}.nx-rebuild .campaign-initial{display:none}
html body.nx-rebuild .campaign-main-count{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:10px}.nx-rebuild .campaign-main-count b{font-size:23px;font-weight:500;color:#293647}.nx-rebuild .campaign-main-count span{font-size:12px;color:#5e6b7e}
html body.nx-rebuild .campaign-progress{height:2px;background:#edf0f3;margin:0 0 8px;direction:ltr}.nx-rebuild .campaign-progress i{display:block;height:100%;background:#2baf5a}
html body.nx-rebuild .campaign-numbers>div{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #e7ebef;font-size:12px;gap:8px}.nx-rebuild .campaign-numbers b{font-size:14px;font-weight:500;color:#233448}
html body.nx-rebuild .campaign-members{padding:12px 0;color:#758399;min-height:38px;font-size:11px}
html body.nx-rebuild .campaign-card .actions{display:flex;justify-content:space-between;gap:6px;margin-top:auto}.nx-rebuild .campaign-card .actions button{padding:5px 7px;font-size:12px;min-height:28px}
html body.nx-rebuild .ops-campaign-toggle{position:relative!important;border:1px solid #90b8ef!important;background:#e0edff!important;padding:0!important;width:29px!important;min-width:29px!important;height:16px!important;min-height:16px!important;border-radius:12px!important}
html body.nx-rebuild .ops-campaign-toggle:after{content:'';position:absolute;top:1px;left:2px;width:12px;height:12px;border-radius:50%;background:#8697ac}.nx-rebuild .ops-campaign-toggle[aria-checked=true]:after{left:13px;background:#0866e4}
html body.nx-rebuild .ops-new-campaign{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:410px;background:#fff;border:1px solid #d7dee7;border-radius:4px;color:#64748b;font-size:17px;gap:20px}.nx-rebuild .ops-new-campaign>span{font-size:52px;color:#0868e8;font-weight:300}
html body.nx-rebuild .ref-ai-heading{text-align:right;margin:24px 0}.nx-rebuild .ref-ai-heading h2{font-size:24px}.nx-rebuild .ref-ai-heading .ref-filters{justify-content:flex-start}
html body.nx-rebuild .ref-analysis{max-width:1180px;margin-right:0;margin-left:auto}.nx-rebuild .ref-summary,.nx-rebuild .ref-ai-columns>article{border:1px solid #d3d9e1;border-radius:5px;padding:18px;background:white;margin-bottom:12px}
html body.nx-rebuild .ref-analysis h3{padding-bottom:12px;border-bottom:1px solid #e0e5eb}.nx-rebuild .ref-summary h3:before{content:'●';color:#0878ec;margin-left:10px;font-size:12px}
html body.nx-rebuild .ref-ai-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.nx-rebuild .ref-ai-columns h3:before{content:'●';color:#14a341;margin-left:10px;font-size:12px}.nx-rebuild .ref-ai-columns>article:nth-child(2) h3:before{color:#ff8708}
html body.nx-rebuild .ref-ai-columns section{padding:12px 0;border-bottom:1px solid #dfe4ea}.nx-rebuild .ref-ai-columns p{font-size:14px;white-space:pre-wrap}.nx-rebuild .ref-ai-columns h4{margin:0;font-size:15px}
html body.nx-rebuild .ref-ai-sources details{border-bottom:1px solid var(--line);padding:12px}.nx-rebuild .ref-ai-sources summary{cursor:pointer}.nx-rebuild .ref-ai-sources p{white-space:pre-wrap}
html body.nx-rebuild .ref-phone-settings{max-width:1350px;margin:32px 0 0 auto}.nx-rebuild .ref-phone-settings>article{border:1px solid #d3d9e1;border-radius:5px;margin-bottom:18px;padding:18px}.nx-rebuild .ref-phone-settings table{margin-top:20px}.nx-rebuild .ref-phone-settings td{padding:16px}.nx-rebuild .ref-phone-settings details{margin-top:15px}.nx-rebuild .ref-phone-settings code{display:block;background:#f2f5f9;padding:12px}
/* Agent desk: three persistent columns matching the references. */
html body.nx-rebuild #agent{max-width:none;margin:0;padding:0 8px}
html body.nx-rebuild #agent>.hero{display:none}
html body.nx-rebuild .ref-agent-top{height:40px;display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:0 8px;color:#66758a;font-size:12px}
html body.nx-rebuild #agent .agentGrid{display:grid!important;grid-template-columns:290px minmax(400px,1fr) 290px!important;direction:ltr;gap:8px!important;align-items:start;margin:8px 0 0;height:calc(100vh - 100px)}
html body.nx-rebuild #agent :is(.voice-dock,.stage,.workspace-side){direction:rtl;border:1px solid #d7dee6;border-radius:3px;background:#fff;box-shadow:none;min-width:0;padding:12px;position:relative;top:auto;max-height:100%;height:100%;overflow:auto}
html body.nx-rebuild #agent .voice-dock{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:8px;text-align:right}
html body.nx-rebuild #agent .stage{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:8px;padding:0 12px 14px}
html body.nx-rebuild #agent .workspace-side{grid-column:3;grid-row:1;padding:0}
html body.nx-rebuild .voice-dock>.nx-section-label,.nx-rebuild .voice-orb,.nx-rebuild #voiceHint,.nx-rebuild #voiceExplain,.nx-rebuild #workspaceScript,.nx-rebuild .workspace-call-title,.nx-rebuild .ops-stage-tabs{display:none!important}
html body.nx-rebuild .voice-dock>h2{font-size:16px;margin:0}.nx-rebuild #voiceStatus{font-size:12px;margin:0;color:#64748b}.nx-rebuild #voiceNumber{font-size:23px;text-align:center;margin:12px 0;direction:ltr}
html body.nx-rebuild .voice-buttons{display:flex;gap:5px;flex-wrap:wrap}.nx-rebuild .voice-buttons button{flex:1;font-size:12px;white-space:nowrap;padding:7px}
html body.nx-rebuild .voice-shift{border-top:1px solid #e4e9ee;margin-top:10px;padding:10px 0}
html body.nx-rebuild #agentActions{display:flex;flex-wrap:wrap;gap:6px}.nx-rebuild #agentActions button{font-size:12px;padding:7px;flex:1 1 90px}
html body.nx-rebuild .voice-dock[data-view=phone] .ops-agent-stats{display:none}
html body.nx-rebuild .voice-dock[data-view=stats]>:is(.voice-buttons,.voice-shift,.wrapform,#openDealForm){display:none}
html body.nx-rebuild .ops-agent-stats{display:flex;flex-direction:column;gap:8px;order:1}.nx-rebuild .ops-agent-stats .card{border:1px solid #d5dee8;background:#fcfdff;text-align:center;padding:20px 10px;min-height:100px}.nx-rebuild .ops-agent-stats b{font-size:29px;color:#283441}.nx-rebuild .ops-agent-stats small{font-size:13px}
html body.nx-rebuild .desk-agent-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;order:2}.nx-rebuild .desk-agent-tools button{flex:1 1 100px;font-size:12px;padding:6px}
html body.nx-rebuild .ref-call-header{display:grid;grid-template-columns:1.2fr .8fr 1fr;border-bottom:1px solid var(--line);gap:12px;padding:15px 0;flex-shrink:0;min-height:105px}.nx-rebuild .ref-call-header>div{border-left:1px solid var(--line);padding-left:10px;min-width:0}.nx-rebuild .ref-call-header>div:last-child{border:0}
html body.nx-rebuild .ref-call-header small{display:block;font-size:12px;color:#607087;margin-bottom:9px}.nx-rebuild #agentTitle{font-size:16px;margin:0}.nx-rebuild #agentDetail{font-size:12px;margin:6px 0}.nx-rebuild #callClock{background:transparent;border:0;padding:5px 0;margin:0}.nx-rebuild #callElapsed{font-size:22px;font-variant-numeric:tabular-nums}
html body.nx-rebuild .agent-campaign-bar{display:block;margin:0;padding:0;background:transparent;border:0}.nx-rebuild .agent-campaign-bar>span{display:none}.nx-rebuild .agent-campaign-bar select{width:100%;font-size:12px}
html body.nx-rebuild .ref-script-nav{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0;border-bottom:1px solid var(--line)}
html body.nx-rebuild .ref-script-nav button{border:1px solid #9ac8ff;color:#0864dc;border-radius:14px;background:#f6faff;min-height:24px;padding:3px 10px;font-size:12px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.nx-rebuild .ref-script-body{flex:1;min-height:240px;overflow:auto;padding-left:8px}.nx-rebuild .ref-script-section{border-bottom:1px solid #e3e8ee;padding:16px 4px;position:relative}.nx-rebuild .ref-script-section h3{font-size:14px}.nx-rebuild .ref-script-section h3:before{content:'●';color:#1382ef;margin-left:8px;font-size:10px}.nx-rebuild .ref-script-section:nth-child(even) h3:before{color:#f79018}.nx-rebuild .ref-script-section p{white-space:pre-wrap;font-size:16px;line-height:1.8;margin:0}
html body.nx-rebuild .ref-customer-title{font-size:15px;margin:0;padding:14px;background:#f0f5fc;border-bottom:1px solid #d7e2ed;color:#205a98}.nx-rebuild .ref-customer-title.active{background:#e4f8e7;color:#12772d;border-right:3px solid #23a244}
html body.nx-rebuild .ops-customer{padding:14px;background:#fff;border-bottom:1px solid var(--line)}.nx-rebuild #workspaceCallName{font-size:18px;font-weight:700;margin:0 0 12px}
html body.nx-rebuild .lead-imported-details{display:block;border:0;background:#fff;padding:0}.nx-rebuild .lead-imported-details>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf0f3;background:white;border-radius:0}.nx-rebuild .lead-imported-details dd{font-size:13px;margin:0;overflow-wrap:anywhere}.nx-rebuild .lead-imported-details dt{font-size:12px;color:#718096}
html body.nx-rebuild .nx-recent{padding:12px 0}.nx-rebuild .nx-recent h3{padding:0 12px}.nx-rebuild .nx-recent input{margin:0 10px 8px;width:calc(100% - 20px)}.nx-rebuild #nxRecentList{max-height:340px;overflow:auto}.nx-rebuild .nx-recent-call{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:5px;text-align:right;border:0;border-bottom:1px solid #e2e7ed;border-radius:0;padding:12px;background:#fff;color:#263c53}.nx-rebuild .nx-recent-call span{color:#263c53;font-size:14px}.nx-rebuild .nx-recent-call small{font-size:11px;color:#6e7b8d}.nx-rebuild .nx-recent-call:hover{background:#edf5ff}
html body.nx-rebuild .workspace-side>.sales-board,.nx-rebuild #workspaceHistory{margin:10px;padding:8px;border-top:1px solid var(--line)}
html body.nx-rebuild .wrapform{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:10px}.nx-rebuild .wrapform textarea{width:100%;min-height:90px}.nx-rebuild .wrapform .actions{display:flex;flex-wrap:wrap;gap:6px}.nx-rebuild .wrapform button{font-size:12px;padding:8px;flex:1}
html body.nx-rebuild dialog{background:white;color:#253345;border:1px solid #cfd8e3;border-radius:7px;box-shadow:0 16px 60px #20304435;max-width:95vw;padding:24px}.nx-rebuild dialog::backdrop{background:#24374e70;backdrop-filter:blur(2px)}
html body.nx-rebuild .nx-check{display:flex;gap:10px;align-items:center}.nx-rebuild fieldset{border:1px solid var(--line);border-radius:5px;padding:12px}
html body.nx-rebuild #overview .cards{gap:12px}.nx-rebuild .workspace-pulse{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.nx-rebuild .workspace-pulse>article{background:#fff;border:1px solid var(--line);border-radius:5px;padding:16px}.nx-rebuild .workspace-pulse strong{font-size:26px}
html body.nx-rebuild .login{max-width:400px;margin:8vh auto;padding:28px}
@media(min-width:1450px){html body.nx-rebuild[data-ops-page=performance] #manager .workspace{display:grid;grid-template-columns:225px minmax(0,1fr);gap:0 16px}html body.nx-rebuild[data-ops-page=performance] :is(.ref-titlebar,.ops-section-tabs){grid-column:1/-1}html body.nx-rebuild[data-ops-page=performance] #reportFilters{grid-column:1;grid-row:3;align-self:start;display:block;padding:14px}html body.nx-rebuild[data-ops-page=performance] #ccDateRange{display:flex;flex-direction:column;align-items:stretch}html body.nx-rebuild[data-ops-page=performance] #reportFilters label{display:flex;margin:10px 0;flex-direction:column}html body.nx-rebuild[data-ops-page=performance] .range-presets{flex-wrap:wrap}html body.nx-rebuild[data-ops-page=performance] #controlCenter{grid-column:2;grid-row:3}}
@media(max-width:1200px){html body.nx-rebuild #agent .agentGrid{grid-template-columns:240px minmax(340px,1fr) 240px!important}.nx-rebuild .ref-call-header{grid-template-columns:1fr 1fr}.nx-rebuild .ref-call-header>.agent-campaign-bar{grid-column:1/-1}.nx-rebuild .cc-kpi strong{font-size:24px}}
@media(max-width:850px){html body.nx-rebuild #agent .agentGrid{display:flex!important;flex-direction:column!important;height:auto}html body.nx-rebuild #agent :is(.voice-dock,.stage,.workspace-side){width:100%;max-height:none;height:auto}.nx-rebuild .ref-script-body{max-height:450px}.nx-rebuild .cc-kpis{grid-template-columns:repeat(2,1fr)}.nx-rebuild .cc-mini{grid-template-columns:repeat(3,1fr)}.nx-rebuild .ref-ai-columns{grid-template-columns:1fr}.nx-rebuild .campaign-cards{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.nx-rebuild .ref-filters label{max-width:none}.nx-rebuild .ref-pager{flex-wrap:wrap}.nx-rebuild .workspace-pulse{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){html body.nx-rebuild *{scroll-behavior:auto!important;transition:none!important}}

html body.nx-rebuild,html body.nx-rebuild :is(h1,h2,h3,h4,p,span,small,b,strong,button,input,select,textarea,label,a,th,td,dt,dd,summary,legend){font-family:Arial,sans-serif!important}

/* NEXSURE_REALTIME_101 */
html body.nx-rebuild[data-ops-page=control] #manager .workspace{padding:0 22px!important;background:#fff;display:block}
html body.nx-rebuild[data-ops-page=control] :is(.ref-titlebar,.command-page-heading,.cc-heading,.cc-guide){display:none!important}
html body.nx-rebuild[data-ops-page=control] .rt-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d8dde3;min-height:54px}
html body.nx-rebuild[data-ops-page=control] .ops-section-tabs{border:0;margin:0;padding:0;display:flex;gap:24px}
html body.nx-rebuild[data-ops-page=control] .ops-section-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:#fff;color:#555;font-size:16px;padding:16px 12px}
html body.nx-rebuild[data-ops-page=control] .ops-section-tabs button[aria-pressed=true]{color:#0964ce;border-bottom-color:#0964ce}
html body.nx-rebuild[data-ops-page=control] .ops-section-tabs button[data-ops-tab=campaigns]{display:none}
html body.nx-rebuild[data-ops-page=control] .rt-filter-toggle{color:#0964ce;border:0;background:#fff}
html body.nx-rebuild[data-ops-page=control] #controlCenter{padding:0;border:0;box-shadow:none;margin:0}
html body.nx-rebuild[data-ops-page=control] .cc-kpis{display:flex;gap:7px;justify-content:flex-start;margin:20px 8px 48px;max-width:1100px;overflow:visible;direction:rtl}
html body.nx-rebuild[data-ops-page=control] .cc-kpi{--tone:#637c90;flex:1;min-width:0;position:relative;height:88px;padding:12px 20px 10px 28px;border:0!important;border-radius:0!important;background:var(--tone)!important;box-shadow:none;clip-path:polygon(0 50%,20px 0,100% 0,calc(100% - 20px) 50%,100% 100%,20px 100%);text-align:right}
html body.nx-rebuild[data-ops-page=control] .cc-kpi:before{content:'';position:absolute;inset:1px;background:white;clip-path:polygon(0 50%,20px 0,100% 0,calc(100% - 20px) 50%,100% 100%,20px 100%);z-index:0}
html body.nx-rebuild[data-ops-page=control] .cc-kpi:first-child{clip-path:polygon(0 50%,20px 0,100% 0,100% 100%,20px 100%)}
html body.nx-rebuild[data-ops-page=control] .cc-kpi:first-child:before{clip-path:polygon(0 50%,20px 0,100% 0,100% 100%,20px 100%)}
html body.nx-rebuild[data-ops-page=control] .cc-kpi>*{position:relative;z-index:1;color:var(--tone)}
html body.nx-rebuild[data-ops-page=control] .cc-kpi span{font-size:15px;display:block;white-space:nowrap}
html body.nx-rebuild[data-ops-page=control] .cc-kpi strong{font-size:34px;line-height:1.3;font-weight:700;font-variant-numeric:tabular-nums}
html body.nx-rebuild[data-ops-page=control] .cc-kpi small{display:none}
html body.nx-rebuild[data-ops-page=control] .cc-kpi.amber{--tone:#ed7b20}
html body.nx-rebuild[data-ops-page=control] .cc-kpi.teal{--tone:#256bc0}
html body.nx-rebuild[data-ops-page=control] .cc-kpi.green{--tone:#268a2e}
html body.nx-rebuild[data-ops-page=control] .cc-kpi.slate{--tone:#555}
html body.nx-rebuild[data-ops-page=control] .rt-agents-title{font-size:15px;margin:0;padding:8px 14px;border-bottom:1px solid #d8dde3}
html body.nx-rebuild[data-ops-page=control] .cc-table-wrap{border:0;border-radius:0;overflow:auto}
html body.nx-rebuild[data-ops-page=control] .cc-table-wrap table{width:100%;min-width:1000px;border-collapse:collapse;font-size:15px}
html body.nx-rebuild[data-ops-page=control] .cc-table-wrap :is(th,td){background:#fff;padding:15px 12px;border:0;border-bottom:1px solid #d8dde3;white-space:nowrap;text-align:right;color:#24282c}
html body.nx-rebuild[data-ops-page=control] .cc-table-wrap th{font-weight:500;height:58px}
html body.nx-rebuild[data-ops-page=control] .cc-table-wrap td:nth-child(4){color:#238527}
html body.nx-rebuild[data-ops-page=control] .cc-name{border:0;background:transparent;color:#1265ce;padding:0;min-height:0;font-size:15px}
html body.nx-rebuild[data-ops-page=control] .cc-table-wrap td small{display:block;font-size:11px;color:#7a8591}
html body.nx-rebuild[data-ops-page=control] .cc-definitions{margin-top:20px;font-size:12px;color:#68788b}
html body.nx-rebuild[data-ops-page=control] .cc-error:empty{display:none}
html body.nx-rebuild[data-ops-page=control] button:hover{background:#eaf3ff;color:#0757b8}
@media(max-width:900px){html body.nx-rebuild[data-ops-page=control] .cc-kpis{overflow-x:auto;max-width:none;margin-bottom:24px}html body.nx-rebuild[data-ops-page=control] .cc-kpi{flex:0 0 190px}}

.rt-quick{display:flex;gap:8px;align-items:center}.rt-quick button{white-space:nowrap}

/* NEXSURE_MANAGER_PHONE_102 */
html body.nx-rebuild .phone-setup-card{border:1px solid #bdd6f4;border-top:3px solid #0878e8;background:#f8fbff;padding:22px;margin-bottom:20px;border-radius:8px}
html body.nx-rebuild .phone-setup-card form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:16px;align-items:end}
html body.nx-rebuild .phone-setup-card label{display:flex;flex-direction:column;gap:8px}
html body.nx-rebuild .phone-setup-message{padding:10px;margin:12px 0 0;white-space:pre-wrap}
html body.nx-rebuild .phone-setup-message:empty{display:none}
html body.nx-rebuild .phone-setup-message[data-state=success]{background:#e5f7eb;color:#146733}
html body.nx-rebuild .phone-setup-message[data-state=failed]{background:#fff0ed;color:#9c3020}
@media(max-width:900px){html body.nx-rebuild .phone-setup-card form{grid-template-columns:1fr}}

/* NEXSURE_CRM_103 */
.customer-workspace{padding:20px 12px;min-height:75vh;color:#24354b;background:#fff}
.customer-workspace[hidden]{display:none!important}
.customer-workspace h1{font-size:25px;margin:0 0 16px}
.customer-tabs{display:flex;gap:8px;border-bottom:1px solid #d9e3ef;margin-bottom:20px;padding:6px 0}
.customer-tabs button{border:0;background:transparent;color:#1769c2;padding:12px 20px;border-radius:0}
.customer-tabs button:hover,.customer-tabs button[aria-current=true]{background:#eaf4ff;color:#0754a6;border-bottom:3px solid #1479ef}
.customer-filters{display:flex;gap:16px;align-items:end;padding:18px;background:#f6f9fc;border:1px solid #dfe7ef;border-radius:8px;margin-bottom:18px;flex-wrap:wrap}
.customer-filters label{display:grid;gap:7px;font-weight:600}.customer-filters input{min-width:260px}
.customer-table{overflow:auto;width:100%;margin:14px 0}.customer-table table{width:100%;border-collapse:collapse;text-align:right;font-size:14px}.customer-table th{background:#f2f6fa;color:#43576b;padding:13px 12px;font-weight:600;white-space:nowrap}.customer-table td{padding:14px 12px;border-bottom:1px solid #e3e9f0}.customer-table tbody tr:hover{background:#f2f8ff}.customer-phone{direction:ltr;display:inline-block}
.customer-empty{padding:36px;text-align:center;background:#f6f9fc;color:#53667a}
.lead-profile-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.customer-status{background:#e6f5ed;color:#187246;padding:6px 12px;border-radius:20px}
.lead-event{margin:18px 0;border:1px solid #dce5ef;border-right:4px solid #2082dc;border-radius:8px;padding:18px;background:white}.lead-event-head{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.lead-event-head strong{color:#1268aa;background:#eef6fe;padding:6px 12px;border-radius:5px}.lead-note,.lead-contact-note p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.7}.lead-contact-note{border-top:1px dashed #dce5ef;padding-top:12px}.lead-contact-note small{color:#61778c}
html body dialog.customer-inline-card[open]{display:block;position:static;inset:auto;transform:none;width:100%;max-width:none;max-height:none;box-shadow:none;margin:16px 0;padding:20px;border:1px solid #dde5ef;border-radius:8px;box-sizing:border-box}
@media(max-width:700px){.customer-workspace{padding:12px 4px}.customer-tabs button{padding:10px}.customer-filters{display:grid}.customer-filters input{min-width:0;width:100%}.lead-event{padding:12px}}

/* NEXSURE_NAV_104: bounded grouped navigation; inherited icon contrast */
html body.nx-rebuild #manager .manager-layout{grid-template-columns:190px minmax(0,1fr)!important}
html body.nx-rebuild #manager .manager-layout.nav-collapsed{grid-template-columns:60px minmax(0,1fr)!important}
html body.nx-rebuild #manager .rail.compact-rail{width:100%;height:calc(100dvh - 44px);max-height:calc(100dvh - 44px);position:sticky;top:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:8px;background:#f8fafc;display:block;box-shadow:none}
html body.nx-rebuild #manager .rail.compact-rail>:not(#tabs):not(.compact-toggle){display:none!important}
html body.nx-rebuild #manager .rail.compact-rail #tabs{gap:6px}
html body.nx-rebuild #manager .rail.compact-rail .compact-nav-group{border:0;border-bottom:1px solid #dce5ee;border-radius:0;padding:0 0 8px;margin:0;background:transparent}
html body.nx-rebuild #manager .rail.compact-rail summary{font-size:12px;font-weight:700;color:#53677f;padding:9px 7px;cursor:pointer}
html body.nx-rebuild #manager .rail.compact-rail button{width:100%;min-height:36px;padding:8px;gap:9px;justify-content:flex-start;background:transparent;color:#405976;border-radius:6px;border:0;font-size:13px;line-height:1.3;box-shadow:none}
html body.nx-rebuild #manager .rail.compact-rail .ops-nav-label{display:inline;color:inherit!important;white-space:normal}
html body.nx-rebuild #manager .rail.compact-rail :is(button:hover,button[aria-pressed=true],button[aria-current=page]){background:#dcecff!important;color:#0958b3!important;border:0;box-shadow:inset -3px 0 #0969e8}
html body.nx-rebuild #manager .rail.compact-rail button :is(svg,.ops-nav-icon,.compact-fallback){color:inherit!important;background:transparent!important;box-shadow:none!important}
html body.nx-rebuild #manager .rail.compact-rail svg{width:19px;height:19px;stroke:currentColor!important;opacity:1}
html body.nx-rebuild #manager .rail.compact-rail svg *{stroke:currentColor!important}
html body.nx-rebuild #manager .rail.compact-rail .compact-toggle{position:sticky;top:-8px;background:#edf3fa;color:#184f86;z-index:2;margin-bottom:8px}
html body.nx-rebuild #manager .rail.rail-collapsed .ops-nav-label{display:none!important}
html body.nx-rebuild #manager .rail.rail-collapsed button{justify-content:center;padding:8px 3px}
html body.nx-rebuild #manager .rail.rail-collapsed summary{font-size:10px;padding:8px 0;list-style:none;text-align:center}
html body.nx-rebuild .lead-list-note{min-width:230px;max-width:360px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:0;color:#33485d}
html body.nx-rebuild .lead-outcome{display:inline-block;min-width:120px;color:#1264af;font-weight:600}

/* NEXSURE_PLANS_105 */
.plan-page{padding:20px 0}.plan-edit{display:flex;gap:14px;flex-wrap:wrap;align-items:end;background:#f4f8fc;padding:18px;border:1px solid #dce5ef;border-radius:8px;margin:20px 0}.plan-edit label{display:grid;gap:6px}.plan-edit textarea{height:72px;min-width:220px}.plan-picker{padding:16px;background:#edf7ff;border:1px solid #b6d9f7;border-radius:8px;margin:12px 0}.plan-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}.plan-line select{flex:1;min-width:180px}.plan-picker>strong{display:block;margin-top:14px;color:#165693}.plan-picker>button{margin:4px}.plan-sales-report{margin:24px 0;padding:20px;border:1px solid #d7e4ef;border-radius:8px;background:#fbfdff}.plan-sales-report:empty{display:none}

/* NEXSURE_AGENT_DIAL_106 */
.manual-dial-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0;padding:14px;border:1px solid #cbdff3;border-radius:8px;background:#f5faff;color:#173b60}
.manual-dial-form label{display:grid;gap:5px}.manual-dial-form input{min-height:40px;border:1px solid #9dbbda;border-radius:6px;padding:8px;background:white;color:#173b60}
.manual-dial-form small{flex-basis:100%;color:#48647e}.manual-dial-form button:hover:not(:disabled){background:#0755ad;color:#fff}.manual-dial-form button:disabled{opacity:.5;cursor:not-allowed}

/* NEXSURE_AUTO_NOANSWER_107 */

/* NEXSURE_PHONE_HANDOFF_108 */


/* NEXSURE_PHONE_NUMBERS_107 */
html body.nx-rebuild .ref-phone-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
html body.nx-rebuild .ref-number-check{display:grid;gap:10px;min-width:220px}
html body.nx-rebuild .ref-number-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html body.nx-rebuild .ref-number-actions button,html body.nx-rebuild .ref-telegram-link{min-height:32px;padding:6px 10px;border:1px solid #d5e0ec;border-radius:7px;background:#fff;color:#155ca5;text-decoration:none;font-size:12px;cursor:pointer}
html body.nx-rebuild .ref-number-actions button:hover,html body.nx-rebuild .ref-telegram-link:hover{background:#edf6ff}
html body.nx-rebuild .ref-phone-settings td{vertical-align:middle}
html body.nx-rebuild .rail.compact-rail .compact-nav-group>summary{list-style:none;display:flex;align-items:center;justify-content:space-between}
html body.nx-rebuild .rail.compact-rail .compact-nav-group>summary::-webkit-details-marker{display:none}
html body.nx-rebuild .rail.compact-rail .compact-nav-group>summary:after{content:'⌄';font-size:14px;transition:transform .18s ease}
html body.nx-rebuild .rail.compact-rail .compact-nav-group[open]>summary:after{transform:rotate(180deg)}
html body.nx-rebuild .rail.compact-rail .compact-nav-group:not([open]){padding-bottom:2px}
