/* V156 · approved dashboard. Styles are scoped to Home and its own dialogs. */
.an-page{--an-bg:#edf2f8;--an-panel:#fff;--an-ink:#252641;--an-muted:#69758b;--an-line:#e1e7f0;--an-quiet:#f5f7fc;--an-blue:#5774c1;--an-blue-pale:#eaf0fc;--an-coral:#cd5069;--an-open:#5975be;--an-noshow:#df9c43;--an-lost:#c74660;--an-pending:#9073c9;--an-ok:#329781;color:var(--an-ink);font:14px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;max-width:1600px;margin:auto;min-width:0}
.an-page *{box-sizing:border-box}.an-page [hidden]{display:none!important}.an-page h2,.an-page h3,.an-page p{margin:0}.an-page button,.an-page input,.an-page select{font:inherit}.an-page button{touch-action:manipulation;cursor:pointer;background:var(--an-panel);color:var(--an-ink);border:1px solid var(--an-line);border-radius:9px;padding:8px 11px;min-height:44px;max-width:100%;font-size:12px;font-weight:500}.an-page button:disabled{opacity:.45;cursor:default}.an-page button:focus-visible,.an-page input:focus-visible,.an-page select:focus-visible,.an-page summary:focus-visible{outline:3px solid var(--an-blue);outline-offset:3px}.an-page small{font-size:11px;color:var(--an-muted)}.an-page strong{font-weight:650}.an-page svg{max-width:100%}
.an-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.an-heading{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;padding-right:300px}.an-heading>div{min-width:0}.an-heading h2{font-size:22px;line-height:1.25;font-weight:700;letter-spacing:-.4px;overflow-wrap:anywhere}.an-heading .an-eyebrow,.an-heading [data-an-subtitle],.an-heading>.an-pill{display:none}
.an-filters{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:0 0 10px;position:relative;padding-right:105px}.an-filters>label:first-child{flex:0 1 175px}.an-filters label{font-size:11px;color:var(--an-muted);min-width:0;margin:0}.an-filters select,.an-filters input:not([type=checkbox]){height:44px;min-height:44px;min-width:0;width:100%;padding:8px 10px;background:var(--an-panel);color:var(--an-ink);border:1px solid var(--an-line);border-radius:9px;font-size:16px}.an-filters>label[data-an-custom]{flex:0 1 145px}.an-filters>.an-compare{display:flex;align-items:center;gap:7px;min-height:44px;font-size:11px;flex:0 0 auto}.an-page input[type=checkbox]{width:19px;height:19px;flex:0 0 19px;accent-color:var(--an-blue);margin:0}.an-filters [data-an-toggle-filters]{display:flex;align-items:center;gap:6px}.an-filters [data-an-toggle-filters] svg{width:16px;height:16px}.an-filters .an-icon-button{font-size:22px;line-height:1;min-width:44px;padding:5px 9px}.an-filter-fields{flex:1 1 100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));align-items:end;gap:12px;padding:14px;border:1px solid var(--an-line);border-radius:12px;background:var(--an-panel)}.an-filter-fields label{min-width:0}.an-filter-summary,.an-small{font-size:11px;color:var(--an-muted);margin:5px 0!important}.an-status{font-size:12px;color:var(--an-muted);margin:6px 0!important}.an-status:empty,[data-an-optionhint]:empty{display:none}
.an-view-controls{height:0;position:relative;margin:0}.an-tabs{display:none}.an-personalize{position:absolute;right:0;bottom:10px;z-index:5;font-size:11px;color:var(--an-muted)}.an-personalize summary{display:flex;gap:5px;align-items:center;justify-content:center;min-height:44px;padding:6px;cursor:pointer;border-radius:8px}.an-personalize summary svg{width:15px;height:15px}.an-personalize[open]{background:var(--an-panel);border:1px solid var(--an-line);border-radius:10px;padding:6px;width:250px;bottom:auto;top:-54px;box-shadow:0 8px 28px #22365518}.an-personalize>div{padding:5px 9px;display:grid;gap:8px}.an-personalize label{display:flex;align-items:center;gap:9px;min-height:44px;font-size:12px;margin:0}
.an-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}.an-page .an-kpi{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 5px;text-align:left;min-width:0;min-height:90px;padding:10px 12px;background:var(--an-panel);border:1px solid var(--an-line);border-radius:12px;box-shadow:0 3px 9px #24375205}.an-kpi-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;grid-column:1/-1;font-size:11px;color:var(--an-muted)}.an-kpi-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;background:var(--an-blue-pale);color:var(--an-blue);border-radius:8px}.an-kpi-icon svg{width:15px;height:15px}.an-kpi>strong{grid-column:1;grid-row:2;display:block;font-size:29px;line-height:1.2;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin:2px 0}.an-kpi>small:not(.an-delta){display:none}.an-delta{font-size:11px!important;color:var(--an-muted);font-weight:400;overflow-wrap:anywhere}.an-kpi>.an-delta{grid-column:2;grid-row:2;text-align:right;max-width:95px}.an-page .an-kpi:first-child{background:linear-gradient(120deg,#526eaf,#394c83);color:#fff;border-color:transparent}.an-kpi:first-child .an-kpi-heading,.an-kpi:first-child .an-delta{color:#eef2ff}.an-kpi:first-child .an-kpi-icon{background:#ffffff20;color:#fff}
.an-finance-panel{display:grid;grid-template-columns:1.15fr minmax(0,3fr) auto;align-items:center;gap:10px;padding:7px 13px;margin-bottom:12px;background:var(--an-panel);border:1px solid var(--an-line);border-radius:11px;min-width:0}.an-finance-title{font-size:11px;font-weight:600;min-width:0}.an-finance-title small{display:block;margin-top:2px;font-weight:400}.an-finance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-width:0}.an-finance>div{padding-left:12px;border-left:1px solid var(--an-line);min-width:0;display:flex;flex-direction:column;gap:1px}.an-finance span{font-size:11px;color:var(--an-muted)}.an-finance strong{font-size:18px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.an-finance .an-delta{font-size:10px!important}.an-page .an-text-button{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-height:40px;border:0;border-radius:6px;background:transparent;color:var(--an-blue);padding:4px;font-size:11px;white-space:nowrap}
.an-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.24fr) minmax(0,1fr);gap:12px}.an-panel{background:var(--an-panel);border:1px solid var(--an-line);border-radius:12px;padding:12px;min-width:0}.an-panel>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;min-height:24px}.an-panel h3{font-size:14px;line-height:1.4;font-weight:650;letter-spacing:0}.an-panel>header small{display:block}.an-panel>header .an-text-button{min-height:30px}.an-chart-toggles{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.an-page .an-chart-toggles button{display:flex;align-items:center;gap:5px;min-height:36px;background:transparent;color:var(--an-muted);border:0;padding:3px;font-size:11px}.an-chart-toggles [aria-pressed=false]{opacity:.4;text-decoration:line-through}.an-chart-toggles>small{margin-left:auto;font-size:11px}.an-dot{width:7px;height:7px;flex:0 0 7px;display:inline-block;border-radius:50%;font-style:normal}.an-dot-visits{background:var(--an-blue)}.an-dot-feedback{background:var(--an-coral)}.an-chart{width:100%;min-width:0}.an-chart svg{display:block;width:100%;overflow:visible}.an-chart text{font:11px Inter,system-ui,sans-serif;fill:var(--an-muted)}.an-gridline{stroke:var(--an-line);stroke-width:1}.an-bar-visits{fill:var(--an-blue)}.an-bar-feedback{fill:var(--an-coral)}.an-previous{opacity:.23}.an-chart-tip{font-size:11px!important;color:var(--an-muted);margin:2px 0 0!important}
.an-distribution{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:9px;margin-top:3px}.an-ring{width:100px;height:100px}.an-ring text{font:650 23px Inter,system-ui,sans-serif;text-anchor:middle;fill:var(--an-ink)}.an-ring text.an-ring-caption{font-size:10px;font-weight:400;fill:var(--an-muted)}.an-ring-track{stroke:var(--an-quiet)}.an-ring-to_visit{stroke:var(--an-open)}.an-ring-no_show{stroke:var(--an-noshow)}.an-ring-lost{stroke:var(--an-lost)}.an-ring-sale_pending{stroke:var(--an-pending)}.an-ring-sale_ok{stroke:var(--an-ok)}.an-ring-unavailable{stroke:#a3adbf}.an-dot-to_visit{background:var(--an-open)}.an-dot-no_show{background:var(--an-noshow)}.an-dot-lost{background:var(--an-lost)}.an-dot-sale_pending{background:var(--an-pending)}.an-dot-sale_ok{background:var(--an-ok)}.an-dot-unavailable{background:#a3adbf}.an-state-list{display:grid;gap:1px}.an-state-row{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:22px;padding:2px 0;font-size:11px}.an-state-row>span{display:flex;align-items:center;gap:6px;min-width:0}.an-state-row strong{font-size:12px;font-variant-numeric:tabular-nums}
.an-rank{display:grid;gap:7px}.an-rank-row{display:grid;grid-template-columns:23px minmax(0,1fr) 40px;gap:8px;align-items:center;font-size:11px}.an-rank-no{width:23px;height:23px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:var(--an-quiet);color:var(--an-muted)}.an-page .an-rank-row>button{padding:2px 0;border:0;background:transparent;text-align:left;font-size:11px;min-height:33px;min-width:0}.an-rank-row>button>span:first-child{display:block;overflow-wrap:anywhere}.an-rank-track{height:4px;display:block;background:var(--an-quiet);border-radius:3px;margin-top:4px;overflow:hidden}.an-rank-track>span{display:block;height:100%;background:var(--an-blue);border-radius:3px}.an-rank-value{text-align:right;font-variant-numeric:tabular-nums}.an-rank-value small{display:block;font-size:11px}
.an-todo-list{display:grid;gap:7px}.an-todo{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:8px;background:var(--an-quiet);min-height:39px}.an-todo-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 28px;border-radius:8px;background:var(--an-blue-pale);color:var(--an-blue)}.an-todo-icon svg{width:16px;height:16px}.an-todo-title{min-width:0;flex:1;font-size:11px}.an-todo-title small{display:block;font-size:11px}.an-todo>strong{font-size:19px;line-height:1;font-variant-numeric:tabular-nums}.an-page .an-todo>button{background:transparent;color:var(--an-blue);border:0;min-width:32px;min-height:32px;padding:4px;display:flex;align-items:center;justify-content:center;font-size:18px}
.an-agenda-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:12px}.an-appointment{display:grid;grid-template-columns:45px minmax(0,1fr);gap:9px;padding:8px 0;border-top:1px solid var(--an-line);font-size:11px}.an-appointment>strong{color:var(--an-blue);font-size:12px}.an-appointment-name{font-size:12px;font-weight:600;display:block;overflow-wrap:anywhere}.an-appointment small{display:block;font-size:11px;margin-top:3px}.an-agenda-foot{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:3px}.an-agenda-foot small{font-size:11px}.an-agenda-panel>div>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;min-height:24px}.an-agenda-panel>div>header small{display:block}.an-empty{font-size:12px!important;color:var(--an-muted);margin:10px 0!important}
.an-foot{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;color:var(--an-muted);margin-top:8px}.an-foot>span:last-child{display:none}.an-page .an-dialog{position:fixed;inset:0;margin:auto!important;width:min(1100px,94vw)!important;max-width:94vw!important;max-height:88vh;max-height:88dvh;padding:18px!important;box-sizing:border-box;background:var(--an-bg);color:var(--an-ink);border:1px solid var(--an-line);border-radius:16px;overflow:auto;font-family:inherit}.an-dialog::backdrop{background:#18203570}.an-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.an-dialog>header h3{font-size:18px;margin:0}.an-dialog p{font-size:12px;margin:6px 0}.an-dialog .an-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px}.an-page .an-state{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;background:transparent;border:0;border-radius:0;width:100%;padding:8px 0;text-align:left}.an-track{height:4px;grid-column:1/-1;background:var(--an-quiet);border-radius:3px;overflow:hidden}.an-track>span{display:block;height:100%;background:var(--an-blue)}.an-state-no_show .an-track>span{background:var(--an-noshow)}.an-state-lost .an-track>span{background:var(--an-lost)}.an-state-sale_ok .an-track>span{background:var(--an-ok)}.an-state-sale_pending .an-track>span{background:var(--an-pending)}.an-detail-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--an-line);padding:12px 0;font-size:13px}.an-detail-row>div{min-width:0;overflow-wrap:anywhere}.an-detail-row p{color:var(--an-muted);margin:3px 0}.an-pager{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:12px}.an-team-head,.an-team-row{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,minmax(50px,.3fr));gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--an-line);font-size:12px}.an-team-row>span,.an-team-head>span:not(:first-child){text-align:right}.an-team-row>button{border:0;background:transparent;padding:5px 0;text-align:left;overflow-wrap:anywhere}.an-zone{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;border-bottom:1px solid var(--an-line);padding:10px 0;font-size:12px}.an-zone>button{border:0;background:transparent;padding:4px 0;text-align:left}.an-facts{display:flex;gap:10px 16px;flex-wrap:wrap;font-size:12px;margin-top:12px}.an-retailer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;border-bottom:1px solid var(--an-line);padding:12px 0;font-size:12px}.an-retailer small{grid-column:1/-1}.an-report-filter{display:inline-block;max-width:75%;font-size:12px;margin-bottom:10px}.an-report-filter input{display:block;min-height:44px;border:1px solid var(--an-line);border-radius:8px;padding:8px;font-size:16px;width:100%;box-sizing:border-box}
/* Shell geometry applies only while a Home is active. Operational views keep their existing UI. */
body.pf-home-dashboard .workspace{position:relative}body.pf-home-dashboard .content-area{padding:16px;max-width:1660px}body.pf-home-dashboard .app-shell{grid-template-columns:166px minmax(0,1fr)}body.pf-home-dashboard .sidebar{padding-left:12px;padding-right:12px}body.pf-home-dashboard .sidebar-brand-logo img{max-width:142px}body.pf-home-dashboard .side-nav .tab{padding:10px 8px;font-size:12px;gap:8px;min-height:44px}body.pf-home-dashboard .side-nav .nav-icon{flex:0 0 22px;width:22px;height:22px;font-size:15px}body.pf-home-dashboard .topbar{position:absolute;right:16px;top:13px;min-height:44px;padding:0;background:transparent;backdrop-filter:none;border:0;box-shadow:none;z-index:600}body.pf-home-dashboard .topbar-main{display:none}body.pf-home-dashboard .top-actions{position:static;display:flex;gap:8px;flex-wrap:nowrap}body.pf-home-dashboard .top-actions .account-toggle{font-size:12px;max-width:245px;min-height:44px}body.pf-home-dashboard .top-actions #logoutBtn{min-height:44px;padding:8px 11px;font-size:12px}body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .content-area{padding-top:70px}
@media(max-width:1100px){.an-heading h2{font-size:20px}.an-heading{padding-right:275px}.an-dashboard-grid{grid-template-columns:minmax(0,1.14fr) minmax(0,1fr)}.an-distribution{grid-template-columns:90px minmax(0,1fr)}.an-ring{width:90px;height:90px}.an-finance-panel{gap:6px}.an-kpi>.an-delta{max-width:65px}}
@media(min-width:640px) and (max-width:900px){body.pf-home-dashboard .app-shell{display:grid;grid-template-columns:66px minmax(0,1fr)}body.pf-home-dashboard .sidebar{position:sticky;inset:auto;top:0;width:66px;height:100vh;height:100dvh;padding:16px 9px;display:flex;flex-direction:column}body.pf-home-dashboard .sidebar-brand,body.pf-home-dashboard .sidebar-footer{display:none}body.pf-home-dashboard .tabs.side-nav{display:flex;flex-direction:column;gap:6px;margin:0;overflow:visible}body.pf-home-dashboard .side-nav .tab{display:flex;justify-content:center;min-width:0;width:100%;padding:10px 4px;position:relative}body.pf-home-dashboard .side-nav .tab>span:not(.nav-icon):not(.notification-badge){display:none}body.pf-home-dashboard .side-nav .notification-badge{position:absolute;right:0;top:0}.an-kpi-icon{display:none}.an-kpi-heading{font-size:11px}.an-kpi>strong{font-size:27px}.an-finance-panel{grid-template-columns:.9fr minmax(0,3fr)}.an-finance-panel>.an-text-button{display:none}.an-finance>div{padding-left:7px}.an-heading{padding-right:245px}.an-heading h2{font-size:19px}body.pf-home-dashboard .top-actions .account-toggle{max-width:190px;font-size:11px}}
@media(max-width:639px){body.pf-home-dashboard .app-shell{display:block}body.pf-home-dashboard .topbar{position:relative;top:auto;right:auto;padding:10px 12px;min-height:52px;display:flex;justify-content:flex-end}body.pf-home-dashboard .top-actions .account-toggle{max-width:220px}body.pf-home-dashboard .content-area{padding:12px 12px 100px}.an-heading{padding-right:0;min-height:32px;margin-bottom:8px}.an-heading h2{font-size:19px}.an-filters{padding-right:44px;gap:7px}.an-filters>label:first-child{flex:1 1 145px}.an-filters>.an-compare{font-size:11px;flex:1 1 170px}.an-personalize summary{font-size:0;width:40px}.an-personalize summary svg{width:18px;height:18px}.an-personalize[open]{right:0;top:-50px}.an-personalize[open] summary{font-size:12px;width:auto}.an-filter-fields{grid-template-columns:1fr}.an-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.an-kpi-icon{display:flex}.an-kpi>strong{font-size:28px}.an-finance-panel{grid-template-columns:1fr;padding:9px 11px}.an-finance-title>span{display:flex;align-items:center;gap:9px}.an-finance-title small{margin:0}.an-finance>div{padding-left:8px}.an-finance>div:first-child{padding-left:0;border:0}.an-finance-panel>.an-text-button{display:none}.an-dashboard-grid{grid-template-columns:1fr;gap:10px}.an-agenda-panel{grid-row:1}.an-distribution{grid-template-columns:100px minmax(0,1fr)}.an-ring{width:100px;height:100px}.an-state-row{min-height:27px}.an-dialog .an-columns{grid-template-columns:1fr}.an-team-head,.an-team-row{grid-template-columns:minmax(0,1fr) repeat(3,minmax(36px,.3fr));gap:5px;font-size:11px}.an-zone{grid-template-columns:1fr auto}.an-zone>span:last-child{grid-column:1/-1}}
@media(pointer:coarse){.an-page .an-text-button,.an-page .an-panel>header .an-text-button,.an-page .an-chart-toggles button,.an-page .an-todo>button,.an-page .an-rank-row>button{min-height:44px}.an-page .an-todo>button{min-width:44px}.an-page .an-compare{min-height:44px}.an-page input[type=checkbox]{width:21px;height:21px;flex-basis:21px}}
/* Existing shell uses important selectors for non-map headers. Keep only the real account controls on Home. */
body.pf-home-dashboard:not(:has(#view-map.active)) .topbar-main{display:none!important}
body.pf-home-dashboard:not(:has(#view-map.active)) .topbar{grid-template-columns:auto!important;gap:0!important}

.an-dialog [data-an-report-body]>.an-finance-panel>.an-text-button{display:none}

/* V157: impersonation warning and account controls occupy separate natural rows.
   No fixed banner-height assumption; long identities and rotation can wrap. */
body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .topbar{
 position:relative;inset:auto;right:auto;top:auto;width:100%;min-height:44px;
 display:flex!important;justify-content:flex-end;align-items:center!important;
 padding:8px 16px;margin:0;flex:0 0 auto;
}
body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .impersonation-banner{
 order:-1;flex:0 0 auto;flex-wrap:wrap;align-items:center;padding:10px 16px;
}
body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .impersonation-banner>span{
 min-width:0;flex:1 1 360px;overflow-wrap:anywhere;
}
body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .impersonation-banner>button{
 flex:0 0 auto;min-height:44px;
}
body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .content-area{padding-top:8px}
body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .an-heading{padding-right:0}
body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .account-menu{
 position:absolute;right:0;top:calc(100% + 8px);max-height:60vh;
}
@media(max-width:650px){
 body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .impersonation-banner{flex-direction:row}
 body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .impersonation-banner>span{flex-basis:100%}
}
body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .top-actions .account-toggle{display:inline-flex;align-items:center}
body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .account-switcher{position:static}
body.pf-home-dashboard:has(:is(.impersonation-banner,.demo-banner):not(.hidden)) .account-menu{right:16px}

.demo-banner{order:-1;flex:0 0 auto;background:#fff3d6;color:#684619;border-bottom:1px solid #eed49a;padding:9px 16px;font:600 12px/1.5 system-ui,sans-serif;overflow-wrap:anywhere}

/* V161: compact response rates in the QR card. */
.an-qr-yield{grid-column:1/-1;display:grid;gap:3px;font-size:11px;line-height:1.35;color:var(--an-muted);white-space:normal;overflow-wrap:anywhere}.an-qr-yield>span:first-child{display:flex;justify-content:space-between;gap:4px}.an-qr-yield b{color:var(--an-text)}

/* V162 · Bento chiaro. Numeri grandi, nessun ridimensionamento globale del testo. */
.an-page{--an-bg:#f2f5fb;--an-line:#dde4f0;--an-ink:#172941;--an-muted:#52647b;--an-blue:#4263c7;--an-quiet:#f1f5fb;max-width:1680px;font-size:14px}
.an-heading{margin-bottom:6px;min-height:36px}.an-heading h2{font-size:23px}
.an-kpis{gap:8px;margin-bottom:8px}.an-page .an-kpi{min-height:78px;padding:9px 13px;border-radius:13px;box-shadow:none}
.an-kpi-heading{font-size:13px;font-weight:600}.an-kpi>strong{font-size:30px;letter-spacing:-.7px}.an-kpi>.an-delta{font-size:12px!important}
.an-page .an-kpi:first-child{background:#3657bd}.an-kpi:nth-child(2){border-top:3px solid #259a96}.an-kpi:nth-child(3){border-top:3px solid #8470c9}.an-kpi:nth-child(4){border-top:3px solid #d89b37}
.an-response{margin-bottom:8px}.an-response>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 5px;font-size:13px}.an-response>header>span{color:var(--an-muted);font-size:12px}
.an-response-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.an-response-tile{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:68px;border-radius:12px;padding:9px 13px;border:1px solid #cfd9f2;background:#eaf0ff;color:#24449a}.an-response-tile>span{font-size:14px;font-weight:600}.an-response-tile>strong{font-size:30px;line-height:1.1;letter-spacing:-.8px;font-variant-numeric:tabular-nums;white-space:nowrap}
.an-response-1{background:#e3f4f0;border-color:#bddfd5;color:#176a58}.an-response-2{background:#eeeafa;border-color:#d7cfed;color:#614898}.an-response-3{background:#fff2da;border-color:#efdab2;color:#825c13}
.an-finance-panel{margin-bottom:8px;padding:7px 12px;min-height:56px}.an-finance-title,.an-finance span{font-size:12px}.an-finance strong{font-size:20px}.an-finance-title small{font-size:11px}
.an-dashboard-grid{gap:8px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.an-panel{padding:10px 12px;border-radius:13px}.an-panel>header{margin-bottom:4px}.an-panel h3{font-size:15px}.an-page .an-text-button{font-size:12px;min-height:40px}.an-panel>header .an-text-button{min-height:36px}
.an-distribution{grid-template-columns:96px minmax(0,1fr);gap:10px}.an-ring{width:96px;height:96px}.an-state-row{font-size:12px;min-height:21px}.an-state-row strong{font-size:14px}.an-agenda-panel{border-top:3px solid #2c9c9a;background:#faffff}.an-appointment{padding:6px 0}.an-appointment-name{font-size:14px}.an-appointment>strong{font-size:14px}.an-agenda-summary{margin-bottom:4px;font-size:13px}.an-appointment small{font-size:12px}
.an-todo{padding:5px 8px;min-height:44px}.an-todo-title{font-size:13px}.an-todo-title small{font-size:11px}.an-page .an-todo>button{min-height:44px;min-width:44px}.an-todo-list{gap:5px}.an-rank-row{font-size:12px}.an-page .an-rank-row>button{font-size:13px;min-height:44px}.an-rank{gap:4px}.an-chart-toggles>small{font-size:11px}.an-chart-tip{font-size:11px!important}.an-foot{font-size:11px}
body.pf-home-dashboard .content-area{padding:10px 16px}
/* Separate account controls from demo and impersonation banners at every width. */
body.pf-home-dashboard .topbar{position:relative!important;inset:auto!important;display:flex!important;justify-content:flex-end!important;padding:5px 16px!important;min-height:44px!important}
body.pf-home-dashboard .an-heading{padding-right:0}
@media(min-width:900px) and (max-height:900px){
 .an-heading{min-height:28px;margin-bottom:4px}.an-heading h2{font-size:21px}.an-filters{margin-bottom:7px;gap:7px}.an-page .an-kpi{min-height:72px;padding:7px 11px}.an-kpi>strong{font-size:28px}.an-response-tile{min-height:62px;padding:7px 11px}.an-response-tile>strong{font-size:28px}.an-panel{padding:7px 11px}.an-panel>header,.an-agenda-panel>div>header{margin-bottom:2px}.an-finance-panel{min-height:50px}.an-chart-toggles button{min-height:32px!important}.an-foot{margin-top:4px}
}
@media(max-width:1100px) and (min-width:701px){
 .an-response-tile{flex-direction:column;align-items:flex-start;gap:3px}.an-response-tile>strong{font-size:28px}.an-response-tile>span{font-size:13px}.an-finance-panel{grid-template-columns:110px minmax(0,1fr) auto}.an-finance strong{font-size:18px}.an-state-row{font-size:11px}.an-distribution{grid-template-columns:80px minmax(0,1fr)}.an-ring{width:80px;height:80px}
}
@media(max-width:700px){
 .an-kpis,.an-response-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.an-response>header{display:block}.an-response>header>span{display:block}.an-response-tile{min-height:74px;flex-direction:column;align-items:flex-start;gap:4px}.an-dashboard-grid{grid-template-columns:1fr}.an-agenda-panel{grid-row:1}.an-response-tile>strong{font-size:30px}.an-finance-panel{display:block}.an-finance{margin:8px 0}.an-finance strong{font-size:17px}.an-page .an-kpi{min-height:90px}.an-page .an-delta{font-size:11px!important}.an-heading h2{font-size:21px}.an-filters{padding-right:0}.an-personalize{position:relative;bottom:auto}.an-view-controls{height:auto;margin-bottom:6px}.an-personalize summary{justify-content:flex-start}.an-personalize[open]{position:relative;top:auto;width:100%}
}
@media(min-width:1000px){
 body.pf-home-dashboard .an-heading{margin-top:-42px;min-height:38px;padding-right:300px;margin-bottom:7px}
 .an-dashboard-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,1fr);align-items:stretch}
 .an-priority-panel{grid-column:1/-1;display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;align-items:center}.an-priority-panel>header{margin:0}.an-priority-panel .an-todo-list{grid-template-columns:1fr 1fr;gap:10px}.an-priority-panel>header>button{display:none}
 .an-distribution{grid-template-columns:76px minmax(0,1fr);gap:7px}.an-ring{width:76px;height:76px}.an-state-row{font-size:12px;min-height:27px;align-items:center}.an-state-row>span{line-height:1.2}
 .an-chart-toggles>small{display:none}.an-panel h3{font-size:14px}.an-activity .an-chart-tip{font-size:10px!important}.an-todo-title small{display:none}
}
@media(min-width:1000px) and (max-width:1100px){
 .an-response-tile{flex-direction:row;align-items:center}.an-response-tile>strong{font-size:27px}.an-distribution{grid-template-columns:1fr}.an-ring{display:none}.an-state-row{min-height:25px}.an-page .an-panel>header .an-text-button{font-size:11px}.an-priority-panel{grid-template-columns:120px minmax(0,1fr)}
}
@media(min-width:900px) and (max-width:1100px){
 body.pf-home-dashboard .app-shell{grid-template-columns:72px minmax(0,1fr)}body.pf-home-dashboard .sidebar{width:72px;padding:12px 8px}body.pf-home-dashboard .sidebar-brand,body.pf-home-dashboard .sidebar-footer{display:none}body.pf-home-dashboard .side-nav .tab{justify-content:center;position:relative;padding:10px 4px}body.pf-home-dashboard .side-nav .tab>span:not(.nav-icon):not(.notification-badge){display:none}body.pf-home-dashboard .side-nav .notification-badge{position:absolute;right:0;top:0}.an-finance-panel{grid-template-columns:125px minmax(0,1fr) auto}
}
@media(min-width:1000px){body.pf-home-dashboard .topbar{padding:0 16px!important}}

/* V166: percentage and source count share a single readable line. */
.an-response-tile{min-width:0;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px}
.an-response-values{display:flex;align-items:baseline;gap:7px;white-space:nowrap;min-width:0;font-variant-numeric:tabular-nums}
.an-response-values>strong{font-size:clamp(22px,2.1vw,30px);line-height:1.1;letter-spacing:-.5px}
.an-response-count{font-size:clamp(16px,1.5vw,22px);white-space:nowrap}.an-response-count b{font-weight:650}
@media(min-width:701px){.an-response-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:1100px){.an-response-tile{padding:8px;gap:5px}.an-response-values{gap:5px}.an-response-values>strong{font-size:22px}.an-response-count{font-size:16px}}

/* V168: vivid comparison colors, shared by triangles and numeric values. */
.an-page .an-delta{white-space:nowrap;overflow-wrap:normal;font-weight:600}
.an-page .an-delta-up,.an-page .an-delta-down{font-weight:800;font-size:12px!important}
.an-page .an-delta-up,.an-page .an-kpi:first-child .an-delta-up{color:#00852b}
.an-page .an-delta-down,.an-page .an-kpi:first-child .an-delta-down{color:#e00024}
.an-page .an-kpi:first-child .an-delta-up,.an-page .an-kpi:first-child .an-delta-down{background:#fff;border-radius:5px;padding:3px 5px}
.an-page .an-kpi>.an-delta{max-width:none}
