/* Desktop Lilac Pearl. Shared browser/Electron presentation, 761px and wider. */
@media(min-width:761px){
 #app .shell{--dp-ink:#291d43;--dp-muted:#81728f;--dp-line:#e6def0;--dp-purple:#6842dc;background:radial-gradient(ellipse at top right,#eee6fb,transparent 65%),#f8f5fc;color:var(--dp-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
 #app .shell .topbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:76px;padding:12px 24px;background:#ffffffed;border-bottom:1px solid #ece5f4;box-shadow:0 4px 16px #43256705}
 #app .topbar .brand{flex:0 0 auto;gap:9px;min-width:0}
 #app .topbar .brand img{width:40px;height:40px;object-fit:contain;border-radius:12px;box-shadow:0 3px 10px #62418a16}
 #app .topbar .brand strong{font-size:15px;letter-spacing:.015em;line-height:1.3;color:#271b3d}
 #app .topbar .brand span{font-size:10px;line-height:1.3;color:#91839e}
 #app .topbar .presence-control{flex:0 0 138px;width:138px;min-width:0;min-height:40px;border:1px solid var(--dp-line);border-radius:12px;background:#fcfaff;padding:0 10px;gap:8px;position:relative}
 #app .topbar .presence-control>button{font-size:12px;min-height:38px;padding:0;color:#4b365f}
 #app .presence-menu{border-radius:14px;border:1px solid var(--dp-line);padding:6px;box-shadow:0 10px 25px #33204e20;min-width:190px}
 #app .presence-menu button{min-height:38px;border-radius:8px;font-size:13px}
 #app .workspace-nav-controls{gap:6px;flex:none}
 #app .workspace-nav-controls button{width:38px;height:40px;min-height:40px;padding:0;border:1px solid var(--dp-line);border-radius:11px;color:#806794;background:#fff;font-size:21px}
 #app .topbar .tabs{display:flex;flex:1 1 290px;width:auto;min-width:250px;gap:3px;min-height:46px;height:46px;padding:3px;border:1px solid #eee6f7;background:#f6f1fb;border-radius:13px;overflow-x:auto}
 #app .topbar .tab{flex:1;gap:8px;min-height:38px;padding:7px 11px;border-radius:10px;color:#826b95;font-size:13px;white-space:nowrap;line-height:1.2}
 #app .topbar .tab.active,#app .primary,#app .callbar .call{background:linear-gradient(160deg,#8b65ef 0%,#714add 40%,#6138cf 100%);border-color:transparent;color:#fff;box-shadow:inset 0 1px #ffffff55,0 4px 12px #6735bf20}
 #app .topbar .header-search{flex:0 1 185px;min-width:140px;width:185px;margin:0}
 #app .topbar .header-search input{min-height:40px;height:40px;font-size:12px;border-radius:11px;background:#fdfbff}
 #app .topbar .user-menu{display:flex;flex:0 0 auto;margin:0;gap:10px;align-items:center;position:relative}
 #app .topbar .notification-button{width:38px;height:40px;min-height:40px;border-radius:11px;padding:8px;border-color:var(--dp-line)}
 #app .topbar .profile-button{gap:8px;padding:2px;border:0;background:transparent;min-height:42px}
 #app .topbar .avatar{width:38px;height:38px;font-size:15px;background:#ede6fb;color:#7450c3;border:2px solid white;box-shadow:0 0 0 1px #e8def3}
 #app .topbar .user-copy b{font-size:13px}#app .topbar .user-copy small{font-size:11px;color:var(--dp-muted)}
 #app .topbar .mobile-profile-button{display:none!important}
 #app .shell .content{max-width:1600px;width:100%;margin:0 auto;padding:22px 24px 36px;box-sizing:border-box}
 #app .lead-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;width:100%;margin:0;align-items:stretch}
 #app .lead-layout>.card{border:1px solid #e9e1f2;border-radius:18px;box-shadow:0 6px 24px #45276a06;background:#ffffffed;min-width:0}
 #app .callbar.card{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-height:90px;padding:14px 18px;min-width:0}
 #app .callbar .operator-campaign-badge{display:flex;flex:0 1 220px;min-width:135px;max-width:260px;min-height:44px;line-height:1.25;padding:8px 12px!important;margin:0!important;background:#f0e9fd!important;border:1px solid #e8dcf9;border-radius:11px!important;font-size:14px!important;font-weight:650!important;color:#6942b4!important;white-space:normal}
 #app .operator-campaign-badge select{width:100%;max-width:100%;min-width:0;background:transparent;border:0;box-shadow:none;color:inherit;font-size:13px;padding:0;min-height:28px}
 #app .callbar .callstate{display:flex;flex:1 1 180px;min-width:160px;align-items:center;gap:10px;margin:0;padding:0;border:0}
 #app .callbar .call-icon{width:32px;height:32px;min-width:32px;font-size:12px}
 #app .callbar .callstate>div:last-child{min-width:0}
 #app .callbar .callstate strong{font-size:14px;line-height:1.3;color:var(--dp-ink);font-weight:650}
 #app .callbar .callstate small{font-size:11px;line-height:1.4;color:var(--dp-muted);margin-top:3px;overflow-wrap:anywhere;max-width:270px}
 #app .callbar .sip-inline-control{flex:none;min-width:32px}
 #app .callbar .switch{width:34px;flex-basis:34px;height:20px;min-height:20px}
 #app .callbar .switch:after{width:14px;height:14px;top:3px;left:3px}
 #app .callbar .switch.on:after{left:17px}#app .callbar .switch.on{background:#7954de}
 #app .callbar #sip-settings{height:36px;min-height:36px;width:36px;padding:0;border-radius:10px;border-color:var(--dp-line);background:#faf7fe}
 #app .callbar .dial-field{flex:1 1 250px;min-width:180px;max-width:420px}
 #app .dial-field label{font-size:11px;line-height:1.3;margin-bottom:5px;color:var(--dp-muted)}
 #app .callbar input.call-number{height:42px;min-height:42px;width:100%;font-size:16px;padding:9px 12px;letter-spacing:-.3px;background:#fcfaff}
 #app .callbar #call-button{display:flex;align-items:center;justify-content:center;gap:9px;flex:0 0 150px;min-width:150px;min-height:46px;padding:10px 12px;font-size:14px;border-radius:11px;line-height:1.25}
 #app .callbar #call-button.danger{background:linear-gradient(#e6687e,#bd2948);border-color:transparent;color:#fff}
 #app .callbar #call-button:disabled,#app #save-result:disabled{background:#e2d7f2;color:#89729f;border-color:transparent;box-shadow:none;opacity:1}
 #app .dp-phone-icon{width:20px;height:20px;flex:none;vertical-align:middle}
 #app .lead-card.card-pad{display:flex;flex-direction:column;gap:18px;padding:22px;min-height:0}
 #app .lead-card .lead-data-section{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
 #app .lead-card .dynamic-card-sections{gap:18px}
 #app .lead-card .lead-data-section+.lead-data-section{border-top:1px solid #eee6f7;padding-top:18px}
 #app .lead-card .section-title{font-size:18px;font-weight:700;line-height:1.3;color:#342047;margin:0 0 13px}
 #app .lead-card .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #app .field{min-width:0}#app .field label{font-size:12px;line-height:1.3;color:#897395;margin-bottom:6px}
 #app input,#app textarea,#app select{border:1px solid #e4d9ee;background:#fdfbff;border-radius:10px;color:#332243}
 #app .field input,#app .field select{min-height:42px;padding:9px 12px;font-size:14px;width:100%}
 #app input:focus,#app select:focus,#app textarea:focus{border-color:#a487d9;box-shadow:0 0 0 3px #8553d914;outline:none}
 #app .call-result-panel{border-top:1px solid #eee7f5;padding-top:18px}
 #app .lead-card .result-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:17px;margin:0}
 #app .lead-card .result-title small{font-size:11px;color:#927ca1;font-weight:400;line-height:1.4}
 #app .lead-card .results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:13px 0 16px}
 #app .lead-card .result{display:flex;align-items:center;gap:10px;min-height:49px;padding:11px 13px;border:1px solid #e6ddf0;border-radius:11px;background:#fcfaff;color:#50355f;font-size:13px}
 #app .lead-card .result .radio{width:18px;height:18px;border:1.5px solid #9a83aa;border-radius:50%;flex:none;background:white}
 #app .lead-card .result.selected{border-color:#b094e1;background:#f0e8fd;color:#7142ca;box-shadow:inset 0 0 0 1px #b094e1}
 #app .lead-card .result.selected .radio{border-color:#8050d6;background:#8050d6;box-shadow:inset 0 0 0 4px white}
 #app #note{min-height:90px;padding:11px 13px;font-size:14px;line-height:1.5;resize:vertical}
 #app .save-row{margin-top:14px;padding:0}#app #save-result{width:100%;min-height:46px;font-size:14px;padding:10px 14px;border-radius:11px}
 #app .next-actions{margin:0;padding:14px 0 0;border-top:1px solid #eee7f5;background:transparent}
 #app .next-actions .section-title{font-size:12px;font-weight:550;margin-bottom:9px;color:#8b779c}
 #app .next-actions .actions{display:flex;gap:10px;flex-wrap:wrap}#app .next-actions .secondary{flex:1;min-height:40px;background:#fcfaff;border:1px solid var(--dp-line);border-radius:10px;font-size:12px;color:#826191}
 #app .workflow-card{padding:16px 20px 22px;min-height:0;overflow:visible}
 #app .workflow-tabs{display:flex;gap:4px;width:100%;padding:4px;border:1px solid #eee6f6;border-radius:12px;background:#f6f1fa}
 #app .workflow-tab{flex:1;min-height:38px;padding:8px 12px;border-radius:9px;font-size:13px;color:#8a7298;white-space:nowrap}
 #app .workflow-tab.active{background:#fff;color:#7948cf;box-shadow:0 3px 10px #39224f0c}
 #app .workflow{padding:20px 0 0}
 #app .workflow-heading{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:0 0 17px;border-bottom:1px solid #eee7f6;margin:0 0 16px}
 #app .workflow-heading h2{font-size:20px;line-height:1.3;color:#342145;margin:0 0 5px}
 #app .workflow-heading p{font-size:12px;color:#957ea5;margin:0}
 #app .workflow-heading-actions{gap:8px;flex-wrap:wrap}#app .workflow-heading-actions button{min-height:36px;padding:8px 11px;border-radius:10px;font-size:11px;border-color:var(--dp-line);color:#816193;background:#fff}
 #app .lead-chip{border-radius:8px;background:#f0e9fc;color:#8053ca;font-size:11px;padding:6px 9px}
 #app .script-steps{display:flex;flex-direction:column;gap:12px}
 #app .script-steps article{display:grid;grid-template-columns:35px minmax(0,1fr);gap:12px;padding:16px;border:1px solid #e9e0f3;border-radius:13px;background:linear-gradient(135deg,#fdfbff,#f8f4fd)}
 #app .script-steps article>span{width:34px;height:34px;min-width:34px;display:grid;place-items:center;border-radius:10px;color:#8051d1;background:#eee5fb;font-size:15px;font-weight:700}
 #app .script-steps b{font-size:14px;line-height:1.4;color:#412653;font-weight:650}
 #app .script-steps p{font-size:14px;line-height:1.55;color:#826991;margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
 #app .primary:hover:not(:disabled),#app .callbar .call:hover:not(:disabled){background:linear-gradient(#8057e3,#5930c4);color:white}
 #app button:focus-visible{outline:2px solid #b69ae4;outline-offset:2px}
 #app .card-config-row button{font-size:11px;min-height:32px;padding:6px 9px;border-radius:9px}
 #app #chat-fab{background:#7954de;color:white}
 #app #chat-fab,#app #quick-phone{width:42px;height:42px;min-height:42px;bottom:18px;box-shadow:0 4px 12px #47226922}
}
@media(min-width:761px) and (max-width:1190px){
 #app .shell .topbar{padding:10px 18px;gap:8px}#app .topbar .tabs{order:5;flex:1 1 100%;min-width:0}#app .topbar .user-menu{margin-left:auto}#app .topbar .header-search{flex:1;max-width:240px}#app .shell .content{padding:18px}#app .callbar .dial-field{max-width:none}#app .lead-card.card-pad{padding:17px}#app .workflow-card{padding:14px}#app .workflow-tab{font-size:12px;padding:8px}#app .lead-card .form-grid{grid-template-columns:1fr}
}
@media(min-width:1600px){#app .topbar .tabs{max-width:660px;margin:0 auto}#app .topbar .header-search{flex-basis:220px}}

@media(min-width:761px){
 #app .lp-telephony,#app .lp-bottom-nav,#app .lp-back-result{display:none!important}
 #app .lp-phone-field{display:flex;align-items:center;gap:8px;min-width:0}
 #app .lp-phone-field input{min-width:0;flex:1}
 #app .lp-icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:6px;border:1px solid #e4d9ee;border-radius:8px;background:#faf7fe;color:#8053ca;flex:none}
 #app .lp-icon{width:20px;height:20px;flex:none;vertical-align:middle}
 #app .section-title>.lp-icon{margin-right:8px}
 #app .dial-field{position:relative}
 #app .dial-field .lp-copy-number{position:absolute;right:6px;bottom:5px}
 #app .dial-field:has(.lp-copy-number) input{padding-right:42px}
 #app .script-steps article{position:relative}
 #app .script-steps article:has(.lp-copy-script){padding-right:48px}
 #app .lp-copy-script{position:absolute;right:9px;top:12px}
 #app #chat-fab.lp-inline-action,#app #quick-phone.lp-inline-action{position:static;width:auto;height:40px;min-height:40px;display:flex;align-items:center;justify-content:center;gap:7px;flex:1;font-size:12px;padding:8px 12px;border-radius:10px;box-shadow:none;background:#faf7fe;color:#8053ca;border:1px solid #e4d9ee}
 #app .callbar .operator-campaign-badge{order:0}
 #app .callbar .callstate{order:1}#app .callbar .sip-inline-control,#app .callbar #sip-settings{order:2}
 #app .callbar .dial-field{order:3}#app .callbar #call-button{order:4}
}

#call-button,#quick-call-button{display:inline-flex;align-items:center;justify-content:center;gap:9px}
#call-button svg,#quick-call-button svg{width:20px;height:20px;flex:none}
