/* Responsive sales workspace, sharing the Learnkin crimson design. */
.sales-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:18px;background:#fff;border:1px solid var(--border);border-radius:12px;margin-bottom:24px}
.sales-filters label{flex:1;min-width:115px;margin:0;font-size:11px}.sales-filters input,.sales-filters select{margin:6px 0 0;font-size:12px;min-height:40px}.sales-filters .button{height:40px}
.sales-board{display:flex;overflow-x:auto;gap:16px;padding:0 0 20px;align-items:flex-start;scroll-snap-type:x proximity}
.sales-column{flex:0 0 250px;background:#f4eff1;border:1px solid #eadfe2;border-radius:12px;padding:13px;min-height:280px;scroll-snap-align:start}
.sales-column>h3{display:flex;justify-content:space-between;font-size:13px;margin:2px 0 16px}.sales-column>h3>span{border-radius:20px;background:#fff;padding:2px 8px;color:#a5092b}
.sales-deal-card{width:100%;padding:17px 14px;border:1px solid #eadfe2;background:#fff;border-radius:10px;display:flex;flex-direction:column;align-items:start;gap:10px;text-align:left;margin-bottom:12px;color:#161214;box-shadow:0 3px 10px #43132306}
.sales-deal-card:hover{border-color:#d98b9f;box-shadow:0 5px 15px #43132312}.sales-deal-card strong{font-size:13px;line-height:1.5}.sales-deal-card small{font-size:11px;line-height:1.5}.sales-column-empty{font-size:12px;padding:20px 4px}
.sales-spaced{margin-top:24px}.sales-actions{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.sales-actions .button,.sales-quote .button{font-size:11px;padding:10px 12px;text-decoration:none}.sales-action-stack{display:flex;flex-direction:column;gap:10px}.sales-action-stack .button{width:100%;font-size:12px}
.sales-quote{padding:20px 0;border-bottom:1px solid var(--border)}.sales-quote-title{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.sales-quote-title>b{margin-left:auto}.sales-quote p{font-size:12px;line-height:1.7}
.sales-wide{width:850px}.sales-line{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border)}.sales-line label{font-size:11px}.sales-line input,.sales-line select{min-width:0;font-size:12px}.sales-line .text-button{font-size:11px}.sales-wide #quote-total{font-size:16px;font-weight:650;color:#a5092b}
.workspace .sidebar nav{overflow-y:auto;min-height:100px;scrollbar-width:thin;flex-shrink:1}.workspace .sidebar-bottom{flex-shrink:0}.workspace .sidebar:has([data-page="sales-pipeline"]) .foundation-note{display:none}.workspace .sidebar:has([data-page="sales-pipeline"]) .sidebar-bottom{padding-top:14px}.workspace .sidebar:has([data-page="sales-pipeline"]) .nav-item{padding:11px 13px;margin-bottom:3px}
.sales-actions a,.sales-quote a{color:#a5092b}.lead-tasks .button{font-size:10px;padding:7px 10px;margin-top:8px}.settings-panel>.table-scroll{margin-top:20px}.settings-panel p{line-height:1.7}.lead-table td{max-width:450px;white-space:normal;overflow-wrap:anywhere}.lead-table small{display:block}
@media(max-width:760px){.sales-filters{gap:10px;padding:14px}.sales-filters label{min-width:calc(50% - 10px)}.sales-column{flex-basis:260px}.sales-line{grid-template-columns:1fr 1fr}.sales-line>label:first-child{grid-column:1/-1}.sales-quote-title>b{margin-left:0;width:100%}.sales-actions .button{flex:1;min-width:120px}.sales-wide{max-width:calc(100% - 24px)}}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;background:#fff5f7;border:1px solid #e7cbd3;border-radius:9px;padding:9px 12px;color:#8f1230;font:600 11px/1.3 Inter,'Segoe UI',sans-serif;cursor:pointer;min-height:36px;letter-spacing:0}
.theme-toggle>span:first-child{font-size:18px;line-height:1}.auth-top .theme-toggle span{border:0;padding:0;margin:0;border-radius:0;font-size:11px}.auth-top .theme-toggle>span:first-child{font-size:18px}.theme-toggle:hover{background:#fce5eb}.theme-toggle:focus-visible{outline:2px solid #bd2549;outline-offset:3px}
html[data-theme="dark"]{color-scheme:dark;--bg:#171316;--panel:#231d22;--ink:#f7f1f4;--muted:#d7cbd1;--border:#42333d;--orange:#e32951;--orange-dark:#c91b41;--soft-green:#35212b;background:#171316;color:#f7f1f4}
html[data-theme="dark"] body{background:#171316;color:#f7f1f4}
html[data-theme="dark"] :is(.workspace,.auth-layout,dialog) :is(h1,h2,h3,h4,p,small,label,dt,dd,th,td,summary,time,strong){color:#eee6eb}
html[data-theme="dark"] :is(.workspace,.auth-layout,dialog) :is(.eyebrow,.muted,.nav-caption,.version,.breadcrumb,.connection,.workspace-footer,.stat-top,.table-total,.role-label,.role-member-count,.lead-status-strip,.date-cell,.below-note,.auth-top,.auth-footer,.auth-security,.story-footer,.call-connection span){color:#cdbec6}
html[data-theme="dark"] :is(.sidebar,.topbar,.auth-main){background:#201a1f;border-color:#42333d}
html[data-theme="dark"] :is(.panel,.stat-card,dialog,.sales-filters,.sales-deal-card){background:#261f25;border-color:#44343e;box-shadow:0 4px 20px #00000015;color:#f4edf1}
html[data-theme="dark"] :is(.workspace-tag,.foundation-note,.call-connection,.info-banner,.account-summary){background:#2d232b;border-color:#48353f;color:#f4edf1}
html[data-theme="dark"] :is(.workspace-avatar,.avatar,.auth-symbol,.activity-bullet,.role-icon){background:#492735;color:#ffb5c7}
html[data-theme="dark"] .workspace .nav-item{color:#e7dce2}
html[data-theme="dark"] .workspace .nav-item:hover{background:#33252e}
html[data-theme="dark"] .workspace .nav-item.selected{background:#4c2433;color:#ffd4df;box-shadow:inset 3px 0 #ff668a}
html[data-theme="dark"] .workspace .nav-item.selected .icon{color:#ff9eb6}
html[data-theme="dark"] :is(.nav-count,.workspace .crm-count){background:#592d3c;color:#ffd4df}
html[data-theme="dark"] :is(.profile-button,.signout,.sidebar-close,.mobile-menu){color:#ebdfe6}
html[data-theme="dark"] :is(.profile-button,.signout):hover{background:#382730}
html[data-theme="dark"] :is(.welcome-banner,.crm-focus,.auth-story){background:linear-gradient(130deg,#43212e,#292129);border-color:#5b3040}
html[data-theme="dark"] .workspace :is(.welcome-banner .eyebrow,.crm-focus .eyebrow,.crm-targets strong){color:#ffadc2}
html[data-theme="dark"] .crm-targets{border-color:#62404d}
html[data-theme="dark"] .story-content h1>span{color:#ff7192}
html[data-theme="dark"] :is(.story-footer,.panel-heading,.table-toolbar,.modal-footer,.role-footer,.auth-security,.sidebar-bottom,.crm-tabs,.crm-filters,.sales-quote,.sales-line){border-color:#44343e}
html[data-theme="dark"] :is(input,select,textarea){background:#1c171c;border-color:#604651;color:#fff0f6}
html[data-theme="dark"] :is(.workspace,dialog,.auth-layout) :is(input,select,textarea){color:#fff0f6}
html[data-theme="dark"] :is(.workspace,dialog,.auth-layout) :is(input,textarea)::placeholder{color:#bcaab4;opacity:1}
html[data-theme="dark"] :is(input,select,textarea):focus{outline-color:#6f3448;border-color:#ff7597}
html[data-theme="dark"] .workspace table th{background:#30232b;color:#f7edf3;border-color:#493640}
html[data-theme="dark"] .workspace table td{border-color:#42313a}
html[data-theme="dark"] .workspace tbody tr:hover{background:#31242c}
html[data-theme="dark"] :is(.task-preview,.crm-alert,.crm-alert.read){background:#261f25;border-color:#44343e;color:#f4edf1}
html[data-theme="dark"] :is(.task-preview:hover,.crm-alert:not(.read)){background:#35252f}
html[data-theme="dark"] .workspace :is(.text-button,.edit-button,.school-link,.activity-link,.crm-tabs>.crm-export){color:#ffadc2}
html[data-theme="dark"] .workspace .crm-tabs>button{color:#dfcfd8}
html[data-theme="dark"] .workspace .crm-tabs>button.active{background:#4c2433;color:#ffd4df;box-shadow:inset 0 -2px #ff668a}
html[data-theme="dark"] :is(.workspace,.auth-layout,dialog) .button{background:#c71640;border-color:#c71640;color:#fff;box-shadow:none}
html[data-theme="dark"] :is(.workspace,.auth-layout,dialog) .button:hover{background:#aa1034;border-color:#aa1034}
html[data-theme="dark"] :is(.workspace,.auth-layout,dialog) .button.secondary{background:#32262e;border-color:#674552;color:#f6eaf0}
html[data-theme="dark"] :is(.workspace,.auth-layout,dialog) .button.secondary:hover{background:#49303d;border-color:#b5657e}
html[data-theme="dark"] .workspace :is(.badge.green,.crm-badge.good){background:#183c2d;color:#b2edc9}
html[data-theme="dark"] .workspace .badge.neutral{background:#3b3238;color:#e0d4dc}
html[data-theme="dark"] .workspace :is(.badge.purple,.crm-badge.violet){background:#3d2c53;color:#e2c8ff}
html[data-theme="dark"] .workspace .crm-badge.bad{background:#542536;color:#ffc1cf}
html[data-theme="dark"] .workspace .crm-badge:not(.good):not(.bad):not(.violet){background:#49391f;color:#f8dca4}
html[data-theme="dark"] .workspace :is(.crm-provider-note,.crm-qualification.flagged){background:#352b20;border-color:#665039;color:#f0d9b7}
html[data-theme="dark"] .workspace .crm-qualification{background:#20352b;border-color:#3c624e;color:#cce9d6}
html[data-theme="dark"] .crm-overdue{color:#ff9fb8!important}
html[data-theme="dark"] .sales-column{background:#20191f;border-color:#44313b}
html[data-theme="dark"] .sales-column>h3>span{background:#4a2938;color:#ffd1df}
html[data-theme="dark"] .sales-deal-card:hover{border-color:#b4637c}
html[data-theme="dark"] .sales-wide #quote-total{color:#ffb3c8}
html[data-theme="dark"] a:not(.button){color:#ffb3c8}
html[data-theme="dark"] .theme-toggle{background:#3d2632;border-color:#704457;color:#ffd2df}
html[data-theme="dark"] .theme-toggle:hover{background:#513042}
html[data-theme="dark"] dialog::backdrop{background:#09070bc9}
html[data-theme="dark"] #toast{background:#f9e6ee;color:#361524}
html[data-theme="dark"] .form-error{color:#ffb2c6}
html[data-theme="dark"] .brand-logo{background:#fff;border-radius:5px}
@media(max-width:760px){.topbar-right{gap:10px}.theme-toggle{padding:8px;font-size:10px}.auth-top{gap:10px}.auth-top .theme-toggle{margin-left:auto}.topbar .theme-toggle>span:last-child{display:none}.topbar .theme-toggle{width:36px}.topbar .theme-toggle>span:first-child{font-size:20px}}

/* Explicit specificity keeps close-action text readable over shared button styles. */
html .workspace .lead-actions .button.lead-close-button{background:#fff0f3;border:1px solid #d995a6;color:#9b1233;box-shadow:none;min-height:46px;opacity:1;gap:9px;font-weight:700}
html .workspace .lead-actions .button.lead-close-button:hover{background:#ffe0e8;border-color:#b71c43;color:#800f2b}
html[data-theme="dark"] .workspace .lead-actions .button.lead-close-button{background:#402431;border-color:#9c5b72;color:#ffd5e1}
html[data-theme="dark"] .workspace .lead-actions .button.lead-close-button:hover{background:#593044;color:#fff0f5}
.lead-close-section{width:100%;flex-basis:100%}.lead-close-button .icon{width:18px;height:18px;stroke:currentColor}
.workspace .nav-item .sidebar-count{margin-left:auto;min-width:23px;height:23px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;font-size:10px;font-weight:750;background:#f1eaed;color:#64545c;font-variant-numeric:tabular-nums}
.workspace .nav-item .sidebar-count.has-count{background:#ce123b;color:#fff}
html[data-theme="dark"] .workspace .nav-item .sidebar-count{background:#3b3038;color:#d9cad2}
html[data-theme="dark"] .workspace .nav-item .sidebar-count.has-count{background:#d52b54;color:#fff}
.workspace .nav-item>span:not(.sidebar-count){min-width:0}

.workspace .nav-item .sidebar-count[hidden]{display:none}
.workspace .nav-item .sidebar-count{margin-left:6px}

/* Sidebar badges are pending counts, so keep the nav clean when none are due. */
.workspace .nav-item .sidebar-count[hidden]{display:none}
.workspace .nav-item .sidebar-count{margin-left:6px;min-width:21px;height:21px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:750;font-variant-numeric:tabular-nums;background:#f1eaed;color:#64545c}
.workspace .nav-item .sidebar-count.has-count{background:#ce123b;color:#fff}
html[data-theme="dark"] .workspace .nav-item .sidebar-count{background:#3b3038;color:#d9cad2}
html[data-theme="dark"] .workspace .nav-item .sidebar-count.has-count{background:#d52b54;color:#fff}
