/* Keep the map, controls and live legend in the same compact layout. */
html[data-theme] .admin-shell .command-dashboard .dash-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
html[data-theme] .admin-shell .command-dashboard .dash-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;align-items:start;gap:12px;margin-top:0}
html[data-theme] .admin-shell .command-dashboard .dash-side>.dash-panel{padding:16px}
html[data-theme] .admin-shell .command-dashboard .dash-side .dash-status-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
html[data-theme] .admin-shell .command-dashboard .dash-side .dash-status-list>div{padding:8px 0;min-width:0;font-size:11px}
html[data-theme] .admin-shell .command-dashboard .dash-side .dash-status-list b{font-size:14px}
html[data-theme] .admin-shell .command-dashboard .map-panel{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto clamp(360px,43vh,500px) auto;gap:12px;align-self:start;min-width:0;padding:16px;margin:0;overflow:hidden;background:var(--surface)}
html[data-theme] .admin-shell .command-dashboard .map-panel>header{grid-row:1;min-height:36px;height:auto;margin:0;gap:12px;flex-wrap:wrap}
html[data-theme] .admin-shell .command-dashboard .map-panel>header h2{margin:4px 0 0;font-size:17px;line-height:1.4}
html[data-theme] .admin-shell .command-dashboard .map-panel>header em{font-size:11px;white-space:nowrap}
html[data-theme] .admin-shell .command-dashboard .map-panel>.amap-extra-controls{grid-row:2;position:static;display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
html[data-theme] .admin-shell .command-dashboard .amap-extra-controls button{min-height:34px;padding:6px 12px;border:1px solid var(--border);border-radius:9px;background:var(--glass);color:var(--text);font-size:12px;white-space:nowrap;cursor:pointer}
html[data-theme] .admin-shell .command-dashboard .amap-extra-controls button:hover{border-color:#259d7d;background:color-mix(in srgb,#259d7d 15%,var(--glass))}
html[data-theme] .admin-shell .command-dashboard .amap-extra-controls span{padding:0 4px;border:0;background:transparent;color:var(--muted);font-size:11px}
html[data-theme] .admin-shell .command-dashboard .map-panel>.wuhan-map.real-map{grid-row:3;width:100%;height:100%;min-height:0;margin:0;border-radius:12px;overflow:hidden}
html[data-theme] .admin-shell .command-dashboard .map-panel>.map-legend{grid-row:4;position:static;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;min-width:0;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;backdrop-filter:none}
html[data-theme] .admin-shell .command-dashboard .map-panel>.map-legend>span{display:grid;grid-template-columns:8px 1fr auto;gap:6px;min-width:0;padding:9px 8px;border:1px solid var(--border);border-radius:9px;background:var(--glass);color:var(--text);font-size:11px;white-space:nowrap}
html[data-theme] .admin-shell .command-dashboard .map-legend>span i{width:8px;height:8px;box-shadow:none}
html[data-theme] .admin-shell .command-dashboard .map-legend>span b{min-width:12px;color:var(--text);font-size:13px}
html[data-theme] .admin-shell .command-dashboard .map-legend>.technician-legend{margin:0;padding:9px 8px;border:1px solid var(--border)}
html[data-theme] .admin-shell .command-dashboard .map-legend>.technician-legend i{width:9px;height:9px}
html[data-theme] .admin-shell .command-dashboard .map-panel>.map-worker-cluster-help{right:26px;bottom:80px;max-width:50%}
html[data-theme] .admin-shell .command-dashboard .map-panel.map-is-fullscreen{position:fixed;inset:0;z-index:2000;box-sizing:border-box;width:100%;height:100dvh;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px;padding:16px;border-radius:0;background:var(--bg)}
@media(max-width:1200px){html[data-theme] .admin-shell .command-dashboard .map-panel>.map-legend{grid-template-columns:repeat(4,minmax(0,1fr))}html[data-theme] .admin-shell .command-dashboard .map-panel>.map-worker-cluster-help{bottom:122px}}
@media(max-width:900px){html[data-theme] .admin-shell .command-dashboard .dash-side{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme] .admin-shell .command-dashboard .dash-side .rating-panel{grid-column:span 2}}
@media(max-width:600px){html[data-theme] .admin-shell .command-dashboard .dash-side{grid-template-columns:minmax(0,1fr)}html[data-theme] .admin-shell .command-dashboard .dash-side .rating-panel{grid-column:auto}}
@media(max-width:600px){html[data-theme] .admin-shell .command-dashboard .map-panel{padding:12px;gap:10px;grid-template-rows:auto auto 380px auto}html[data-theme] .admin-shell .command-dashboard .map-panel>header h2{font-size:15px}html[data-theme] .admin-shell .command-dashboard .map-panel>.map-legend{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-theme] .admin-shell .command-dashboard .map-panel.map-is-fullscreen{padding:10px;grid-template-rows:auto auto minmax(0,1fr) auto}html[data-theme] .admin-shell .command-dashboard .map-panel>.map-worker-cluster-help{right:20px;bottom:160px}html[data-theme] .admin-shell .command-dashboard .amap-extra-controls span{flex-basis:100%;font-size:10px}}
@media(max-height:520px) and (min-width:601px){html[data-theme] .admin-shell .command-dashboard .map-panel.map-is-fullscreen{gap:6px;padding:8px}html[data-theme] .admin-shell .command-dashboard .map-panel.map-is-fullscreen>header>div>span{display:none}}
