/* Workspace 07: compact desktop, readable expanded blocks, unchanged mobile flow. */
[hidden]{display:none!important}
.a7-info{font-size:13px;color:var(--muted);line-height:1.55}
.a7-preview-banner{position:sticky;top:66px;z-index:14;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 20px;background:var(--soft);border-bottom:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));font-size:12px}
.a7-preview-banner>span{min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.a7-preview-banner small{font-size:12px}.a7-preview-banner button{padding:6px 10px;white-space:nowrap;font-size:12px;color:var(--accent)}
.a7-view-users{display:grid;max-height:48dvh;overflow:auto;margin:12px 0;gap:5px}
.a7-view-users>button{justify-content:flex-start;text-align:left;padding:12px}
.a7-view-users>button>span{flex:1;min-width:0}.a7-view-users b,.a7-view-users small{display:block}.a7-view-users small{margin-top:3px}
#a7-view-count{font-size:12px;margin-top:8px}
.a7-perf-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;background:var(--surface2);padding:16px;border-radius:12px;margin:12px 0;font-size:13px}
.a7-perf-grid>span{color:var(--muted)}.a7-privacy{max-width:720px;margin:24px auto}.a7-privacy p{color:var(--muted)}
.a7-report-status{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;padding:5px 2px;flex-shrink:0}
.a7-loading .a6-dashboard{opacity:.55;pointer-events:none}.a7-loading #a7-refresh{cursor:wait}.a7-loading .a7-report-status::before{content:'Обновление данных…';color:var(--accent)}
.a7-panel{position:relative}.a7-expand{position:absolute;top:10px;right:9px;padding:5px;border:0;background:transparent;color:var(--muted);width:27px;height:27px;border-radius:8px;z-index:1}.a7-expand .svg{width:16px;height:16px}.a7-expand:hover{color:var(--accent);background:var(--soft)}
.a7-panel>.row:first-child{padding-right:24px}.a7-panel>h3{padding-right:26px}
.a7-list-pager{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:25px;flex-shrink:0;margin-top:4px}.a7-list-pager button{padding:3px 5px;width:26px;min-height:25px;border:0}.a7-list-pager .svg{width:15px;height:15px}.a7-list-pager span{font-size:11px;color:var(--muted)}
.a7-wide-dialog{width:min(1160px,96vw)!important;max-width:1160px!important}.a7-wide-dialog .dialog-body{max-height:83dvh;overflow:auto}
.a7-expanded-card{min-height:500px!important;max-height:none!important;width:100%;border:0;box-shadow:none;padding:5px!important}.a7-expanded-card>.a7-expand,.a7-expanded-card .a7-list-pager{display:none!important}
.a7-expanded-card .a4-product-list,.a7-expanded-card .brand-legend{max-height:none;overflow:visible}
.a7-expanded-card .a4-trend{max-height:570px;height:50dvh;min-height:270px}
.a7-expanded-card .a4-brand-layout{display:grid!important;grid-template-columns:minmax(180px,.85fr) minmax(220px,1.15fr)!important;min-height:430px}
.a7-expanded-card .a4-ring{width:min(360px,100%)!important;height:auto!important;margin:auto}.a7-expanded-card .a4-geo{padding:13px 8px}
.a7-expanded-card .brand-line{padding:12px 8px;grid-template-columns:9px minmax(0,1fr) auto}.a7-expanded-card .brand-line b{font-size:15px}.a7-expanded-card .brand-line strong{font-size:14px}
@media(min-width:1180px) and (min-height:680px){
 body.a7-compact[data-crm-route=analytics]{overflow:hidden}
 body.a7-compact[data-crm-route=analytics] .shell{height:100dvh;min-height:0}
 body.a7-compact[data-crm-route=analytics] .main{min-height:0}
 body.a7-compact[data-crm-route=analytics] .topbar{height:58px;padding:0 18px}
 body.a7-compact[data-crm-route=analytics] .a7-preview-banner{top:58px;height:40px;min-height:40px;padding:4px 15px}
 body.a7-compact[data-crm-route=analytics] .sidebar{padding:20px 13px 9px;overflow-y:auto;scrollbar-width:thin}
 body.a7-compact[data-crm-route=analytics] .sidebar .brand{margin-bottom:17px}.a7-compact[data-crm-route=analytics] .nav-label{margin-top:10px}
 body.a7-compact[data-crm-route=analytics] .nav button{padding:10px;font-size:13px}.a7-compact[data-crm-route=analytics] .nav{gap:3px}
 body.a7-compact[data-crm-route=analytics] .side-bottom{padding-top:14px}.a7-compact[data-crm-route=analytics] .side-bottom>.notice{display:none}
 .a7-compact #page.a7-analytics{height:calc(100dvh - 58px);min-height:0;max-width:none;padding:12px 15px 7px;display:flex;flex-direction:column;gap:8px;overflow:hidden}
 .a7-compact.a7-view-as #page.a7-analytics{height:calc(100dvh - 98px)}
 .a7-compact .a7-analytics>.page-head{margin:0;min-height:38px;flex-shrink:0;gap:8px}.a7-compact .a7-analytics>.page-head h1{font-size:24px;line-height:1.15;margin:0 0 3px}
 .a7-compact .a7-analytics>.page-head p{font-size:11px;line-height:1.2;white-space:nowrap;max-width:50vw;overflow:hidden;text-overflow:ellipsis}
 .a7-compact .a7-analytics>.page-head .actions{gap:5px}.a7-compact .a7-analytics>.page-head button{padding:6px 8px;font-size:12px;height:33px}.a7-compact .a7-analytics>.page-head button .svg{width:16px;height:16px}
 .a7-compact .a7-analytics>.a4-filters{grid-template-columns:118px minmax(110px,1fr) minmax(100px,1fr) minmax(140px,1.2fr) minmax(110px,1fr) minmax(120px,1.1fr) 65px;gap:5px;padding:4px;margin:0;flex-shrink:0;border-radius:12px;height:43px}
 .a7-compact .a7-analytics>.a4-filters select,.a7-compact .a7-analytics>.a4-filters button{height:33px;padding:5px 8px;font-size:12px;border-radius:8px}
 .a7-compact .a7-analytics>.a4-filter-chips{margin:0;flex-shrink:0;flex-wrap:nowrap;overflow:auto;scrollbar-width:none;height:26px}
 .a7-compact .a7-analytics>.a4-filter-chips:empty{display:none}.a7-compact .a7-analytics>.a4-filter-chips button{white-space:nowrap;padding:3px 7px;font-size:11px;height:24px}
 .a7-compact .a7-analytics>.dash-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0;flex-shrink:0;height:76px}
 .a7-compact .a7-analytics>.dash-kpis .dash-kpi{padding:9px 12px;border-radius:12px;overflow:hidden}.a7-compact .a7-analytics>.dash-kpis small{font-size:11px;line-height:1.2}
 .a7-compact .a7-analytics>.dash-kpis strong{font-size:25px;line-height:1.08;margin:5px 0 4px;letter-spacing:-.6px;white-space:nowrap}
 .a7-compact .a7-analytics>.dash-kpis span{display:block;font-size:10.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .a7-compact .a7-analytics>.a6-dashboard{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.13fr) minmax(0,.88fr);grid-template-rows:minmax(0,1.06fr) minmax(0,1fr);gap:9px}
 .a7-compact .a6-dashboard>section{grid-column:auto!important;order:initial!important;min-height:0!important;padding:12px 13px;border-radius:13px;overflow:hidden;display:flex;flex-direction:column}
 .a7-compact .a6-dashboard>.trend-panel{grid-area:1/1!important}.a7-compact .a6-dashboard>.p6-spotlight{grid-area:1/2!important}.a7-compact .a6-dashboard>.brand-panel{grid-area:1/3!important}
 .a7-compact .a6-dashboard>.p6-geography{grid-area:2/1!important}.a7-compact .a6-dashboard>.a4-products{grid-area:2/2!important}.a7-compact .a6-dashboard>.a4-channel-card{grid-area:2/3!important}
 .a7-compact .a6-dashboard .eyebrow{display:none}.a7-compact .a6-dashboard h3{font-size:14px;margin:0 0 7px;line-height:1.2}.a7-compact .a6-dashboard .a4-note{display:none}
 .a7-compact .a6-dashboard>.trend-panel>.row{min-height:22px;align-items:center}.a7-compact .a6-dashboard .trend-panel .badge{font-size:10px;max-width:105px;overflow:hidden;text-overflow:ellipsis;padding:2px 5px}
 .a7-compact .a6-dashboard .a4-trend-tabs{margin:1px 0 0;gap:2px;flex-shrink:0}.a7-compact .a6-dashboard .a4-trend-tabs button{font-size:11px;padding:4px 7px;min-height:25px}
 .a7-compact .a6-dashboard .a4-trend{flex:1;min-height:0!important;height:100%;max-height:none!important;margin:0;width:100%;overflow:hidden}
 .a7-compact .a6-dashboard .a4-trend text{font-size:15px}.a7-compact .a6-dashboard .a4-trend .point-value{font-size:16px}
 .a7-compact .a6-dashboard .a4-chart-legend{font-size:11px;line-height:1.1;margin:0;flex-shrink:0}.a7-compact .a6-dashboard .a4-chart-legend span{font-size:10px}
 .a7-compact .a6-dashboard .a4-drivers{flex:1;min-height:0!important;max-height:none!important;overflow:auto;margin:3px 0 0;scrollbar-width:thin}.a7-compact .a6-dashboard .a4-driver{padding:6px 0;grid-template-columns:minmax(70px,1fr) minmax(30px,.7fr) 80px;font-size:12px}
 .a7-compact .a6-dashboard .p6-head{min-height:27px;flex-shrink:0;gap:6px}.a7-compact .a6-dashboard .p6-head h3{font-size:14px;margin:0}
 .a7-compact .a6-dashboard .p6-pager{padding:0}.a7-compact .a6-dashboard .p6-pager button{width:25px;height:25px;min-height:25px}.a7-compact .a6-dashboard .p6-pager span{min-width:36px;font-size:11px}
 .a7-compact .a6-dashboard .p6-context,.a7-compact .a6-dashboard .p6-foot{display:none}
 .a7-compact .a6-dashboard .p6-body{min-height:0;display:grid;grid-template-columns:minmax(100px,.80fr) minmax(0,1.20fr);gap:10px;margin-top:7px}
 .a7-compact .a6-dashboard .p6-media{min-height:0!important;height:100%;border-radius:11px}.a7-compact .a6-dashboard .p6-photo{padding:9px}
 .a7-compact .a6-dashboard .p6-copy{min-height:0;justify-content:flex-start}.a7-compact .a6-dashboard .p6-topline{margin:0 0 5px;gap:5px}.a7-compact .a6-dashboard .p6-top-badge{font-size:10px;padding:2px 5px}.a7-compact .a6-dashboard .p6-rank-label{font-size:10px}
 .a7-compact .a6-dashboard .p6-name{font-size:14px;line-height:1.22;margin:0 0 5px;letter-spacing:-.15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex-shrink:0}
 .a7-compact .a6-dashboard .p6-meta{font-size:10.5px;line-height:1.2;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
 .a7-compact .a6-dashboard .p6-stats{gap:6px;margin:0 0 6px}.a7-compact .a6-dashboard .p6-stats>div{padding-top:4px}.a7-compact .a6-dashboard .p6-stats dt{font-size:10.5px;line-height:1.15;white-space:nowrap}.a7-compact .a6-dashboard .p6-stats dd{font-size:15px;line-height:1.15;margin:3px 0 0;letter-spacing:-.2px;white-space:nowrap}.a7-compact .a6-dashboard .p6-stats dd small{font-size:10px}.a7-compact .a6-dashboard .p6-stats dd.p6-no-base{font-size:10px;white-space:normal}
 .a7-compact .a6-dashboard .p6-filter{min-height:29px;font-size:11px;padding:5px;line-height:1.15;border-radius:8px}.a7-compact .a6-dashboard .p6-filter .svg{width:14px;height:14px}
 .a7-compact .a6-dashboard .p6-image-state{padding:9px;font-size:11px;line-height:1.4;gap:7px}.a7-compact .a6-dashboard .p6-image-state .svg{width:23px;height:23px}.a7-compact .a6-dashboard .p6-media-foot{display:none}.a7-compact .a6-dashboard .p6-empty{min-height:0;font-size:12px;padding:10px}
 .a7-compact .a6-dashboard .a4-brand-layout{flex:1;display:grid!important;grid-template-columns:minmax(85px,.8fr) minmax(115px,1.2fr);align-items:center;gap:5px;min-height:0}
 .a7-compact .a6-dashboard .a4-ring{width:100%!important;height:auto!important;max-width:125px!important;max-height:150px;margin:auto!important;aspect-ratio:1}
 .a7-compact .a6-dashboard .a4-ring b{font-size:12px;letter-spacing:-.5px}.a7-compact .a6-dashboard .a4-ring small{display:none}
 .a7-compact .a6-dashboard .brand-legend{max-height:none;overflow:hidden;display:block}.a7-compact .a6-dashboard .brand-line{padding:5px 2px;display:grid;grid-template-columns:6px minmax(0,1fr);gap:2px 5px;line-height:1.1;min-height:0}
 .a7-compact .a6-dashboard .brand-line span b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.a7-compact .a6-dashboard .brand-line span small{display:none}.a7-compact .a6-dashboard .brand-line>strong{grid-column:2;font-size:11px;color:var(--muted);white-space:nowrap}.a7-compact .a6-dashboard .brand-line i{width:6px;height:6px}.a7-compact .a6-dashboard .brand-legend+.a7-list-pager{grid-column:1/-1;align-self:end}
 .a7-compact .a6-dashboard .a4-product-list{flex:1;min-height:0;max-height:none;overflow:hidden;margin:1px 0 0;display:flex;flex-direction:column}
 .a7-compact .a6-dashboard .a4-product{flex:1;min-height:0;grid-template-columns:15px 27px minmax(0,1fr) auto;gap:6px;padding:3px 0;align-items:center}
 .a7-compact .a6-dashboard .a4-product-image{width:27px;height:31px;padding:2px;border-radius:5px}.a7-compact .a6-dashboard .a4-product-name b{font-size:12px;line-height:1.2;white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis;font-weight:600}.a7-compact .a6-dashboard .a4-product-name small{font-size:10px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.a7-compact .a6-dashboard .a4-product-sales b{font-size:12px}.a7-compact .a6-dashboard .a4-product-sales small{font-size:10px;line-height:1.1}
 .a7-compact .a6-dashboard .a4-geo-list{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.a7-compact .a6-dashboard .a4-geo{flex:1;min-height:0;padding:4px 0;display:flex;justify-content:space-between;gap:8px;align-items:center}
 .a7-compact .a6-dashboard .a4-geo>span{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.a7-compact .a6-dashboard .a4-geo>strong{font-size:12px;white-space:nowrap}.a7-compact .a6-dashboard .a4-geo small{font-size:10px;line-height:1.2}
 .a7-compact .a6-dashboard>.a4-channel-card .a4-channel-list{flex:1;min-height:0;display:flex!important;flex-direction:column;gap:0}
 .a7-compact .a6-dashboard .a4-channel{flex:1;min-height:0;padding:3px 0;font-size:12px;line-height:1.2}.a7-compact .a6-dashboard .a4-channel small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}.a7-compact .a6-dashboard .a4-channel-track{height:3px;margin:3px 0}
 .a7-compact .a7-analytics>.a7-report-status{height:14px;padding:0;font-size:10px;line-height:1.2}
 .a7-compact .a7-analytics>.p5-warning{font-size:11px;margin:0;padding:4px 8px;max-height:40px;overflow:auto;flex-shrink:0}.a7-compact .a7-analytics>.p5-warning p{margin:0}.a7-compact .a7-analytics>.p5-warning small{display:none}
}
@media(max-width:760px){
 .a7-preview-banner{position:relative;top:auto;flex-direction:column;align-items:stretch;gap:4px;padding:9px 14px;font-size:12px}.a7-preview-banner>span{gap:4px}.a7-preview-banner button{min-height:38px}.a7-preview-banner small{font-size:11px}
 .a7-report-status{flex-wrap:wrap;font-size:11px}.a7-analytics>.page-head{flex-wrap:wrap}.a7-analytics>.page-head .actions{flex-wrap:wrap;justify-content:flex-start}
 .a7-analytics #a7-layout{display:none}.a7-view-users small{font-size:11px}.a7-perf-grid{grid-template-columns:1fr;gap:5px}.a7-expanded-card .a4-brand-layout{grid-template-columns:1fr!important}
 .a7-expanded-card .a4-ring{max-width:250px}.a7-expanded-card{min-height:360px!important}.a7-expand{width:35px;height:35px;right:9px;top:10px}.a7-panel>.row:first-child{padding-right:32px}
}
@media(prefers-reduced-motion:reduce){.a7-loading .a6-dashboard{transition:none}}
@media(min-width:1180px) and (min-height:680px){
 .a7-compact .a6-dashboard .a4-brand-layout{grid-template-rows:minmax(0,1fr) 25px}
 .a7-compact .a6-dashboard .brand-legend{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center}
 .a7-compact .a6-dashboard .brand-line{flex:0 1 auto;padding:4px 2px;min-height:0}
 .a7-compact .a6-dashboard .p6-stats{gap:4px 5px;margin-bottom:4px}.a7-compact .a6-dashboard .p6-stats>div{padding-top:3px}.a7-compact .a6-dashboard .p6-topline{margin-bottom:3px}
 .a7-compact .a6-dashboard .p6-meta{margin-bottom:3px}.a7-compact .a6-dashboard .p6-name{margin-bottom:3px}
 .a7-compact .a6-dashboard .a4-geo>strong{line-height:1.15}.a7-compact .a6-dashboard .a4-geo small{display:inline;margin-left:7px;font-size:10px;line-height:1.1}
 .a7-compact .a6-dashboard .a4-channel{position:relative;padding:1px 0 4px;line-height:1.15;display:block}.a7-compact .a6-dashboard .a4-channel>div:first-child{line-height:14px}
 .a7-compact .a6-dashboard .a4-channel small{line-height:11px;font-size:10px;margin-top:1px}
 .a7-compact .a6-dashboard .a4-channel-track{position:absolute;bottom:0;left:0;right:0;height:2px;margin:0}
 .a7-compact .a6-dashboard .a4-product-image{height:26px}
 .a7-compact .a6-dashboard .a4-trend text{font-size:11px}.a7-compact .a6-dashboard .a4-trend .point-value{font-size:12px}
}
.admin-tabs button.active{color:var(--surface)}

/* Short laptop view: preserve actionable controls; full content is available via expand. */
.a7-expanded-card.p6-spotlight .p6-media{min-height:350px!important}.a7-expanded-card.p6-spotlight .p6-name{white-space:normal!important;display:block!important;-webkit-line-clamp:unset!important;font-size:22px}
.a7-expanded-card.p6-spotlight .p6-body{min-height:400px!important}
@media(min-width:1180px) and (min-height:680px){
 .a7-compact .a6-dashboard .p6-head{padding-right:25px}
 .a7-compact .a6-dashboard .p6-topline{flex-wrap:nowrap}.a7-compact .a6-dashboard .p6-rank-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .a7-compact .a6-dashboard .p6-filter{flex-shrink:0}
}
@media(min-width:1180px) and (min-height:680px) and (max-height:800px){
 .a7-compact .a6-dashboard .p6-body{margin-top:3px;gap:8px}
 .a7-compact .a6-dashboard .p6-name{display:block;white-space:nowrap;text-overflow:ellipsis;line-height:17px;height:17px;font-size:14px}
 .a7-compact .a6-dashboard .p6-stats dd{font-size:14px;margin-top:2px}.a7-compact .a6-dashboard .p6-stats dt{font-size:10.5px}
 .a7-compact .a6-dashboard .p6-stats{gap:3px 5px}.a7-compact .a6-dashboard .p6-stats>div{padding-top:2px}
}
@media(min-width:1180px) and (min-height:680px) and (max-height:740px){
 .a7-compact .a6-dashboard .p6-topline,.a7-compact .a6-dashboard .p6-meta{display:none}
}
@media(min-width:1180px) and (min-height:680px) and (max-height:800px){
 .a7-compact.a7-view-as .a6-dashboard .p6-topline,.a7-compact.a7-view-as .a6-dashboard .p6-meta{display:none}
}
