:root{--bg:#f4f7fb;--surface:#fff;--surface-2:#f8fafc;--text:#172033;--muted:#718096;--line:#e5eaf1;--primary:#3157d5;--primary-2:#2446ba;--success:#159a6c;--warning:#d88912;--danger:#d84b5b;--info:#2583d8;--shadow:0 10px 30px rgba(33,48,82,.08);--radius:16px;--sidebar:252px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{font-size:14px}a{color:var(--primary);text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#10182d;color:#dfe6f7;display:flex;flex-direction:column;padding:22px 16px;z-index:30;box-shadow:10px 0 40px rgba(12,22,46,.14)}.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 25px}.brand-mark{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-weight:800;color:#fff;background:linear-gradient(135deg,#5979f4,#2946bd);box-shadow:0 8px 20px rgba(61,91,212,.4)}.brand-mark.large{width:54px;height:54px;font-size:18px}.brand strong{display:block;color:#fff;font-size:15px}.brand span{display:block;color:#8290ae;font-size:11px;margin-top:3px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;color:#aebbd3;padding:11px 12px;border-radius:10px;font-weight:600;transition:.18s}.nav-link:hover,.nav-link.active{color:#fff;background:rgba(97,125,236,.16)}.nav-link.active{box-shadow:inset 3px 0 #6684f5}.nav-icon{width:22px;text-align:center;font-size:17px}.sidebar-footer{margin-top:auto;padding:14px 10px;border-top:1px solid rgba(255,255,255,.08);color:#aebbd3;font-size:12px}.sidebar-footer small{display:block;color:#677795;margin-top:7px}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#25ca8a;box-shadow:0 0 0 4px rgba(37,202,138,.12);margin-right:7px}.main{margin-left:var(--sidebar);width:calc(100% - var(--sidebar));min-height:100vh}.topbar{height:78px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:20}.page-heading h1{font-size:20px;margin:0}.page-heading span{font-size:11px;color:var(--muted);display:block;margin-top:4px}.top-actions{display:flex;align-items:center;gap:14px}.user-menu{display:flex;align-items:center;gap:9px;padding-left:14px;border-left:1px solid var(--line)}.user-menu strong,.user-menu span{display:block}.user-menu strong{font-size:13px}.user-menu span{font-size:10px;color:var(--muted);margin-top:2px}.avatar{width:36px;height:36px;border-radius:11px;background:#e7ecff;color:#3157d5;font-weight:800;display:grid;place-items:center}.avatar.xl{width:64px;height:64px;border-radius:18px;font-size:20px}.avatar.small{width:30px;height:30px;border-radius:9px;font-size:11px;flex:0 0 auto}.logout{font-size:20px;color:#8793aa;padding:7px}.status-select{border:0;border-radius:999px;padding:8px 28px 8px 12px;font-size:12px;font-weight:700;outline:0}.status-available{background:#e6f8f1;color:#0d7f58}.status-busy,.status-wrapup{background:#fff1e1;color:#a75f00}.status-break{background:#e8f2ff;color:#176bad}.status-offline{background:#edf0f4;color:#657087}.content{padding:28px 30px 50px;max-width:1700px;margin:auto}.page-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin:-2px 0 18px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:20px}.card h2,.card h3{margin:0 0 14px}.card h2{font-size:17px}.card h3{font-size:15px}.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}.card-header h2,.card-header h3{margin:0}.card-header p,.muted{margin:5px 0 0;color:var(--muted);font-size:12px}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.metric-card{display:flex;gap:14px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:var(--shadow)}.metric-icon{width:43px;height:43px;border-radius:12px;background:#eef2f8;display:grid;place-items:center;font-size:19px;font-weight:800}.metric-card span,.metric-card strong,.metric-card small{display:block}.metric-card span{font-size:12px;color:var(--muted)}.metric-card strong{font-size:25px;line-height:1.1;margin:3px 0}.metric-card small{font-size:10px;color:#9aa4b6}.metric-success .metric-icon{background:#e5f8f1;color:var(--success)}.metric-warning .metric-icon{background:#fff3e2;color:var(--warning)}.metric-info .metric-icon{background:#e8f2ff;color:var(--info)}.dashboard-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.dashboard-grid .span-2{grid-column:auto}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.info-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}.call-detail-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:20px}.case-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px}.customer-hero{display:flex;align-items:center;gap:18px}.customer-main{flex:1}.customer-main h2{display:inline-block;margin:0 8px 5px 0;font-size:22px}.customer-main p{margin:0;color:var(--muted)}.customer-contact{text-align:right}.customer-contact strong,.customer-contact span{display:block}.customer-contact strong{font-size:17px}.customer-contact span{color:var(--muted);margin-top:4px}.quick-actions{display:flex;flex-direction:column;gap:8px}.quick-actions h3{margin-bottom:5px}.quick-actions a{padding:10px 12px;background:var(--surface-2);border-radius:9px;font-weight:650}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:9px;padding:9px 13px;background:#eef2f7;color:#344158;font-weight:700;font-size:12px;line-height:1.1}.btn:hover{filter:brightness(.98);transform:translateY(-1px)}.btn-primary{background:var(--primary);color:#fff;box-shadow:0 7px 15px rgba(49,87,213,.2)}.btn-primary:hover{background:var(--primary-2)}.btn-light{background:#fff;border-color:var(--line);color:#4a566d}.btn-danger{background:var(--danger);color:#fff}.btn-danger-outline{color:var(--danger);background:#fff;border-color:#f0c8cd}.btn-sm{padding:6px 9px;font-size:11px}.btn-block{width:100%;padding:12px}.icon-btn{border:0;background:transparent;padding:7px;border-radius:8px;color:#6d7a90}.icon-btn:hover{background:#eef2f7}.icon-btn.danger{color:var(--danger)}.mobile-menu{display:none}.table-wrap{overflow:auto;margin:0 -2px}table{width:100%;border-collapse:collapse;min-width:680px}th{text-align:left;color:#8190a8;font-size:10px;text-transform:uppercase;letter-spacing:.05em;padding:10px 12px;border-bottom:1px solid var(--line)}td{padding:12px;border-bottom:1px solid #edf0f5;vertical-align:middle}tr:last-child td{border-bottom:0}tr:hover td{background:#fafbfe}.table-primary,td>a{font-weight:700}.table-secondary{display:block;color:var(--muted);font-size:10px;margin-top:3px}.table-actions{display:flex;justify-content:flex-end;gap:5px}.row-overdue td{background:#fff9f2}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800;margin:1px 3px 1px 0}.badge-neutral{background:#edf0f5;color:#687489}.badge-success{background:#e4f7ef;color:#087e56}.badge-warning{background:#fff1de;color:#aa6506}.badge-danger{background:#ffe8eb;color:#b32d3d}.badge-info{background:#e8f2ff;color:#246eb3}.form-card{max-width:1050px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-stack{display:flex;flex-direction:column;gap:14px}.form-stack label,.form-grid label,.form-card>label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#4a566d}.form-stack small,.form-grid small{font-weight:400;color:var(--muted)}input,select,textarea{width:100%;border:1px solid #dfe5ee;border-radius:9px;background:#fff;color:var(--text);padding:10px 11px;outline:0;transition:.16s}input:focus,select:focus,textarea:focus{border-color:#7892ef;box-shadow:0 0 0 3px rgba(66,96,213,.1)}textarea{resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.section-divider{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin:20px 0 12px}.section-divider h3{margin:0}.phone-row{display:grid;grid-template-columns:2fr 1fr 130px 40px;gap:10px;align-items:center;margin-bottom:9px}.check{display:flex!important;flex-direction:row!important;align-items:center;gap:6px!important}.check input{width:auto}.search-form,.filter-bar,.inline-form{display:flex;align-items:center;gap:8px}.search-form input{min-width:300px}.filter-bar input,.filter-bar select{width:auto;min-width:130px}.filter-bar label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.filter-bar label input{width:145px}.inline-form{display:inline-flex}.data-list{display:grid;grid-template-columns:120px 1fr;gap:11px;margin:0}.data-list dt{color:var(--muted);font-size:11px}.data-list dd{margin:0;font-weight:600}.note-box{background:var(--surface-2);border-radius:10px;padding:13px;min-height:100px;line-height:1.65}.task-list{display:flex;flex-direction:column}.task-item{display:flex;align-items:center;gap:10px;padding:11px 3px;border-bottom:1px solid #edf0f5;color:var(--text)}.task-item:last-child{border-bottom:0}.task-item>div{flex:1}.task-item strong,.task-item span{display:block}.task-item span{font-size:10px;color:var(--muted);margin-top:3px}.task-item time{font-size:10px;color:var(--muted);white-space:nowrap}.priority-dot{width:8px;height:8px;border-radius:50%;background:#a8b1c2;flex:0 0 auto}.p-critical{background:var(--danger)}.p-high{background:var(--warning)}.p-normal{background:var(--info)}.p-low{background:#8c99ad}.call-summary{display:flex;align-items:center;gap:15px}.call-icon{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:#e7f6ef;color:var(--success);font-size:21px}.call-icon.outbound{background:#e8f1ff;color:var(--info)}.call-summary h2{margin:0 0 5px}.call-summary p{margin:0 0 8px;color:var(--muted)}.call-duration{margin-left:auto;text-align:right}.call-duration strong,.call-duration span{display:block}.call-duration strong{font-size:24px}.call-duration span{color:var(--muted);font-size:10px}.timeline{padding-left:8px}.timeline-item{display:flex;gap:12px;position:relative;padding:8px 0}.timeline-item>span{width:9px;height:9px;background:#7090ef;border-radius:50%;margin-top:4px;box-shadow:0 0 0 4px #eaf0ff}.timeline-item strong{font-size:12px}.timeline-item p{font-size:10px;color:var(--muted);margin:3px 0}.prose{line-height:1.75;color:#3b4659}.comment-form{display:flex;gap:10px;align-items:flex-start}.comment-form textarea{min-height:80px}.comments{margin-top:20px}.comment{display:flex;gap:10px;padding:14px 0;border-top:1px solid var(--line)}.comment>div:last-child{flex:1}.comment strong{font-size:12px}.comment time{font-size:10px;color:var(--muted);margin-left:8px}.comment p{margin:6px 0;line-height:1.55}.danger-zone{display:flex;align-items:center;justify-content:space-between;border-color:#f1c8cf;background:#fffafb}.danger-zone h3{color:#a72d3c;margin-bottom:5px}.danger-zone p{color:var(--muted);margin:0}.danger-zone form{display:flex;gap:8px}.danger-zone input{width:220px}.alert{border-radius:11px;padding:12px 14px;margin-bottom:16px;border:1px solid}.alert-success{background:#e7f8f1;border-color:#bce9d7;color:#087653}.alert-warning{background:#fff6e8;border-color:#f2d8ac;color:#93600e}.alert-danger{background:#ffebee;border-color:#f0c4cb;color:#9f2b39}.alert-info{background:#eaf3ff;border-color:#c6ddf8;color:#1e66aa}.empty-mini,.empty-state{text-align:center;color:var(--muted);padding:28px}.empty-state{max-width:650px;margin:50px auto}.empty-state h1{color:var(--text)}.readonly-banner,.info-note{background:#f1f5fb;border:1px solid #e0e7f1;color:#5b6880;border-radius:9px;padding:10px 12px;margin-bottom:12px;font-size:11px}.copy-field{display:flex;gap:7px;margin:6px 0 13px}.copy-field input{background:#f8fafc}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.feature-toggle{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px!important;border:1px solid var(--line);border-radius:12px;padding:13px}.feature-toggle input{width:auto;margin-top:2px}.feature-toggle strong,.feature-toggle small{display:block}.feature-toggle small{margin-top:3px}.agent-live-card{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(90deg,#f7faff,#fff)}.agent-live-card p{margin:4px 0 0;color:var(--muted);font-size:11px}.bar-list{display:flex;flex-direction:column;gap:13px}.bar-row>div:first-child{display:flex;justify-content:space-between;font-size:11px;margin-bottom:5px}.bar-track{height:8px;border-radius:99px;background:#edf1f7;overflow:hidden}.bar-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#4167dc,#7690ed)}.pagination{display:flex;justify-content:center;gap:5px;padding-top:16px}.pagination a{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:#59667b;font-size:11px}.pagination a.active{background:var(--primary);color:#fff;border-color:var(--primary)}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;background:#f1f4f8;padding:3px 5px;border-radius:5px}.auth-shell{min-height:100vh;background:radial-gradient(circle at 10% 20%,#dfe7ff 0,transparent 35%),radial-gradient(circle at 90% 80%,#e0f8f0 0,transparent 35%),#f5f7fb;display:grid;place-items:center;padding:25px}.auth-wrap{width:100%;max-width:440px}.auth-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 25px 80px rgba(37,52,91,.15)}.auth-brand{display:flex;align-items:center;gap:14px;margin-bottom:25px}.auth-brand h1{font-size:21px;margin:0}.auth-brand p{color:var(--muted);margin:4px 0 0;font-size:11px}.auth-note{font-size:10px;color:var(--muted);text-align:center;margin-top:18px}.call-popup{position:fixed;right:25px;bottom:25px;width:365px;background:#fff;border:1px solid #d9e2ef;border-radius:18px;padding:18px;box-shadow:0 25px 80px rgba(24,40,74,.25);z-index:100;animation:popupIn .25s ease}.call-popup-header{display:flex;align-items:center;gap:12px}.ringing{width:46px;height:46px;border-radius:50%;background:#e8f8f1;color:#11805a;display:grid;place-items:center;font-size:20px;animation:ring 1.2s infinite}.call-popup h3{margin:0}.call-popup p{margin:3px 0;color:var(--muted)}.call-popup-actions{display:flex;gap:8px;margin-top:15px}.call-popup-actions .btn{flex:1}.call-popup-close{position:absolute;right:10px;top:8px}.copy-success{color:var(--success)!important}.hidden{display:none!important}@keyframes ring{0%,100%{box-shadow:0 0 0 0 rgba(21,154,108,.18)}50%{box-shadow:0 0 0 10px rgba(21,154,108,0)}}@keyframes popupIn{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}@media(max-width:1150px){.metrics-grid{grid-template-columns:repeat(2,1fr)}.info-grid,.call-detail-grid{grid-template-columns:1fr 1fr}.info-grid>*:last-child{grid-column:1/-1}.dashboard-grid{grid-template-columns:1fr}.feature-grid{grid-template-columns:1fr 1fr}}@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.main{margin-left:0;width:100%}.mobile-menu{display:block}.topbar{padding:0 16px}.content{padding:18px}.user-menu>div:not(.avatar){display:none}.status-form{display:none}.two-col,.case-layout,.info-grid,.call-detail-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.page-actions{align-items:stretch;flex-direction:column}.search-form,.filter-bar{flex-wrap:wrap;width:100%}.search-form input{min-width:0;flex:1}.phone-row{grid-template-columns:1fr 120px}.phone-row .check,.phone-row button{grid-row:2}.feature-grid{grid-template-columns:1fr}.customer-hero{align-items:flex-start}.customer-contact{display:none}}@media(max-width:520px){.metrics-grid{grid-template-columns:1fr}.top-actions{gap:5px}.page-heading span{display:none}.card{padding:15px;border-radius:13px}.call-popup{left:12px;right:12px;bottom:12px;width:auto}.danger-zone{align-items:flex-start;flex-direction:column}.danger-zone form{width:100%;flex-direction:column}.danger-zone input{width:100%}}

/* CRM 1.1 call workflow and teams */
.unknown-caller{display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:#f2d5a4;background:#fffaf1}.unknown-caller strong{font-size:15px}.unknown-caller p{margin:4px 0 0;color:var(--muted)}.inline-actions{display:flex;align-items:center;gap:8px}.live-wrapup{max-width:none}.live-wrapup>label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#4a566d}.callback-during-call{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.callback-check{font-size:13px!important;font-weight:800!important;color:var(--text)!important;margin-bottom:14px}.callback-fields{padding:15px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}.full-span{grid-column:1/-1}.history-note{max-width:420px;white-space:normal;line-height:1.45}.conversation-history table{min-width:1000px}.user-menu span{line-height:1.35}.call-duration strong{font-variant-numeric:tabular-nums;min-width:76px}.teams-summary{display:flex;gap:12px;align-items:center}
@media(max-width:850px){.unknown-caller,.agent-live-card{align-items:flex-start;flex-direction:column}.inline-actions{width:100%;flex-wrap:wrap}.inline-actions .inline-form,.inline-actions .btn{flex:1}.full-span{grid-column:auto}}
.extension-pill{display:inline-flex;align-items:center;border:1px solid #d9e2f0;background:#f5f8fd;color:#3f526f;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800;white-space:nowrap}
@media(max-width:850px){.extension-pill{display:none}}

/* CRM 1.1.1 live calls in top navigation and multi-call popups */
.topbar{gap:18px}
.page-heading{flex:0 0 auto}
.top-active-calls{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow-x:auto;padding:4px 2px;scrollbar-width:thin}
.top-active-calls[hidden]{display:none}
.top-call-chip{display:flex;align-items:center;gap:9px;min-width:205px;max-width:270px;padding:7px 10px;border:1px solid #dce4f0;border-radius:12px;background:#fff;color:var(--text);box-shadow:0 5px 15px rgba(33,48,82,.07);transition:.16s;flex:0 0 auto}
.top-call-chip:hover{transform:translateY(-1px);border-color:#bdcbea;box-shadow:0 8px 20px rgba(33,48,82,.11)}
.top-call-chip.is-ringing{border-color:#a9dfcb;background:#f4fcf8}
.top-call-chip.is-talking{border-color:#bfd0f4;background:#f7f9ff}
.top-call-icon{width:30px;height:30px;border-radius:9px;background:#e9f7f1;color:#13815c;display:grid;place-items:center;font-size:14px;flex:0 0 auto}
.top-call-chip.is-talking .top-call-icon{background:#eaf0ff;color:#3157d5}
.top-call-copy{min-width:0;flex:1}
.top-call-copy strong,.top-call-copy small,.top-call-time strong,.top-call-time small{display:block}
.top-call-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-call-copy small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.top-call-time{text-align:right;flex:0 0 auto}
.top-call-time strong{font-size:14px;font-variant-numeric:tabular-nums;line-height:1.05}
.top-call-time small{font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-top:2px}
.call-popup-stack{position:fixed;right:25px;bottom:25px;width:385px;max-height:calc(100vh - 110px);display:flex;flex-direction:column;gap:12px;overflow-y:auto;padding:2px;z-index:100;pointer-events:none}
.call-popup-stack:empty{display:none}
.call-popup{position:relative;right:auto;bottom:auto;width:100%;padding:17px;background:#fff;border:1px solid #d9e2ef;border-radius:18px;box-shadow:0 20px 55px rgba(24,40,74,.22);animation:popupIn .22s ease;pointer-events:auto}
.call-popup.is-ringing{border-color:#a9dfcb}
.call-popup-header{padding-right:28px}
.call-popup-heading{min-width:0;flex:1}
.call-popup-heading h3,.call-popup-heading p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.call-popup-timer{text-align:right;flex:0 0 auto;min-width:62px}
.call-popup-timer strong,.call-popup-timer small{display:block}
.call-popup-timer strong{font-size:18px;font-variant-numeric:tabular-nums}
.call-popup-timer small{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-top:2px}
.call-popup-customer{margin-top:13px}
.call-popup-customer strong{font-size:13px}
.call-popup-customer p{font-size:10px}
.call-popup:not(.is-ringing) .ringing{animation:none;background:#eaf0ff;color:#3157d5;box-shadow:none}
.call-popup-actions a[hidden]{display:none}
.call-duration strong,[data-call-timer]{font-variant-numeric:tabular-nums}
button:disabled,select:disabled{opacity:.58;cursor:not-allowed}
@media(max-width:1250px){.top-call-chip{min-width:180px;max-width:220px}.extension-pill{display:none}}
@media(max-width:980px){.page-heading{display:none}.topbar{gap:9px}.top-active-calls{order:2}.top-actions{order:3}}
@media(max-width:850px){.topbar{min-height:68px;height:auto;padding:9px 12px}.mobile-menu{order:1;flex:0 0 auto}.top-active-calls{max-width:calc(100vw - 155px)}.top-call-chip{min-width:170px;padding:6px 8px}.top-call-copy strong{font-size:10px}.top-call-time strong{font-size:13px}.call-popup-stack{left:12px;right:12px;bottom:12px;width:auto;max-height:70vh}.call-popup{left:auto;right:auto;bottom:auto;width:100%}}
@media(max-width:520px){.top-active-calls{max-width:calc(100vw - 104px)}.top-actions .user-menu{padding-left:4px;border-left:0}.top-actions .logout{display:none}.top-call-chip{min-width:158px}.call-popup-actions{flex-wrap:wrap}.call-popup-actions .btn{min-width:120px}}
.top-actions{flex:0 0 auto}

/* CRM 1.1.2 call cancellation */
.call-popup-actions .btn-danger-outline{flex:.8}
.call-popup-actions button[hidden]{display:none}
.call-popup-actions button:disabled{opacity:.6}
.agent-live-card .btn-danger-outline{white-space:nowrap}

/* CRM 1.1.3 callback saved filters */
.callback-filter-card{padding:18px 20px}
.callback-filter-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.callback-filter-top h2{margin:0 0 5px}
.callback-filter-top p{margin:0;color:var(--muted);font-size:11px}
.saved-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.saved-filter-select select{min-width:220px}
.callback-filter-grid{display:grid;grid-template-columns:minmax(210px,1.5fr) repeat(3,minmax(145px,.8fr)) minmax(170px,1fr) auto;gap:10px;align-items:end;border-top:1px solid var(--line);padding-top:16px}
.callback-filter-grid label,.save-filter-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:700;color:#4a566d}
.callback-filter-buttons{display:flex;align-items:center;gap:7px;padding-bottom:1px}
.save-filter-form{display:flex;align-items:flex-end;justify-content:flex-end;gap:8px;border-top:1px solid var(--line);margin-top:15px;padding-top:15px}
.save-filter-form label{width:min(320px,100%)}
.callback-result-summary{font-size:11px;color:var(--muted);padding:0 2px 10px}
.callback-result-summary strong{color:var(--text);font-size:13px}
@media(max-width:1350px){.callback-filter-grid{grid-template-columns:repeat(3,minmax(170px,1fr))}.callback-filter-buttons{align-self:end}}
@media(max-width:850px){.callback-filter-top{flex-direction:column}.saved-filter-actions,.saved-filter-select,.saved-filter-select select{width:100%}.callback-filter-grid{grid-template-columns:1fr 1fr}.save-filter-form{justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:520px){.callback-filter-grid{grid-template-columns:1fr}.callback-filter-buttons,.save-filter-form,.save-filter-form label{width:100%}.callback-filter-buttons .btn,.save-filter-form .btn{flex:1}}

/* CRM 1.1.4 customer communication timeline and fast entry */
.quick-interaction-card{padding:18px 20px;border-color:#cfdcf3;box-shadow:0 10px 28px rgba(35,61,117,.08)}
.quick-interaction-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:13px}
.quick-interaction-head h2{margin:0 0 4px;font-size:16px}
.quick-interaction-head p{margin:0;color:var(--muted);font-size:11px}
.keyboard-hint{display:inline-flex;align-items:center;padding:5px 9px;border:1px solid var(--line);border-bottom-width:2px;border-radius:7px;background:var(--surface-2);color:var(--muted);font-size:9px;font-weight:800;white-space:nowrap}
.interaction-type-switch{display:flex;gap:7px;overflow-x:auto;padding-bottom:9px}
.interaction-type-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;color:#52617b;border-radius:9px;padding:7px 10px;font:inherit;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap;transition:.15s}
.interaction-type-btn:hover{border-color:#b9c9e8;background:#f8faff}
.interaction-type-btn.active{border-color:#8da8e9;background:#eef3ff;color:#294eb8;box-shadow:inset 0 0 0 1px rgba(73,108,196,.08)}
.quick-interaction-card textarea{width:100%;min-height:72px;max-height:220px;resize:none;font-size:13px;line-height:1.5;border-width:1px;padding:12px 14px}
.quick-interaction-card textarea:focus{border-color:#8da8e9;box-shadow:0 0 0 3px rgba(69,104,193,.1)}
.quick-interaction-footer{display:flex;align-items:flex-end;gap:10px;margin-top:11px}
.quick-status{display:flex;flex-direction:column;gap:5px;color:#4a566d;font-size:10px;font-weight:800}
.quick-status select{min-width:200px}
.quick-more{position:relative;align-self:center}
.quick-more summary{color:#52617b;font-size:10px;font-weight:800;cursor:pointer;list-style:none;padding:7px 4px}
.quick-more summary::-webkit-details-marker{display:none}
.quick-more[open]{padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 10px 25px rgba(30,48,84,.1)}
.quick-more[open] summary{padding:0 0 8px}
.quick-more label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:800;color:#4a566d}
.quick-save{margin-left:auto;min-width:150px}
.customer-timeline-card{padding:20px}
.timeline-count{font-size:10px;color:var(--muted);font-weight:800;white-space:nowrap}
.customer-timeline{position:relative;margin-top:5px}
.customer-timeline:before{content:"";position:absolute;left:17px;top:12px;bottom:12px;width:2px;background:#e7ecf4}
.timeline-item{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:13px;padding:10px 0}
.timeline-marker{position:relative;z-index:1;width:36px;height:36px;border-radius:11px;border:1px solid #dce4f0;background:#fff;display:grid;place-items:center;font-size:14px;box-shadow:0 3px 9px rgba(37,54,90,.07)}
.timeline-interaction .timeline-marker{background:#eef3ff;color:#3157d5;border-color:#cbd8f6}
.timeline-call .timeline-marker{background:#edf9f4;color:#14805d;border-color:#c7eadc}
.timeline-callback .timeline-marker{background:#fff8e8;color:#a76900;border-color:#f0ddb0}
.timeline-case .timeline-marker{background:#f5f0ff;color:#7446b8;border-color:#ded0f1}
.timeline-body{min-width:0;padding:2px 0 13px;border-bottom:1px solid #edf0f5}
.timeline-item:last-child .timeline-body{border-bottom:0}
.timeline-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.timeline-heading>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.timeline-heading strong{font-size:12px;color:var(--text)}
.timeline-heading time{color:var(--muted);font-size:9px;white-space:nowrap;padding-top:2px}
.timeline-meta{font-size:9px;color:var(--muted);margin-top:3px}
.timeline-facts{display:flex;gap:15px;flex-wrap:wrap;margin-top:8px;font-size:10px;color:#52617b}
.timeline-text{margin-top:8px;padding:9px 11px;border-radius:9px;background:var(--surface-2);font-size:11px;line-height:1.5;color:#33425e;white-space:normal;overflow-wrap:anywhere}
.timeline-link{display:inline-block;margin-top:7px;font-size:9px;font-weight:800;color:#3157d5}
.timeline-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:34px 20px;color:var(--muted)}
.timeline-empty strong{color:var(--text);margin-bottom:5px}
.customer-info-after-timeline{margin-top:0}
@media(max-width:700px){.quick-interaction-footer{align-items:stretch;flex-wrap:wrap}.quick-status,.quick-status select{width:100%}.quick-more{align-self:center}.quick-save{margin-left:0;flex:1}.timeline-heading{flex-direction:column;gap:4px}.timeline-heading time{order:-1}.customer-timeline-card{padding:15px}.interaction-type-switch{margin-right:-5px}}
@media(max-width:460px){.quick-interaction-head p,.keyboard-hint{display:none}.quick-interaction-card{padding:15px}.interaction-type-btn{padding:7px 9px}.quick-save{width:100%;flex-basis:100%}}

/* CRM 1.1.5 linked quick actions: callback and case */
.quick-linked-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px;padding-top:11px;border-top:1px solid #edf1f6}
.quick-linked-label{font-size:10px;font-weight:800;color:#4a566d;margin-right:2px}
.quick-action-toggle{position:relative;display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:0!important;cursor:pointer}
.quick-action-toggle input{position:absolute;opacity:0;pointer-events:none}
.quick-action-toggle span,.quick-action-disabled{display:inline-flex;align-items:center;min-height:31px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#52617b;font-size:10px;font-weight:800;transition:.15s}
.quick-action-toggle:hover span{border-color:#b9c9e8;background:#f8faff}
.quick-action-toggle input:checked+span{border-color:#3157d5;background:#eef3ff;color:#294eb8;box-shadow:0 0 0 2px rgba(49,87,213,.08)}
.quick-action-disabled{background:#f7f8fa;color:#9aa4b5;cursor:not-allowed}
.quick-action-panels{display:flex;flex-direction:column;gap:8px;margin-top:9px}
.quick-action-panel{border:1px solid #dce5f3;border-radius:11px;background:#f9fbff;padding:11px 12px;animation:quickPanelIn .15s ease}
.quick-action-panel-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:9px}
.quick-action-panel-head strong{font-size:11px;color:var(--text)}
.quick-action-panel-head small{font-size:9px;color:var(--muted)}
.quick-action-fields{display:grid;grid-template-columns:minmax(240px,1fr) 170px;gap:9px;align-items:end}
.quick-action-fields label{display:flex;flex-direction:column;gap:5px;color:#4a566d;font-size:9px;font-weight:800}
.quick-action-fields input,.quick-action-fields select{min-height:36px}
.callback-fast-fields{grid-template-columns:minmax(220px,290px) 150px minmax(260px,1fr)}
.quick-due-presets{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding-bottom:1px}
.quick-preset{border:1px solid #dce4f0;border-radius:8px;background:#fff;color:#52617b;padding:7px 9px;font-size:9px;font-weight:800;white-space:nowrap}
.quick-preset:hover,.quick-preset.active{border-color:#8da8e9;background:#eef3ff;color:#294eb8}
@keyframes quickPanelIn{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@media(max-width:900px){.callback-fast-fields,.quick-action-fields{grid-template-columns:1fr 1fr}.quick-due-presets{grid-column:1/-1}}
@media(max-width:560px){.quick-linked-actions{align-items:stretch}.quick-linked-label{width:100%}.quick-action-toggle span,.quick-action-disabled{justify-content:center}.callback-fast-fields,.quick-action-fields{grid-template-columns:1fr}.quick-due-presets{grid-column:auto}.quick-action-panel-head{display:block}.quick-action-panel-head small{display:block;margin-top:3px}}


/* CRM 1.1.6 team cases and popup call completion */
.case-assignment-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:11px 13px;margin:0 0 16px}.case-assignment-banner span{font-size:11px;color:var(--muted)}
.call-popup-actions{flex-wrap:wrap}.call-popup-actions .btn{flex:1 1 calc(50% - 4px)}.call-popup-actions button[hidden]{display:none}
@media(max-width:520px){.case-assignment-banner{align-items:flex-start;flex-direction:column}.call-popup-actions .btn{min-width:0}}


/* CRM 1.1.7 quick call controls on customer profile */
.customer-live-calls{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}.customer-live-calls .card{margin-bottom:0}.customer-live-call{border-color:#cbd9ff}.customer-live-call.is-ringing{background:linear-gradient(90deg,#eef4ff,#fff)}.customer-live-call.is-talking{border-color:#bfe7d8;background:linear-gradient(90deg,#effaf6,#fff)}.customer-live-call-main{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.customer-live-call-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e3ecff;color:var(--primary);font-size:18px;flex:0 0 auto}.customer-live-call.is-talking .customer-live-call-icon{background:#def5ec;color:var(--success)}.customer-live-call-main>div:nth-child(2){min-width:0;flex:1}.customer-live-call-main p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-live-call-timer{text-align:right;min-width:72px}.customer-live-call-timer strong,.customer-live-call-timer small{display:block;font-variant-numeric:tabular-nums}.customer-live-call-timer strong{font-size:20px}.customer-live-call-timer small{font-size:10px;color:var(--muted);margin-top:2px}
@media(max-width:850px){.customer-live-call{align-items:stretch}.customer-live-call-main{width:100%}.customer-live-call .inline-actions{width:100%}.customer-live-call .inline-actions .inline-form,.customer-live-call .inline-actions .btn{flex:1}}


/* CRM 1.1.8 clearer call controls, waiting timer and adjustable UI font */
.btn-success{background:var(--success);color:#fff;box-shadow:0 7px 15px rgba(21,154,108,.22)}
.btn-success:hover{background:#0f865e}
.btn-call-answer{background:var(--success)!important;color:#fff!important;border-color:var(--success)!important}
.btn-call-complete{background:var(--danger)!important;color:#fff!important;border-color:var(--danger)!important;box-shadow:0 7px 15px rgba(216,75,91,.22)}
.btn-call-complete:hover{background:#bd3748!important}

.customer-live-call{gap:20px;padding:16px 18px}
.customer-live-call .inline-actions{flex:0 0 auto}
.customer-live-call-timer{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:112px;padding:9px 13px;border:1px solid #cfdbef;border-radius:13px;background:rgba(255,255,255,.86);box-shadow:0 5px 14px rgba(36,55,91,.07)}
.customer-live-call.is-ringing .customer-live-call-timer{border-color:#b9caef;background:#f7f9ff;color:#183f9b}
.customer-live-call.is-talking .customer-live-call-timer{border-color:#b8e2d3;background:#f3fbf7;color:#0c7653}
.customer-live-call-timer strong{font-size:28px;line-height:1;letter-spacing:.025em;font-weight:850}
.customer-live-call-timer small{margin-top:6px!important;font-size:10px!important;font-weight:850;text-transform:uppercase;letter-spacing:.09em;color:currentColor!important;opacity:.72}
.call-popup-actions [data-popup-answer]{background:var(--success)!important;border-color:var(--success)!important;color:#fff!important}
.call-popup-actions [data-popup-complete]{background:var(--danger)!important;border-color:var(--danger)!important;color:#fff!important}

.font-size-controls{display:inline-flex;align-items:center;padding:3px;border:1px solid #d9e2f0;border-radius:10px;background:#f7f9fc;white-space:nowrap}
.font-size-btn{min-width:30px;height:29px;padding:0 7px;border:0;border-radius:7px;background:transparent;color:#63718a;font-size:11px;font-weight:850;line-height:1}
.font-size-btn:hover{background:#eaf0ff;color:#3157d5}
.font-size-btn.active{background:#3157d5;color:#fff;box-shadow:0 4px 10px rgba(49,87,213,.2)}

:root{--ui-body-font:14px;--ui-control-font:12px;--ui-meta-font:11px;--ui-small-font:10px;--ui-tiny-font:9px;--ui-h3-font:15px;--ui-h2-font:17px;--ui-page-font:20px}
html[data-ui-font="large"]{--ui-body-font:15px;--ui-control-font:13px;--ui-meta-font:12px;--ui-small-font:11px;--ui-tiny-font:10px;--ui-h3-font:16px;--ui-h2-font:18px;--ui-page-font:22px}
html[data-ui-font="xlarge"]{--ui-body-font:16px;--ui-control-font:14px;--ui-meta-font:13px;--ui-small-font:12px;--ui-tiny-font:11px;--ui-h3-font:17px;--ui-h2-font:20px;--ui-page-font:24px}
html[data-ui-font="xxlarge"]{--ui-body-font:18px;--ui-control-font:16px;--ui-meta-font:15px;--ui-small-font:14px;--ui-tiny-font:13px;--ui-h3-font:20px;--ui-h2-font:23px;--ui-page-font:28px}
body{font-size:var(--ui-body-font)}
.page-heading h1{font-size:var(--ui-page-font)}
.card h2,.quick-interaction-head h2{font-size:var(--ui-h2-font)}
.card h3{font-size:var(--ui-h3-font)}
.btn,.status-select,.nav-link{font-size:var(--ui-control-font)}
input,select,textarea{font-size:var(--ui-body-font)}
.card-header p,.muted,.form-stack label,.form-grid label,.form-card>label,.filter-bar label{font-size:var(--ui-control-font)}
.customer-main p,.customer-contact span,.call-popup p,td,.data-list dd,.note-box,.prose,.comment p{font-size:var(--ui-body-font)}
.agent-live-card p,.timeline-text,.top-call-copy strong{font-size:var(--ui-meta-font)}
.badge,th,.table-secondary,.data-list dt,.task-item span,.task-item time,.timeline-facts,.top-call-copy small,.user-menu span,.keyboard-hint,.quick-status,.quick-more summary,.quick-linked-label{font-size:var(--ui-small-font)}
.timeline-meta,.timeline-heading time,.timeline-link,.top-call-time small{font-size:var(--ui-tiny-font)}
.timeline-heading strong{font-size:var(--ui-control-font)}
.user-menu strong{font-size:calc(var(--ui-control-font) + 1px)}

@media(max-width:1100px){.font-size-controls{display:none}}
@media(max-width:850px){.customer-live-call{gap:12px}.customer-live-call-timer{min-width:96px}.customer-live-call-timer strong{font-size:24px}}
@media(max-width:560px){.customer-live-call-main{align-items:flex-start;flex-wrap:wrap}.customer-live-call-timer{margin-left:54px;min-width:110px}.customer-live-call .inline-actions{flex-wrap:wrap}.customer-live-call .inline-actions .inline-form,.customer-live-call .inline-actions .btn{flex:1 1 calc(50% - 4px)}}


/* CRM 1.1.9 manual call default and editable timeline records */
.timeline-manual-call .timeline-marker{background:#edf9f4;color:#14805d;border-color:#c7eadc}
.timeline-heading-tools{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.timeline-record-actions{display:flex;align-items:center;gap:6px}
.timeline-action{appearance:none;border:0;background:transparent;color:#3157d5;font:inherit;font-size:var(--ui-tiny-font);font-weight:800;padding:2px 3px;cursor:pointer}
.timeline-action:hover{text-decoration:underline}
.timeline-action.danger{color:#c63d4f}
.timeline-edit-form{margin-top:9px;padding:12px;border:1px solid #dce4f0;border-radius:11px;background:#f8faff}
.timeline-edit-form[hidden]{display:none!important}
.timeline-edit-grid{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(170px,1fr) minmax(190px,1fr);gap:9px;margin-bottom:9px}
.timeline-edit-grid label{display:flex;flex-direction:column;gap:5px;font-size:var(--ui-small-font);font-weight:800;color:#52617b}
.timeline-edit-form textarea{width:100%;min-height:86px;resize:none;font-size:var(--ui-control-font);line-height:1.5}
.timeline-edit-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:9px}
@media(max-width:760px){.timeline-heading-tools{width:100%;justify-content:space-between}.timeline-edit-grid{grid-template-columns:1fr}.timeline-edit-actions{justify-content:stretch}.timeline-edit-actions .btn{flex:1}}

/* CRM 1.1.10 - customer profile as the main call workspace */
.customer-call-workspace{border:2px solid rgba(37,99,235,.18);box-shadow:0 18px 45px rgba(15,23,42,.08);overflow:hidden}
.customer-call-workspace.is-active{border-color:rgba(22,163,74,.28)}
.customer-call-workspace.is-ended{border-color:rgba(100,116,139,.28)}
.customer-call-workspace-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:18px;padding:20px 22px;background:linear-gradient(135deg,rgba(239,246,255,.95),rgba(248,250,252,.98));border-bottom:1px solid var(--line)}
.customer-call-workspace.is-active .customer-call-workspace-head{background:linear-gradient(135deg,rgba(240,253,244,.96),rgba(248,250,252,.98))}
.customer-call-workspace-title{display:flex;align-items:center;gap:14px;min-width:0}
.customer-call-workspace-title h2{margin:0 0 4px;font-size:1.18rem}
.customer-call-workspace-title p{margin:0;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-call-timer{min-width:118px;padding:10px 14px;border-radius:14px;background:#fff;border:1px solid var(--line);text-align:center}
.workspace-call-timer strong{display:block;font-size:1.75rem;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.04em}
.workspace-call-timer small{text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--muted)}
.workspace-call-status{justify-self:end}
.workspace-call-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 22px;border-bottom:1px solid var(--line);background:var(--surface)}
.workspace-call-note{margin-left:auto;color:var(--muted);font-size:.9rem}
.customer-call-workspace-form{padding:22px}
.workspace-primary-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.workspace-note-label textarea{font-size:1.05rem;line-height:1.55;min-height:120px}
.workspace-next-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.workspace-next-step{padding:16px;border:1px solid var(--line);border-radius:14px;background:rgba(248,250,252,.75)}
.workspace-next-step>.check{font-weight:700}
.workspace-existing-case{padding:10px 0}
.workspace-existing-case a{font-weight:700}
.workspace-case-fields,.callback-fields{margin-top:14px}
.workspace-save-actions{align-items:center}
.workspace-save-actions span{color:var(--muted);font-size:.9rem}
.customer-live-call .btn-primary{box-shadow:0 0 0 3px rgba(37,99,235,.12)}
@media(max-width:900px){.customer-call-workspace-head{grid-template-columns:1fr auto}.workspace-call-status{grid-column:1/-1;justify-self:start}.workspace-next-steps{grid-template-columns:1fr}}
@media(max-width:640px){.customer-call-workspace-head{grid-template-columns:1fr}.workspace-call-timer,.workspace-call-status{justify-self:stretch}.workspace-primary-fields{grid-template-columns:1fr}.workspace-call-actions .btn,.workspace-call-actions form{width:100%}.workspace-call-actions form .btn{width:100%}.workspace-call-note{margin-left:0}.customer-call-workspace-form{padding:16px}}


/* CRM 1.1.11 - one fast entry for live calls and protected drafts */
.customer-call-quick-entry{padding:0!important;overflow:hidden;border:2px solid rgba(37,99,235,.2);box-shadow:0 16px 40px rgba(31,52,94,.09)}
.customer-call-quick-entry.is-active{border-color:rgba(22,163,74,.3)}
.customer-call-quick-entry.is-ended{border-color:rgba(100,116,139,.3)}
.customer-call-quick-entry .quick-interaction-head{margin:0;padding:16px 20px;background:linear-gradient(135deg,#f5f8ff,#fff);border-bottom:1px solid var(--line);align-items:center}
.customer-call-quick-entry.is-active .quick-interaction-head{background:linear-gradient(135deg,#effbf5,#fff)}
.call-quick-heading{min-width:0;flex:1}
.call-quick-title-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.call-quick-title-row h2{margin:0}
.interaction-type-static{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #b9c9ed;border-radius:10px;background:#edf3ff;color:#274b9d;font-size:11px;font-weight:800}
.interaction-type-static>span{font-size:13px}
.call-quick-timer{flex:0 0 auto;min-width:112px}
.call-quick-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 20px;border-bottom:1px solid var(--line);background:rgba(248,250,252,.72)}
.call-quick-actions .workspace-call-note{margin-left:auto}
.customer-call-quick-form{padding:16px 20px 18px}
.customer-call-quick-form>textarea{width:100%;min-height:76px;max-height:260px;resize:none;font-size:14px;line-height:1.55;padding:13px 15px;border-width:1px}
.call-quick-classification{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}
.call-quick-classification label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:var(--muted)}
.call-quick-classification select{width:100%}
.call-quick-footer{align-items:center}
.call-draft-status{margin-right:auto;font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:7px}
.call-draft-status:before{content:"";width:8px;height:8px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.13)}
.call-draft-status[data-state="pending"]:before,.call-draft-status[data-state="saving"]:before{background:#f59e0b;animation:callDraftPulse 1s infinite}
.call-draft-status[data-state="saved"]:before{background:#16a34a}
.call-draft-status[data-state="local"]:before{background:#2563eb}
.call-draft-status[data-state="restored"]:before{background:#7c3aed}
.quick-action-linked{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border-radius:10px;background:#f1f5f9;font-size:11px;font-weight:800}
.quick-action-linked a{color:var(--primary)}
@keyframes callDraftPulse{50%{opacity:.4}}
@media(max-width:700px){.customer-call-quick-entry .quick-interaction-head{align-items:stretch}.call-quick-timer{align-self:flex-start}.call-quick-actions .inline-form,.call-quick-actions .btn{flex:1}.call-quick-classification{grid-template-columns:1fr}.call-quick-footer{align-items:stretch}.call-draft-status{width:100%;order:3}.customer-call-quick-form{padding:14px}.call-quick-actions{padding:10px 14px}}


/* CRM 1.1.14 - webhook debug viewer */
.title-with-badge{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.title-with-badge h2{margin:0}
.webhook-debug-card .card-header{align-items:flex-start}.webhook-debug-list{display:flex;flex-direction:column;gap:9px;margin-top:16px}
.webhook-debug-item{border:1px solid var(--line);border-radius:12px;background:#fbfcff;overflow:hidden}
.webhook-debug-item summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;cursor:pointer;padding:13px 15px;list-style:none}
.webhook-debug-item summary::-webkit-details-marker{display:none}.webhook-debug-item summary:before{content:'›';font-size:21px;font-weight:800;color:var(--muted);transition:transform .15s ease}.webhook-debug-item[open] summary:before{transform:rotate(90deg)}
.debug-time{color:var(--muted);min-width:132px}.debug-result{font-weight:800;color:#334155;margin-left:auto}
.webhook-debug-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;border-top:1px solid var(--line);background:#fff}
.webhook-debug-details h4{margin:0 0 7px;font-size:.82rem;color:#475569}.webhook-debug-details pre{margin:0;max-height:280px;overflow:auto;padding:12px;border-radius:9px;background:#0f172a;color:#e2e8f0;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.webhook-debug-details .debug-wide{grid-column:1/-1}
@media(max-width:760px){.webhook-debug-details{grid-template-columns:1fr}.webhook-debug-details .debug-wide{grid-column:auto}.debug-result{margin-left:0;width:100%}.debug-time{min-width:0}}

/* 1.1.19 – pregledna izbira ekip uporabnika */
.user-teams-field{margin-top:2px}
.user-teams-field>.field-label{display:block;margin-bottom:8px}
.user-teams-field>.field-help{display:block;margin-top:9px;color:var(--muted,#64748b);line-height:1.45}
.team-membership-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}
.team-membership-option{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:88px;border:1px solid var(--line,#dbe3ef);border-radius:14px;background:#fff;overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,transform .16s ease}
.team-membership-option:hover{border-color:#b8c8ed;box-shadow:0 8px 22px rgba(37,59,112,.08);transform:translateY(-1px)}
.team-membership-option.is-selected{border-color:#7f9df0;background:linear-gradient(135deg,#f6f8ff 0%,#fff 78%);box-shadow:0 0 0 3px rgba(59,91,219,.08)}
.team-membership-option.is-primary{border-color:#3b5bdb;box-shadow:0 0 0 3px rgba(59,91,219,.13),0 10px 24px rgba(37,59,112,.08)}
.team-membership-option.is-inactive{opacity:.62;filter:saturate(.7)}
.team-membership-main{display:grid!important;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:12px;margin:0!important;padding:15px 14px 15px 16px;cursor:pointer;min-width:0;font-weight:inherit!important}
.team-membership-native{position:absolute!important;inline-size:1px!important;block-size:1px!important;opacity:0!important;pointer-events:none!important}
.team-membership-check{display:grid;place-items:center;width:20px;height:20px;border:2px solid #aab7cb;border-radius:6px;background:#fff;box-shadow:inset 0 0 0 2px #fff;transition:.15s ease}
.team-membership-check:after{content:"";width:8px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translate(1px,-1px);opacity:0}
.team-membership-option.is-selected .team-membership-check{border-color:#3b5bdb;background:#3b5bdb}
.team-membership-option.is-selected .team-membership-check:after{opacity:1}
.team-membership-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.team-membership-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#263554;font-size:.98rem;font-weight:800;line-height:1.2}
.team-membership-title em{font-style:normal;font-size:.68rem;line-height:1;padding:4px 6px;border-radius:999px;background:#f1f5f9;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.team-membership-copy small{display:block;color:var(--muted,#64748b);font-size:.79rem;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.primary-team-choice{display:flex!important;align-items:center;justify-content:center;gap:7px;margin:0!important;padding:12px 14px;border-left:1px solid var(--line,#e2e8f0);background:rgba(248,250,252,.76);white-space:nowrap;font-size:.78rem!important;font-weight:800!important;color:#64748b;cursor:pointer;transition:background .15s ease,color .15s ease}
.primary-team-choice:hover{background:#f1f5ff;color:#304fbd}
.primary-team-radio{width:17px;height:17px;border:2px solid #aab7cb;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 3px #fff;transition:.15s ease}
.team-membership-option.is-primary .primary-team-choice{background:#edf2ff;color:#2949b0}
.team-membership-option.is-primary .primary-team-radio{border-color:#3b5bdb;background:#3b5bdb}
.primary-team-choice:has(input:disabled){opacity:.48;cursor:not-allowed;background:#f8fafc;color:#94a3b8}
.primary-team-choice:has(input:disabled):hover{background:#f8fafc;color:#94a3b8}
.customer-link-card{display:block}.customer-link-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.customer-link-search{display:grid;grid-template-columns:minmax(240px,1fr) auto;align-items:end;gap:10px}
.customer-link-results{display:grid;gap:8px;margin-top:14px}.customer-link-result{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:14px;border:1px solid var(--border,#dfe5e0);border-radius:10px;padding:11px 12px;background:#fff}
.customer-link-result>div{display:flex;flex-direction:column;gap:3px}.customer-link-result span{color:var(--muted,#6b7280);font-size:.9em}
.call-claim-note{margin:14px 0 0}
@media(max-width:760px){.customer-link-heading{align-items:flex-start;flex-direction:column}.customer-link-search,.customer-link-result{grid-template-columns:1fr}.team-membership-grid{grid-template-columns:1fr}.team-membership-option{grid-template-columns:1fr}.primary-team-choice{justify-content:flex-start;border-left:0;border-top:1px solid var(--line,#e2e8f0);padding:10px 16px}}

/* CRM 1.1.23 - administratorski pregled klicev po ekipah */
.dashboard-team-filter{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:13px 16px;margin-bottom:18px}.dashboard-team-filter-copy{display:flex;flex-direction:column;gap:3px}.dashboard-team-filter-copy strong{font-size:13px}.dashboard-team-filter-copy span{font-size:11px;color:var(--muted)}.dashboard-team-filter-form{margin-left:auto}.dashboard-team-filter-form select{min-width:190px}.calls-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 12px;margin-bottom:3px;border-bottom:1px solid var(--line)}.calls-filter-summary strong{font-size:13px}.calls-filter-summary span{font-size:11px;color:var(--muted)}.calls-filter-bar select[name="team_id"]{min-width:160px}
@media(max-width:850px){.dashboard-team-filter{align-items:stretch;flex-direction:column}.dashboard-team-filter-form{margin-left:0;width:100%}.dashboard-team-filter-form label{flex:1}.dashboard-team-filter-form select{width:100%;min-width:0}.calls-filter-bar input,.calls-filter-bar select,.calls-filter-bar .btn{flex:1 1 150px}}
.webrtc-status{border:1px solid #d8dee9;background:#fff;border-radius:999px;padding:8px 12px;display:flex;align-items:center;gap:7px;cursor:pointer}.webrtc-status span{width:9px;height:9px;border-radius:50%;background:#94a3b8}.webrtc-status[data-state="online"] span{background:#16a34a;box-shadow:0 0 0 4px #dcfce7}.webrtc-status[data-state="busy"] span{background:#f59e0b}.webrtc-status[data-state="error"] span{background:#dc2626}.webrtc-phone{position:fixed;right:22px;bottom:22px;width:330px;z-index:1200;background:#fff;border:1px solid #dbe2ea;border-radius:16px;box-shadow:0 18px 55px rgba(15,23,42,.24);padding:16px}.webrtc-phone header{display:flex;justify-content:space-between;gap:16px;align-items:center}.webrtc-phone header div{display:flex;flex-direction:column}.webrtc-phone header small{color:#64748b}.webrtc-phone-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.webrtc-dtmf{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:12px}.webrtc-dtmf button{border:1px solid #dbe2ea;background:#f8fafc;border-radius:8px;padding:8px;font-weight:700}.webrtc-phone[hidden],.webrtc-status[hidden],.webrtc-phone [hidden]{display:none!important}
.auth-forgot{display:block;text-align:center;margin-top:4px;font-weight:700}.password-reset-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(190px,1fr) minmax(190px,1fr) auto;gap:10px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}.password-reset-row>div{display:flex;flex-direction:column}.password-reset-row span{font-size:10px;color:var(--muted);margin-top:3px}@media(max-width:1000px){.password-reset-row{grid-template-columns:1fr 1fr}.password-reset-row>div{grid-column:1/-1}}@media(max-width:600px){.password-reset-row{grid-template-columns:1fr}}
