:root{
  font-family:"Google Sans","Roboto","Segoe UI",Arial,sans-serif;font-size:14px;font-synthesis:none;
  color:#1f1f1f;background:#f8fafd;
  --accent:#0b57d0;--accent-dark:#0842a0;--ink:#1f1f1f;--muted:#5f6368;
  --line:#e1e5eb;--nav:#f0f4f9;--nav-active:#d3e3fd;--header-height:64px;
  --sidebar-width:244px;--filter-width:304px;
  --surface:#fff;--surface-low:#f0f4f9;--on-primary:#fff;--on-primary-container:#041e49;
  --elevation:0 1px 2px #1f1f1f08,0 3px 12px #1f1f1f05;
}

*{box-sizing:border-box}
body{margin:0;background:#f8fafd;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}

[hidden]{display:none!important}
h1,h2,h3,p{margin-top:0}
h1{font-size:28px;font-weight:400;line-height:1.25;letter-spacing:-.5px;margin-bottom:8px;color:var(--ink)}
h2{font-size:20px;font-weight:500;line-height:1.35;margin-bottom:16px;color:var(--ink)}
h3{font-size:15px;font-weight:600;line-height:1.45;margin-bottom:12px;color:var(--ink)}
p{line-height:1.6;color:#444746;margin-bottom:12px}
small,.muted,footer{color:var(--muted);font-size:13px}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:1.1px;color:#444746;margin-bottom:7px}

button{border:1px solid transparent;border-radius:999px;background:var(--accent);color:var(--on-primary);font-weight:500;min-height:40px;padding:9px 20px;cursor:pointer;line-height:1.4;transition:background .16s,box-shadow .16s,border-color .16s,transform .16s}
button:hover{background:var(--accent-dark);color:#fff;box-shadow:0 1px 3px #1f1f1f20}
button:disabled{opacity:1;background:#f0f1f3;color:#92969d;border-color:transparent;cursor:default;box-shadow:none}
button.quiet{background:transparent;border-color:#c4c7c5;color:var(--accent);font-weight:500}
button.quiet:hover{background:#e8f0fe;border-color:#a8c7fa;color:#0842a0;box-shadow:none}
button.danger{background:#b3261e;color:#fff}
button.danger:hover{background:#8c1d18}
button.subtle{background:#fce8e6;border-color:transparent;color:#a50e0e}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #0b57d0;outline-offset:3px}
a{color:#0b57d0;text-decoration:none}
a:hover{text-decoration:underline}

input,select,textarea{display:block;width:100%;min-height:44px;margin:7px 0 0;border:1px solid #c4c7c5;border-radius:8px;padding:10px 12px;color:var(--ink);background:#fff;outline:none;font-size:14px;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
input:disabled,select:disabled,textarea:disabled{background:#f5f6f7;color:#747775;border-color:#e1e5eb}
input::placeholder,textarea::placeholder{color:#747775}
input[type=checkbox]{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--accent);flex-shrink:0}
textarea{resize:vertical;min-height:80px;line-height:1.55}
label{display:block;color:#444746;font-size:13px;font-weight:500;line-height:1.5}
section{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;margin-bottom:20px}
section>p.muted{font-size:13px}
details summary{font-size:13px;cursor:pointer;color:#444746}
details[open]>summary{margin-bottom:12px}


/* Material-inspired application shell: light surfaces and a clear navigation rail. */
.topbar{position:fixed;inset:0 0 auto;z-index:40;height:var(--header-height);display:flex;align-items:center;gap:18px;padding:0 24px 0 18px;background:#f8fafd;color:#1f1f1f;border-bottom:0}

.nav-toggle{display:grid;place-items:center;flex:0 0 40px;min-height:40px;width:40px;padding:0;border:0;background:transparent;color:#444746;font-size:20px;border-radius:50%}
.nav-toggle:hover{background:#e1e9f6;color:#1f1f1f;box-shadow:none}
.nav-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}

.brand{display:flex;align-items:center;gap:11px;min-width:180px;color:#1f1f1f;white-space:nowrap}
.brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;background:#d3e3fd;color:#0b57d0;border-radius:12px;font-size:24px;font-weight:600;line-height:1}
.brand-name{font-size:21px;font-weight:500;letter-spacing:-.6px}
.brand-light{display:inline-block;margin-left:7px;padding-left:7px;border-left:1px solid #c4c7c5;font-size:12px;font-weight:400;letter-spacing:.2px;color:#5f6368}
.topbar-caption{font-size:13px;color:#5f6368;white-space:nowrap}
.shell-status{display:flex;align-items:center;gap:12px;margin-left:auto;min-width:0}
.shell-status span{font-size:12px;line-height:1.4;white-space:nowrap;color:#5f6368}
.shell-status span+span{padding-left:12px;border-left:1px solid #dde3ea}
#shellMode{color:#0b57d0}
.topbar-account{display:flex;align-items:center;gap:10px;margin-left:3px;min-width:0}
#identity{font-size:13px;font-weight:500;color:#1f1f1f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}
.topbar-account button{font-size:12px;min-height:36px;padding:7px 15px;background:transparent;border-color:#c4c7c5;color:#444746}
.topbar-account button:hover{background:#e1e9f6;border-color:#c4c7c5;color:#1f1f1f;box-shadow:none}

/* Line controls stay outside workspace panels and retain their server-confirmed state. */
.operator-line-controls{display:flex;align-items:center;gap:7px;flex:0 1 auto;min-width:0}
.operator-line-status{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:190px;padding:7px 10px;border:0;border-radius:999px;background:#eef2f7;color:#444746;font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.operator-line-status:before{content:"";width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor}
.operator-line-status[data-tone="active"]{background:#c4eed0;border-color:transparent;color:#0f5223}
.operator-line-status[data-tone="blocked"]{background:#fef7e0;border-color:transparent;color:#7c5800}
.operator-line-status[data-tone="stale"]{background:#fce8e6;border-color:transparent;color:#a50e0e}
.operator-line-controls button{flex:0 0 auto;min-height:40px;padding:9px 16px;font-size:13px;line-height:1.4;white-space:nowrap}
.operator-line-controls .start-dialer{background:#0b57d0;border-color:#0b57d0;color:#fff}
.operator-line-controls .start-dialer:hover{background:#0842a0;border-color:#0842a0;color:#fff}
.operator-line-controls button.quiet{background:transparent;border-color:#c4c7c5;color:#0b57d0}
.operator-line-controls button.quiet:hover{background:#e8f0fe;border-color:#a8c7fa;color:#0842a0}
.operator-line-controls button:disabled,.operator-line-controls button:disabled:hover{opacity:1;background:#e8eaed;border-color:transparent;color:#92969d;cursor:default;box-shadow:none}
.operator-line-controls button:focus-visible{outline-color:#0b57d0;outline-offset:3px}
body.operator-line-visible .topbar-caption,body.operator-line-visible .shell-status #shellRole,body.operator-line-visible .shell-status #shellConnection{display:none}
body.operator-line-visible #identity{max-width:120px}

.crm-shell{padding-top:var(--header-height)}
.sidebar{position:fixed;inset:var(--header-height) auto 0 0;z-index:20;width:var(--sidebar-width);display:flex;flex-direction:column;padding:14px 12px 20px;background:#f8fafd;color:#444746;border-right:0}
.sidebar-label{margin:8px 16px 16px;font-size:11px;font-weight:500;letter-spacing:1px;color:#747775}
.sidebar nav{display:flex;flex-direction:column;gap:5px;overflow-y:auto;min-height:0;scrollbar-width:thin}
.nav-item{display:flex;align-items:center;gap:14px;width:100%;background:transparent;border:0;border-radius:999px;color:#444746;text-align:left;font-size:14px;font-weight:500;padding:13px 16px;min-height:48px;line-height:1.4}
.nav-item:hover{background:#e8edf5;color:#1f1f1f;box-shadow:none}
.nav-item.active{background:#d3e3fd;color:#041e49;box-shadow:none}
.nav-item svg{width:21px;height:21px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-item small{margin-left:auto;border-radius:999px;background:#e1e9f6;color:#0b57d0;padding:2px 7px;font-size:12px}
.nav-item small:empty{display:none}
.sidebar-foot{flex-shrink:0;margin-top:auto;padding:18px 16px 0;border-top:1px solid #e1e5eb}
.sidebar-foot strong{font-size:12px;font-weight:500;color:#5f6368}
.sidebar-foot p{font-size:12px;color:#5f6368;line-height:1.5;margin:8px 0 10px}
.privacy-dot{display:inline-block;width:7px;height:7px;background:#146c2e;border-radius:50%;margin-right:8px}
.version-badge{display:inline-block;font-size:11px;letter-spacing:.2px;color:#5f6368;border:0;border-radius:999px;padding:4px 8px;background:#edf2fa}

body.nav-collapsed{--sidebar-width:76px}
body.nav-collapsed .sidebar-label,body.nav-collapsed .sidebar-foot,body.nav-collapsed .sidebar .nav-item span,body.nav-collapsed .sidebar .nav-item small{display:none}
body.nav-collapsed .sidebar .nav-item{justify-content:center;padding:12px 0;border-radius:20px}
body.nav-collapsed .sidebar .nav-item svg{width:20px;height:20px}

.workspace-main{margin-left:var(--sidebar-width);margin-right:16px;padding:20px 28px 12px;min-height:calc(100vh - var(--header-height));min-width:0;background:#fff;border-radius:24px 24px 0 0}
.cabinet-tabs{display:flex;align-items:stretch;gap:24px;min-height:48px;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid var(--line);margin-bottom:24px;white-space:nowrap}
.cabinet-tabs>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;width:auto;min-height:47px;padding:0 2px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:#5f6368;font-size:13px;font-weight:500}
.cabinet-tabs>button:hover{background:transparent;color:#0b57d0;box-shadow:none}
.cabinet-tabs>button.active{color:#0b57d0;border-bottom-color:#0b57d0}
.cabinet-tabs>button svg{display:none}
.cabinet-tabs>button small{padding:1px 4px;font-size:12px;background:#f0f4f9;color:#0b57d0;border-radius:8px}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.workspace-heading h1{font-size:28px;font-weight:400;letter-spacing:-.5px;margin:0}
.workspace-heading-actions{display:flex;align-items:center;gap:10px}
#breadcrumbs,#viewDescription{display:none}
.pill,.badge{display:inline-block;border-radius:999px;padding:6px 11px;background:#edf2fa;color:#444746;font-size:12px;white-space:nowrap}
.filter-toggle{display:flex;align-items:center;gap:6px;font-size:13px;padding:6px 10px}
.filter-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}
.workspace-status{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:0 0 16px;margin-bottom:22px;border-bottom:1px solid var(--line)}
.freshness{display:flex;align-items:center;margin:0;color:#146c2e;font-size:12px}
.freshness:before{content:"";width:6px;height:6px;margin-right:6px;border-radius:50%;background:#146c2e}
.freshness.stale{color:#8a5a00}
.freshness.stale:before{background:#8a5a00}
#telephonyStatus{font-size:12px;color:#444746;margin:0 0 0 auto}
#notice{font-size:13px;color:#8a5a00;white-space:pre-wrap;padding:8px 10px;margin-bottom:12px;background:#fef7e0;border:1px solid #f9e4a8;border-radius:8px}
#notice:empty{display:none}
.workspace-footer{padding:15px 0 12px;font-size:12px;color:#444746}

/* Reports lead with the figures; the page title remains available to screen readers. */
#workspace[data-view="reports"] .workspace-heading{height:0;min-height:0;margin:0;padding:0}
#workspace[data-view="reports"] .workspace-heading>div:first-child,
#workspace[data-view="reports"] .workspace-status:has(>.freshness:not(.stale)){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#workspace[data-view="reports"] .workspace-heading-actions{display:none}
#workspace[data-view="reports"] .workspace-status:has(>.freshness.stale){padding:7px 9px;margin-bottom:10px;background:#fef7e0;border:1px solid #f9e4a8;border-radius:8px}


/* Report filter rail only reserves space when the application explicitly shows it. */
.crm-shell:has(>.cabinet-filter:not([hidden])) .workspace-main{margin-right:var(--filter-width)}
.cabinet-filter{position:fixed;inset:var(--header-height) 0 0 auto;z-index:25;width:var(--filter-width);display:flex;flex-direction:column;padding:6px 22px;background:#f8fafd;border:1px solid var(--line);border-right:0;border-radius:24px 0 0 0;overflow-y:auto;scrollbar-width:thin;box-shadow:-4px 0 20px #1f1f1f08}
.filter-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;min-height:44px;padding:12px 0;border-bottom:1px solid var(--line)}
.filter-heading h2{font-size:18px;font-weight:500;margin:0;color:#1f1f1f}
.filter-caption{font-size:12px;color:#444746}
.filter-fields>label{padding:13px 0;border-bottom:1px solid var(--line);color:#444746;font-weight:500}
.filter-fields input,.filter-fields select{margin-top:6px;font-weight:400;min-height:36px;font-size:13px}
.filter-fields>.muted{font-size:12px;line-height:1.5;margin:13px 0}
.filter-actions{display:flex;gap:7px;margin-top:auto;padding:12px 0;position:sticky;bottom:0;background:#ffffff;border-top:1px solid var(--line)}
.filter-actions button{flex:1;font-size:13px;padding:7px 8px}
body.fixture-demo .cabinet-filter{top:calc(var(--header-height) + var(--demo-height,68px))}


.filter-heading .filter-close{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:#444746;font-size:25px;font-weight:300;line-height:1}
.filter-heading .filter-close:hover{background:#e1e9f6;color:#1f1f1f;box-shadow:none}
.filter-heading .filter-caption{margin-left:auto}


/* Comfortable data density with clear text and restrained tonal surfaces. */
.crm-toolbar,.monitor-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.crm-toolbar h2,.monitor-heading h2,.monitor-heading h3{margin:0}
.crm-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.crm-toolbar-actions>button{font-size:13px}
.scroll{overflow:auto;max-height:500px;scrollbar-width:thin}
table{border-collapse:collapse;width:100%;text-align:left}
th,td{border-bottom:1px solid var(--line);padding:13px 14px;vertical-align:top}
th{font-size:12px;font-weight:500;color:#5f6368;white-space:nowrap}
td{font-size:13px;color:#444746}
td:first-child{max-width:300px}
td button{font-size:13px;padding:6px 9px}
thead{background:#f8fafd}
tbody tr:hover{background:#f3f6fc}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.stat{padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--elevation)}
.stat strong{display:block;font-size:30px;font-weight:400;color:#1f1f1f;margin-bottom:7px;letter-spacing:-.5px}
.stat span{font-size:13px;color:#444746}
.report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px;margin:16px 0}
.report-metric{padding:18px;background:#f0f4f9;border:0;border-radius:16px}
.report-metric strong{display:block;font-size:28px;font-weight:400;color:#1f1f1f;margin-bottom:7px}
.report-metric span{font-size:13px;color:#444746}
.campaign-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:13px 16px;margin:16px 0}
.check-grid{display:flex;flex-wrap:wrap;gap:12px 19px;margin:14px 0 18px}
.check-grid label,.qualification-check{display:flex!important;align-items:center;gap:8px}
.campaign-actions{display:flex;flex-wrap:wrap;gap:8px}
.field-title,.import-target{font-size:13px;color:#444746}
.pager{display:flex;align-items:center;justify-content:flex-end;gap:11px;margin:15px 0 0}
.pager button{font-size:13px;padding:7px 10px}
.pager span{font-size:13px}
.view-switch{display:inline-flex;gap:0;border:1px solid #f0f4f9;border-radius:12px;overflow:hidden}
.view-switch button{padding:7px 12px;background:#ffffff;color:#444746;font-size:13px;border:0;border-radius:0}
.view-switch button+button{border-left:1px solid #f0f4f9}
.view-switch button.active{background:#f0f4f9;color:#0b57d0}
.empty-state{padding:35px 20px;border:1px dashed #f0f4f9;border-radius:12px;text-align:center;background:#f8fafd;grid-column:1/-1}
.empty-state strong{display:block;font-size:14px;font-weight:500;color:#444746;margin-bottom:8px}
.empty-state p{font-size:13px;margin:0}


/* Team workspace: directory data and outbound queues, never SIP provisioning. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.team-workspace{padding:0;border:0;background:transparent;min-width:0}

.team-directory-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:4px 0 18px;border:0}
.team-create-label{flex:0 0 192px}
.team-create-label select{margin:0;color:#0b57d0;border-color:#c2d7f7;background:#f8fafd;min-height:40px;font-size:13px}
.team-tabs{display:flex;align-items:stretch;flex:0 0 auto;gap:0;border:1px solid #c4c7c5;border-radius:999px;overflow:hidden}
.team-tabs button{min-height:40px;padding:9px 18px;border:0;border-radius:0;background:#fff;color:#444746;font-size:13px}
.team-tabs button+button{border-left:1px solid #e1e9f6}
.team-tabs button:hover{background:#f8fafd;color:#0b57d0}
.team-tabs button.active{background:#d3e3fd;color:#041e49;box-shadow:none}
.team-search{display:flex;align-items:center;flex:1 1 230px;gap:8px;margin-left:auto;max-width:390px;min-width:210px}
.team-search input{min-width:0;margin:0;min-height:40px;font-size:13px}
.team-search button{min-height:40px;padding:7px 15px;font-size:13px;flex-shrink:0}

.team-directory-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:8px 0}
.team-directory-meta .qualification-check{font-size:13px;color:#444746}
.team-directory-meta #teamCounts{font-size:13px;line-height:1.6;text-align:right}
.team-directory-state{max-width:100%;font-size:13px;line-height:1.4;color:#444746;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 7px}
.team-directory-state:empty{display:none}
.team-workspace #teamSummary{display:none!important}
.team-directory-counts{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 12px}
.team-directory-counts>button{font-size:13px;padding:5px 9px;min-height:27px}
.team-directory-meta #teamUpdated{font-size:13px;line-height:1.4;white-space:nowrap;color:#444746}

.team-bulk-bar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:8px 10px;background:#f8fafd;border:1px solid var(--line);border-bottom:0;border-radius:12px 3px 0 0}
.team-bulk-bar #teamSelectedCount{font-size:13px;min-width:75px;margin-right:3px}
.team-bulk-bar select{margin:0;min-height:30px;font-size:13px}
.team-bulk-bar #teamBulkAction{flex:0 1 210px}
.team-bulk-bar #teamBulkGroup{flex:0 1 200px}
.team-bulk-bar button{padding:6px 12px;min-height:30px;font-size:13px}

.team-table-scroll{max-width:100%;overflow:auto;scrollbar-width:thin;border:1px solid var(--line);border-radius:16px}
.team-directory-table{min-width:960px;table-layout:fixed}
.team-directory-table th,.team-directory-table td{height:54px;font-size:13px;line-height:1.5;color:#1f1f1f;overflow-wrap:anywhere}
.team-directory-table th{height:44px;background:#f8fafd;font-size:12px;color:#5f6368;font-weight:500}
.team-directory-table td{height:42px;font-size:13px;line-height:1.4;color:#444746;overflow-wrap:anywhere}
.team-directory-table th:nth-child(1){width:34px}
.team-directory-table th:nth-child(2){width:205px}
.team-directory-table th:nth-child(3){width:190px}
.team-directory-table th:nth-child(4){width:105px}
.team-directory-table th:nth-child(5){width:133px}
.team-directory-table th:nth-child(6){width:auto}
.team-directory-table th:nth-child(7){width:126px}
.team-directory-table th:nth-child(8){width:36px}
.team-check-cell,.team-select-cell{padding-left:11px!important;padding-right:6px!important}
.team-directory-table .team-sort{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:0;padding:0;min-height:20px;background:transparent;color:#444746;font-size:13px;font-weight:500;white-space:nowrap;text-align:left}
.team-sort:hover{color:#0b57d0}
.team-sort>span{font-size:13px;color:#c2d7f7}
.team-sort[aria-sort="ascending"]>span,.team-sort[aria-sort="descending"]>span{font-size:0;color:#0b57d0}
.team-sort[aria-sort="ascending"]>span:after{content:"↑";font-size:13px}
.team-sort[aria-sort="descending"]>span:after{content:"↓";font-size:13px}

.team-status-cell{position:relative;padding-left:25px!important}
.team-status-cell>.team-status-dot{position:absolute;left:10px;top:50%;transform:translateY(-50%)}
.team-status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0;background:#c2d7f7;box-shadow:0 0 0 2px #f8fafd}
.team-status-dot.available,.team-status-dot.ready{background:#146c2e}
.team-status-dot.busy,.team-status-dot.ringing,.team-status-dot.talking{background:#0b57d0}
.team-status-dot.break,.team-status-dot.paused{background:#8a5a00}
.team-status-dot.unconfirmed,.team-status-dot.stale,.team-status-dot.uncertain{background:#8a5a00;box-shadow:0 0 0 2px #fef7e0}
.team-status-dot.offline,.team-status-dot.off{background:#c2d7f7}
.team-status-cell>span:not(.team-status-dot){font-size:13px}
.team-status-cell small{display:block;margin-top:2px;font-size:13px;color:#444746;font-variant-numeric:tabular-nums}
.team-name-cell strong{font-size:13px;font-weight:500;color:#0b57d0}
.team-name-cell small{display:none}
.team-name-link{padding:0;border:0;border-radius:0;background:transparent;color:#0b57d0;font-size:13px;font-weight:500;text-align:left;line-height:1.4;overflow-wrap:anywhere}
.team-name-link:hover{background:transparent;color:#0b57d0;text-decoration:underline}
.team-extension-cell{font-variant-numeric:tabular-nums}
.team-row-actions{padding-left:2px!important;padding-right:8px!important;text-align:right}
.team-row-actions .team-edit-button{padding:3px 4px;border:0;background:transparent;color:#0b57d0;font-size:15px;line-height:1}
.team-row-actions .team-edit-button:hover{background:#f0f4f9;color:#0b57d0}
.team-directory-table .team-empty{height:auto;padding:32px 15px;text-align:center;font-size:13px;color:#444746}
.team-status-legend{display:flex;flex-wrap:wrap;gap:7px 16px;padding:8px 2px;font-size:12px;color:#444746}
.team-status-legend>span{display:flex;align-items:center;gap:7px;line-height:1.6}
.team-status-legend .team-status-dot{width:6px;height:6px}

.team-section-toolbar,.team-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
.team-section-toolbar h3,.team-editor-heading h3{margin:0;color:#444746;font-size:13px}
.team-section-toolbar button{font-size:13px;padding:7px 11px}
.team-context-label{font-size:12px;color:#444746}
.team-field-note{font-size:13px;color:#444746;line-height:1.65;margin:0 0 15px;overflow-wrap:anywhere}
.team-editor{padding:19px;margin-top:14px;background:#f8fafd;border:1px solid #e1e9f6;border-top:2px solid #0b57d0;border-radius:12px}
.team-editor>label{margin:0 0 15px}
.team-editor-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(130px,1fr);gap:16px;margin-bottom:12px;max-width:720px}
.team-editor label{font-size:13px}
.team-editor input,.team-editor textarea{font-size:13px}
.team-editor .campaign-actions{margin-top:17px}
.team-editor .campaign-actions button{font-size:13px}
.team-editor-message{font-size:13px;color:#444746;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:13px 0 0}
.team-editor-message:empty{display:none}
.team-editor-heading>span{font-size:12px}
.team-member-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:0 20px;max-height:330px;overflow:auto;scrollbar-width:thin;margin:8px 0 16px}
.team-member-options label{display:flex;align-items:center;gap:9px;padding:10px 2px;border-bottom:1px solid #f0f4f9;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.team-member-options input{order:-1}

.team-group-list{display:grid;gap:9px}
.team-group-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,1.7fr) auto auto;gap:12px 20px;align-items:center;padding:15px;border:1px solid var(--line);border-radius:12px;background:#ffffff}
.team-group-row strong{font-size:13px;font-weight:500;color:#0b57d0;overflow-wrap:anywhere}
.team-group-row p{margin:0;font-size:13px;color:#444746;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.team-group-row span{font-size:12px;color:#444746;white-space:nowrap}
.team-group-row button{font-size:13px;padding:6px 10px}

.team-queue-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.team-queue-row{display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(160px,1fr) minmax(200px,1fr);align-items:center;gap:20px;padding:14px 16px;border-bottom:1px solid var(--line);background:#ffffff}
.team-queue-row:last-child{border-bottom:0}
.team-queue-row:hover{background:#f8fafd}
.team-queue-row.selected{background:#f8fafd;box-shadow:inset 3px 0 #0b57d0}
.team-queue-row>.team-name-link{position:relative;padding-left:17px;font-size:13px}
.team-queue-row>.team-name-link:before{content:"›";position:absolute;left:0;top:-1px;color:#0b57d0;font-size:18px}
.team-queue-row.selected>.team-name-link:before{content:"⌄";top:-3px;font-size:16px}
.team-queue-row>span{font-size:13px;line-height:1.65;color:#444746;overflow-wrap:anywhere}
.team-queue-list>.team-empty{margin:0;padding:25px 15px;font-size:13px;color:#444746;text-align:center}
.team-queue-detail{padding:14px;margin-top:13px;border:1px solid #e1e9f6;border-top:2px solid #0b57d0;border-radius:12px;background:#ffffff}
.team-queue-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}
.team-queue-detail-heading h3{font-size:15px;font-weight:500;color:#444746;margin:0 0 6px}
.team-queue-detail-heading p{font-size:13px;line-height:1.65;margin:0}
.team-queue-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:7px}
.team-queue-actions button{font-size:13px;padding:7px 9px}
.team-queue-tabs{display:flex;gap:20px;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid #f0f4f9;margin:0 0 18px;white-space:nowrap}
.team-queue-tabs button{flex:0 0 auto;padding:10px 0 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#444746;font-size:13px}
.team-queue-tabs button:hover{color:#0b57d0;background:transparent}
.team-queue-tabs button.active{border-bottom-color:#0b57d0;color:#0b57d0}
.team-queue-panel{min-width:0}
.team-queue-panel>h3{font-size:14px;color:#444746}
.team-queue-panel>p{font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.team-queue-panel .team-section-toolbar{margin-bottom:12px}
.team-queue-panel .team-table-scroll{border-radius:12px}
.team-members-table{min-width:560px;table-layout:fixed}
.team-members-table th,.team-members-table td{padding:10px;font-size:13px;vertical-align:middle;overflow-wrap:anywhere}
.team-members-table th{font-size:13px;background:#f8fafd;color:#444746}
.team-members-table th:first-child{width:33%}
.team-members-table th:nth-child(2){width:32%}
.team-members-table th:nth-child(3){width:15%}
.team-members-table th:nth-child(4){width:20%}
.team-members-table td:nth-child(2){color:#0b57d0}
.team-members-table td:nth-child(3){font-variant-numeric:tabular-nums;color:#444746}
.team-legacy-overview{display:none!important}

@media(max-width:1250px){.team-directory-toolbar{gap:11px}
.team-create-label{flex-basis:180px}
.team-tabs button{padding-left:12px;padding-right:12px}
.team-search{min-width:200px;max-width:none}
.team-group-row{grid-template-columns:minmax(130px,1fr) minmax(150px,1.5fr) auto}
.team-group-row>button{grid-column:3;grid-row:1/3}
.team-group-row>span{grid-column:1/3}
.team-queue-row{gap:15px}
.team-queue-detail-heading{flex-wrap:wrap}
.team-queue-actions{justify-content:flex-start}
}

@media(max-width:1000px){.team-search{flex-basis:100%;margin-left:0;max-width:none}
.team-directory-meta{align-items:flex-start}
.team-directory-meta #teamCounts{text-align:left}
.team-queue-row{grid-template-columns:minmax(150px,1fr) minmax(160px,1fr);gap:6px 15px}
.team-queue-row>span:last-child{grid-column:2}
.team-queue-row>.team-name-link{grid-row:1/3}
}

@media(max-width:760px){.team-directory-toolbar{align-items:stretch;gap:10px;padding:8px 0}
.team-create-label{flex-basis:100%;max-width:100%}
.team-tabs{width:100%;display:flex}
.team-tabs button{flex:1;padding:9px 10px;font-size:13px}
.team-search{min-width:0;flex-basis:100%}
.team-search input{font-size:13px}
.team-directory-meta{gap:9px}
.team-directory-meta #teamCounts{font-size:12px}
.team-directory-state{font-size:13px}
.team-bulk-bar{gap:8px;padding:10px}
.team-bulk-bar #teamSelectedCount{flex-basis:100%}
.team-bulk-bar #teamBulkAction,.team-bulk-bar #teamBulkGroup{flex:1 1 145px}
.team-bulk-bar button{flex:0 0 auto}
.team-status-legend{font-size:12px;gap:7px}
.team-editor{padding:14px}
.team-editor-grid{grid-template-columns:1fr}
.team-member-options{grid-template-columns:1fr;max-height:290px}
.team-group-row{grid-template-columns:1fr;gap:8px;padding:13px}
.team-group-row>span,.team-group-row>button{grid-column:auto;grid-row:auto}
.team-group-row>button{justify-self:start}
.team-section-toolbar{gap:10px}
.team-section-toolbar h3{font-size:13px}
.team-section-toolbar button{font-size:12px}
.team-queue-row{grid-template-columns:1fr;gap:5px;padding:13px}
.team-queue-row>.team-name-link{grid-row:auto}
.team-queue-row>span,.team-queue-row>span:last-child{grid-column:1;padding-left:17px;font-size:12px}
.team-queue-detail{padding:13px;margin-top:11px}
.team-queue-detail-heading{gap:13px}
.team-queue-detail-heading h3{font-size:14px}
.team-queue-actions{gap:6px}
.team-queue-actions button{font-size:12px;padding:6px 8px}
.team-queue-tabs{gap:17px;margin-bottom:15px}
.team-queue-tabs button{font-size:13px;padding:8px 0 10px}
.team-queue-panel>p{font-size:13px}
}


/* Employee, routing and settings screens. */
.operator-grid,.team{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:11px}
.member,.operator-card{min-width:0;padding:15px;border:1px solid #f0f4f9;border-radius:12px;background:#ffffff}
.member h3,.operator-card h3{font-size:14px;color:#444746}
.operator-card p{font-size:13px;overflow-wrap:anywhere;margin-bottom:10px}
.operator-id{font-size:12px;color:#444746}
.operator-presence{display:inline-block;font-size:13px;padding:4px 7px;border-radius:12px;background:#f0f4f9;color:#444746}
.operator-presence.available{background:#e6f4ea;color:#444746}
.operator-presence.busy{background:#f8fafd;color:#0b57d0}
.operator-presence.stale,.operator-presence.uncertain,.operator-presence.unconfirmed{background:#fef7e0;color:#8a5a00}
.operator-counters{display:flex;flex-wrap:wrap;gap:5px 11px;font-size:12px;color:#444746}
#campaignSelect{max-width:460px;margin-bottom:13px}
#admin details{margin:18px 0 25px}
#admin summary{margin-bottom:15px;color:#444746}
#campaignMessage,#payrollStatus{font-size:13px;white-space:pre-wrap;color:#8a5a00}
.payroll-admin{padding:14px;border:1px solid var(--line);border-radius:12px;background:#ffffff;margin-top:14px}
.payroll-admin>.muted{font-size:13px;line-height:1.65}
.transfer-directory>.muted,.caller-pool>.muted,.caller-policy>.muted{font-size:13px;line-height:1.65}
.target-search{max-width:420px;margin:16px 0}
.target-directory-list{display:grid;gap:0;margin:16px 0;max-height:560px;overflow:auto;border:1px solid var(--line);border-radius:12px}
.target-directory-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 14px;border-bottom:1px solid var(--line);background:#ffffff}
.target-directory-row:last-child{border-bottom:0}
.target-directory-row:hover{background:#f8fafd}
.target-directory-name{display:grid;grid-template-columns:25px 1fr;gap:4px 9px;align-items:baseline;min-width:0}
.target-directory-name strong{font-size:13px;font-weight:500;color:#444746;overflow-wrap:anywhere}
.target-directory-name small{grid-row:1/3;color:#444746;font-size:13px}
.target-directory-name span{font-size:13px;color:#444746}
.target-directory-actions,.caller-row-actions{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap;flex-shrink:0}
.target-directory-actions button,.caller-row-actions button{padding:6px 8px;font-size:13px}
.target-editor,.target-delete-box{padding:14px;margin-top:14px;border:1px solid #e1e9f6;border-radius:12px;background:#f8fafd}
.target-delete-box{background:#fce8e6;border-color:#fce8e6}
.target-editor>label{margin:15px 0}
.target-editor .check-grid label{font-size:13px}
.target-editor>.muted{font-size:13px;line-height:1.65}
#targetDirectoryStatus,#targetEditorStatus,#callerStatus,#callerEditorStatus,#callerPolicyStatus{font-size:13px;white-space:pre-wrap;color:#444746}
#targetDirectoryCount{font-size:13px}
#targetRetry{margin-bottom:10px}
.caller-warning{font-size:13px;line-height:1.65;white-space:pre-wrap;color:#8a5a00;background:#fef7e0;border:1px solid #f9e4a8;padding:12px 14px;border-radius:12px}
.caller-warning:empty{display:none}
.caller-trunks{display:grid;gap:8px;margin:15px 0 25px}
.caller-trunk-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#ffffff}
.caller-trunk-row strong{display:block;font-size:13px;font-weight:500;color:#444746}
.caller-trunk-row small{display:block;font-size:13px;margin-top:5px}
.caller-ranking-scroll{max-height:580px;margin-bottom:14px}
.caller-ranking-scroll table{min-width:1180px}
.caller-ranking-scroll td{font-size:13px}
.caller-ranking-scroll td>strong{display:block;color:#444746;font-size:13px;font-weight:500;white-space:nowrap}
.caller-ranking-scroll td>small{display:block;font-size:12px;line-height:1.65;margin-top:4px;overflow-wrap:anywhere}
.caller-ranking-scroll td:last-child{min-width:210px}
.caller-policy{border-top:1px solid var(--line);padding-top:22px;margin-top:25px}
.caller-policy>details{border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:16px 0}
.caller-policy summary{font-size:13px}
.caller-policy .qualification-check{font-size:13px;margin:18px 0}
.caller-policy .campaign-actions{margin-top:16px}
.caller-pool>.monitor-heading{margin-top:23px}


/* Local telephony cabinet: persisted configuration is never provider activation. */
.telephony-lines-surface{padding:0;border:0;background:transparent;min-width:0}
.lines-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 17px}
.lines-page-heading h2{font-size:18px;font-weight:600;color:#444746;margin:0 0 5px}
.lines-page-heading p:not(.eyebrow){font-size:13px;color:#444746;margin:0}
.lines-page-heading .campaign-actions{flex-shrink:0;padding-top:9px}
.lines-page-heading button{font-size:13px}
.lines-safety-note{display:flex;align-items:flex-start;gap:9px;padding:11px 14px;border:1px solid #e1e9f6;background:#f8fafd;color:#444746;font-size:13px;line-height:1.6;border-radius:12px;margin-bottom:13px}
.lines-draft-dot{width:7px;height:7px;margin-top:5px;border-radius:50%;background:#0b57d0;flex-shrink:0}
.lines-status{font-size:13px;line-height:1.65;color:#444746;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}
.lines-status:empty{display:none}
#linesRetry{margin-bottom:12px;font-size:13px}

.lines-summary{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.lines-summary-card{min-width:145px;flex:0 1 180px;padding:11px;border:1px solid #f0f4f9;border-radius:8px;background:#f8fafd}
.lines-summary-card strong{display:block;font-size:21px;font-weight:600;color:#444746;margin-bottom:4px}
.lines-summary-card span{font-size:13px;color:#444746}
.lines-summary-card:last-child{background:#f8fafd}
.lines-summary-card:last-child strong{font-size:15px;line-height:1.9;color:#444746}
.lines-filters{display:flex;align-items:flex-end;gap:15px;padding:12px 14px;background:#f8fafd;border:1px solid var(--line);border-radius:12px;margin-bottom:14px}
.lines-filters>label:first-child{flex:1;max-width:430px}
.lines-filters>label:nth-child(2){width:165px}
.lines-filters>span{margin-left:auto;margin-bottom:9px;font-size:13px;white-space:nowrap}
.lines-filters input,.lines-filters select{font-size:13px}

.lines-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.lines-layout:has(>.line-editor:not([hidden])){grid-template-columns:minmax(0,1fr) 410px}
.lines-list-column{min-width:0}
.lines-table-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:12px;scrollbar-width:thin}
.lines-table{min-width:590px}
.lines-table th{font-size:13px;padding:11px 12px;background:#f8fafd}
.lines-table td{padding:13px 12px;font-size:13px;vertical-align:middle;line-height:1.55;overflow-wrap:anywhere}
.lines-table td strong{display:block;font-size:13px;font-weight:500;color:#444746}
.lines-table td small{display:block;margin-top:4px;font-size:13px;color:#444746}
.lines-table td:first-child{min-width:170px}
.lines-table td:nth-child(2){min-width:120px}
.lines-table td:nth-child(3){min-width:110px}
.lines-table td:nth-child(4){min-width:130px}
.lines-table td:last-child{width:96px;min-width:96px}
.lines-table td button{font-size:13px;white-space:nowrap}
.lines-table tr.selected{background:#f8fafd;box-shadow:inset 3px 0 #0b57d0}
.lines-table .line-name-button{border:0;background:transparent;padding:0;font-size:13px;text-align:left;color:#0b57d0;font-weight:500}
.lines-table .line-name-button:hover{background:transparent;color:#0b57d0;text-decoration:underline}
.line-local-badge{display:inline-block;padding:4px 6px;border:1px solid #e1e9f6;background:#f8fafd;color:#444746;border-radius:12px;font-size:12px;line-height:1.5}
.line-local-badge.archived{background:#f8fafd;border-color:#f0f4f9;color:#444746}
.lines-empty{padding:34px 20px;border:1px dashed #e1e9f6;border-radius:16px;background:#f8fafd;text-align:center}
.lines-empty-icon{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:10px;background:#f0f4f9;color:#0b57d0;font-size:30px;margin-bottom:13px}
.lines-empty h3{font-size:16px;font-weight:500;color:#444746;margin-bottom:9px}
.lines-empty p{max-width:400px;margin:0 auto 17px;font-size:13px;color:#444746;line-height:1.7}

.line-editor{position:sticky;top:calc(var(--header-height) + 16px);max-height:calc(100dvh - var(--header-height) - 35px);overflow:auto;min-width:0;scrollbar-width:thin;padding:14px;border:1px solid #e1e9f6;border-top:3px solid #0b57d0;border-radius:16px;background:#ffffff;box-shadow:0 4px 15px #20212408}
.line-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.line-editor-heading h3{font-size:16px;font-weight:500;color:#444746;margin:0 0 5px}
.line-editor-heading .icon-close{width:25px;height:25px;padding:0;font-size:20px;background:transparent;border:0;color:#444746}
.line-editor-heading .muted{font-size:13px}
.line-apply-state{padding:8px 10px;margin:13px 0;background:#f8fafd;border-radius:12px;font-size:13px;line-height:1.6;color:#444746}
.line-editor-tabs{display:flex;gap:17px;overflow:auto;white-space:nowrap;scrollbar-width:thin;border-bottom:1px solid #f0f4f9;margin:0 0 18px}
.line-editor-tabs button{flex:0 0 auto;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:10px 0;color:#444746;font-size:13px}
.line-editor-tabs button:hover{color:#0b57d0}
.line-editor-tabs button.active{color:#0b57d0;border-bottom-color:#0b57d0}
.line-editor-tabs button:disabled{opacity:.4}
.line-editor>div:not(.line-editor-heading)>label{margin-bottom:14px}
.line-editor label{font-size:13px;color:#444746}
.line-editor input,.line-editor textarea,.line-editor select{font-size:13px}
.line-editor .qualification-check{align-items:flex-start;line-height:1.6}
.line-editor .qualification-check input{margin-top:3px}
.line-form-hint{font-size:13px;line-height:1.7;color:#444746;margin:0 0 15px}
.line-editor .field-title{font-size:13px;margin:15px 0 8px}
.line-editor button{font-size:13px}
.line-choice-list{max-height:180px;overflow:auto;scrollbar-width:thin;padding:0 9px;border:1px solid #f0f4f9;border-radius:12px;margin:0 0 16px;background:#f8fafd}
.line-choice-list:empty{display:none}
.line-choice-list label{display:flex;align-items:flex-start;gap:8px;padding:9px 0;border-bottom:1px solid #f0f4f9;font-size:13px;line-height:1.6}
.line-choice-list label:last-child{border:0}
.line-choice-list input{margin-top:3px}
.line-choice-list p{font-size:13px;padding:11px 0;margin:0}
.line-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:17px 0 12px}
.line-section-heading h3,.line-section-heading h4{margin:0;font-size:14px;font-weight:500;color:#444746}
.line-section-heading button{padding:5px 8px;font-size:13px}
.line-policy-rows{display:grid;gap:10px;margin:0 0 16px}
.line-policy-row{padding:12px;background:#f8fafd;border:1px solid #f0f4f9;border-radius:12px}
.line-policy-row label{margin:0 0 10px}
.line-policy-row textarea{min-height:65px}
.line-policy-row .line-row-delete{font-size:13px;padding:5px 8px;background:#ffffff;border:1px solid #f2b8b5;color:#b3261e}
.line-forward-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.line-archive-actions{margin-top:20px;padding-top:14px;border-top:1px solid #f0f4f9}
.line-archive-confirm{padding:12px;margin-top:15px;border:1px solid #fce8e6;background:#fce8e6;border-radius:12px}
.line-archive-confirm p{font-size:13px;line-height:1.6;color:#b3261e}
.line-editor #lineReload{font-size:13px;margin-top:13px}
body.fixture-demo .line-editor{top:calc(var(--header-height) + var(--demo-height,68px) + 16px);max-height:calc(100dvh - var(--header-height) - var(--demo-height,68px) - 35px)}

.lines-bottom-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:18px;margin-top:20px}
.routing-preview,.provider-observations,.service-drafts{padding:19px;border:1px solid #f0f4f9;border-radius:16px;background:#ffffff;min-width:0}
.routing-preview>.line-section-heading,.provider-observations>.line-section-heading,.service-drafts>.line-section-heading{margin-top:0}
.routing-preview>p,.service-drafts>p{font-size:13px;line-height:1.65;color:#444746}
.lines-pure-badge,.lines-readonly-badge{display:inline-block;font-size:12px;border-radius:12px;background:#e6f4ea;color:#146c2e;padding:4px 6px;white-space:nowrap}
.lines-readonly-badge{color:#444746;background:#f8fafd}
.lines-preview-fields{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,.8fr);gap:12px;margin-bottom:14px}
.lines-preview-fields label:last-child{grid-column:1/-1}
.lines-preview-result{font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;color:#444746;margin-top:13px;padding:13px;background:#f8fafd;border-radius:12px}
.lines-preview-result:empty{display:none}
.provider-fact{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:10px 0;border-bottom:1px solid #f0f4f9;font-size:13px;color:#444746}
.provider-fact strong{font-size:13px;color:#444746;font-weight:500;text-align:right}
.provider-observations .line-form-hint{margin:13px 0 0}
.service-drafts{margin-top:14px}
.service-draft-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:14px}
.service-draft-fields label:last-child{grid-column:1/-1}
.service-draft-fields textarea{min-height:65px}
.service-draft-list{display:grid;gap:8px;margin-top:16px}
.service-draft-row{padding:12px;border:1px solid #f0f4f9;border-radius:12px;background:#f8fafd}
.service-draft-row strong{font-size:13px;font-weight:500;color:#444746}
.service-draft-row p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;color:#444746}
.service-draft-row small{font-size:12px}
.service-drafts>button{font-size:13px;margin-right:6px}

@media(max-width:1100px){.lines-layout:has(>.line-editor:not([hidden])){grid-template-columns:1fr}
.line-editor,body.fixture-demo .line-editor{position:static;max-height:none}
.lines-table{min-width:720px}
.lines-bottom-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:760px){.lines-page-heading{flex-direction:column;gap:12px}
.lines-page-heading h2{font-size:21px}
.lines-page-heading .campaign-actions{padding:0}
.lines-page-heading p:not(.eyebrow){font-size:13px}
.lines-summary{grid-template-columns:1fr 1fr;gap:8px}
.lines-summary-card{padding:13px}
.lines-summary-card strong{font-size:21px}
.lines-summary-card:last-child strong{font-size:14px}
.lines-safety-note{font-size:13px;padding:10px}
.lines-filters{flex-wrap:wrap;gap:11px;padding:11px}
.lines-filters>label:first-child{flex-basis:100%;max-width:none}
.lines-filters>label:nth-child(2){width:160px}
.lines-filters>span{font-size:12px;white-space:normal}
.lines-table{min-width:650px}
.line-editor{padding:15px}
.line-editor-tabs{gap:15px}
.lines-bottom-grid{grid-template-columns:1fr;gap:13px}
.routing-preview,.provider-observations,.service-drafts{padding:15px}
.service-draft-fields{grid-template-columns:1fr;gap:12px}
.lines-preview-fields{grid-template-columns:1fr}
.lines-preview-fields label:last-child,.service-draft-fields label:last-child{grid-column:auto}
.line-forward-fields{grid-template-columns:1fr}
}


/* Staff onboarding: passwords are write-only; no SMTP or call effects. */
#teamInvite{font-size:13px;padding:8px 12px;white-space:nowrap}
.staff-status{font-size:13px;line-height:1.65;color:#444746;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}
.staff-status:empty{display:none}
.staff-hint{font-size:13px;line-height:1.7;color:#444746;margin:0 0 15px}
.staff-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px}
.staff-section-heading h3{font-size:14px;font-weight:500;color:#444746;margin:0}
.staff-section-heading>button{font-size:13px;padding:6px 9px}
.staff-section-heading>.qualification-check{font-size:13px;white-space:nowrap}
.staff-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.staff-field-grid label{min-width:0}

.employee-invite-overlay{position:fixed;inset:0;z-index:110;display:grid;place-items:center;background:#20212480;backdrop-filter:blur(2px);padding:25px}
.employee-invite-card{width:min(1000px,100%);max-height:calc(100dvh - 50px);overflow:auto;scrollbar-width:thin;background:#fff;padding:26px 28px 0;border:0;border-radius:28px;box-shadow:0 16px 64px #1f1f1f30;margin:0}
.invite-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:15px;border-bottom:1px solid #f0f4f9}
.invite-heading h2{font-size:20px;font-weight:500;color:#444746;margin:0 0 5px}
.invite-heading p:not(.eyebrow){font-size:13px;color:#444746;margin:0}
.invite-heading .icon-close{flex-shrink:0;width:27px;height:27px;padding:0;border:0;background:transparent;color:#444746;font-size:23px}
.invite-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:25px;margin-top:16px}
.invite-column{min-width:0}
.invite-column>h3{font-size:14px;font-weight:500;color:#444746;margin:17px 0 13px}
.invite-column>h3:first-child{margin-top:0}
.invite-column>label,.invite-column>.staff-field-grid{margin-bottom:11px}
.invite-column label{font-size:13px;color:#444746}
.invite-column input,.invite-column select,.invite-column textarea{font-size:13px}
.invite-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:11px}
.invite-name-grid label:last-child{grid-column:1/-1}
.invite-admin-notice{padding:12px 14px;border:1px solid #f9e4a8;background:#fef7e0;border-radius:12px;margin:14px 0}
.invite-admin-notice strong{display:block;font-size:13px;font-weight:500;color:#8a5a00;line-height:1.6;margin-bottom:9px}
.invite-admin-notice .qualification-check{align-items:flex-start;font-size:13px;line-height:1.6;color:#8a5a00}
.invite-admin-notice input{margin-top:3px}
.staff-choice-list{max-height:205px;overflow:auto;scrollbar-width:thin;border:1px solid #f0f4f9;border-radius:12px;background:#f8fafd;padding:0 11px;margin:0 0 15px}
.staff-choice-list label{display:flex;align-items:flex-start;gap:9px;padding:9px 0;border-bottom:1px solid #f0f4f9;font-size:13px;line-height:1.6;color:#444746;overflow-wrap:anywhere}
.staff-choice-list label:last-child{border-bottom:0}
.staff-choice-list input{margin-top:3px}
.staff-choice-list p{padding:12px 0;margin:0;font-size:13px;line-height:1.65;color:#444746}
.invite-actions{position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 0;margin-top:15px;background:#ffffff;border-top:1px solid #f0f4f9;z-index:2}
.invite-actions>span{margin-right:auto;font-size:13px;line-height:1.6;color:#444746}
.invite-actions button{font-size:13px}
.invite-column .staff-config-editor{margin:0 0 17px;background:#f8fafd;padding:15px}
.invite-column .staff-config-editor h3{font-size:14px}

.staff-settings-surface{padding:0;border:0;background:transparent}
.staff-settings-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(320px,450px);gap:20px;align-items:start;margin-top:14px}
.staff-record-list{display:grid;gap:9px;min-width:0}
.staff-record-row{padding:15px;border:1px solid var(--line);border-radius:12px;background:#ffffff;min-width:0}
.staff-record-row strong{display:block;font-size:14px;color:#444746;font-weight:500;overflow-wrap:anywhere}
.staff-record-row p{font-size:13px;line-height:1.6;color:#444746;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}
.staff-record-row small{display:block;font-size:13px;line-height:1.6;margin:7px 0;color:#444746}
.staff-record-row button{font-size:13px;padding:6px 9px;margin-right:7px}
.staff-config-editor{padding:16px;border:1px solid #e1e9f6;border-top:2px solid #0b57d0;border-radius:12px;background:#f8fafd;min-width:0}
.staff-config-editor .staff-section-heading{margin-top:0}
.staff-config-editor>label,.staff-config-editor>.staff-field-grid{margin-bottom:14px}
.staff-config-editor label{font-size:13px}
.staff-config-editor input,.staff-config-editor textarea,.staff-config-editor select{font-size:13px}
.staff-config-editor>.qualification-check{font-size:13px;line-height:1.6;align-items:flex-start;margin:17px 0}
.staff-config-editor>.qualification-check input{margin-top:3px}
.staff-config-editor .campaign-actions{margin-top:16px}
.staff-config-editor button{font-size:13px}
.employee-profile-detail{padding:14px;margin-bottom:17px;background:#f8fafd;border:1px solid #f0f4f9;border-radius:12px}
.employee-profile-detail h4{font-size:13px;font-weight:500;color:#444746;margin:0 0 12px}
.employee-profile-fact{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;padding:7px 0;border-bottom:1px solid #f0f4f9;font-size:13px;line-height:1.65}
.employee-profile-fact:last-child{border:0}
.employee-profile-fact>span{color:#444746}
.employee-profile-fact>strong{font-weight:400;color:#444746;white-space:pre-wrap;overflow-wrap:anywhere}

@media(max-width:1100px){.staff-settings-layout{grid-template-columns:minmax(180px,1fr) minmax(300px,420px)}
.employee-invite-card{padding:21px 22px 0}
.invite-grid{gap:21px}
}

@media(max-width:760px){.employee-invite-overlay{padding:12px}
.employee-invite-card{padding:18px 17px 0;max-height:calc(100dvh - 24px)}
.invite-heading h2{font-size:20px}
.invite-heading p:not(.eyebrow){font-size:13px}
.invite-grid{grid-template-columns:1fr;gap:6px}
.invite-actions{flex-wrap:wrap;gap:8px;padding:12px 0}
.invite-actions>span{flex-basis:100%;font-size:12px}
.invite-actions button{font-size:13px;flex:1}
.staff-settings-layout{grid-template-columns:1fr}
.staff-config-editor{padding:15px}
.employee-profile-fact{grid-template-columns:1fr;gap:3px}
.staff-field-grid{gap:11px}
.staff-section-heading{gap:9px}
.staff-section-heading>.qualification-check{font-size:12px}
#teamInvite{font-size:13px;padding:8px 10px}
}


.assigned-scenario-picker{display:grid;gap:6px;margin:12px 0;font-size:13px;color:var(--muted)}

.assigned-scenario-script{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.6;margin:14px 0;padding:14px;background:#ffffff;border:1px solid var(--line);border-radius:6px}

/* CRM collections and private cards. */
section.crm-surface{padding:0;background:none;border:0}
.crm-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.summary-tile{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:#ffffff;color:#444746;text-align:left;font-size:13px;font-weight:400}
.summary-tile:hover{background:#f8fafd;border-color:#c2d7f7}
.summary-tile strong{font-size:23px;font-weight:600;color:#444746}
.summary-tile.urgent strong{color:#b3261e}
.summary-tile.active{border-color:#0b57d0;box-shadow:inset 0 0 0 1px #0b57d0}
.summary-tile.active strong{color:#0b57d0}
.crm-filters{display:flex;align-items:flex-end;gap:13px;padding:12px 14px;margin-bottom:14px;border:1px solid var(--line);border-radius:12px;background:#ffffff}
.crm-filters label{flex:0 1 185px;min-width:135px;font-size:13px;color:#444746}
.crm-filters .search-box{flex:1;min-width:160px}
.crm-filters input,.crm-filters select{font-size:13px;min-height:40px}
.crm-board{display:grid;grid-template-columns:repeat(6,minmax(200px,1fr));gap:11px;overflow-x:auto;align-items:start;padding-bottom:15px;min-height:390px;scrollbar-width:thin;scrollbar-color:#e1e9f6 transparent}
.crm-column{padding:0 8px 12px;min-height:360px;background:#f8fafd;border-top:3px solid var(--stage-color,#c2d7f7);border-radius:12px}
.crm-stage-header{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:13px 3px}
.crm-stage-header h3{font-size:13px;margin:0;color:#444746}
.crm-stage-header span{font-size:12px;padding:2px 5px;border-radius:8px;background:#f0f4f9;color:#444746}
.kanban-card{display:block;width:100%;padding:12px;margin-bottom:8px;border:1px solid #f0f4f9;border-radius:12px;background:#ffffff;color:#444746;text-align:left;font-weight:400;box-shadow:0 1px 2px #20212405}
.kanban-card:hover{background:#ffffff;border-color:#c2d7f7;box-shadow:0 3px 10px #20212410}
.kanban-card.selected{border-color:#0b57d0;box-shadow:0 0 0 1px #0b57d0}
.kanban-title{display:block;font-size:13px;font-weight:600;line-height:1.4;margin-bottom:5px;overflow-wrap:anywhere}
.kanban-phone{display:block;font-size:13px;line-height:1.6;color:#444746}
.kanban-meta{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #f0f4f9;padding-top:9px;margin-top:10px;color:#444746;font-size:12px}
.kanban-budget{font-weight:600;color:#444746}
.kanban-next{display:block;font-size:13px;line-height:1.5;color:#444746;margin-top:10px;overflow-wrap:anywhere}
.task-chip{display:inline-block;margin-top:10px;padding:4px 6px;font-size:12px;font-weight:500;border-radius:8px;color:#444746;background:#e6f4ea}
.task-chip.overdue{background:#fce8e6;color:#b3261e}
.task-chip.none{background:#f8fafd;color:#444746}
.column-empty{text-align:center;font-size:12px;color:#444746;padding:20px 9px;border:1px dashed #e1e9f6;border-radius:12px}
.crm-column[data-stage="new"]{--stage-color:#c4c7c5}
.crm-column[data-stage="in_progress"]{--stage-color:#a8c7fa}
.crm-column[data-stage="qualified"]{--stage-color:#81c995}
.crm-column[data-stage="meeting"]{--stage-color:#c4b5fd}
.crm-column[data-stage="handed_off"]{--stage-color:#f4c55a}
.crm-column[data-stage="closed"]{--stage-color:#bdc1c6}
.crm-list{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#ffffff}
.crm-client{display:grid;grid-template-columns:minmax(150px,1.4fr) minmax(100px,.8fr) minmax(120px,1fr) minmax(110px,1fr);align-items:center;gap:14px;padding:11px 15px;border-bottom:1px solid #f0f4f9;font-size:13px}
.crm-client:last-child{border-bottom:0}
.crm-client button{padding:0;border:0;background:none;color:#444746;text-align:left;font-size:13px}
.crm-client button:hover{color:#0b57d0}
.crm-client small{font-size:13px}
.crm-client-head{background:#f8fafd;color:#444746;font-size:13px}
.stage-chip{display:inline-block;width:fit-content;padding:4px 6px;background:#f8fafd;color:#444746;border-radius:8px;font-size:12px}
.assignment-box,.crm-create{padding:14px;margin-top:14px;border:1px solid #e1e9f6;border-radius:12px;background:#ffffff}
.crm-create{margin:0 0 18px}
.crm-create h3{color:#444746;margin-bottom:7px}
.crm-create .card-field-grid{max-width:650px}
#crmCreateStatus{font-size:13px;white-space:pre-wrap;margin:12px 0 0}
#crmMessage,#tasksMessage{font-size:13px;color:#8a5a00;white-space:pre-wrap}
#crmMessage:empty,#tasksMessage:empty{display:none}
.pending-card{position:fixed;z-index:65;bottom:18px;left:calc(var(--sidebar-width) + 18px);display:flex;align-items:center;gap:12px;max-width:510px;padding:12px 15px;background:#0b57d0;color:#ffffff;border:1px solid #444746;border-radius:16px;box-shadow:0 6px 24px #20212430;font-size:13px}
.pending-card button{font-size:13px;white-space:nowrap}

.crm-card{position:fixed;z-index:50;inset:var(--header-height) 0 0 auto;width:min(1080px,calc(100vw - 40px));padding:0;margin:0;overflow-y:auto;background:#fff;border:0;border-left:1px solid var(--line);border-radius:24px 0 0 0;box-shadow:-8px 0 32px #1f1f1f18}
.card-top{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 22px 15px;border-bottom:1px solid var(--line);background:#ffffff}
.card-top .eyebrow{font-size:12px;margin-bottom:6px}
.card-top h2{font-size:20px;margin-bottom:6px}
.card-top p{margin-bottom:0}
.icon-close{min-width:32px;min-height:36px;padding:4px 9px;font-size:23px;font-weight:300;line-height:1}
.card-stage-line{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 22px;border-bottom:1px solid var(--line);background:#f8fafd}
.card-stage-line label{width:210px;font-size:13px}
.card-stage-line select{min-height:36px;font-size:13px;font-weight:500;color:#444746;background:#f8fafd}
.status-badge{padding:6px 8px;border-radius:12px;background:#f0f4f9;color:#444746;font-size:13px}
.crm-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(310px,.9fr);min-height:calc(100% - 160px)}
.crm-columns[data-script="off"]{grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr)}
.card-fields{display:flex;flex-direction:column;min-width:0;padding:20px 22px 25px;border-right:1px solid var(--line)}
.section-label{font-size:13px;font-weight:600;color:#444746;margin-bottom:15px}
.card-fields>label{margin-bottom:14px}
.card-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:15px}
.card-fields input,.card-fields select,.card-fields textarea{font-size:13px;min-height:40px;background:#f8fafd;padding:8px 9px}
.card-fields input[type=checkbox]{min-height:0;padding:0;background:transparent}
.card-fields textarea{min-height:75px}
.card-savebar{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:17px;margin-bottom:19px;border-bottom:1px solid var(--line)}
.card-savebar button{font-size:13px;padding:8px 10px}
.card-savebar #crmReload{font-size:13px}
#crmSaveStatus{width:100%;font-size:13px;white-space:pre-wrap;color:#444746;margin:4px 0 0}
#crmSaveStatus.conflict{color:#8a5a00}
.card-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.card-section-heading h3{font-size:13px;color:#444746;margin-bottom:11px}
.card-section-heading span{font-size:12px}
.card-tasks>label{margin:13px 0}
.card-tasks button{font-size:13px;padding:7px 10px}
.card-task{display:flex;align-items:center;gap:11px;padding:10px 11px;margin-bottom:7px;border:1px solid var(--line);border-radius:12px}
.card-task.done{opacity:.6}
.card-task .task-body{flex:1;min-width:0}
.card-task strong{display:block;font-size:13px;font-weight:500;color:#444746;overflow-wrap:anywhere}
.card-task small{display:block;font-size:12px;margin-top:4px}
.card-task.overdue{border-color:#f2b8b5;background:#fce8e6}
.card-task button{font-size:12px;padding:5px 7px}
#crmTaskMessage{font-size:13px;color:#8a5a00;margin:10px 0}
.crm-extra-fields{border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:17px}
.crm-extra-fields>label{margin-bottom:13px}
.crm-extra-fields>label:last-child{margin-bottom:0}
.crm-result-panel{padding:18px 0;border-top:1px solid var(--line);margin-top:14px}
.card-fields>.crm-result-panel{order:10;margin:20px 0 0;padding:18px 0 0;border-top:1px solid var(--line);border-bottom:0}
.crm-result-panel h3{font-size:13px;color:#444746}
.crm-result-panel label{margin:12px 0}
.crm-result-panel textarea{margin-bottom:11px}
.crm-result-panel p{font-size:13px}
.crm-result-panel button{font-size:13px}
.outcome-chips{display:flex;gap:6px;flex-wrap:wrap;margin:13px 0}
.outcome-chips .outcome-chip{padding:7px 9px;border:1px solid #f0f4f9;border-radius:12px;background:#f8fafd;color:#444746;font-size:13px}
.outcome-chips .outcome-chip.selected{background:#f0f4f9;border-color:#0b57d0;color:#0b57d0}
.outcome-chips .outcome-chip[data-outcome="do_not_call"].selected{background:#fce8e6;border-color:#f2b8b5;color:#b3261e}
.callback-required{color:#8a5a00}
#crmRevoke{font-size:13px;margin-top:14px}

.card-script-column{min-width:0;padding:16px;background:#f8fafd}
.crm-script{position:sticky;top:96px;padding:0;border:0;background:transparent}
.crm-script h3{font-size:14px;color:#444746}
.script-human-label{padding:4px 6px;border-radius:8px;background:#f0f4f9;color:#444746;white-space:nowrap}
.script-intro,.script-test-note{font-size:13px;line-height:1.6;color:#444746}
.script-steps{padding:0 0 0 20px;margin:18px 0;color:#444746}
.script-steps li{padding:0 0 20px 6px;font-size:13px}
.script-steps strong{display:block;font-size:13px;margin-bottom:7px;color:#444746}
.script-steps p{font-size:14px;line-height:1.6;color:#444746;margin-bottom:8px}
.script-steps small{display:block;font-size:13px;line-height:1.65;color:#444746}
.script-test-note{padding-top:13px;border-top:1px solid var(--line);color:#8a5a00}
.card-history{padding:18px 0 0;background:transparent}
.card-script-column>.card-history{margin-top:12px;border-top:1px solid var(--line)}
.card-history>summary{font-size:13px;font-weight:600;color:#444746;margin-bottom:15px}
.card-history>.muted{font-size:13px;margin-bottom:14px}
.history-live-dot{width:5px;height:5px;border-radius:50%;background:#444746}
.crm-event{position:relative;padding:0 0 18px 18px;border-left:1px solid #f0f4f9;overflow-wrap:anywhere}
.crm-event:before{content:"";position:absolute;left:-4px;top:3px;width:7px;height:7px;border-radius:50%;border:2px solid #f8fafd;background:#c2d7f7}
.crm-event strong{display:block;font-size:13px;font-weight:600;color:#444746}
.crm-event small{display:block;font-size:12px;color:#444746;margin:4px 0 9px}
.crm-event p{font-size:13px;line-height:1.55;white-space:pre-wrap;color:#444746;margin:5px 0}


/* Calls: one article per call, six dense cells, private detail on demand. */
.monitor-table-head,.monitor-call:has(.monitor-date){display:grid;grid-template-columns:105px minmax(110px,1.15fr) minmax(90px,1fr) minmax(100px,1fr) 76px 35px;gap:12px;align-items:center}
.monitor-table-head{padding:11px 7px;border-top:1px solid #f0f4f9;border-bottom:1px solid #e1e9f6;color:#444746;font-size:12px}
.monitor-call{position:relative;padding:13px 7px;border-bottom:1px solid #f0f4f9;font-size:13px}
.monitor-call:hover{background:#f8fafd}
.monitor-call:has(.monitor-date)>*{min-width:0;overflow-wrap:anywhere}
.monitor-date{font-size:13px;color:#444746}
.monitor-date small{display:block;margin-top:3px;font-size:12px;color:#444746}
.monitor-phone{font-size:13px;color:#444746}
.monitor-agent{font-size:13px;color:#444746}
.monitor-result{font-size:13px}
.monitor-duration{font-variant-numeric:tabular-nums;color:#444746;font-size:13px}
.monitor-events{position:relative;justify-self:end}
.monitor-events summary{font-size:0;list-style:none;color:#0b57d0;min-width:24px;min-height:24px;text-align:center}
.monitor-events summary:after{content:"⌄";font-size:18px;line-height:24px}
.monitor-events summary::-webkit-details-marker{display:none}
.monitor-events[open]>summary:after{content:"⌃"}
.monitor-events[open]>.events{position:absolute;z-index:15;right:0;top:25px;width:min(450px,calc(100vw - 45px));max-height:260px;overflow:auto;background:#ffffff;padding:14px;border:1px solid #e1e9f6;box-shadow:0 7px 20px #2021241c;border-radius:12px}
.monitor-line{display:flex;justify-content:space-between;align-items:center;gap:14px}
.monitor-call small{font-size:13px;color:#444746}
.monitor-status{display:inline-block;padding:4px 6px;border-radius:8px;background:#f0f4f9;color:#444746;font-size:13px}
.monitor-status.uncertain{background:#fef7e0;color:#8a5a00}
.call{padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}
.call small{font-size:12px;color:#444746}
.call details{margin-top:8px}
.events{font-size:13px;line-height:1.7;white-space:pre-wrap;color:#444746;margin-top:9px}
#search{max-width:430px;margin:0 0 13px}
#queueScope{font-size:13px}
.autodial{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:14px}
.autodial-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
.autodial-heading h2{font-size:20px;margin:0}
.autodial-badge{padding:6px 8px;border-radius:12px;background:#f8fafd;color:#444746;font-size:13px}
.autodial-badge.blocked,.autodial-badge.stale{background:#fef7e0;color:#8a5a00}
.autodial-badge.active{background:#e6f4ea;color:#146c2e}
.autodial-actions{display:flex;gap:10px;margin:16px 0}
.start-dialer{min-height:40px}
.autodial>p{font-size:13px}
#current{font-size:13px;line-height:1.8;color:#444746}
#current button{margin-top:10px;font-size:13px}


/* Salary and QC retain their distinct confirmed/pending/advisory semantics. */
.personal-live-stats,.card-live-stats{padding:12px 15px;margin:0 0 17px;border:1px solid #c4eed0;border-radius:12px;background:#e6f4ea;color:#146c2e}
.personal-live-stats p{font-size:13px;margin:0 0 4px}
.personal-live-stats small,.card-live-stats small{display:block;font-size:13px;color:#146c2e;margin-top:5px}
.card-live-stats{margin:15px 22px 0}
.card-live-stats strong{display:block;font-size:13px;font-weight:500}
.card-live-stats span{display:block;font-size:13px;margin-top:5px}
.personal-stats-surface{padding:0;border:0}
.personal-stats-controls{display:flex;align-items:flex-end;gap:20px;margin-bottom:14px}
.personal-stats-controls label{min-width:200px}
.personal-stats-controls p{font-size:13px;margin-bottom:8px}
.personal-stats-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:11px;margin:19px 0}
.personal-metric{padding:18px 16px;background:#f8fafd;border:1px solid var(--line);border-radius:12px}
.personal-metric strong{display:block;font-size:23px;font-weight:600;color:#444746;margin-bottom:10px}
.personal-metric span{display:block;font-size:13px;line-height:1.5;color:#444746}
.personal-metric:last-child{background:#e6f4ea;border-color:#c4eed0}
.personal-metric:last-child strong{color:#146c2e}
.personal-payroll-status{font-size:13px;line-height:1.65;padding:12px 14px;background:#f8fafd;border-radius:12px;color:#444746}
#personalStatsStatus{font-size:13px;white-space:pre-wrap;color:#444746}
#personalStatsQuality,.personal-stats-surface>.muted{font-size:13px;line-height:1.7}
.quality-surface{padding:0;border:0}
.quality-surface>label{max-width:320px}
.quality-cases{display:grid;gap:8px;margin:18px 0}
.quality-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:14px;padding:13px;border:1px solid var(--line);border-radius:12px}
.quality-row>span,.quality-row>small{overflow-wrap:anywhere}
.quality-advice{font:inherit;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto;background:#f8fafd;border:1px solid #f0f4f9;border-radius:12px;padding:14px}
#qualityDetail{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}
#qualityFacts,#qualityDecisionStatus{white-space:pre-wrap;overflow-wrap:anywhere}
.checklist-layout{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:16px;align-items:start;margin-top:14px}
.checklist-list{display:grid;gap:8px;min-width:0}
.checklist-list>button,.checklist-list>article{width:100%;text-align:left;background:#ffffff;color:#444746;border:1px solid var(--line);border-radius:12px;padding:13px;font-size:13px}
.checklist-list>button:hover,.checklist-list>.active,.checklist-row.active{background:#f8fafd;border-color:#c2d7f7}
.checklist-list small{display:block;font-size:13px;margin-top:6px}
.checklist-detail{min-width:0}
.checklist-summary,.checklist-editor{padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafd}
.checklist-summary:empty{display:none}
.checklist-summary h3{color:#444746}
.checklist-summary li{padding:6px 0;color:#444746;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.checklist-summary p{white-space:pre-wrap;overflow-wrap:anywhere}
.checklist-editor{background:#ffffff}
.checklist-editor>label{margin-bottom:16px}
.checklist-editor .qualification-check{margin:18px 0}
.checklist-editor .campaign-actions{margin-top:14px}
#checklistStatus{font-size:13px;line-height:1.6;color:#444746;white-space:pre-wrap}
#checklistVersion{font-size:13px}
#checklistItems{font-size:13px;line-height:1.75}


/* Attended transfer is an explicit operator-controlled modal, not an auto-call. */
.crm-transfer-panel{padding:15px 17px;margin:16px 22px 0;border:1px solid #e1e9f6;border-radius:12px;background:#f8fafd}
.transfer-heading{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.transfer-icon{display:grid;place-items:center;width:31px;height:31px;background:#f0f4f9;color:#444746;border-radius:12px;font-size:22px}
.transfer-heading h3{font-size:14px;color:#444746;margin:0 0 3px}
.transfer-heading p{font-size:13px;color:#146c2e;margin:0}
.transfer-actions{display:flex;align-items:flex-end;gap:11px}
.transfer-actions label{flex:1;color:#146c2e}
.transfer-actions button{background:#444746;min-height:40px;white-space:nowrap}
.transfer-actions button:hover{background:#444746}
#crmTransferStatus{font-size:13px;line-height:1.65;white-space:pre-wrap;color:#146c2e;margin:10px 0 0}
.crm-transfer-panel[data-status="uncertain"],.crm-transfer-panel[data-status="failed"]{background:#fef7e0;border-color:#f9e4a8}
.crm-transfer-panel[data-status="uncertain"] #crmTransferStatus,.crm-transfer-panel[data-status="failed"] #crmTransferStatus{color:#8a5a00}
.consultation-overlay{position:fixed;z-index:90;inset:0;display:grid;place-items:center;padding:24px;background:#20212470;backdrop-filter:blur(2px)}
.consultation-modal{width:min(620px,100%);max-height:calc(100dvh - 48px);overflow-y:auto;background:#fff;border:0;border-radius:28px;padding:30px;box-shadow:0 16px 64px #1f1f1f30}
.consultation-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.consultation-top .eyebrow{font-size:12px;color:#146c2e}
.consultation-top h2{font-size:20px;color:#444746;margin:0 0 18px}
.consultation-steps{display:flex;gap:13px;counter-reset:consultation;list-style:none;padding:0;margin:0 0 20px;font-size:13px;color:#146c2e}
.consultation-steps li{flex:1}
.consultation-steps li:before{counter-increment:consultation;content:counter(consultation);display:grid;place-items:center;width:22px;height:22px;margin-bottom:7px;border-radius:50%;background:#e6f4ea;color:#146c2e;font-weight:600}
.consultation-picker{display:grid;gap:13px}
.consultation-picker label{font-size:13px}
.consultation-picker input,.consultation-picker select{min-height:40px;font-size:13px}
.consultation-status{padding:14px 16px;margin:18px 0;background:#e6f4ea;border:1px solid #e6f4ea;border-radius:12px;color:#146c2e;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.consultation-actions{display:flex;gap:9px;flex-wrap:wrap}
.consultation-actions button{background:#444746;font-size:13px}
.consultation-actions button.quiet{background:#ffffff;border-color:#c4eed0;color:#146c2e}
.consultation-footnote{font-size:13px;line-height:1.6;color:#444746;margin:15px 0 0}
.consultation-overlay[data-status="uncertain"] .consultation-status,.consultation-overlay[data-status="failed"] .consultation-status{background:#fef7e0;border-color:#f9e4a8;color:#8a5a00}
.consultation-overlay[data-status="consulting"] .consultation-status{border-color:#81c995}


/* Login remains a real auth form; no invented account balance or capacity. */
.login-kicker{display:block;margin:22px 0 0;padding:0;background:transparent;color:#0b57d0;font-size:13px;font-weight:500;letter-spacing:.2px}
.login-intro{min-width:0;max-width:400px;color:#5f6368;font-size:15px;line-height:1.6}
.login-note{margin-top:22px!important;color:#747775;font-size:12px!important;line-height:1.6;max-width:360px}

.login-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,1fr);align-items:center;gap:56px;overflow:hidden;max-width:1000px;min-height:440px;padding:48px;margin:132px auto 48px;border:1px solid #e1e5eb;border-radius:28px;background:#fff;box-shadow:0 4px 24px #1f1f1f05}
.login-card h1{font-size:36px;font-weight:400;line-height:1.2;letter-spacing:-1px;margin:18px 0 14px;color:#1f1f1f}
.login-card>p{max-width:360px;font-size:14px}
.login-fields{min-width:0;padding-top:8px}
.login-fields>label{display:block;width:100%;margin:20px 0;font-size:13px}
.login-fields>label:first-child{margin-top:0}
.login-fields>button{width:100%;min-height:44px;margin-top:8px}
.login-symbol{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:18px;background:#d3e3fd;color:#0b57d0}
.login-symbol svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.login-description{max-width:360px;color:#5f6368;font-size:15px;line-height:1.65;margin:0}
.login-card #loginError{font-size:13px;white-space:pre-wrap;color:#b3261e}
.login-preview{position:absolute;top:0;bottom:0;right:-75px;width:365px;padding:95px 20px;display:grid;grid-template-columns:repeat(4,1fr);gap:11px;transform:rotate(-9deg);border-left:1px solid #f0f4f9;background:linear-gradient(135deg,#f8fafd,#f8fafd);pointer-events:none}
.login-preview i{display:block;position:relative;border-radius:16px;background:#f0f4f9}
.login-preview i:before,.login-preview i:after{content:"";position:absolute;top:30px;left:9px;right:9px;height:90px;background:#ffffff;border-radius:12px;border-top:3px solid #c2d7f7;box-shadow:0 3px 12px #20212408}
.login-preview i:after{top:135px;height:70px;border-top-color:#c2d7f7}
.login-preview i:nth-child(even):before{height:60px;border-top-color:#c2d7f7}
.login-preview i:nth-child(even):after{top:105px;height:105px}


@media(min-width:1800px){.crm-board{grid-template-columns:repeat(6,minmax(230px,1fr))}
}

@media(max-width:1250px){.topbar-caption{display:none}
.shell-status{gap:10px}
.shell-status span+span{padding-left:10px}
.target-directory-row{align-items:flex-start;flex-direction:column;gap:11px}
.target-directory-actions{justify-content:flex-start;flex-shrink:1}
}

@media(max-width:1100px){.workspace-main{padding-left:20px;padding-right:20px}
.call-report-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.crm-shell:has(>.cabinet-filter:not([hidden])) .workspace-main{margin-right:0}
.cabinet-filter{box-shadow:-8px 0 25px #20212422}
.cabinet-tabs{gap:16px}
.shell-status #shellRole{display:none}
.crm-filters label{min-width:125px}
.checklist-layout{grid-template-columns:210px minmax(0,1fr)}
.monitor-table-head,.monitor-call:has(.monitor-date){grid-template-columns:90px minmax(105px,1fr) minmax(80px,1fr) minmax(95px,1fr) 68px 28px;gap:9px}
body.operator-line-visible{--header-height:112px}
body.operator-line-visible .topbar{display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;grid-template-rows:60px 51px;column-gap:10px;row-gap:0}
body.operator-line-visible .nav-toggle{grid-column:1;grid-row:1}
body.operator-line-visible .brand{grid-column:2;grid-row:1;min-width:0;overflow:hidden}
body.operator-line-visible .shell-status{grid-column:3;grid-row:1;margin-left:0}
body.operator-line-visible .topbar-account{grid-column:4;grid-row:1;margin-left:0}
body.operator-line-visible .operator-line-controls{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;width:100%;height:51px;padding:4px 0 6px;border-top:1px solid #20212444}
body.operator-line-visible .operator-line-status{display:block;max-width:none;justify-self:start;max-height:36px}
body.operator-line-visible .operator-line-status:before{display:inline-block;margin-right:6px;vertical-align:1px}
}

@media(max-width:760px){
  :root{--header-height:64px;--sidebar-width:244px}

  .topbar{padding:0 10px;gap:8px}
.brand{min-width:0;gap:7px}
.brand-mark{width:25px;height:25px;font-size:20px}
.brand-name{font-size:17px}
.brand-light{font-size:12px;margin-left:5px;padding-left:5px}
.shell-status{display:none}
.topbar-account{margin-left:auto;gap:7px}
#identity{font-size:13px;max-width:110px}
.topbar-account button{font-size:12px;padding:5px 7px}
body.operator-line-visible .topbar{grid-template-columns:40px minmax(0,1fr) auto;padding:0 8px;column-gap:7px}
body.operator-line-visible .topbar-account{grid-column:3}
body.operator-line-visible .brand{gap:5px}
body.operator-line-visible .brand-mark{width:22px;height:22px;flex:0 0 22px;font-size:18px}
body.operator-line-visible .brand-name{overflow:hidden;text-overflow:ellipsis;font-size:15px}
body.operator-line-visible .brand-light{display:none}
body.operator-line-visible #identity{max-width:100px}
body.operator-line-visible .topbar-account button{min-height:30px}
body.operator-line-visible .operator-line-controls{gap:6px}
body.operator-line-visible .operator-line-controls button{padding-left:10px;padding-right:10px}
body.operator-line-visible .operator-line-status{padding-left:7px;padding-right:7px}
.sidebar{padding:12px 10px;box-shadow:6px 0 18px #20212420}
body.nav-collapsed .sidebar{box-shadow:none}
.sidebar .nav-item{min-height:44px}
.sidebar .nav-item svg{width:20px;height:20px}
.workspace-main{margin-left:76px;margin-right:8px;padding:14px 16px;border-radius:20px 20px 0 0}
.cabinet-tabs{gap:15px;min-height:40px;margin-bottom:11px}
.cabinet-tabs>button{min-height:40px;font-size:13px}
.workspace-heading{align-items:flex-start;gap:12px}
.workspace-heading .pill{display:none}
.workspace-heading h1{font-size:24px}
.workspace-heading .eyebrow{display:none}
.workspace-heading-actions{padding-top:1px}
.view-description{font-size:13px}
.workspace-status{gap:6px;margin-bottom:11px}
#telephonyStatus{font-size:12px;margin-left:0}
.freshness{font-size:12px}
.cabinet-filter{width:min(290px,calc(100vw - 76px));padding:0 13px}
body.fixture-demo .cabinet-filter{top:calc(var(--header-height) + var(--demo-height,104px))}
.filter-heading{padding-top:12px}
.filter-fields>label{padding:12px 0}
.crm-summary{grid-template-columns:1fr 1fr;gap:8px}
.summary-tile{padding:11px 12px}
.summary-tile strong{font-size:21px}
.crm-filters{flex-wrap:wrap;gap:11px;padding:12px}
.crm-filters .search-box{flex-basis:100%;min-width:0}
.crm-filters label{flex:1;min-width:110px}
.crm-toolbar{align-items:flex-start}
.crm-toolbar h2{font-size:16px}
.crm-toolbar-actions{gap:8px}
.crm-toolbar-actions>button{font-size:13px;padding:7px 9px}
.view-switch button{font-size:13px;padding:7px 9px}
.crm-board{grid-template-columns:repeat(6,200px);min-height:330px}
.crm-column{min-height:310px}
.crm-client{min-width:590px}
.crm-card{width:calc(100vw - 12px)}
.crm-columns,.crm-columns[data-script="off"]{grid-template-columns:1fr}
.card-top{padding:17px}
.card-top h2{font-size:19px}
.card-stage-line{padding:11px 17px}
.card-fields,.card-script-column{padding:14px}
.card-fields{border-right:0}
.card-script-column{border-top:1px solid var(--line)}
.crm-script{position:static}
.card-live-stats,.crm-transfer-panel{margin:14px 17px 0}
.transfer-actions{flex-direction:column;align-items:stretch}
.transfer-actions button{width:100%}
.pending-card{left:88px;right:12px;bottom:12px;max-width:none;flex-direction:column;align-items:stretch;font-size:13px}
.stats{gap:8px}
.stat{padding:12px}
.stat strong{font-size:21px}
.operator-grid,.team{grid-template-columns:1fr}
.campaign-grid{grid-template-columns:1fr 1fr}
.autodial-heading{align-items:flex-start}
.autodial-heading h2{font-size:18px}
.autodial-actions{flex-direction:column}
.autodial-badge{white-space:nowrap}
.caller-trunk-row{align-items:stretch;flex-direction:column}
.caller-row-actions{justify-content:flex-start}
.caller-policy .campaign-grid{grid-template-columns:1fr}
.caller-ranking-scroll{max-height:470px}
.target-editor,.target-delete-box{padding:15px}
.target-directory-name{grid-template-columns:22px 1fr}
.target-editor .campaign-grid{grid-template-columns:1fr}
.target-directory-list{max-height:480px}
.personal-stats-surface,.quality-surface{padding:0}
.personal-stats-controls{align-items:stretch;flex-direction:column;gap:8px}
.personal-stats-controls label{min-width:0}
.personal-stats-metrics{grid-template-columns:1fr 1fr;gap:8px}
.personal-metric{padding:15px 11px}
.personal-metric strong{font-size:19px}
.personal-metric:last-child{grid-column:1/-1}
.quality-row{grid-template-columns:1fr;gap:9px}
.quality-row button{justify-self:start}
.checklist-layout{grid-template-columns:1fr;gap:15px}
.checklist-summary,.checklist-editor{padding:15px}
.monitor-table-head{display:none}
.monitor-call:has(.monitor-date){grid-template-columns:1fr auto;gap:7px 12px;padding:13px 2px}
.monitor-date{grid-column:1;font-size:13px}
.monitor-phone{grid-column:1;font-size:13px}
.monitor-agent{grid-column:1;font-size:13px}
.monitor-result{grid-column:2;grid-row:2}
.monitor-duration{grid-column:2;grid-row:1;font-size:13px}
.monitor-events{grid-column:2;grid-row:3}
.consultation-overlay{padding:14px}
.consultation-modal{padding:16px;max-height:calc(100dvh - 28px)}
.consultation-top h2{font-size:18px}
.consultation-steps{gap:10px;font-size:12px}
.consultation-actions{flex-direction:column}
.consultation-actions button{width:100%}
.task-row{grid-template-columns:20px 1fr 85px;gap:10px}
.task-row>.task-due{grid-column:2}
.task-row>button{grid-column:3;grid-row:1/3}
.login-card{grid-template-columns:1fr;gap:26px;min-height:0;margin:94px 18px 30px;padding:30px;border-radius:24px}
.login-card h1{font-size:29px}
.login-preview{display:none}
.login-fields>label,.login-fields>button{width:100%}
.login-fields{padding-top:0}
.login-intro{max-width:none}
.login-card .login-description{max-width:none}
.login-card .login-note{max-width:none}
.workspace-footer{font-size:12px}

}

@media(max-width:400px){.workspace-main{padding-left:11px;padding-right:11px}
.brand-light{display:none}
#identity{max-width:95px}
.card-field-grid,.campaign-grid{grid-template-columns:1fr}
.card-stage-line{gap:9px}
.card-stage-line label{width:175px}
.status-badge{font-size:12px;padding:5px}
.crm-summary{gap:7px}
.summary-tile{font-size:12px}
.summary-tile strong{font-size:20px}
}


/* Task layouts are shared by the CRM card and the separate task list. */
.tasks-list{display:flex;flex-direction:column}
.task-row{display:grid;grid-template-columns:26px minmax(160px,1fr) minmax(130px,.6fr) 100px;align-items:center;gap:13px;padding:14px 2px;border-bottom:1px solid var(--line)}
.task-type-icon{font-size:17px;line-height:1;color:#444746}
.task-row strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}
.task-row .client-link{padding:4px 0 0;border:0;background:transparent;text-align:left;color:#444746;font-size:13px;font-weight:400}
.task-row small{display:block;font-size:13px;margin-top:4px}
.task-row.overdue .task-due{color:#b3261e}
.task-row button{font-size:13px;padding:7px 9px}

@media(max-width:760px){.task-row{grid-template-columns:20px 1fr 85px;gap:10px}
.task-row>.task-due{grid-column:2}
.task-row>button{grid-column:3;grid-row:1/3}
}


/* Complete call report: server-scoped totals, bounded journal and on-demand audio. */
.call-report-surface{padding:0;border:0;min-width:0}
.call-report-heading,.call-report-journal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.call-report-heading h2{font-size:17px;margin-bottom:3px}
.call-report-heading>button{flex-shrink:0}
.call-report-heading .eyebrow{color:#444746}
.call-report-heading p.muted{margin-bottom:0}
.call-report-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;gap:10px;margin:12px 0 18px}
.call-report-metric{position:relative;min-width:0;min-height:96px;padding:16px 14px;background:#f0f4f9;border:0;border-radius:16px}
.call-report-metric:first-child{background:#d3e3fd}
.call-report-metric strong{display:block;font-size:27px;font-weight:400;color:#1f1f1f;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.2;letter-spacing:-.5px}
.call-report-metric span{display:block;font-size:12px;line-height:1.45;color:#5f6368;margin-top:7px}
.call-report-metric.is-unknown strong{font-size:14px;color:#444746;padding:2px 0}
.call-report-coverage{font-size:12px;line-height:1.4;color:#444746;margin:7px 0 9px;padding:5px 8px;background:#f8fafd;border-left:2px solid #c2d7f7}
.call-report-journal-heading{align-items:center;border-top:1px solid var(--line);padding-top:9px;margin-top:9px}
.call-report-journal-heading h3{font-size:15px;margin:0}
.call-report-journal-heading .muted{font-size:13px}
.call-report-journal-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#callReportScope,#callReportFilterSummary{display:inline-block;font-size:13px;margin:4px 0 0;line-height:1.35}
#callReportScope:not(:empty)+#callReportFilterSummary:not(:empty):before{content:' · ';margin:0 5px;color:#444746}
.call-report-filters{display:flex;flex-direction:column;gap:0;margin:0;align-items:stretch;flex:1 0 auto}
.call-report-filters>label{min-width:0;font-size:13px;padding:13px 0;border-bottom:1px solid var(--line)}
.call-report-filters input,.call-report-filters select{font-size:13px;min-height:36px;margin-top:5px}
.call-report-search{grid-column:auto}
.call-report-filter-actions{display:flex;gap:7px;justify-content:flex-start;margin-top:auto;padding:12px 0;position:sticky;bottom:0;background:#ffffff;border-top:1px solid var(--line)}
.call-report-filter-actions button{flex:1;min-height:36px;padding:6px 8px}
.call-report-status{font-size:13px;line-height:1.45;color:#444746;white-space:pre-wrap;overflow-wrap:anywhere;min-height:0;margin:8px 0}
.call-report-status:empty{display:none}
.call-report-table-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:16px;scrollbar-width:thin}
.call-report-table{width:100%;min-width:780px;border-collapse:collapse;text-align:left}
.call-report-table th{padding:12px 14px;border-bottom:1px solid var(--line);background:#f8fafd;color:#5f6368;font-size:12px;font-weight:500;white-space:normal}
.call-report-table td{padding:11px 14px;border-bottom:1px solid var(--line);font-size:13px;vertical-align:middle;color:#1f1f1f;overflow-wrap:anywhere;max-width:190px}
.call-report-table tr:last-child td{border-bottom:0}
.call-report-table tbody tr:hover{background:#f8fafd}
.call-report-time{display:block;font-size:13px;font-weight:500;color:#444746;font-variant-numeric:tabular-nums;white-space:nowrap}
.call-report-date,.call-report-table td small{display:block;font-size:12px;line-height:1.3;color:#444746;margin-top:3px}
.call-report-date{white-space:nowrap}
.call-report-phone{padding:0;border:0!important;background:transparent!important;color:#0b57d0!important;border-bottom:1px dashed #c2d7f7!important;border-radius:0;font-weight:500;white-space:nowrap;font-size:13px;line-height:1.45}
.call-report-phone:hover{color:#0b57d0!important}
.call-report-phone:disabled{border-bottom:0!important;color:#444746!important}
.call-report-table td:nth-child(4)>span{white-space:nowrap}
.call-report-direction{display:inline-flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap}
.call-report-direction:before{content:'↗';font-size:17px;color:#0b57d0}
.call-report-direction.inbound:before{content:'↙';color:#444746}
.call-report-direction.unknown:before{content:'?';color:#444746}
.call-report-status-pill{display:inline-block;border-radius:999px;background:#e6f4ea;padding:5px 9px;font-size:12px;color:#146c2e;white-space:nowrap}
.call-report-status-pill.missed{background:#fce8e6;color:#b3261e}
.call-report-status-pill.active{background:#f8fafd;color:#0b57d0}
.call-report-status-pill.unknown{background:#f8fafd;color:#444746}
.call-report-recording-state{font-size:13px;line-height:1.5}
.call-report-row-actions{display:flex;gap:3px;align-items:center;flex-wrap:nowrap;min-width:84px}
.call-report-row-actions button{padding:5px 6px;font-size:12px;white-space:nowrap}
.call-report-row-actions .call-report-icon{width:34px;height:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:transparent;font-size:0;color:#0b57d0}
.call-report-row-actions .call-report-icon:before{content:attr(data-icon);font-size:20px;line-height:1}
.call-report-row-actions .call-report-icon:hover{background:#f0f4f9;color:#0b57d0}
.call-report-row-actions .call-report-icon.subtle{color:#b3261e}
.call-report-no-rows{text-align:center;padding:27px!important;color:#444746!important}
.call-report-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px}
.call-report-pagination>div{display:flex;gap:7px}
.call-report-pagination button{font-size:13px}
.call-report-pagination .muted{font-size:13px}
.call-report-footnote{font-size:12px;line-height:1.7;color:#444746;margin:14px 0 0}
.call-report-legacy{padding:11px 0;border:0;border-top:1px solid var(--line);border-radius:0;margin:16px 0;background:#ffffff}
.call-report-legacy>summary{color:#444746;font-size:13px}
.call-report-legacy[open]>summary{margin-bottom:22px}
.call-report-detail-overlay{position:fixed;z-index:95;inset:0;background:#20212470;display:flex;justify-content:flex-end;backdrop-filter:blur(2px)}
.call-report-detail-card{width:min(600px,100%);height:100dvh;max-height:100dvh;overflow:auto;border:0;border-left:1px solid var(--line);border-radius:24px 0 0 24px;margin:0;padding:28px;box-shadow:-8px 0 28px #1f1f1f18}
.call-report-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.call-report-detail-heading h2{font-size:19px;line-height:1.35;color:#444746;margin-bottom:10px}
.call-report-detail-heading .eyebrow{font-size:12px;color:#444746}
.call-report-detail-heading>button{padding:4px 10px;font-size:23px;line-height:1}
.call-report-detail-facts{display:grid;grid-template-columns:minmax(130px,.9fr) minmax(0,1.3fr);gap:0;margin:15px 0 25px;border-top:1px solid var(--line)}
.call-report-detail-facts dt,.call-report-detail-facts dd{margin:0;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.call-report-detail-facts dt{color:#444746;padding-right:12px}
.call-report-detail-facts dd{color:#444746}
.call-report-recording-panel{background:#f8fafd;border:1px solid #f0f4f9;border-radius:12px;padding:17px}
.call-report-recording-panel h3{font-size:14px;color:#444746}
.call-report-recording-panel audio{display:block;width:100%;height:38px;margin:15px 0}
.call-report-recording-actions{display:flex;gap:7px;flex-wrap:wrap}
.call-report-recording-actions button{font-size:13px}
.call-report-delete-confirm{margin:16px 0 0;padding:14px;background:#fce8e6;border:1px solid #fce8e6;border-radius:12px}
.call-report-delete-confirm h3{font-size:13px;color:#b3261e}
.call-report-delete-confirm p{font-size:13px;color:#b3261e}
.call-report-delete-confirm button{font-size:13px}
#callReportDeleteRetry{margin-top:14px;font-size:13px}

@media(max-width:560px){.call-report-heading{flex-direction:column;gap:10px}
.call-report-heading>button{align-self:flex-start;font-size:13px}
.call-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.call-report-metric{min-width:0;min-height:88px;padding:12px 10px;border-radius:14px}
.call-report-metric strong{font-size:23px}
.call-report-metric span{font-size:11px;line-height:1.4}
.call-report-journal-heading{align-items:flex-start;flex-direction:column;gap:6px}
.call-report-pagination{align-items:flex-start;flex-direction:column;gap:9px}
.call-report-detail-card{padding:20px 16px}
.call-report-detail-heading h2{font-size:18px}
.call-report-detail-facts{grid-template-columns:minmax(104px,.9fr) minmax(0,1.25fr)}
.call-report-detail-facts dt,.call-report-detail-facts dd{font-size:13px}
.call-report-recording-panel{padding:13px}
}

/* Progressive disclosure keeps routine work short without hiding warnings or errors. */
.cabinet-disclosure{min-width:0;padding:10px 0;margin:10px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:#ffffff;box-shadow:none}
.cabinet-disclosure>summary{display:flex;align-items:center;gap:8px;min-height:25px;margin:0;list-style:none;color:#444746;font-size:13px;font-weight:500;line-height:1.4}
.cabinet-disclosure>summary::-webkit-details-marker{display:none}
.cabinet-disclosure>summary:before{content:'›';font-size:19px;line-height:1;color:#0b57d0}
.cabinet-disclosure[open]>summary:before{content:'⌄';font-size:15px}
.cabinet-disclosure>summary>span{margin-left:auto;font-weight:400}
.cabinet-disclosure[open]>summary{margin-bottom:13px}
.cabinet-disclosure>p:last-child{margin-bottom:0}
.invite-options>.cabinet-disclosure:first-child{margin-top:0}
.invite-options .cabinet-disclosure .staff-section-heading{margin:11px 0}
.invite-core>.staff-field-grid{margin-bottom:11px}
.invite-core .staff-field-grid>label{margin:0}
.invite-core>label{margin-bottom:11px}
.invite-options .staff-hint{font-size:12px;line-height:1.45;margin-bottom:10px}
.call-report-help{margin-top:10px}
.call-report-help .call-report-footnote{font-size:12px;margin-top:0}
.workspace-main>div>section.task-surface,.workspace-main>div>section.checklist-surface,.workspace-main>div>section.transfer-directory{padding:0;border:0}
.lines-bottom-grid{gap:18px;margin-top:14px}
.lines-bottom-grid>.cabinet-disclosure{margin:0}
.service-drafts.cabinet-disclosure{padding:10px 0}
.checklist-list>button,.checklist-list>article{padding:10px 11px;border-radius:8px}
.checklist-summary,.checklist-editor{padding:14px;border-radius:8px;background:#ffffff}
.quality-row{padding:10px 11px;border-width:0 0 1px;border-radius:0}
.quality-cases{gap:0;border-top:1px solid var(--line)}
.personal-metric{padding:13px;background:#f8fafd;border-radius:8px}
.personal-metric strong{font-size:21px;margin-bottom:7px}
.staff-record-row{padding:12px;border-radius:8px}
.lines-table th,.lines-table td{padding:9px 10px}
.line-editor{padding:14px;border-radius:8px;box-shadow:none}
.line-editor-tabs{gap:15px;margin-bottom:14px}
.line-editor-tabs button{padding:8px 0}
.team-group-row{padding:11px 12px;border-width:0 0 1px;border-radius:0}
.team-group-list{gap:0;border-top:1px solid var(--line)}
.team-queue-row{padding:11px 12px;gap:14px}
.team-queue-detail{padding:13px;border-top-width:1px;border-radius:0}
.team-queue-detail-heading{margin-bottom:10px}
.team-queue-tabs{gap:18px;margin-bottom:13px}
.team-queue-tabs button{padding:8px 0 10px}
@media(max-width:760px){
  .invite-grid{grid-template-columns:1fr;gap:10px}
  .invite-options{padding-top:4px;border-top:1px solid var(--line)}
  .lines-bottom-grid{grid-template-columns:1fr;gap:12px}
  .workspace-main>div>section.task-surface,.workspace-main>div>section.checklist-surface,.workspace-main>div>section.transfer-directory{padding:0}
  /* The narrow header omits shell status, so retain the actual telephony mode here. */
  #workspace[data-view="reports"] .workspace-status:has(>.freshness:not(.stale)){position:static;width:auto;height:auto;padding:0 0 7px;margin:0 0 9px;overflow:visible;clip:auto;white-space:normal;border:0;border-bottom:1px solid var(--line)}
  #workspace[data-view="reports"] .workspace-status>.freshness:not(.stale){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  #workspace[data-view="reports"] #telephonyStatus{margin:0;font-size:13px;line-height:1.35}
}

@media(max-width:400px){
body.operator-line-visible #identity{max-width:70px}
body.operator-line-visible .operator-line-controls button{padding-left:8px;padding-right:8px}
body.operator-line-visible .operator-line-status{font-size:10px;padding-left:6px;padding-right:6px}
}
