.crm-dash{height:100%;display:flex;flex-direction:column;background:#f3f4f6;color:#202632;font-family:Inter,Arial,sans-serif}
.crm-dash-header{height:84px;min-height:84px;display:flex;align-items:center;gap:12px;padding:0 32px;border-bottom:1px solid #e5e7eb;background:white}
.crm-dash-header span{font-size:22px;color:#3475f8}.crm-dash-header h1{font-size:18px;font-weight:600;margin:0}
.crm-dash-scroll{overflow:auto;min-height:0;flex:1;padding:36px 32px 60px}.crm-dash-filters{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-bottom:42px}
.crm-dash-filters select,.crm-dash-filters input{height:42px;border:1px solid #dce2eb;border-radius:12px;background:#fff;padding:0 14px;font:600 14px Inter,Arial,sans-serif;color:#263146;box-shadow:0 1px 2px #dce2eb40}
.crm-dash-filters label{display:flex;align-items:center;gap:8px;font-size:13px;color:#677286}
.crm-dash-hero{display:grid;grid-template-columns:28% 72%;align-items:center;min-height:260px;border-bottom:1px solid #e1e4e9}
.crm-dash-hero>div:first-child{display:flex;flex-direction:column;gap:6px}.crm-dash-hero>div:first-child strong{font-size:154px;font-weight:500;line-height:.95;letter-spacing:-9px;color:#101417}.crm-dash-hero>div:first-child span{font-size:20px;color:#889099}
.crm-dash-momentum{padding:0 8px}.crm-dash-momentum p{font-size:27px;color:#7b838c;margin:0 0 44px;display:flex;align-items:center;gap:20px}.crm-dash-momentum p b{font-size:42px;font-weight:600}.crm-dash .down{color:#d65c5c}.crm-dash .up{color:#15a374}
.crm-dash-track{height:94px;border-radius:14px;background:#e0e5ea;position:relative;overflow:hidden}.crm-dash-track:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4%;background:linear-gradient(90deg,#ff8a8a,#fff07b,#80dcaa)}.crm-dash-track i{position:absolute;top:8px;bottom:8px;width:5px;border-radius:4px;background:#132738;transform:translateX(-50%)}
.crm-dash-momentum small{display:flex;justify-content:space-between;color:#9ba5af;font-size:12px;margin-top:12px}
.crm-dash-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-bottom:1px solid #e2e5e9}.crm-dash-metric{height:206px;text-align:left;position:relative;border:0;border-right:1px solid #e2e5e9;border-bottom:1px solid #e2e5e9;background:transparent;padding:30px 30px 20px;cursor:pointer;color:#202632;font-family:inherit}.crm-dash-metric:hover{background:#ffffff80}.crm-dash-metric:focus-visible{outline:2px solid #3975ed;outline-offset:-3px}.crm-dash-metric>span{display:block;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-dash-metric>strong{display:block;font-size:43px;font-weight:500;line-height:1.2;margin-top:12px}.crm-dash-metric>small{position:absolute;bottom:19px;left:30px;color:#9ba5af;font-size:11px}.crm-dash-metric>small b{font-size:12px}.crm-dash-metric i{position:absolute;right:22px;top:82px;width:38px;height:52px;background:linear-gradient(90deg,#c4eafb 0 18%,transparent 18% 28%,#8bd7f6 28% 46%,transparent 46% 56%,#45b9ef 56% 75%,transparent 75% 84%,#1595df 84%);clip-path:polygon(0 68%,20% 68%,20% 48%,47% 48%,47% 25%,77% 25%,77% 0,100% 0,100% 100%,0 100%);opacity:.8}
.crm-dash-range{color:#9ba5af;font-size:12px;margin:18px 0}.crm-dash-error{padding:14px;border:1px solid #f1b4b4;border-radius:10px;background:#fff5f5;color:#a92d2d;margin-bottom:16px}.crm-dash-error button{margin-left:8px;text-decoration:underline}.crm-dash-loading{padding:80px;text-align:center;color:#677286}
/* The reference KPI strip fits as many full-width cards as the workspace allows. */
.crm-dash-header{height:64px;min-height:64px;padding:0 24px}
.crm-dash-scroll{padding:20px 20px 50px}
.crm-dash-filters{margin-bottom:14px}
.crm-dash-hero{grid-template-columns:minmax(220px,.52fr) minmax(0,1.48fr);gap:clamp(32px,6vw,88px);min-height:250px}
.crm-dash-hero>div:first-child strong{font-size:clamp(72px,8vw,126px);line-height:.82;letter-spacing:-.065em}
.crm-dash-momentum p{font-size:clamp(20px,2vw,29px)}
.crm-dash-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.crm-dash-metric{height:205px;padding:22px 24px 20px}
.crm-dash-metric>span{font-size:13px}.crm-dash-metric>strong{font-size:34px}
.crm-dash-metric>small{left:24px}
.crm-dash-metric[data-metric="new_leads"] i{filter:hue-rotate(125deg)}
.crm-dash-metric[data-metric="applications_started"] i{width:44px;height:18px;top:90px;background:radial-gradient(circle at 5px 9px,#dbc7ff 0 4px,transparent 5px),radial-gradient(circle at 16px 9px,#caa9ff 0 4px,transparent 5px),radial-gradient(circle at 27px 9px,#a878ff 0 4px,transparent 5px),radial-gradient(circle at 38px 9px,#8656f8 0 4px,transparent 5px);clip-path:none}
.crm-dash-metric[data-metric="converted_students"] i,.crm-dash-metric[data-metric="conversion_rate"] i{width:40px;height:40px;border-radius:50%;top:76px;background:conic-gradient(#17b687 0 35%,#d0f4e8 35% 100%);clip-path:none}
.crm-dash-metric[data-metric="revenue"] i,.crm-dash-metric[data-metric="average_deal_value"] i{background:linear-gradient(125deg,transparent 47%,#f4a51b 47% 52%,transparent 52%);clip-path:none}
@media(max-width:1100px){.crm-dash-hero{grid-template-columns:26% 74%;gap:0}.crm-dash-momentum p{font-size:20px}.crm-dash-momentum p b{font-size:30px}}
@media(max-width:640px){.crm-dash-header{height:58px;min-height:58px;padding:0 18px}.crm-dash-scroll{padding:18px 16px 36px}.crm-dash-filters{justify-content:stretch;flex-wrap:wrap;margin-bottom:24px}.crm-dash-filters select{max-width:100%}.crm-dash-hero{grid-template-columns:1fr;gap:18px;min-height:0;padding:20px 0 28px}.crm-dash-hero>div:first-child strong{font-size:78px}.crm-dash-momentum p{margin-bottom:18px;font-size:16px}.crm-dash-momentum p b{font-size:24px}.crm-dash-track{height:45px}.crm-dash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dash-metric{height:152px;padding:18px}.crm-dash-metric>span{font-size:12px}.crm-dash-metric>strong{font-size:29px}.crm-dash-metric>small{left:18px;bottom:12px}.crm-dash-metric i{right:12px;top:62px;width:24px;height:31px}}

.crm-dash-primary-metric{display:flex;flex-direction:column;gap:6px;align-items:flex-start;justify-content:center;border:0;background:transparent;padding:0;text-align:left;cursor:pointer;font-family:inherit}
.crm-dash-primary-metric strong{font-size:clamp(72px,8vw,126px);font-weight:500;line-height:.82;letter-spacing:-.065em;color:#101417}
.crm-dash-primary-metric span{font-size:20px;color:#889099}
.crm-dash-primary-metric:focus-visible{outline:2px solid #3975ed;outline-offset:4px;border-radius:4px}
.crm-dash-drawer-root{position:fixed;inset:0;z-index:1000;display:flex;justify-content:flex-end;opacity:0;transition:opacity 180ms cubic-bezier(.23,1,.32,1)}
.crm-dash-drawer-root.open{opacity:1}.crm-dash-drawer-root.closing{opacity:0}
.crm-dash-drawer-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.24);backdrop-filter:blur(2px);cursor:default}
.crm-dash-drawer{position:relative;display:flex;flex-direction:column;gap:12px;width:min(430px,calc(100vw - 20px));height:100%;overflow:auto;border-left:1px solid rgba(15,23,42,.08);background:#f8fbff;box-shadow:-24px 0 70px rgba(15,23,42,.14);padding:18px;transform:translateX(24px);transition:transform 220ms cubic-bezier(.23,1,.32,1);font-family:Inter,Arial,sans-serif;color:#0f172a}
.crm-dash-drawer-root.open .crm-dash-drawer{transform:translateX(0)}.crm-dash-drawer-root.closing .crm-dash-drawer{transform:translateX(24px)}
.crm-dash-drawer:focus{outline:none}.crm-dash-drawer header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.crm-dash-drawer header span{display:block;color:#2563eb;font-size:11px;font-weight:800;text-transform:uppercase}
.crm-dash-drawer header h2{margin:4px 0 0;font-size:24px;font-weight:800;line-height:1.05}
.crm-dash-drawer-close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #e8ecf1;border-radius:50%;background:#fff;color:#475569;box-shadow:0 1px 2px #dce2eb;cursor:pointer;font:24px Arial,sans-serif}
.crm-dash-drawer-hero,.crm-dash-drawer-grid>div{border:1px solid #edf0f4;border-radius:16px;background:#fff;box-shadow:0 1px 2px #e4e8ec}
.crm-dash-drawer-hero{padding:16px}.crm-dash-drawer-hero span,.crm-dash-drawer-grid span{color:#667085;font-size:12px;font-weight:700}
.crm-dash-drawer-hero strong{display:block;margin-top:8px;font-size:42px;font-weight:800;line-height:.95;font-variant-numeric:tabular-nums}.crm-dash-drawer-hero p{margin:10px 0 0;color:#475569;font-size:13px;font-weight:650}
.crm-dash-drawer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crm-dash-drawer-grid>div{min-height:70px;padding:12px}.crm-dash-drawer-grid strong{display:block;margin-top:8px;font-size:20px;font-weight:800;line-height:1}
@media(max-width:520px){.crm-dash-drawer{width:100vw}}
@media(prefers-reduced-motion:reduce){.crm-dash-drawer-root,.crm-dash-drawer{transition:none}}

.crm-dash-funnel{display:flex;align-items:center;justify-content:center;min-height:500px;margin:24px 0 16px;padding:32px 38px;border:1px solid #e2e8f0;border-radius:16px;color:#9ca3af;font-size:14px;text-align:center}
.crm-dash-funnel-bars{display:flex;flex-direction:column;align-items:center;width:100%;gap:2px}.crm-dash-funnel-bars>div{display:grid;place-items:center;min-height:38px;background:#f2f7ff;color:#243047;clip-path:polygon(3% 0,97% 0,100% 100%,0 100%);font-size:13px;font-weight:650}.crm-dash-funnel-bars>div:nth-child(6n+1){background:#fffaf0}.crm-dash-funnel-bars>div:nth-child(6n+2){background:#fff3dc}.crm-dash-funnel-bars>div:nth-child(6n+4){background:#e4efff}.crm-dash-funnel-bars>div:nth-child(6n+5){background:#e8f6ed}.crm-dash-funnel-bars>div:nth-child(6n+6){background:#d9eee2}
.crm-dash-panel-loading,.crm-dash-panel-error{color:#8b95a4;font-size:13px}.crm-dash-panel-error{color:#b54745}.crm-dash-panel-error button{margin-left:10px;text-decoration:underline}
.crm-dash-commission{padding:24px 0}.crm-dash-section-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.crm-dash-section-header h2{margin:0;color:#0f172a;font-size:18px;font-weight:700}.crm-dash-section-header select{height:36px;min-width:120px;padding:0 12px;border:1px solid #dce2eb;border-radius:9px;background:#fff;color:#475569;font:600 12px Inter,Arial,sans-serif}
.crm-dash-commission-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.crm-dash-commission-totals>div,.crm-dash-commission-breakdown{padding:18px;border:1px solid #e9edf2;border-radius:16px;background:#fff;box-shadow:0 1px 2px #dce2eb40}.crm-dash-commission-totals span{display:block;color:#667085;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.crm-dash-commission-totals strong{display:block;margin-top:10px;color:#101828;font-size:24px}.crm-dash-commission-totals small{display:block;margin-top:5px;color:#98a2b3;font-size:12px}.crm-dash-commission-totals>div:nth-child(2) strong{color:#d9901c}.crm-dash-commission-totals>div:nth-child(3) strong{color:#d65c5c}
.crm-dash-commission-breakdown{margin-bottom:24px}.crm-dash-commission-breakdown h3{margin:0 0 14px;color:#344054;font-size:14px}.crm-dash-commission-breakdown p,.crm-dash-commission-end{margin:0;padding:14px 0;color:#9ca3af;font-size:13px;text-align:center}.crm-dash-breakdown-row{display:grid;grid-template-columns:120px 1fr 110px 50px;align-items:center;gap:12px;margin:10px 0;color:#667085;font-size:12px}.crm-dash-breakdown-row i{height:18px;border-radius:999px;background:#f2f4f7;overflow:hidden}.crm-dash-breakdown-row i b{display:block;height:100%;border-radius:999px;background:#5b8cec}.crm-dash-breakdown-row strong,.crm-dash-branch-row strong{color:#344054;text-align:right}.crm-dash-breakdown-row small{text-align:right}.crm-dash-branch-row{display:flex;justify-content:space-between;padding:9px 0;border-top:1px solid #f2f4f7;color:#667085;font-size:12px}
.crm-dash-filters select{height:34px;padding:0 12px;font-size:12px}.crm-dash-filters #dash-days{width:140px}.crm-dash-filters #dash-user{width:116px;max-width:116px}.crm-dash-metric{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
.crm-dash-scroll{scrollbar-width:none}.crm-dash-scroll::-webkit-scrollbar{display:none}
.crm-dash-chart-loading{min-height:130px;padding:44px;color:#98a2b3;text-align:center;font-size:13px}.crm-dash-chart-widgets{padding:28px 0}.crm-dash-number-widgets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.crm-dash-number-widget{min-height:120px;padding:18px 20px;border:1px solid #dce4f1;border-radius:10px;background:#fff}.crm-dash-number-widget span{display:block;color:#667085;font-size:12px;font-weight:700;text-transform:uppercase}.crm-dash-number-widget strong{display:block;margin-top:10px;color:#101828;font-size:30px;font-weight:700;line-height:1}.crm-dash-number-widget.is-secondary{min-height:100px}
.crm-dash-chart-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.crm-dash-chart-card{min-height:360px;padding:20px;border:1px solid #e2e5e9;border-radius:8px;background:#fff}.crm-dash-chart-title{color:#344054;font-size:14px;font-weight:500}.crm-dash-chart-title small{display:block;margin-top:4px;color:#667085;font-size:12px}.crm-dash-donut{position:relative;width:275px;height:275px;max-width:70%;max-height:70%;margin:20px auto 12px;border-radius:50%}.crm-dash-donut i{position:absolute;inset:21%;border-radius:50%;background:#fff}.crm-dash-chart-legend{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;color:#667085;font-size:11px}.crm-dash-chart-legend span{display:flex;align-items:center;gap:4px}.crm-dash-chart-legend b{width:12px;height:12px;border-radius:50%;background:#3867e8}.crm-dash-axis{height:285px;padding:20px 10px 0}.crm-dash-axis-grid{display:flex;justify-content:space-between;margin:0 0 55px 42px;color:#98a2b3;font-size:11px}.crm-dash-axis-row{display:flex;align-items:center;gap:8px;margin:20px 0;color:#667085;font-size:11px}.crm-dash-axis-row span{width:40px;text-align:right}.crm-dash-axis-row b{display:block;height:42px;background:#3867e8}
@media(min-width:1101px) and (max-width:1599px){.crm-dash-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.crm-dash-metric{height:154px;padding:28px 24px 18px}.crm-dash-metric>strong{font-size:30px;margin-top:7px}.crm-dash-metric i{top:58px;right:22px;width:34px;height:42px}.crm-dash-metric>small{bottom:18px}.crm-dash-momentum p{font-size:20px;margin-bottom:30px}.crm-dash-momentum p b{font-size:32px}}
@media(max-width:900px){.crm-dash-number-widgets{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-dash-chart-pair{grid-template-columns:1fr}}
@media(max-width:700px){.crm-dash-funnel{min-height:300px;padding:20px}.crm-dash-commission-totals{grid-template-columns:1fr}.crm-dash-breakdown-row{grid-template-columns:80px 1fr 85px;gap:8px}.crm-dash-breakdown-row small{display:none}}
@media(max-width:600px){.crm-dash-number-widgets{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dash-chart-card{min-height:310px}.crm-dash-donut{width:210px;height:210px}}
.crm-dash-bars{display:flex;flex-direction:column;justify-content:center;gap:12px;min-height:270px;padding:20px 4px}.crm-dash-bar-row{display:grid;grid-template-columns:100px minmax(0,1fr) 38px;align-items:center;gap:12px;color:#667085;font-size:12px}.crm-dash-bar-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-dash-bar-row i{height:20px;border-radius:3px;background:#f1f4f8;overflow:hidden}.crm-dash-bar-row i b{display:block;height:100%;background:#3867e8}.crm-dash-bar-row strong{font-size:12px;text-align:right}.crm-dash-chart-empty{display:grid;place-items:center;min-height:200px;color:#a4abb7;font-size:13px}.crm-dash-trend{height:260px;display:grid;place-items:center;padding:22px 8px 8px}.crm-dash-trend svg{display:block;width:100%;height:100%;overflow:visible}
.crm-dash-number-widget.is-spacer{border-color:transparent;background:transparent}.crm-dash-wide{grid-column:1/-1}.crm-dash-wide>.crm-dash-chart-card{min-height:360px}
.crm-dash-edit-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.crm-dash-edit-actions button,.crm-dash-modal button{min-height:34px;padding:0 12px;border:1px solid #dce2eb;border-radius:9px;background:#fff;color:#344054;font:600 12px Inter,Arial,sans-serif;cursor:pointer}.crm-dash-edit-actions button.primary,.crm-dash-modal button.primary{background:#2865ea;border-color:#2865ea;color:#fff}.crm-dash-edit-actions button:disabled,.crm-dash-modal button:disabled{opacity:.5;cursor:default}.crm-dash-edit-actions button:focus-visible,.crm-dash-modal button:focus-visible,.crm-dash-item-controls button:focus-visible{outline:2px solid #2865ea;outline-offset:2px}.crm-dash-layout-item{position:relative;min-width:0}.crm-dash-layout-item>.crm-dash-chart-card,.crm-dash-layout-item>.crm-dash-number-widget{height:100%}.crm-dash-layout-item.is-wide{grid-column:1/-1}.crm-dash-layout-item[draggable]{cursor:grab}.crm-dash-layout-item[draggable]:active{cursor:grabbing}.crm-dash-item-controls{position:absolute;top:7px;right:7px;z-index:2;display:flex;gap:3px;padding:3px;border:1px solid #e2e8f0;border-radius:7px;background:#fff;box-shadow:0 2px 8px #1f29371c}.crm-dash-item-controls button{display:grid;place-items:center;width:23px;height:23px;padding:0;border:0;border-radius:5px;background:#f3f4f6;color:#475467;cursor:pointer;font:600 14px Arial,sans-serif}.crm-dash-item-controls button:hover{background:#e4e9f2}.crm-dash-layout-error{padding:10px;color:#b54745;font-size:12px}.crm-dash-modal-backdrop{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;background:#10182870}.crm-dash-modal{width:min(420px,calc(100vw - 32px));padding:20px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 15px 40px #10182830}.crm-dash-modal header,.crm-dash-modal footer{display:flex;align-items:center;justify-content:space-between}.crm-dash-modal h2{margin:0;font-size:18px}.crm-dash-modal header button{padding:0;width:30px;font-size:21px}.crm-dash-modal label{display:block;margin-top:20px;color:#475467;font-size:13px;font-weight:600}.crm-dash-modal select{display:block;width:100%;height:38px;margin-top:8px;padding:0 10px;border:1px solid #dce2eb;border-radius:8px;background:#fff;color:#1d2939}.crm-dash-modal footer{justify-content:flex-end;gap:8px;margin-top:28px}
@media(max-width:650px){.crm-dash-edit-actions{gap:4px}.crm-dash-edit-actions button{font-size:11px;padding:0 7px}.crm-dash-edit-actions button:first-child{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
