/* Qeen CRM — presentation layer only. Loaded after existing product styles. */
body.qeen-ui{--q-blue:#285ac7;--q-ink:#23334d;--q-muted:#66768f;--q-line:#e2e8f1;--q-bg:#f4f6fa;--navy:#23334d;--blue:#285ac7;--ink:#23334d;--muted:#66768f;--line:#e2e8f1;--mac-text:#23334d;--mac-secondary:#66768f;--mac-blue:#285ac7;--mac-border:#e2e8f1;background:var(--q-bg)!important;color:var(--q-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;font-size:14px;line-height:1.6;letter-spacing:0}
body.qeen-ui::before,body.qeen-ui .app-sidebar::before,body.qeen-ui .app-topbar::before{display:none!important}
body.qeen-ui .app-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:220px!important;height:100dvh!important;padding:24px 14px 16px!important;background:#fff!important;border:0!important;border-right:1px solid var(--q-line)!important;border-radius:0!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;gap:0!important;overflow-y:auto;z-index:80}
body.qeen-ui .app-logo{background:transparent!important;border:0!important;box-shadow:none!important;padding:2px 16px 24px!important;border-radius:0!important;display:block!important}
body.qeen-ui .app-logo-img{display:none!important}body.qeen-ui .qeen-brand{font-size:30px;letter-spacing:-1.2px;font-weight:750;line-height:1.25;color:var(--q-blue)}body.qeen-ui .qeen-brand span{font-size:11px;letter-spacing:1.5px;color:#74839b;font-weight:500;margin-left:9px}body.qeen-ui .qeen-brand-caption{font-size:11px;letter-spacing:1px;color:#78869b;margin-top:7px}
body.qeen-ui .app-menu{display:flex!important;flex-direction:column!important;gap:4px!important;margin:0!important;overflow:visible!important}
body.qeen-ui .qeen-nav-label{font-size:10px;font-weight:600;letter-spacing:1.5px;color:#8994a6;padding:14px 14px 6px}
body.qeen-ui .app-menu a{display:flex;align-items:center;gap:10px;padding:10px 14px!important;min-height:40px!important;font-size:13px!important;font-weight:500!important;line-height:1.5!important;letter-spacing:0;color:#596a84!important;background:transparent!important;border:0!important;border-radius:7px!important;box-shadow:none!important;transform:none!important;white-space:normal!important}
body.qeen-ui .app-menu a::before{position:static!important;display:block!important;content:''!important;flex:0 0 6px;width:6px!important;height:6px!important;border-radius:2px!important;opacity:.55;background:currentColor!important;transform:none!important}
body.qeen-ui .app-menu a.active,body.qeen-ui .app-menu a[aria-current='page']{color:var(--q-blue)!important;background:#edf3ff!important;font-weight:650!important}body.qeen-ui .app-menu a:hover{background:#f4f7fc!important;color:var(--q-blue)!important}
body.qeen-ui .app-version-link{margin:24px 0 0!important;padding:15px 14px 0!important;border-radius:0!important;border-top:1px solid var(--q-line);color:#8b96a7!important;font-size:11px!important;background:transparent!important}
body.qeen-ui .app-main{margin:0 0 0 220px!important;padding:32px 34px 48px!important;max-width:none!important;width:calc(100% - 220px)!important;min-width:0!important;display:block!important}
body.qeen-ui .app-main>*{min-width:0;max-width:100%;order:0!important}body.qeen-ui .app-section{margin:22px 0 0!important;width:100%!important;grid-column:auto!important;animation:none!important}
body.qeen-ui .app-topbar{position:static!important;inset:auto!important;display:flex!important;justify-content:space-between!important;align-items:center!important;flex-wrap:wrap!important;gap:16px!important;padding:0 0 24px!important;margin:0!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--q-line)!important;border-radius:0!important;box-shadow:none!important;min-height:0!important;width:100%!important}
body.qeen-ui .app-topbar h1{font-size:27px!important;letter-spacing:-.5px!important;font-weight:650!important;line-height:1.4!important;color:var(--q-ink)!important;margin:0!important}
body.qeen-ui .eyebrow{color:#8995a8!important;font-size:10px!important;letter-spacing:1.8px!important;font-weight:500!important;margin:0 0 6px!important}body.qeen-ui .real-time-clock{font-size:11px!important;color:#8090a6!important;margin-top:7px!important;font-weight:400!important}
body.qeen-ui .topbar-actions{display:flex!important;gap:12px!important;align-items:center!important;flex-wrap:wrap!important;justify-content:flex-end!important;min-width:0!important}
body.qeen-ui .user-profile-card{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;min-width:0!important}body.qeen-ui .user-profile-card strong{font-size:13px!important;font-weight:600!important}body.qeen-ui .user-profile-card span{font-size:11px!important;color:var(--q-muted)!important}
body.qeen-ui .avatar-uploader img,body.qeen-ui .mini-avatar{width:34px!important;height:34px!important;border-radius:50%!important}
body.qeen-ui .qeen-filterbar{display:flex;gap:18px;flex-wrap:wrap;align-items:end;padding:17px 20px;background:#fff;border:1px solid var(--q-line);border-radius:10px;margin-top:22px}body.qeen-ui .qeen-filterbar label{display:grid;gap:5px;font-size:11px!important;color:var(--q-muted)!important;font-weight:500!important}body.qeen-ui .qeen-filterbar .identity-switcher{min-width:170px}body.qeen-ui .qeen-filterbar .period-switcher{display:flex!important;gap:12px!important;flex-wrap:wrap;align-items:end;background:transparent!important;border:0!important;padding:0!important}body.qeen-ui .qeen-filterbar select{min-width:105px!important}body.qeen-ui .qeen-filter-note{margin-left:auto;color:#8995a6;font-size:11px;align-self:center}
body.qeen-ui .panel,body.qeen-ui .settings-subnav,body.qeen-ui .kpi-card,body.qeen-ui .compare-card,body.qeen-ui .personal-card,body.qeen-ui .detail-card,body.qeen-ui .notice-card,body.qeen-ui .focus-card,body.qeen-ui .quality-card,body.qeen-ui .ranking-card,body.qeen-ui .content-manage-card{background:#fff!important;border:1px solid var(--q-line)!important;box-shadow:0 2px 4px #23334d02!important;border-radius:10px!important;transform:none!important;animation:none!important}
body.qeen-ui .panel{padding:22px!important;max-height:none!important}body.qeen-ui .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px!important;flex-wrap:wrap;margin:0 0 18px!important;padding:0!important;border:0!important}
body.qeen-ui .panel-head h2{font-size:16px!important;font-weight:650!important;line-height:1.5!important;color:var(--q-ink)!important;margin:0!important}body.qeen-ui .panel-tip{font-size:11px!important;font-weight:400!important;color:#7b899e!important;line-height:1.6!important}
body.qeen-ui .kpi-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}body.qeen-ui .kpi-card{padding:20px!important;min-height:116px!important;display:flex!important;flex-direction:column!important;gap:8px!important;position:relative}
body.qeen-ui .kpi-card>span{font-size:12px!important;font-weight:500!important;color:#687991!important;line-height:1.5!important}body.qeen-ui .kpi-card>strong{font-size:clamp(23px,2.2vw,32px)!important;line-height:1.2!important;font-weight:650!important;color:#253b5c!important;letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}body.qeen-ui .kpi-card>small{font-size:11px!important;font-weight:400!important;color:#8290a4!important;line-height:1.6!important}
body.qeen-ui .kpi-card.qeen-key{background:#285ac7!important;border-color:#285ac7!important}body.qeen-ui .kpi-card.qeen-key>strong{color:white!important}body.qeen-ui .kpi-card.qeen-key>span,body.qeen-ui .kpi-card.qeen-key>small{color:#e0eaff!important}
body.qeen-ui .kpi-card.qeen-scope{grid-column:1/-1!important;display:flex!important;flex-direction:row!important;align-items:center;flex-wrap:wrap;gap:12px!important;padding:0 2px!important;min-height:0!important;background:transparent!important;border:0!important;box-shadow:none!important}body.qeen-ui .kpi-card.qeen-scope>strong{font-size:14px!important;font-weight:600!important;letter-spacing:0}body.qeen-ui .qeen-scope>span{font-size:11px!important}
body.qeen-ui .qeen-more-metrics{grid-column:1/-1;border-top:1px solid var(--q-line);padding-top:12px}body.qeen-ui .qeen-more-metrics>summary{color:#637695;font-size:12px;cursor:pointer;padding:0 0 8px;width:fit-content}body.qeen-ui .qeen-secondary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}body.qeen-ui .qeen-secondary-grid .kpi-card{min-height:100px!important;padding:16px!important}body.qeen-ui .qeen-secondary-grid .kpi-card strong{font-size:23px!important}
body.qeen-ui .chart-grid,body.qeen-ui #performance-charts.chart-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}body.qeen-ui .chart-panel,body.qeen-ui .chart-panel:first-child{grid-column:auto!important;min-width:0!important;height:auto!important}body.qeen-ui .compare-chart-grid{display:grid;grid-template-columns:1fr!important;gap:12px}body.qeen-ui .compare-card{padding:16px!important;background:#f8faff!important;border-color:#edf1f7!important}body.qeen-ui .compare-card strong{font-size:25px!important;font-weight:600!important}body.qeen-ui .compare-card span,body.qeen-ui .compare-card small{font-size:12px!important;font-weight:400!important}
body.qeen-ui #trend-section .chart-shell{border:0!important;background:transparent!important;padding:0!important;max-width:100%;overflow-x:auto}body.qeen-ui .trend-scroll-canvas{max-width:100%}body.qeen-ui #trend-section .trend-filter-row{gap:10px}body.qeen-ui .trend-legend{gap:12px!important}body.qeen-ui .trend-legend button{font-size:12px!important}
body.qeen-ui .dashboard-blocks{display:grid;grid-template-columns:1fr!important;gap:18px!important}body.qeen-ui .dashboard-block{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}body.qeen-ui .dashboard-block-title{font-size:13px!important;font-weight:600!important;color:#526987!important;margin-bottom:12px}body.qeen-ui .personal-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}body.qeen-ui .personal-card{min-height:90px!important;padding:16px!important;background:#fafbfd!important;border-color:#ecf0f5!important}body.qeen-ui .personal-card strong{font-size:23px!important;font-weight:600!important}body.qeen-ui .personal-card span{font-size:11px!important;font-weight:400!important;color:var(--q-muted)!important}
body.qeen-ui .extended-ranking-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}body.qeen-ui .ranking-card{padding:16px!important}.qeen-ui .ranking-card h3{font-size:14px!important;font-weight:600!important}
body.qeen-ui .table-shell,body.qeen-ui .table-wrap,body.qeen-ui .wide-table-shell{border:1px solid #edf0f5!important;border-radius:8px!important;background:#fff!important;max-width:100%;overflow-x:auto!important;max-height:none!important;box-shadow:none!important}body.qeen-ui table{border-collapse:collapse!important;width:100%;table-layout:auto!important}body.qeen-ui th{background:#f6f8fc!important;color:#697b94!important;font-size:12px!important;font-weight:500!important;border-bottom:1px solid var(--q-line)!important;padding:12px 14px!important;line-height:1.5!important;white-space:nowrap!important}body.qeen-ui td{font-size:13px!important;font-weight:400!important;color:#344762!important;padding:14px!important;border-bottom:1px solid #edf1f6!important;line-height:1.6!important}body.qeen-ui tbody tr:nth-child(even){background:#fff!important}body.qeen-ui tbody tr:hover td{background:#f7faff!important}body.qeen-ui td a{color:#285ac7!important;font-weight:500!important}body.qeen-ui .ranking-card td,body.qeen-ui .ranking-card th{font-size:12px!important;padding:10px 8px!important}
body.qeen-ui .opportunity-form,body.qeen-ui .settings-form,body.qeen-ui .target-setting-form{gap:18px!important}body.qeen-ui label{font-weight:500!important;font-size:12px!important;color:#62738c!important;line-height:1.6!important}
body.qeen-ui input:not([type='checkbox']):not([type='radio']):not([type='file']),body.qeen-ui select,body.qeen-ui textarea{font:inherit!important;font-size:13px!important;color:#2c4160!important;background:#fff!important;border:1px solid #dbe3ee!important;border-radius:6px!important;box-shadow:none!important;min-height:39px!important;padding:9px 12px!important;max-width:100%;line-height:1.5!important}
body.qeen-ui input:focus,body.qeen-ui select:focus,body.qeen-ui textarea:focus{outline:2px solid #acc7ff!important;outline-offset:1px!important;border-color:#759eec!important}body.qeen-ui input:disabled,body.qeen-ui select:disabled,body.qeen-ui textarea:disabled{background:#f4f6f9!important;color:#8a97aa!important}
body.qeen-ui .primary-btn,body.qeen-ui .ghost-btn,body.qeen-ui .compact-btn{min-height:38px!important;padding:9px 15px!important;font-size:12px!important;font-weight:500!important;border-radius:6px!important;line-height:1.5!important;letter-spacing:0!important;box-shadow:none!important;transform:none!important;white-space:normal!important}
body.qeen-ui .primary-btn{background:#285ac7!important;color:#fff!important;border:1px solid #285ac7!important}body.qeen-ui .ghost-btn{background:#fff!important;border:1px solid #dbe3ed!important;color:#536781!important}body.qeen-ui .danger-btn,body.qeen-ui .delete-btn{color:#b94343!important;background:#fff7f7!important;border-color:#efcccc!important}body.qeen-ui button:focus-visible,body.qeen-ui a:focus-visible,body.qeen-ui summary:focus-visible{outline:3px solid #91b8fc;outline-offset:3px}
body.qeen-ui .badge{font-size:11px!important;font-weight:500!important;border-radius:4px!important;padding:3px 7px!important;background:#edf3fd!important;color:#3564b8!important}body.qeen-ui .badge.hot{background:#fff1e6!important;color:#a66022!important}
body.qeen-ui .section-subnav,body.qeen-ui .customer-subnav{display:flex!important;flex-wrap:wrap!important;gap:6px!important;background:transparent!important;border:0!important;padding:0!important;margin:22px 0 0!important;border-radius:0!important}body.qeen-ui .section-subnav a{padding:9px 16px!important;border-radius:6px!important;font-size:13px!important;font-weight:500!important;color:#697991!important;background:transparent!important;border:1px solid transparent!important}body.qeen-ui .section-subnav a.active{color:#285ac7!important;background:#fff!important;border-color:#dbe5f5!important}
body.qeen-ui .customer-filter-row{grid-template-columns:minmax(200px,2fr) repeat(3,minmax(110px,1fr))!important;gap:12px!important}body.qeen-ui .detail-grid{gap:14px!important}body.qeen-ui .detail-card{padding:16px!important;min-height:80px!important}body.qeen-ui .detail-card strong{font-size:16px!important;font-weight:600!important}body.qeen-ui .detail-card span{font-size:12px!important;color:#74849a!important}body.qeen-ui .settings-subnav{padding:16px!important}body.qeen-ui .settings-subnav a{font-size:13px!important;font-weight:500!important;border-radius:6px!important}body.qeen-ui .settings-subnav a.active{background:#edf3ff!important;color:#285ac7!important}
body.qeen-ui .login-overlay{background:#edf2f9!important;backdrop-filter:none!important}body.qeen-ui .login-card{border-radius:14px!important;box-shadow:0 16px 56px #203a6020!important;border:1px solid #e0e7f1!important;background:#fff!important;padding:34px!important}body.qeen-ui .login-card::before{display:none!important}body.qeen-ui .login-logo-img{display:none!important}body.qeen-ui .login-card:before{content:'Qeen';display:block!important;font-size:32px;font-weight:700;color:#285ac7;position:static!important;background:none!important;inset:auto!important;height:auto!important;opacity:1!important}
body.qeen-ui .qeen-mobile-bar{display:none}body.qeen-ui .qeen-weekly .panel{margin-top:18px}
body.qeen-ui .is-hidden,body.qeen-ui [hidden],body.qeen-ui #performance-charts.is-hidden{display:none!important}
@media(min-width:1700px){body.qeen-ui .app-main{padding-left:48px!important;padding-right:48px!important;max-width:1700px!important}}
@media(max-width:1150px){body.qeen-ui .app-main{padding:26px 24px 40px!important}body.qeen-ui .extended-ranking-grid{grid-template-columns:1fr!important}body.qeen-ui .personal-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.qeen-ui .qeen-filter-note{display:none}}
@media(max-width:900px){body.qeen-ui .app-sidebar{display:none!important;width:240px!important;top:57px!important;height:calc(100dvh - 57px)!important;box-shadow:12px 0 28px #263d5d20!important}body.qeen-ui.qeen-menu-open .app-sidebar{display:flex!important}body.qeen-ui .qeen-mobile-bar{position:sticky;top:0;z-index:90;display:flex;align-items:center;justify-content:space-between;gap:10px;height:57px;padding:10px 18px;background:#fff;border-bottom:1px solid var(--q-line)}body.qeen-ui .qeen-mobile-bar a{font-size:23px;font-weight:700;letter-spacing:-1px;color:#285ac7}body.qeen-ui .qeen-mobile-bar button{background:#fff;border:1px solid #dbe3ed;padding:6px 13px;border-radius:6px;color:#506582;font:inherit}body.qeen-ui .app-main{margin:0!important;width:100%!important;padding:22px 18px 36px!important}body.qeen-ui .app-topbar h1{font-size:23px!important}body.qeen-ui .kpi-grid,body.qeen-ui #customerKpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.qeen-ui .qeen-secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.qeen-ui .chart-grid,body.qeen-ui #performance-charts.chart-grid{grid-template-columns:1fr!important}body.qeen-ui .customer-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.qeen-ui .settings-shell{grid-template-columns:1fr!important}body.qeen-ui .settings-subnav{position:static!important}body.qeen-ui .content-form{grid-template-columns:1fr!important}body.qeen-ui .personal-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.qeen-ui .signed-map-layout{grid-template-columns:1fr!important}body.qeen-ui .home-grid,body.qeen-ui .home-action-grid{grid-template-columns:1fr!important}body.qeen-ui .opportunity-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.qeen-ui table{min-width:620px!important}body.qeen-ui .ranking-card table{min-width:400px!important}}
@media(max-width:540px){body.qeen-ui .app-main{padding:20px 12px 30px!important}body.qeen-ui .panel{padding:16px!important}body.qeen-ui .topbar-actions{justify-content:flex-start!important;width:100%}body.qeen-ui .qeen-filterbar{padding:14px;gap:12px}body.qeen-ui .qeen-filterbar .identity-switcher{width:100%}body.qeen-ui .qeen-filterbar .period-switcher{width:100%}body.qeen-ui .qeen-filterbar .period-switcher label{flex:1;min-width:80px}body.qeen-ui .qeen-filterbar select{min-width:0!important;width:100%!important}body.qeen-ui .kpi-grid{gap:10px!important}body.qeen-ui .kpi-card{padding:15px!important;min-height:120px!important}body.qeen-ui .kpi-card strong{font-size:24px!important}body.qeen-ui .qeen-secondary-grid .kpi-card strong{font-size:20px!important}body.qeen-ui input,body.qeen-ui select,body.qeen-ui textarea{font-size:16px!important}body.qeen-ui .opportunity-form,body.qeen-ui .detail-grid,body.qeen-ui .ai-knowledge-form{grid-template-columns:1fr!important}body.qeen-ui .opportunity-form .form-wide{grid-column:1/-1!important}body.qeen-ui .primary-btn,body.qeen-ui .ghost-btn{min-height:42px!important}body.qeen-ui .qeen-secondary-grid{gap:10px}body.qeen-ui .settings-content{min-width:0!important}body.qeen-ui .customer-pagination{flex-wrap:wrap!important}}
@media(prefers-reduced-motion:reduce){body.qeen-ui *,body.qeen-ui *::before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body.qeen-ui .app-sidebar,body.qeen-ui .qeen-mobile-bar,body.qeen-ui .qeen-filterbar{display:none!important}body.qeen-ui .app-main{margin:0!important;width:100%!important;padding:0!important}body.qeen-ui .panel{break-inside:avoid}}
/* Explicitly override legacy ID-based layout rules. */
body.qeen-ui #overview #kpiGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.qeen-ui #personal .personal-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.qeen-ui #trend-section .chart-shell:has(>.focus-card):not(:has(svg)){min-height:0!important}
body.qeen-ui .panel-tip,body.qeen-ui .real-time-clock{background:transparent!important;border:0!important;padding:0!important;border-radius:0!important}
body.qeen-ui .qeen-more-metrics{background:transparent}
body.qeen-ui.qeen-weekly .heading{margin-bottom:22px!important}
body.qeen-ui.qeen-weekly .heading .muted{margin-bottom:0}
body.qeen-ui.qeen-weekly .heading .toolbar{display:flex;align-items:center;flex-wrap:wrap}
body.qeen-ui.qeen-weekly #identity{margin-left:0}
body.qeen-ui.qeen-weekly .qeen-mobile-bar a{text-decoration:none}
body.qeen-ui.qeen-weekly .toolbar button{align-self:center}
@media(max-width:900px){body.qeen-ui #overview #kpiGrid,body.qeen-ui #personal .personal-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
body.qeen-ui #trend-section .line-chart{min-height:0!important;height:360px!important;min-width:0!important}
body.qeen-ui #trend-section .chart-canvas{background:#fff!important;border:0!important;border-radius:0!important}
body.qeen-ui #trend-section .chart-grid-lines text,body.qeen-ui #trend-section .chart-axis-labels text{font-size:12px;fill:#75859b}
body.qeen-ui #trend-section .total-line{stroke:#285ac7;stroke-width:3;filter:none}
body.qeen-ui #trend-section [data-trend-series='总业绩'] i{background:#285ac7!important}
body.qeen-ui #trend-section .legend-toggle{border:0!important;background:transparent!important;border-radius:4px!important;font-size:12px!important;font-weight:400!important;padding:5px 8px!important}
body.qeen-ui #trend-section .legend-toggle.is-muted{opacity:.4}
/* Legacy header uses flex-basis as height after switching to a column on phones. */
body.qeen-ui .app-topbar{flex-direction:row!important;height:auto!important;align-content:start!important}
body.qeen-ui .app-topbar>div:first-child{flex:0 1 auto!important;height:auto!important;min-height:0!important;min-width:0!important;width:auto!important}
body.qeen-ui .topbar-actions{flex:0 1 auto!important;flex-direction:row!important;height:auto!important;min-height:0!important}
@media(max-width:540px){body.qeen-ui .app-topbar{align-items:flex-start!important}body.qeen-ui .app-topbar>div:first-child{width:100%!important}body.qeen-ui .topbar-actions{width:100%!important;justify-content:space-between!important}body.qeen-ui .topbar-actions>.ghost-btn{width:auto!important}}
@media(max-width:540px){body.qeen-ui .topbar-actions>.primary-btn{width:auto!important}}
/* Compact operating dashboard: goals → pipeline → trend → team → business mix. */
body.qeen-ui.qeen-overview .app-main>:is(#overview,#personal,#sales-ranking,#business-customer-ranking,#signed-customer-map-section,#ai-analysis-section,#gap-actions,#personal-actions,#weekly-focus){grid-column:1/-1!important;order:0!important}
body.qeen-ui.qeen-overview .app-main>:is(#trend-section,#performance-charts,#total-performance-ranking,#products){order:0!important}
body.qeen-ui.qeen-dashboard .topbar-actions .user-profile-card{width:auto!important;flex:0 1 auto!important}
body.qeen-ui.qeen-dashboard .topbar-actions>.ghost-btn{width:auto!important;flex:0 0 auto!important}
body.qeen-ui.qeen-dashboard #overview .kpi-card.qeen-scope>strong{font-size:12px!important}
body.qeen-ui.qeen-dashboard #trend-section .chart-shell{min-height:0!important;gap:6px!important;align-content:start!important}
body.qeen-ui.qeen-dashboard #signed-customer-map-section .signed-map-layout{grid-template-columns:1fr 1fr!important;gap:12px!important}
body.qeen-ui.qeen-dashboard #signed-customer-map-section .signed-map-side{grid-template-columns:1fr 1fr!important;gap:10px!important}
body.qeen-ui.qeen-dashboard .app-main{padding:20px 22px 32px!important}
body.qeen-ui.qeen-dashboard .app-topbar{padding-bottom:12px!important;gap:10px!important}
body.qeen-ui.qeen-dashboard .app-topbar h1{font-size:24px!important}
body.qeen-ui.qeen-dashboard .app-topbar .eyebrow{display:none!important}
body.qeen-ui.qeen-dashboard .real-time-clock{margin-top:3px!important}
body.qeen-ui.qeen-dashboard .qeen-filterbar{margin-top:12px;padding:10px 14px;gap:14px;border-radius:8px}
body.qeen-ui.qeen-dashboard .qeen-filterbar label{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap}
body.qeen-ui.qeen-dashboard .qeen-filterbar .identity-switcher{min-width:0}
body.qeen-ui.qeen-dashboard .qeen-filterbar select{min-width:86px!important;min-height:32px!important;padding:5px 8px!important}
body.qeen-ui.qeen-dashboard .qeen-filter-note{font-size:10px}
body.qeen-ui.qeen-overview .app-main{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:12px!important;align-items:start!important}
body.qeen-ui.qeen-overview .app-main>*{grid-column:1/-1!important;order:0!important}
body.qeen-ui.qeen-overview .app-main>.app-section,body.qeen-ui.qeen-overview .qeen-filterbar{margin:0!important}
body.qeen-ui.qeen-overview #trend-section{grid-column:span 7!important;align-self:stretch}
body.qeen-ui.qeen-overview #performance-charts{grid-column:span 5!important;align-self:stretch}
body.qeen-ui.qeen-overview #total-performance-ranking,body.qeen-ui.qeen-overview #products{grid-column:span 6!important;align-self:start}
body.qeen-ui.qeen-dashboard .panel{padding:14px 16px!important;border-radius:8px!important}
body.qeen-ui.qeen-dashboard .panel-head{gap:6px!important;margin-bottom:10px!important}
body.qeen-ui.qeen-dashboard .panel-head h2{font-size:14px!important}
body.qeen-ui.qeen-dashboard .panel-head .eyebrow{display:none!important}
body.qeen-ui.qeen-dashboard .panel-tip{font-size:10px!important}
body.qeen-ui.qeen-dashboard #overview #kpiGrid{gap:8px!important}
body.qeen-ui.qeen-dashboard .qeen-metric-heading{grid-column:1/-1;display:flex;align-items:center;gap:14px;justify-content:space-between;min-width:0}
body.qeen-ui.qeen-dashboard .qeen-metric-heading>span{font-size:12px;font-weight:650;white-space:nowrap;color:#415773}
body.qeen-ui.qeen-dashboard .qeen-metric-heading>small{font-size:10px;color:#7c899d}
body.qeen-ui.qeen-dashboard .qeen-pipeline-heading{margin-top:3px}
body.qeen-ui.qeen-dashboard .kpi-card.qeen-scope{justify-content:flex-end;gap:8px!important;flex:1;min-width:0}
body.qeen-ui.qeen-dashboard .kpi-card.qeen-scope>strong{font-size:12px!important}
body.qeen-ui.qeen-dashboard #overview .kpi-card:not(.qeen-scope){padding:12px 14px!important;min-height:90px!important;gap:4px!important;border-radius:8px!important}
body.qeen-ui.qeen-dashboard #overview .kpi-card>strong{font-size:25px!important;line-height:1.2!important}
body.qeen-ui.qeen-dashboard #overview .kpi-card>span{font-size:11px!important}
body.qeen-ui.qeen-dashboard #overview .kpi-card>small{font-size:10px!important;line-height:1.45!important}
body.qeen-ui.qeen-dashboard #overview .qeen-opportunity-metric{min-height:86px!important;background:#fff!important}
body.qeen-ui.qeen-dashboard #overview .qeen-opportunity-metric>strong{font-size:22px!important}
body.qeen-ui.qeen-dashboard #overview .qeen-gap{border-top:2px solid #d5a355!important}
body.qeen-ui.qeen-dashboard .qeen-more-metrics{padding-top:0;border-top:0}
body.qeen-ui.qeen-dashboard .qeen-more-metrics>summary{padding:0;font-size:10px;color:#74849a}
body.qeen-ui.qeen-dashboard .qeen-secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
body.qeen-ui.qeen-dashboard #trend-section>.panel{height:100%!important}
body.qeen-ui.qeen-dashboard #trend-section .panel-head{align-items:flex-start}
body.qeen-ui.qeen-dashboard #trend-section .panel-head-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important}
body.qeen-ui.qeen-dashboard #trend-section .panel-head-actions .panel-tip{flex-basis:100%}
body.qeen-ui.qeen-dashboard #trend-section .mini-filter{display:flex;align-items:center;gap:6px;font-size:10px!important}
body.qeen-ui.qeen-dashboard #trend-section select{min-height:28px!important;padding:3px 6px!important;font-size:11px!important}
body.qeen-ui.qeen-dashboard #trend-section .line-chart{height:260px!important}
body.qeen-ui.qeen-dashboard #trend-section .trend-legend{gap:4px!important;padding:4px 0!important}
body.qeen-ui.qeen-dashboard #trend-section .legend-toggle{font-size:10px!important;padding:3px 5px!important}
body.qeen-ui.qeen-dashboard #performance-charts.chart-grid{grid-template-columns:1fr!important;gap:10px!important;align-content:start!important}
body.qeen-ui.qeen-dashboard #performance-charts .compare-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.qeen-ui.qeen-dashboard #performance-charts .compare-card{padding:10px!important;gap:4px!important;min-height:0!important;border:0!important;border-radius:6px!important;display:flex!important;flex-direction:column!important}
body.qeen-ui.qeen-dashboard #performance-charts .compare-card strong{font-size:19px!important;line-height:1.35!important;overflow-wrap:anywhere}
body.qeen-ui.qeen-dashboard #performance-charts .compare-card span,body.qeen-ui.qeen-dashboard #performance-charts .compare-card small{font-size:10px!important;line-height:1.5!important}
body.qeen-ui.qeen-dashboard #performance-charts .compare-card.good small{color:#278168!important}
body.qeen-ui.qeen-dashboard #performance-charts .compare-card.warning small{color:#b46833!important}
body.qeen-ui.qeen-dashboard th,body.qeen-ui.qeen-dashboard td{padding:8px 10px!important;font-size:12px!important;line-height:1.5!important}
body.qeen-ui.qeen-dashboard #sales-ranking :is(th,td):nth-child(6),body.qeen-ui.qeen-dashboard #sales-ranking :is(th,td):nth-child(7),body.qeen-ui.qeen-dashboard #total-performance-ranking :is(th,td):nth-child(4){display:table-cell}
body.qeen-ui.qeen-dashboard #sales-ranking table{min-width:740px!important}
body.qeen-ui.qeen-dashboard #total-performance-ranking table{min-width:530px!important}
body.qeen-ui.qeen-dashboard .extended-ranking-grid{gap:10px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.qeen-ui.qeen-dashboard .ranking-card{padding:10px!important}
body.qeen-ui.qeen-dashboard .ranking-card h3{font-size:12px!important}
body.qeen-ui.qeen-dashboard .ranking-card td,body.qeen-ui.qeen-dashboard .ranking-card th{padding:7px 6px!important;font-size:11px!important}
body.qeen-ui.qeen-dashboard .bar-list{gap:7px!important}
body.qeen-ui.qeen-dashboard .bar-row{padding:6px 0!important;border:0!important;border-radius:0!important;background:transparent!important;gap:5px!important;min-height:0!important}
body.qeen-ui.qeen-dashboard .bar-row-top{font-size:11px!important}
body.qeen-ui.qeen-dashboard .bar-track{height:6px!important}
body.qeen-ui.qeen-dashboard .sub-panel-head{margin:14px 0 8px!important;padding-top:10px!important}
body.qeen-ui.qeen-dashboard .sub-panel-head h3{font-size:12px!important}
body.qeen-ui.qeen-dashboard .sub-panel-head .eyebrow{display:none!important}
body.qeen-ui.qeen-dashboard .sub-panel-head>span{font-size:10px!important}
body.qeen-ui.qeen-dashboard .dashboard-blocks{gap:12px!important}
body.qeen-ui.qeen-dashboard .dashboard-block-title{margin-bottom:6px!important;font-size:12px!important}
body.qeen-ui.qeen-dashboard #personal .personal-grid{gap:8px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.qeen-ui.qeen-dashboard .personal-card{padding:10px 12px!important;min-height:70px!important;gap:4px!important}
body.qeen-ui.qeen-dashboard .personal-card strong{font-size:20px!important}
body.qeen-ui.qeen-dashboard .is-hidden,body.qeen-ui.qeen-dashboard [hidden],body.qeen-ui.qeen-dashboard #performance-charts.is-hidden{display:none!important}
@media(max-width:1200px){body.qeen-ui.qeen-overview #trend-section{grid-column:1/-1!important}body.qeen-ui.qeen-overview #performance-charts{grid-column:1/-1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}body.qeen-ui.qeen-dashboard .qeen-filter-note{display:none}}
@media(max-width:900px){body.qeen-ui.qeen-dashboard .app-main{padding:16px!important}body.qeen-ui.qeen-overview #total-performance-ranking,body.qeen-ui.qeen-overview #products{grid-column:1/-1!important}body.qeen-ui.qeen-dashboard .extended-ranking-grid{grid-template-columns:1fr!important}}
@media(max-width:600px){body.qeen-ui.qeen-dashboard .app-main{padding:12px!important}body.qeen-ui.qeen-dashboard .qeen-filterbar{gap:8px;padding:10px}body.qeen-ui.qeen-dashboard .qeen-filterbar label{font-size:10px!important}body.qeen-ui.qeen-dashboard .qeen-filterbar .period-switcher{gap:6px!important}body.qeen-ui.qeen-dashboard .qeen-filterbar .period-switcher label{display:grid!important;gap:3px!important}body.qeen-ui.qeen-dashboard #overview #kpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.qeen-ui.qeen-dashboard .qeen-metric-heading{flex-wrap:wrap;gap:3px}body.qeen-ui.qeen-dashboard .kpi-card.qeen-scope{flex-wrap:wrap;justify-content:flex-start;flex-basis:100%}body.qeen-ui.qeen-dashboard #overview .kpi-card>strong{font-size:22px!important}body.qeen-ui.qeen-dashboard #performance-charts.chart-grid{grid-template-columns:1fr!important}body.qeen-ui.qeen-dashboard #personal .personal-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.qeen-ui.qeen-dashboard .panel{padding:12px!important}}
@media(max-width:900px){body.qeen-ui.qeen-dashboard #signed-customer-map-section .signed-map-layout,body.qeen-ui.qeen-dashboard #signed-customer-map-section .signed-map-side{grid-template-columns:1fr!important}}

/* V1.3.20: entry pages select customer scope, without analytics periods. */
.qeen-filterbar .qeen-scope-entry-label{display:none}
html[data-qeen-view="opportunities"] body.qeen-dashboard .qeen-filterbar .period-switcher,
html[data-qeen-view="visits"] body.qeen-dashboard .qeen-filterbar .period-switcher,
html[data-qeen-view="orders"] body.qeen-dashboard .qeen-filterbar .period-switcher,
body.qeen-entry-mode .qeen-filterbar .period-switcher{display:none!important}
html[data-qeen-view="opportunities"] body.qeen-dashboard .qeen-filterbar .qeen-scope-dashboard-label,
html[data-qeen-view="visits"] body.qeen-dashboard .qeen-filterbar .qeen-scope-dashboard-label,
html[data-qeen-view="orders"] body.qeen-dashboard .qeen-filterbar .qeen-scope-dashboard-label,
body.qeen-entry-mode .qeen-filterbar .qeen-scope-dashboard-label{display:none!important}
html[data-qeen-view="opportunities"] body.qeen-dashboard .qeen-filterbar .qeen-scope-entry-label,
html[data-qeen-view="visits"] body.qeen-dashboard .qeen-filterbar .qeen-scope-entry-label,
html[data-qeen-view="orders"] body.qeen-dashboard .qeen-filterbar .qeen-scope-entry-label,
body.qeen-entry-mode .qeen-filterbar .qeen-scope-entry-label{display:inline!important}
