/* Clear scopes, usable controls and chart-sized space across customer pages. */
.topbar-control-label { display: block; font-size: 11px; line-height: 1.4; color: var(--premium-muted, #59677b); margin-bottom: 5px; }
.topbar-date, #global-location-wrap { flex-direction: column; align-items: stretch !important; min-width: 0; }
.topbar-date { flex-shrink: 0; }
.topbar-filters { max-width: 100%; }
.topbar-filters > * { max-width: 100%; }
.topbar .dash-dropdown-trigger { min-height: 40px; }
.sidebar button.nav-label-toggle { display: flex; width: 100%; border: 0; background: transparent; text-align: left; font-family: inherit; cursor: pointer; }
.sidebar button.nav-label-toggle:hover { background: var(--premium-canvas, #f5f7fa); }
.sidebar-toggle { cursor: pointer; }
.chart-scope-note, .table-status { color: var(--premium-muted, #59677b); font-size: 12px; line-height: 1.65; margin: 0 0 14px; }
.geo-visual-controls label { font-size: 12px; }
.geo-visual-controls .dash-dropdown { background: #fff; border: 1px solid var(--premium-line, #e4eaf0); border-radius: 11px; font-size: 13px; }
.geo-visual-controls .dash-dropdown-trigger { min-height: 44px; padding: 0 12px; }
.ux-mobile-legend { display: grid; gap: 6px; max-height: 140px; overflow: auto; margin: 8px 0; font-size: 12px; line-height: 1.5; }
.ux-mobile-legend-item { display: flex; align-items: flex-start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.ux-mobile-legend-swatch { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 3px; margin-top: 4px; }
.ux-mobile-chart-note { margin: 8px 0; color: var(--premium-muted, #59677b); font-size: 12px; line-height: 1.5; }
.table-status:empty { display: none; }
.ux-method, .ux-chart-details { color: var(--premium-muted, #59677b); font-size: 12px; line-height: 1.65; margin: 0 0 18px; }
.ux-method > summary, .ux-chart-details > summary { color: var(--premium-ink, #142742); padding: 8px 0; cursor: pointer; font-size: 13px; font-weight: 500; }
.ux-method p { margin: 8px 0 14px; max-width: 900px; }
.ux-chart-details[open] > summary { margin-bottom: 14px; }
.cockpit-status-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 12px; }
.cockpit-status-strip #cockpit-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.cockpit-collection-details .dial-card { max-width: 680px; margin-top: 12px; }
.brand-root .brand-premium-scope { margin: 12px 0 20px; }
.brand-root .brand-scope-active { font-size: 12px; line-height: 1.65; color: var(--brand-muted, #59677b); margin: 0 0 4px; }
.brand-root .brand-scope-details { font-size: 12px; line-height: 1.65; color: var(--brand-muted, #59677b); }
.brand-root .brand-scope-details > summary { cursor: pointer; padding: 6px 0; }
.brand-root .brand-scope-coverage { margin: 8px 0 0; max-width: 900px; }
@media (max-width: 900px) {
    .sidebar.mobile-open .nav-section.collapsed .nav-section-items { max-height: 0; opacity: 0; }
    .sidebar button.nav-label-toggle { min-height: 44px; }
    .topbar { padding-left: 20px; padding-right: 20px; }
    .topbar > div:first-child { padding-left: 50px; flex-basis: 100%; }
    .topbar-filters { flex: 1 1 100%; width: 100%; justify-content: flex-start; align-items: flex-end; }
    .topbar-filters .topbar-date { min-width: 140px; }
    .topbar-filters #global-date { width: 140px !important; max-width: 100%; }
    .topbar-filters #topbar-project-pill { flex: 0 1 auto; overflow-wrap: anywhere; font-size: 12px; }
    .topbar-filters #global-location-wrap { max-width: 100%; }
    .topbar-filters > .export-btn { order: 3; }
    .chart-card .dash-graph:not(.geo-visual-graph):not(.source-vis-graph):not(.location-map-graph):not(.brand-radar-graph):not(.brand-presence-graph):not(.geo-category-stack) {
        height: var(--ux-chart-height, 380px) !important; min-height: 0 !important; max-height: none !important;
    }
    .chart-card .dash-graph.mob-simple { height: var(--ux-chart-height, 360px) !important; }
    .chart-card .js-plotly-plot { overflow: visible; }
    .ux-method > summary, .ux-chart-details > summary, .brand-root .brand-scope-details > summary { min-height: 44px; padding: 12px 0; }
    .chart-scope-note, .table-status { font-size: 12px; }
    .filter-item .dash-dropdown .dash-dropdown-trigger { min-height: 44px; }
    .export-btn, .export-btn-small { min-height: 44px; }
}
@media (max-width: 600px) {
    .topbar { padding-left: 16px; padding-right: 16px; gap: 14px; }
    .topbar > div:first-child { padding-left: 54px; }
    .topbar-filters { gap: 10px 12px; }
    .page-breadcrumb { line-height: 1.5; }
    .kpi-value { font-size: clamp(25px, 8vw, 32px); overflow-wrap: anywhere; }
    .brand-root .brand-scope-active { font-size: 12px; }
    .brand-root .brand-premium-scope { margin-bottom: 14px; }
}
