body.page-queue .app{max-width:none}body.page-queue .queue-page{max-width:1320px;margin:0 auto;padding:25px 26px 70px;min-width:0}.queue-heading,.q-editor-head,.q-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.queue-heading h2{font-size:26px;margin:0 0 5px}.queue-heading p,.q-detail-head p{margin:0;color:var(--muted)}button{cursor:pointer}.queue-page button{border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:12px;padding:10px 14px;min-height:42px;font-weight:750}.queue-page .q-primary{background:#1761b5;border-color:#1761b5;color:#fff;display:inline-flex;align-items:center;gap:8px}.q-primary svg{width:18px;height:18px}.q-message{padding:12px 16px;background:var(--card);border:1px solid var(--line);border-radius:12px;color:var(--muted)}.q-message:empty{display:none}.q-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.q-card,.q-editor,.q-detail{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 7px 20px rgba(0,0,0,.045)}.q-card h3{margin:0;font-size:19px}.q-card p{color:var(--muted);font-size:13px}.q-card small{color:var(--muted)}.q-card-top{display:flex;justify-content:space-between;gap:12px}.q-tag{border-radius:99px;background:#e4f5ec;color:#17623b;padding:4px 10px;font-size:11px;font-weight:850;align-self:start}.q-meter{background:var(--line);height:7px;border-radius:99px;margin:12px 0;overflow:hidden}.q-meter>div{height:100%;background:#247bd9}.q-card-actions,.q-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.q-editor,.q-detail{margin-top:20px}.q-editor[hidden],.q-detail[hidden]{display:none}.q-editor h2,.q-detail h2{margin:0 0 12px}.queue-page label{display:grid;gap:7px;font-size:13px;font-weight:800;margin-top:14px}.queue-page input:not([type=checkbox]),.queue-page select{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--page);color:var(--text);font:inherit;min-height:44px}.q-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.queue-page label.q-check{display:flex;align-items:center;gap:9px}.q-help{color:var(--muted);font-size:13px}.q-search{display:flex;gap:8px}.q-result,.q-item{padding:12px 6px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.q-result span,.q-item span{min-width:0;overflow-wrap:anywhere}.q-item-controls{display:flex;gap:5px;flex-wrap:wrap}.q-empty{padding:24px;text-align:center;color:var(--muted)}@media(max-width:650px){body.page-queue .queue-page{padding:17px 12px 50px}.queue-heading{align-items:stretch;flex-direction:column}.q-fields{grid-template-columns:1fr}.q-search{flex-direction:column}.q-result,.q-item{align-items:flex-start;flex-direction:column}}
/* Queue Batch 2: compact outreach queue controls */
.sh-queue-control{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-left:auto}
.sh-queue-control span{font-size:12px;color:var(--muted,#63758a);font-weight:700}
#shQueueNext{background:#1767c2;border:0;color:white;border-radius:12px;min-height:42px;padding:9px 16px;font-weight:850;cursor:pointer}
#shQueueNext:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){.sh-queue-control{margin-left:0;width:100%;justify-content:space-between}}


/* Queue builder popup: responsive, accessible, and independent of page scrolling. */
body.q-modal-open{overflow:hidden!important}
.q-modal-overlay[hidden]{display:none!important}
.q-modal-overlay{position:fixed;inset:0;z-index:12000;background:rgba(4,16,33,.72);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);display:flex;justify-content:center;align-items:center;padding:20px;overflow-y:auto;overscroll-behavior:contain}
.q-modal{background:var(--card,#fff);color:var(--text,#172c49);border:1px solid var(--line,#dbe5f0);border-radius:24px;box-shadow:0 30px 90px rgba(3,16,34,.35);width:min(620px,100%);max-height:calc(100dvh - 40px);max-height:calc(100vh - 40px);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.q-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:24px 26px 20px;border-bottom:1px solid var(--line,#e3eaf3);flex:none;background:var(--card,#fff)}
.q-modal-eyebrow{display:inline-flex;align-items:center;gap:7px;color:#2476c9;font-size:11px;font-weight:900;letter-spacing:.09em}
.q-modal-eyebrow svg{width:16px;height:16px}
.q-modal-heading h2{margin:8px 0 4px!important;font-size:25px;line-height:1.2;letter-spacing:-.035em}
.q-modal-heading p{margin:0;color:var(--muted,#718199);font-size:13px}
.queue-page .q-modal-close{flex:none;display:grid;place-items:center;padding:0;width:38px;min-height:38px;background:var(--page,#f2f5f9);color:var(--text,#172c49);border-radius:12px}
.q-modal-close svg{width:18px;height:18px}
.q-modal-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.q-modal-body{padding:0 26px 12px;overflow-y:auto;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.q-form-section{padding:21px 0;border-bottom:1px solid var(--line,#e3eaf3)}
.q-form-section:last-child{border:0}
.q-section-title{display:flex;align-items:center;gap:11px;margin-bottom:15px}
.q-section-title>span{display:grid;place-items:center;flex:none;width:30px;height:30px;background:#e8f2ff;color:#1e63b4;border-radius:10px;font-size:13px;font-weight:900}
.q-section-title h3{font-size:15px;margin:0 0 2px;line-height:1.3}
.q-section-title p{margin:0;font-size:12px;color:var(--muted,#718199)}
.queue-page .q-modal label{font-size:12px;margin-top:11px;gap:6px}
.queue-page .q-modal input:not([type=checkbox]),.queue-page .q-modal select{background:var(--page,#f4f7fa);border:1px solid var(--line,#dde6f0);border-radius:12px;min-height:44px}
.q-modal .q-fields{gap:0 13px}
.q-option-box{background:var(--page,#f4f7fa);border:1px solid var(--line,#dde6f0);border-radius:14px;padding:8px 14px;margin-top:15px}
.queue-page .q-modal label.q-check{margin:0;padding:8px 0;display:flex;align-items:center;gap:10px;line-height:1.4;font-size:13px;font-weight:650}
.q-modal .q-check input{width:17px;height:17px;accent-color:#1761b5;flex:none}
.q-modal .q-help{display:flex;gap:9px;align-items:flex-start;padding:11px 13px;background:var(--page,#f4f7fa);border-radius:12px;line-height:1.5;font-size:12px;margin:15px 0 0}
.q-modal .q-help svg{width:18px;height:18px;flex:none;color:#2476c9}
.q-modal-footer{padding:16px 26px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line,#e3eaf3);display:flex;justify-content:flex-end;gap:10px;background:var(--card,#fff);flex:none}
.queue-page .q-modal-footer button{min-height:44px;padding:10px 18px}
.queue-page .q-modal-save{justify-content:center;gap:9px}
.queue-page .q-modal-save svg{width:17px;height:17px}
html[data-theme="dark"] .q-modal-overlay{background:rgba(0,4,12,.80)}
html[data-theme="dark"] .q-section-title>span{background:#14385a;color:#b7dcff}
@media(max-width:650px){.q-modal-overlay{padding:0;align-items:flex-end}.q-modal{max-height:calc(100dvh - 12px);width:100%;border-radius:22px 22px 0 0}.q-modal-head{padding:20px 18px 17px}.q-modal-body{padding:0 18px 8px}.q-modal-footer{padding:14px 18px calc(16px + env(safe-area-inset-bottom,0px))}.q-modal .q-fields{grid-template-columns:1fr}.q-modal-heading h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.q-modal-overlay,.q-modal{animation:none!important;transition:none!important}}

/* Dashboard Queue theme: scoped so existing editor and CRM functionality remain intact. */
body.page-queue{--q-blue:#087cff;--q-ink:#111b49;--q-muted:#7586a5;background:#f0f5fb}
body.page-queue .queue-page{max-width:1560px;padding:16px 22px 70px;color:var(--q-ink)}
body.page-queue .queue-page button{transition:background .15s,border-color .15s,transform .15s}
body.page-queue .queue-page button:focus-visible{outline:3px solid #71b5ff;outline-offset:2px}
body.page-queue .queue-page button:hover:not(:disabled){border-color:#75b4ff}
body.page-queue .queue-page button:disabled{opacity:.45;cursor:not-allowed}
body.page-queue .q-summary,body.page-queue .q-upnext,body.page-queue .q-select-panel,body.page-queue .q-settings{background:#fff;border:1px solid #e6eef8;border-radius:20px;box-shadow:0 9px 30px rgba(15,42,80,.035)}
body.page-queue .q-summary{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(340px,1fr);gap:26px;padding:25px;margin-bottom:14px}
.q-summary-info{min-width:0}.q-summary-title{display:flex;align-items:center;gap:18px;margin-bottom:18px}.q-icon-bubble,.q-lead-avatar{display:grid;place-items:center;flex:none;background:#e8f5ff;color:#087cff;border-radius:50%}.q-icon-bubble{width:72px;height:72px}.q-icon-bubble svg{width:35px;height:35px}.q-summary h2{font-size:28px;letter-spacing:-.04em;color:#111b49;margin:0 0 4px}.q-summary p{margin:0;color:#7486a4}.q-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.q-stats>div{background:#f1f7fe;border-radius:10px;padding:12px;display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px;color:#7284a3}.q-stats strong{font-size:26px;line-height:1;color:#087cff}.q-stats svg{margin-left:auto;width:20px;height:20px;color:#5f7aa3}.q-progress-line{display:flex;align-items:center;gap:14px;margin-top:16px}.q-progress-line .q-meter{flex:1;margin:0;height:12px;background:#dfeaf6}.q-progress-line .q-meter>div{background:#087cff}.q-progress-line>span{font-size:13px;font-weight:800;color:#657b9e;white-space:nowrap}
.q-summary-actions{display:flex;flex-direction:column;gap:12px;justify-content:center;border-left:1px solid #dce7f5;padding-left:25px}.q-summary-actions>div{display:flex;gap:10px}.q-summary-actions button{display:flex;justify-content:center;align-items:center;gap:10px;flex:1;min-height:68px!important;font-size:16px!important;border-color:#b8d9ff!important;color:#111b49!important;background:#fff!important}.q-summary-actions button svg{color:#087cff;width:27px;height:27px}.q-summary-actions .q-primary{min-height:64px!important;background:#087cff!important;color:white!important;border-color:#087cff!important}.q-summary-actions .q-primary svg{color:white}
body.page-queue .q-message{background:#edf6ff;border:1px solid #c9dfff;padding:10px 14px;margin:0 0 14px;font-size:13px}body.page-queue .q-message:empty{display:none}
.q-workspace{display:grid;grid-template-columns:minmax(0,1.68fr) minmax(345px,1fr);gap:14px;align-items:start}.q-upnext,.q-select-panel,.q-settings{min-width:0;padding:18px}.q-side{display:grid;gap:14px}.q-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.q-panel-head h2{font-size:24px;letter-spacing:-.035em;color:#111b49;margin:0;display:flex;align-items:center;gap:12px}.q-panel-head h2 svg{color:#162454;width:27px;height:27px}.q-panel-head>span{font-size:12px;color:#657da4;font-style:italic;text-align:right}.q-heading-actions{display:flex;align-items:center;gap:3px}.q-heading-actions button{width:36px;min-height:34px!important;padding:5px!important;border:0!important;background:transparent!important;color:#172956!important}.q-heading-actions svg{width:23px;height:23px}
body.page-queue .q-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.queue-page button.q-queue-tile{display:flex;align-items:center;text-align:left;gap:8px;min-width:0;min-height:59px;padding:9px 10px;border:1px solid #c7e0ff;background:#fff;color:#111b49;font-size:12px;font-weight:800;border-radius:11px}.q-queue-tile>svg:first-child{width:25px;height:25px;color:#087cff;flex:none}.q-queue-tile>svg:last-child{width:16px;height:16px;color:#087cff;margin-left:auto;flex:none}.q-queue-tile>span{overflow:hidden;text-overflow:ellipsis}.q-queue-tile small{font-size:9px;color:#087cff}.queue-page button.q-queue-tile.is-selected{background:#eaf5ff;border-color:#087cff}
.q-preview-list{display:grid;gap:10px}.q-preview-row{display:flex;gap:9px;align-items:center;min-height:82px;padding:10px;border:1px solid #dbeaff;border-radius:12px;min-width:0}.q-grip{color:#7b8db0;flex:none}.q-grip svg{width:16px;height:20px}.q-lead-avatar{width:48px;height:48px}.q-lead-avatar svg{width:29px;height:29px}.q-lead-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}.q-lead-main strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.q-lead-main small{display:flex;align-items:center;gap:5px;color:#7486a6;font-size:12px}.q-status-dot{display:inline-block;flex:none;width:9px;height:9px;border-radius:50%;background:#087cff}.q-status-dot.is-done{background:#899ab5}.q-position{font-size:12px;color:#7c8cac;font-weight:800}.q-lead-actions{display:flex;gap:5px}.queue-page .q-lead-actions button{padding:7px!important;min-height:37px;border:1px solid #c8e0ff;background:#fff;color:#112552;border-radius:8px;display:flex;align-items:center;gap:4px;font-size:11px;font-weight:800}.q-lead-actions svg{width:17px;height:17px;color:#087cff}
.q-settings .q-panel-head{margin-bottom:12px}.q-settings label:not(.q-setting-toggle),.q-setting-label{display:block;margin:12px 0 7px;color:#63799d;font-size:14px;font-weight:700}.q-settings select{background:#fff!important;border:1px solid #c9e0ff!important;min-height:41px!important}.q-order{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #b8d7ff;border-radius:10px;overflow:hidden}.queue-page .q-order button{font-size:12px;min-height:42px;border:0;border-right:1px solid #d7e7fb;border-radius:0;background:#f7fbff;color:#172a51;padding:6px}.queue-page .q-order button:last-child{border-right:0}.queue-page .q-order button.is-selected{background:#087cff;color:#fff}.q-setting-toggle{display:flex!important;justify-content:space-between;align-items:center;gap:12px;margin-top:15px!important;border-bottom:1px solid #e4edfa;padding:4px 0 13px;color:#657b9f;font-size:14px!important}.q-setting-toggle input{position:absolute;opacity:0;width:1px;height:1px}.q-toggle-track{position:relative;width:51px;height:27px;border-radius:20px;background:#d1ddeb;flex:none}.q-toggle-track:after{content:"";position:absolute;width:21px;height:21px;top:3px;left:3px;border-radius:50%;background:white;box-shadow:0 1px 3px #9baec2;transition:transform .15s}.q-setting-toggle input:checked+.q-toggle-track{background:#087cff}.q-setting-toggle input:checked+.q-toggle-track:after{transform:translateX(24px)}.q-settings-hint{font-size:12px;color:#7789a6;line-height:1.5;margin:12px 0 0}
body.page-queue .queue-page .q-modal-save{background:#087cff;border-color:#087cff;color:#fff}
@media(max-width:1050px){body.page-queue .q-summary{grid-template-columns:1fr}.q-summary-actions{border-left:0;border-top:1px solid #e2ecf8;padding:15px 0 0}.q-workspace{grid-template-columns:1fr}.q-side{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){body.page-queue .queue-page{padding:14px 10px 50px}.q-summary{padding:16px!important}.q-summary h2{font-size:22px}.q-icon-bubble{width:52px;height:52px}.q-stats>div{font-size:10px;padding:8px;gap:4px}.q-stats strong{font-size:20px}.q-stats svg{display:none}.q-side{grid-template-columns:1fr}.q-preview-row{flex-wrap:wrap}.q-lead-actions{width:100%;justify-content:flex-end}.q-panel-head h2{font-size:21px}.q-summary-actions button{font-size:14px!important;min-height:55px!important}}

/* Manual-first queues: compact, centered empty state */
.q-empty-action{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:245px;padding:30px 18px!important}
.q-empty-action strong{font-size:20px;color:#152b51}.q-empty-action p{margin:0 0 5px;max-width:330px;font-size:13px;line-height:1.5;color:#657b9f}
.q-empty-icon{display:grid;place-items:center;background:#e9f4ff;border-radius:50%;width:58px;height:58px;color:#087cff}.q-empty-icon svg{width:29px;height:29px}
.q-empty-leads-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#087cff;color:#fff!important;text-decoration:none;font-weight:750;border-radius:12px;padding:12px 20px}.q-empty-leads-link svg{width:18px;height:18px}
.q-setting-toggle small{display:block;font-size:11px;font-weight:500;color:#8192aa;margin-top:3px}

/* Assigned prospect details dialog (replaces the legacy bottom queue manager) */
.q-client-overlay{position:fixed;inset:0;z-index:9999;background:rgba(7,22,43,.55);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}
.q-client-overlay[hidden]{display:none!important}.q-client-card{background:#fff;color:#102442;width:min(640px,100%);max-height:min(780px,90vh);overflow:auto;border-radius:22px;box-shadow:0 25px 80px rgba(0,0,0,.25);padding:24px}.q-client-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e2e9f4;padding-bottom:17px;margin-bottom:18px}.q-client-head h2{font-size:25px;line-height:1.2;margin:5px 0 0;color:#102442}.q-client-eyebrow{font-size:11px;font-weight:850;letter-spacing:.1em;color:#4775a6}.queue-page .q-client-head button{min-width:42px;min-height:42px;display:grid;place-items:center;background:#f7faff;border:1px solid #d9e5f5;color:#12395d}.q-client-head svg{width:20px;height:20px}.q-client-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.q-client-field{background:#f7faff;border:1px solid #e0eaf7;border-radius:12px;padding:12px;min-width:0;display:grid;gap:5px}.q-client-field span,.q-client-notes>span{font-size:12px;color:#647a99;font-weight:700}.q-client-field strong{font-size:14px;overflow-wrap:anywhere}.q-client-notes{margin-top:13px;padding:15px;background:#f7faff;border:1px solid #e0eaf7;border-radius:12px}.q-client-notes p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}.q-client-error{color:#a22237}.q-client-loading{color:#647a99}@media(max-width:560px){.q-client-card{padding:17px}.q-client-fields{grid-template-columns:1fr}}

.q-contact-status{display:flex;flex-direction:column;gap:4px;flex:0 0 100px;padding:8px 12px;border-left:1px solid #7893ab55}.q-contact-status small{font-size:11px;color:inherit;opacity:.7}.q-contact-status strong{font-size:13px}@media(max-width:600px){.q-contact-status{flex-basis:78px;padding:6px}}
