/* One analysis workspace: the same data, controls and panels in page and fullscreen. */
.mg-dashboard.mg-unified-dashboard{
  --mg-panel-bg:var(--workspace-surface,var(--glass));--mg-track:var(--accent-soft);
  --mg-edge:var(--workspace-border,var(--glass-border));--mg-soft:var(--accent-soft);
  --mg-shadow:var(--workspace-shadow,var(--shadow-sm));
  --mg-control-height:32px;--mg-control-font:12px;--mg-body-font:12px;--mg-caption-font:10px;
  --mg-title-font:14px;--mg-kpi-font:24px;--mg-axis-render-size:12;
  --mg-popover-surface:color-mix(in srgb,var(--paper) 96%,var(--accent));
  --mg-popover-edge:color-mix(in srgb,var(--accent) 35%,var(--line-strong,var(--line)));
  --mg-popover-shadow:0 14px 36px -8px rgb(15 23 42 / 32%),0 0 0 1px var(--mg-popover-edge);
  --mg-popover-scrim:rgb(15 23 42 / 10%);
  --fullscreen-workspace-background:var(--workspace-canvas,var(--theme-canvas));
  position:relative;isolation:isolate;display:flex;flex-direction:column;min-width:0;min-height:430px;
  height:var(--mg-workspace-height,calc(100dvh - 155px));padding:0;border:0;border-radius:0;
  color:var(--ink);background:transparent;
  container:analytics-board / inline-size;overflow:hidden;
}
.mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen{padding:14px;border-radius:0;background:var(--workspace-canvas,var(--theme-canvas));background-attachment:fixed}
.mg-unified-dashboard [data-mg-content],.mg-dashboard.mg-unified-dashboard [data-mg-panels]{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;gap:8px}
.mg-unified-dashboard :is(.panel.glass,.kpi-card.glass){background:var(--mg-panel-bg)!important;border:1px solid var(--mg-edge)!important;box-shadow:var(--mg-shadow)!important;backdrop-filter:var(--workspace-blur,none);-webkit-backdrop-filter:var(--workspace-blur,none)}
.mg-dashboard.mg-unified-dashboard .mg-filter{position:relative;z-index:12;flex:none;margin:0;padding:6px 7px;border-radius:10px;overflow:visible}
.mg-dashboard.mg-unified-dashboard .mg-filter-row{gap:6px;min-height:var(--mg-control-height);align-items:center;flex-wrap:nowrap}
.mg-dashboard.mg-unified-dashboard .mg-filter .select,.mg-dashboard.mg-unified-dashboard .mg-filter .btn{height:var(--mg-control-height);min-height:var(--mg-control-height);font-size:var(--mg-control-font);padding-inline:8px}
.mg-dashboard.mg-unified-dashboard .mg-filter .select{padding-right:28px;color:var(--ink);background-color:var(--paper);border-color:var(--mg-edge)}
.mg-dashboard.mg-unified-dashboard .mg-filter .btn{color:var(--ink-2);background:var(--paper);border-color:var(--mg-edge);gap:4px}
.mg-dashboard.mg-unified-dashboard .mg-filter .btn:hover{color:var(--accent);border-color:var(--accent)}
.mg-dashboard.mg-unified-dashboard .mg-filter .mg-more-filter{width:87px;justify-content:center}
.mg-dashboard.mg-unified-dashboard :is(.select,.btn):focus-visible{outline:2px solid var(--accent);outline-offset:1px;box-shadow:none}
.mg-dashboard.mg-unified-dashboard .mg-filter-primary{display:contents}
.mg-dashboard.mg-unified-dashboard .mg-filter-compact .field{flex:0 1 112px;max-width:112px;min-width:0;margin:0}
.mg-dashboard.mg-unified-dashboard .mg-filter-primary .mg-field-year{flex-basis:84px;max-width:84px}
.mg-dashboard.mg-unified-dashboard .mg-filter-primary .mg-field-month{flex-basis:72px;max-width:72px}
.mg-dashboard.mg-unified-dashboard .mg-filter-primary :is(.mg-field-team_id,.mg-field-member_id){flex:0 1 122px;max-width:122px;min-width:90px}
.mg-dashboard.mg-unified-dashboard .mg-period-presets{display:flex;gap:4px;background:var(--mg-track);padding:3px;border:1px solid var(--line-2,var(--line));border-radius:8px;min-width:0;flex:none}
.mg-dashboard.mg-unified-dashboard .mg-period-presets button{height:calc(var(--mg-control-height) - 6px);min-width:0;border:1px solid var(--line-2,var(--line));padding:0 8px;border-radius:5px;background:color-mix(in srgb,var(--paper) 68%,transparent);color:var(--ink-2);font-size:var(--mg-control-font);cursor:pointer;transition:background-color .15s,border-color .15s}
.mg-dashboard.mg-unified-dashboard .mg-period-presets button[aria-pressed="true"]{background:var(--paper);border-color:var(--accent);color:var(--accent);font-weight:650;box-shadow:0 1px 4px #1d324418}
.mg-dashboard.mg-unified-dashboard :is(.mg-period-presets,.mg-segments) button:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.mg-dashboard.mg-unified-dashboard :is(.mg-period-presets,.mg-segments) button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.mg-dashboard.mg-unified-dashboard .mg-filter-tools{display:flex;align-items:center;flex:none;gap:5px;margin-left:auto;width:auto;align-self:center;flex-wrap:nowrap}
.mg-dashboard.mg-unified-dashboard .mg-filter-extra:not([hidden]){display:flex;position:absolute;z-index:20;right:6px;top:calc(100% + 7px);width:min(620px,calc(100cqw - 24px));max-height:calc(100dvh - 175px);overflow:auto;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;background:var(--paper);border:1px solid var(--mg-edge);border-radius:11px;box-shadow:0 10px 30px #17344d33}
.mg-dashboard.mg-unified-dashboard .mg-filter-extra[hidden]{display:none}
.mg-unified-dashboard .mg-extra-heading{width:100%;display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:2px}
.mg-dashboard.mg-unified-dashboard .mg-filter-extra .field{flex:1 1 105px;max-width:none;min-width:0}
.mg-unified-dashboard .mg-linked-filters .mg-fullscreen-title{display:none}.mg-unified-dashboard.hc-workspace-fullscreen .mg-linked-filters .mg-fullscreen-title{display:inline;font-size:16px;letter-spacing:.04em;margin-right:3px;color:var(--ink)}
.mg-unified-dashboard .mg-asof{display:inline-flex;align-items:center;justify-content:flex-end;align-self:center;height:var(--mg-control-height);line-height:1;color:var(--ink-3);font-size:11px;white-space:nowrap;flex:none;font-variant-numeric:tabular-nums;width:187px;text-align:right;margin:0 4px 0 0}
.mg-unified-dashboard .mg-linked-filters{display:flex;align-items:center;flex-wrap:wrap;flex:none;gap:4px 7px;padding:4px 8px;border:1px solid var(--mg-edge);border-radius:7px;background:var(--mg-soft);color:var(--ink-2);font-size:11px;min-height:27px}
.mg-filter-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:2px 6px;min-height:22px;border:1px solid var(--mg-edge);border-radius:5px;background:var(--paper);color:var(--accent);font:inherit;cursor:pointer}
.mg-filter-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mg-filter-chip svg{flex:none}
.mg-unified-dashboard .mg-filter-scope{cursor:default;color:var(--ink-2)}
.mg-unified-dashboard .mg-linked-filters>.btn{margin-left:auto;background:none;border:0;color:var(--ink-2);padding:2px 3px;min-height:22px;height:22px;font-size:11px}
.mg-unified-dashboard .error-text{flex:none;margin:0;font-size:12px;line-height:1.5;color:#a13b56}.mg-unified-dashboard .error-text:empty{display:none}
html[data-theme="dark"] .mg-unified-dashboard .error-text{color:#ffadb9}
.mg-dashboard.mg-unified-dashboard [data-mg-panels]>.kpi-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));flex:none;gap:7px}
.mg-dashboard.mg-unified-dashboard .kpi-card{padding:8px 10px;border-radius:9px;min-width:0;min-height:64px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.mg-unified-dashboard .kpi-card::after{display:none}.mg-unified-dashboard .kpi-top{display:flex;align-items:center;gap:5px;min-width:0}
.mg-unified-dashboard .kpi-icon{display:grid;place-items:center;width:19px;height:19px;border-radius:5px;flex:none}.mg-dashboard.mg-unified-dashboard .kpi-label{font-size:12px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mg-dashboard.mg-unified-dashboard .kpi-value{font-size:var(--mg-kpi-font);line-height:1.08;margin:0;letter-spacing:-.025em;color:var(--ink);white-space:nowrap}
.mg-unified-dashboard .kpi-value small{font-size:10px;margin-left:4px;letter-spacing:0;color:var(--ink-3)}
.mg-dashboard.mg-unified-dashboard .mg-presentation-grid{flex:1;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1.68fr) minmax(0,1fr) minmax(0,1.32fr);grid-template-rows:minmax(0,1.08fr) minmax(0,.92fr);gap:9px}
.mg-dashboard.mg-unified-dashboard .mg-presentation-grid>.panel{display:flex;flex-direction:column;min-width:0;min-height:0;margin:0;padding:12px;border-radius:10px;overflow:hidden}
.mg-unified-dashboard .mg-trend-panel{grid-column:1;grid-row:1}.mg-unified-dashboard .city-panel{grid-column:2;grid-row:1}.mg-unified-dashboard .analytics-members{grid-column:3;grid-row:1/3}.mg-unified-dashboard .coverage-panel{grid-column:1;grid-row:2}.mg-unified-dashboard .donut-panel{grid-column:2;grid-row:2}
.mg-dashboard.mg-unified-dashboard .panel-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:6px;flex-wrap:nowrap;margin:0 0 8px}
.mg-unified-dashboard .panel-head>div{min-width:0}.mg-dashboard.mg-unified-dashboard .panel-head h3{font-size:var(--mg-title-font);line-height:1.4;margin:0;color:var(--ink);font-weight:650}
.mg-dashboard.mg-unified-dashboard .panel-head p{font-size:var(--mg-caption-font);line-height:1.4;color:var(--ink-3);margin:3px 0 0}
.mg-dashboard.mg-unified-dashboard .mg-segments{gap:2px;padding:3px;border-radius:7px;background:var(--mg-track);max-width:100%;flex:none}
.mg-dashboard.mg-unified-dashboard .mg-segments button{font-size:calc(var(--mg-control-font) - 1px);padding:4px 6px;border:1px solid var(--line-2,var(--line));background:color-mix(in srgb,var(--paper) 68%,transparent);border-radius:4px;line-height:1.2;color:var(--ink-2);font-family:inherit;cursor:pointer;transition:background-color .15s,border-color .15s}
.mg-dashboard.mg-unified-dashboard .mg-segments button[aria-pressed="true"]{background:var(--paper);border-color:var(--accent);color:var(--accent);font-weight:650;box-shadow:0 1px 4px #1d324412}
.mg-unified-dashboard .mg-chart-legend{flex:none;margin:0;gap:10px;font-size:var(--mg-caption-font);color:var(--ink-3);flex-wrap:wrap}
.mg-dashboard.mg-unified-dashboard .mg-trend-panel>.mg-trend{display:block;flex:1;min-height:90px;min-width:0;width:100%;height:100%;max-height:none}
.mg-unified-dashboard .mg-axis{font-size:var(--mg-axis-font-size,22px);fill:var(--ink-2)}.mg-unified-dashboard .mg-grid-line{stroke:var(--line)}.mg-unified-dashboard .mg-trend-line{stroke:var(--accent)}
.mg-unified-dashboard .mg-month:hover .mg-month-hit,.mg-unified-dashboard .mg-month.selected .mg-month-hit,.mg-unified-dashboard .mg-month:focus .mg-month-hit{fill:var(--accent-soft)}
.mg-unified-dashboard .mg-trend-coverage .mg-month .mg-month-hit{fill:transparent!important;stroke:none!important}
.mg-unified-dashboard .mg-trend-coverage :is(.mg-point-guide,.mg-point-ring){opacity:0;pointer-events:none;stroke:var(--accent);fill:none;vector-effect:non-scaling-stroke}
.mg-unified-dashboard .mg-trend-coverage .mg-point-guide{stroke-width:1;stroke-dasharray:4 5;stroke-opacity:.6}
.mg-unified-dashboard .mg-trend-coverage .mg-point-ring{stroke-width:2;fill:var(--paper)}
.mg-unified-dashboard .mg-trend-coverage .mg-trend-point{fill:var(--accent);pointer-events:none}
.mg-unified-dashboard .mg-trend-coverage .mg-month:is(:hover,:focus-visible,.selected) :is(.mg-point-guide,.mg-point-ring){opacity:1}
.mg-unified-dashboard .mg-trend-tooltip{flex:none;min-height:17px;font-size:var(--mg-caption-font);line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-3);padding-top:2px;font-variant-numeric:tabular-nums}
.mg-unified-dashboard .mg-trend-panel{position:relative}.mg-unified-dashboard .mg-table-details{margin-top:2px;flex:none}
.mg-unified-dashboard [data-mg-detail]>summary{position:relative;z-index:6;display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:3px 7px;border:1px solid var(--line-2,var(--line));border-radius:6px;background:var(--paper);line-height:1.4;font-size:var(--mg-caption-font);color:var(--ink-2);cursor:pointer;list-style:none}
.mg-unified-dashboard [data-mg-detail]>summary::marker{content:''}.mg-unified-dashboard [data-mg-detail]>summary::-webkit-details-marker{display:none}
.mg-unified-dashboard [data-mg-detail]>summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 4px}
.mg-unified-dashboard [data-mg-detail][open]>summary{border-color:var(--accent);color:var(--accent)}
.mg-unified-dashboard [data-mg-detail][open]>summary::after{transform:rotate(225deg);margin-bottom:-3px}
.mg-unified-dashboard .mg-presentation-grid>.panel:has([data-mg-detail][open])::before{content:'';position:absolute;inset:0;z-index:3;border-radius:inherit;background:var(--mg-popover-scrim)}
.mg-unified-dashboard .mg-detail-popover{position:absolute;z-index:5;left:10px;right:10px;bottom:40px;max-height:calc(100% - 54px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--mg-popover-edge);border-radius:10px;background:var(--mg-popover-surface);box-shadow:var(--mg-popover-shadow);color:var(--ink);font-size:var(--mg-body-font)}
.mg-unified-dashboard .mg-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:38px;padding:7px 10px;border-bottom:1px solid var(--line-2,var(--line));background:var(--accent-soft)}
.mg-unified-dashboard .mg-detail-head strong{font-size:var(--mg-body-font);font-weight:650}
.mg-unified-dashboard [data-mg-close-detail]{display:grid;place-items:center;flex:none;width:26px;height:26px;min-height:26px;padding:0;border:1px solid var(--line-2,var(--line));border-radius:6px;background:var(--paper);color:var(--ink-2);cursor:pointer}
.mg-unified-dashboard [data-mg-close-detail]:is(:hover,:focus-visible){border-color:var(--accent);color:var(--accent)}
.mg-unified-dashboard .mg-detail-body{min-height:0;overflow:auto;padding:10px 12px;scrollbar-width:thin;overscroll-behavior:contain}
.mg-unified-dashboard .mg-table-details .mg-detail-body{padding:0}
.mg-unified-dashboard .mg-table-details .table{min-width:520px;table-layout:auto}
.mg-unified-dashboard .mg-detail-popover .table thead{background:var(--mg-popover-surface)}
html[data-theme="dark"] .mg-unified-dashboard{--mg-popover-surface:color-mix(in srgb,var(--paper) 80%,#3c465c);--mg-popover-shadow:0 16px 40px -6px rgb(0 0 0 / 65%),0 0 0 1px var(--mg-popover-edge);--mg-popover-scrim:rgb(0 0 0 / 24%)}
.mg-dashboard.mg-unified-dashboard .city-list{display:flex;flex-direction:column;flex:1;gap:4px;min-height:0;max-height:none;overflow:auto;scrollbar-width:thin;padding-right:2px}
.mg-dashboard.mg-unified-dashboard .city-row{display:flex;align-items:center;gap:6px;padding:7px 3px;min-height:43px;flex:none}
.mg-unified-dashboard .city-rank{flex:none;font-size:10px;color:var(--ink-3);width:18px}.mg-unified-dashboard .city-main{min-width:0;flex:1}
.mg-dashboard.mg-unified-dashboard .city-top{display:flex;align-items:baseline;flex-wrap:nowrap;justify-content:space-between;gap:6px;margin-bottom:6px}
.mg-dashboard.mg-unified-dashboard .city-top strong{font-size:12px;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mg-dashboard.mg-unified-dashboard .city-top span{white-space:nowrap;font-size:10px;color:var(--ink-3)}.mg-unified-dashboard .city-top em{font-style:normal}.mg-unified-dashboard .city-top b{font-size:10px;color:var(--accent);margin-left:5px}
.mg-unified-dashboard .city-bar{display:block;height:4px;border-radius:3px;background:var(--mg-track);overflow:hidden}.mg-unified-dashboard .city-bar i{display:block;height:100%;border-radius:3px}
.mg-unified-dashboard .analytics-members .panel-head{align-items:flex-start;flex-wrap:wrap}.mg-unified-dashboard .analytics-members .mg-segments{margin-left:auto}
.mg-dashboard.mg-unified-dashboard .analytics-members>.table-wrap{flex:1;min-height:0;overflow:auto;max-width:100%;scrollbar-width:thin}
.mg-dashboard.mg-unified-dashboard .table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
.mg-dashboard.mg-unified-dashboard .table :is(td,th){font-size:12px;padding:9px 6px;white-space:nowrap;border-color:var(--line);color:var(--ink-2);text-align:right}
.mg-dashboard.mg-unified-dashboard .table :is(th,td):first-child{width:39%;text-align:left}.mg-unified-dashboard .table th{font-weight:500;background:var(--paper);color:var(--ink-3)}
.mg-unified-dashboard .table thead{position:sticky;top:0;z-index:2}.mg-unified-dashboard .table-person{min-width:0;width:100%;gap:6px}.mg-unified-dashboard .table-person>span{min-width:0;overflow:hidden}
.mg-unified-dashboard .table-person strong{display:block;font-size:12px;font-weight:550;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mg-unified-dashboard .member-role{font-size:11px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.mg-unified-dashboard .table-person .avatar{width:23px;height:23px;min-width:23px;font-size:10px}.mg-unified-dashboard .mg-owner-link{display:block;width:100%;padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;overflow:hidden}
.mg-unified-dashboard .mg-coverage-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;flex:none;min-height:0;padding:9px 0}
.mg-unified-dashboard .mg-coverage-counts>div+div{padding-left:16px;border-left:1px solid var(--line)}
.mg-unified-dashboard .mg-coverage-counts span{font-size:12px;color:var(--ink-2);display:flex;align-items:center;gap:6px}
.mg-unified-dashboard .mg-coverage-counts i{width:6px;height:6px;border-radius:50%;display:inline-block;background:#3ecf9a}.mg-unified-dashboard .mg-coverage-counts .pending{background:#758ba8}
.mg-unified-dashboard .mg-coverage-counts strong{display:block;font-size:31px;line-height:1.25;margin-top:7px;font-weight:600;color:var(--ink)}.mg-unified-dashboard .mg-coverage-counts strong small{font-size:11px;font-weight:400;margin-left:5px;color:var(--ink-3)}
.mg-unified-dashboard .mg-coverage-counts p{font-size:10px;line-height:1.5;margin:6px 0 0;color:var(--ink-3)}
.mg-unified-dashboard .mg-coverage-support{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:9px 0 3px;margin-top:4px;border-top:1px solid var(--line);flex:1;min-height:40px;align-content:center}
.mg-unified-dashboard .mg-coverage-support>div{display:flex;align-items:baseline;justify-content:space-between;gap:6px;min-width:0}.mg-unified-dashboard .mg-coverage-support>div+div{border-left:1px solid var(--line);padding-left:10px}
.mg-unified-dashboard .mg-coverage-support span{font-size:11px;color:var(--ink-2);white-space:nowrap}.mg-unified-dashboard .mg-coverage-support strong{font-size:18px;font-weight:600;color:var(--ink);white-space:nowrap}.mg-unified-dashboard .mg-coverage-support small{font-size:10px;font-weight:400;margin-left:3px;color:var(--ink-3)}
.mg-unified-dashboard .coverage-bar{height:8px;flex:none;display:flex;background:var(--mg-track);border-radius:5px;overflow:hidden;margin:8px 0}
.mg-unified-dashboard .coverage-bar .ok{background:#3ecf9a}.mg-unified-dashboard .coverage-bar .pending{background:#758ba8}
.mg-unified-dashboard .coverage-panel{position:relative}.mg-unified-dashboard .mg-notes{margin:0;flex:none;font-size:10px;line-height:1.6;color:var(--ink-2)}
.mg-dashboard.mg-unified-dashboard .mg-presentation-grid>.coverage-panel{overflow-y:auto;scrollbar-width:thin}.mg-unified-dashboard .coverage-panel>.panel-head{position:sticky;top:0;z-index:2;background:var(--mg-panel-bg)}
.mg-unified-dashboard .mg-notes ul{margin:0;padding-left:16px}.mg-unified-dashboard .mg-notes p{margin:5px 0 0}
.mg-unified-dashboard .donut-panel>.mg-segments{align-self:flex-start;margin-bottom:8px;width:100%}.mg-unified-dashboard .donut-panel>.mg-segments button{flex:1;padding-inline:3px}
.mg-unified-dashboard .mg-composition-list{min-height:0;flex:1;overflow:auto;scrollbar-width:thin}.mg-unified-dashboard .mg-composition-row{padding:6px 0 7px}.mg-unified-dashboard .mg-composition-label{display:flex;align-items:baseline;gap:7px;min-width:0;font-size:12px}
.mg-unified-dashboard .mg-composition-label>:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mg-unified-dashboard .mg-composition-label b{font-size:12px;font-weight:600;color:var(--ink)}.mg-unified-dashboard .mg-composition-label small{width:29px;text-align:right;font-size:10px;color:var(--ink-3)}
.mg-unified-dashboard .mg-legend-button{background:none;border:0;color:var(--ink-2);font:inherit;padding:0;text-align:left;cursor:pointer}.mg-unified-dashboard .mg-composition-track{display:block;height:4px;background:var(--mg-track);border-radius:3px;overflow:hidden;margin-top:6px}.mg-unified-dashboard .mg-composition-track i{display:block;height:100%;border-radius:3px}
.mg-unified-dashboard :is(.mg-city-button,.mg-legend-button,.mg-owner-link)[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent);border-radius:5px}
.mg-unified-dashboard :is(.mg-filter-chip,.mg-city-button,.mg-legend-button,.mg-owner-link):focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.mg-unified-dashboard ::-webkit-scrollbar{width:5px;height:5px}.mg-unified-dashboard ::-webkit-scrollbar-thumb{background:var(--mg-edge);border-radius:4px}
@container analytics-board (max-width:1210px){
 .mg-dashboard.mg-unified-dashboard .mg-filter-row{flex-wrap:wrap}.mg-dashboard.mg-unified-dashboard .mg-filter-tools{margin-left:0}
 .mg-dashboard.mg-unified-dashboard .mg-filter-primary :is(.mg-field-team_id,.mg-field-member_id){max-width:112px;flex-basis:112px}
 .mg-dashboard.mg-unified-dashboard .mg-filter .btn{padding-inline:6px}
 .mg-dashboard.mg-unified-dashboard .mg-presentation-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.25fr)}
 .mg-dashboard.mg-unified-dashboard .mg-presentation-grid>.panel{padding:9px}
 .mg-dashboard.mg-unified-dashboard .analytics-members .table :is(th,td){padding:8px 4px;font-size:12px}
 .mg-dashboard.mg-unified-dashboard .analytics-members .table th{font-size:11px}
 .mg-unified-dashboard .table-person .avatar{display:none}
 .mg-unified-dashboard .kpi-icon{display:none}.mg-dashboard.mg-unified-dashboard .kpi-card{padding:8px}.mg-dashboard.mg-unified-dashboard .kpi-label{font-size:11px}
 .mg-unified-dashboard .mg-trend-panel .panel-head{flex-wrap:wrap}.mg-unified-dashboard .mg-trend-panel .mg-segments{margin-left:auto}
 .mg-unified-dashboard .mg-trend-panel .panel-head p{display:none}
 .mg-unified-dashboard .city-top{flex-wrap:wrap!important;gap:2px!important}.mg-unified-dashboard .city-top span{margin-left:auto}
}
@media(max-height:760px) and (min-width:1001px){
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen{padding:8px}.mg-unified-dashboard [data-mg-content],.mg-dashboard.mg-unified-dashboard [data-mg-panels]{gap:6px}
 .mg-dashboard.mg-unified-dashboard .mg-presentation-grid{gap:7px;grid-template-rows:minmax(0,1.2fr) minmax(0,.8fr)}
 .mg-dashboard.mg-unified-dashboard .kpi-card{min-height:56px;padding-block:6px;gap:4px}.mg-dashboard.mg-unified-dashboard .kpi-value{font-size:23px}
 .mg-unified-dashboard .mg-coverage-counts{padding:2px 0}.mg-unified-dashboard .mg-coverage-counts strong{font-size:26px;margin-top:4px}.mg-unified-dashboard .mg-coverage-counts p{margin-top:3px}
 .mg-unified-dashboard .mg-coverage-support{padding-top:5px;margin-top:1px;min-height:32px}.mg-unified-dashboard .mg-coverage-support strong{font-size:16px}.mg-unified-dashboard .mg-coverage-support span{font-size:10px}
 .mg-unified-dashboard .mg-trend-panel .panel-head p{display:none}.mg-dashboard.mg-unified-dashboard .panel-head{margin-bottom:5px}
}
/* Fullscreen has its own readable density; the underlying board and data stay the same. */
@media(min-width:1001px){
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen{--mg-control-height:38px;--mg-control-font:14px;--mg-body-font:14px;--mg-caption-font:12px;--mg-title-font:16px;--mg-kpi-font:30px;--mg-axis-render-size:14}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-filter-row{flex-wrap:wrap;gap:7px}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen .mg-filter-tools{margin-left:auto}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-filter-primary .mg-field-year{flex-basis:92px;max-width:92px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-filter-primary .mg-field-month{flex-basis:78px;max-width:78px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-filter-primary :is(.mg-field-team_id,.mg-field-member_id){flex-basis:136px;max-width:136px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-filter .mg-more-filter{width:94px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-filter .btn svg{width:16px;height:16px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-asof{width:208px;font-size:12px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-linked-filters{font-size:12px;min-height:32px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-filter-chip{min-height:25px;padding:3px 7px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-linked-filters>.btn{font-size:12px;min-height:26px;height:26px}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen .kpi-card{min-height:76px;padding:10px 12px}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen .kpi-label{font-size:13px}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen .kpi-value{font-size:var(--mg-kpi-font)}
 .mg-unified-dashboard.hc-workspace-fullscreen .kpi-value small{font-size:12px}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen .table :is(th,td){font-size:var(--mg-body-font);padding:11px 7px}
 .mg-unified-dashboard.hc-workspace-fullscreen .table-person strong{font-size:var(--mg-body-font)}
 .mg-unified-dashboard.hc-workspace-fullscreen .member-role{font-size:12px}
 .mg-unified-dashboard.hc-workspace-fullscreen .table-person .avatar{width:27px;height:27px;min-width:27px;font-size:12px}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen .city-row{min-height:50px;padding-block:9px}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen .city-top strong{font-size:14px}
 .mg-unified-dashboard.hc-workspace-fullscreen :is(.city-top span,.city-top b,.city-rank){font-size:12px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-coverage-counts span{font-size:14px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-coverage-counts strong{font-size:36px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-coverage-counts :is(p,strong small){font-size:12px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-coverage-support span{font-size:13px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-coverage-support strong{font-size:21px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-composition-label,.mg-unified-dashboard.hc-workspace-fullscreen .mg-composition-label b{font-size:14px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-composition-label small{font-size:12px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-composition-row{padding:9px 0 10px}
 .mg-unified-dashboard.hc-workspace-fullscreen [data-mg-detail]>summary{font-size:12px;min-height:28px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-detail-popover{bottom:44px;max-height:calc(100% - 58px)}
}
@media(max-height:760px) and (min-width:1001px){
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen{--mg-control-height:34px;--mg-control-font:13px;--mg-body-font:13px;--mg-caption-font:11px;--mg-title-font:15px;--mg-kpi-font:26px;--mg-axis-render-size:13}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen .kpi-card{min-height:62px;padding:7px 9px}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen .table :is(th,td){padding:8px 6px}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen .city-row{min-height:44px;padding-block:7px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-coverage-counts strong{font-size:29px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-coverage-counts :is(p,strong small){font-size:11px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-coverage-support span{font-size:11px}
 .mg-unified-dashboard.hc-workspace-fullscreen .mg-coverage-support strong{font-size:18px}
}
@media(max-width:1000px){
 .mg-dashboard.mg-unified-dashboard{height:auto;min-height:calc(100dvh - 150px);overflow:visible}
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen{overflow:auto}
 .mg-dashboard.mg-unified-dashboard [data-mg-panels]>.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .mg-dashboard.mg-unified-dashboard .mg-presentation-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:280px 220px 310px;flex:none}
 .mg-unified-dashboard .mg-trend-panel{grid-column:1;grid-row:1}.mg-unified-dashboard .city-panel{grid-column:2;grid-row:1}.mg-unified-dashboard .coverage-panel{grid-column:1;grid-row:2}.mg-unified-dashboard .donut-panel{grid-column:2;grid-row:2}.mg-unified-dashboard .analytics-members{grid-column:1/-1;grid-row:3}
}
@media(max-width:600px){
 .mg-dashboard.mg-unified-dashboard.hc-workspace-fullscreen{padding:8px}.mg-dashboard.mg-unified-dashboard .mg-filter-row{gap:6px;flex-wrap:wrap}
 .mg-dashboard.mg-unified-dashboard .mg-period-presets{width:100%;justify-content:space-between}.mg-dashboard.mg-unified-dashboard .mg-period-presets button{flex:1}
 .mg-dashboard.mg-unified-dashboard .mg-filter-primary .field{flex:1 1 calc(50% - 6px);min-width:0;max-width:none}
 .mg-dashboard.mg-unified-dashboard .mg-filter-tools{width:100%;justify-content:flex-end;flex-wrap:wrap}.mg-dashboard.mg-unified-dashboard .mg-filter-extra:not([hidden]){left:0;right:0;width:100%;max-height:60dvh}
 .mg-unified-dashboard .mg-asof{font-size:10px;width:100%;height:auto;min-height:18px;justify-content:flex-start;text-align:left}
 .mg-dashboard.mg-unified-dashboard [data-mg-panels]>.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .mg-dashboard.mg-unified-dashboard .kpi-value{font-size:20px}.mg-dashboard.mg-unified-dashboard .kpi-card{padding:7px 5px}.mg-dashboard.mg-unified-dashboard .kpi-label{font-size:10px}
 .mg-dashboard.mg-unified-dashboard .mg-presentation-grid{display:flex;flex-direction:column;gap:8px}.mg-dashboard.mg-unified-dashboard .mg-presentation-grid>.panel{min-height:230px;flex:none}.mg-dashboard.mg-unified-dashboard .mg-presentation-grid>.analytics-members{min-height:310px}
 .mg-dashboard.mg-unified-dashboard .mg-trend-panel>.mg-trend{height:165px;min-height:165px}
}
@media(prefers-reduced-motion:reduce){.mg-unified-dashboard,.mg-unified-dashboard *{animation:none!important;transition:none!important}}
