/* Territory workspace: calm, geographic, action-oriented. */
body:has(.bm-page){background:#f5f7fa}
.bm-page{--bm-green:#00286e;--bm-border:#dbe1ea;--bm-ink:#172131;--bm-muted:#65728a;color:var(--bm-ink);font-size:14px;line-height:1.6}.bm-page button{font-size:13px;font-weight:500}.bm-page button:hover{filter:none;background:#eaf1ff}.bm-page button:focus-visible{outline:3px solid #7cb0ff}.bm-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:5px 0 24px}.bm-eyebrow{font-size:10px;letter-spacing:.2em;font-weight:700;color:#65728a;margin-bottom:6px}.bm-heading h2{font-size:29px;letter-spacing:.03em;margin:0;font-weight:650}.bm-heading h2 span{display:block;font-size:13px;color:#65728a;font-weight:400;letter-spacing:0;margin-top:4px}.bm-outline{background:white!important;color:var(--bm-ink)!important;border:1px solid var(--bm-border)!important}.bm-filterbar{display:flex;gap:15px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--bm-border);border-bottom:1px solid var(--bm-border);padding:13px 0;margin-bottom:20px}.bm-filterbar label{display:flex;gap:8px;align-items:center;color:#65728a;font-size:12px}.bm-filterbar select{font:inherit;font-size:13px;color:#172131;padding:8px 22px 8px 9px;background:white;border:1px solid var(--bm-border);border-radius:6px;max-width:180px}.bm-reset{color:#65728a!important;background:transparent!important;padding:5px!important}.bm-data-tag{margin-left:auto;font-size:11px;color:#3f66b0}.bm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.bm-stat{padding:19px 23px;background:#fff;border:1px solid var(--bm-border);border-radius:11px;display:flex;flex-direction:column}.bm-stat>span{font-size:12px;color:#65728a}.bm-stat>strong{font-family:Arial,'Microsoft YaHei',sans-serif;font-size:32px;font-weight:500;letter-spacing:-.04em;line-height:1.4;margin:7px 0}.bm-stat em{font-size:12px;margin-left:9px;font-style:normal;letter-spacing:0;color:#65728a}.bm-stat small{font-size:11px;color:#7a8698}.bm-stat.featured{background:#00286e;border-color:#00286e;color:#fff}.bm-stat.featured>span,.bm-stat.featured small,.bm-stat.featured em{color:#d7e4f8}.bm-main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;margin-bottom:20px}.bm-panel{background:#fff;border:1px solid var(--bm-border);border-radius:12px;overflow:hidden}.bm-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 23px}.bm-section-title h3{font-size:16px;font-weight:600;margin:0}.bm-section-title p{font-size:11px;margin:5px 0 0;color:#7a8698}.bm-map-tools{display:flex;gap:5px}.bm-map-tools button{padding:5px 10px;font-size:14px}.bm-map-canvas{position:relative;background:#f7f9fc;margin:0 12px;border-radius:8px;overflow:hidden}.bm-svg{display:block;width:100%;height:auto;aspect-ratio:870/620;margin:0 auto;cursor:grab;touch-action:none}
.bm-svg.panning{cursor:grabbing}.bm-province{fill:#e3edfd;stroke:#8fb0e8;stroke-width:.9;vector-effect:non-scaling-stroke}.bm-province.chosen{stroke:#00286e;stroke-width:1.5}.bm-city{cursor:pointer;outline:none}.bm-hit{fill:transparent}.bm-halo{fill:#dbe1ea;opacity:.75}.bm-dot{fill:#93a0b5;stroke:#fff;stroke-width:2}.bm-city.lit .bm-halo{fill:#a8c4f0;opacity:.24}.bm-city.lit .bm-dot{fill:#00286e}.bm-city.selected .bm-halo{fill:#e3a965;opacity:.3}.bm-city.selected .bm-dot{fill:#c88642}.bm-city text{font-size:11px;fill:#65728a;paint-order:stroke;stroke:#f7f9fc;stroke-width:3px;stroke-linejoin:round;font-family:'Microsoft YaHei',sans-serif;pointer-events:none}.bm-city.selected text{fill:#ad6b29;font-weight:bold}.bm-city:hover .bm-dot,.bm-city:focus .bm-dot{stroke:#00286e;stroke-width:3}.bm-map-caption{position:absolute;bottom:17px;left:23px;font-size:13px;color:#65728a;pointer-events:none}.bm-map-caption small{display:block;font-size:10px;color:#93a0b5;margin-top:4px}.bm-map-legend{padding:14px 22px;display:flex;flex-wrap:wrap;gap:17px;align-items:center;font-size:11px;color:#65728a}.bm-map-legend span{display:flex;gap:5px;align-items:center}.bm-map-legend i{display:block;width:6px;height:6px;border-radius:50%;background:#93a0b5}.bm-map-legend i.lit{background:#00286e}.bm-map-legend i.selected{background:#c88642}.bm-map-legend small{margin-left:auto;font-size:10px;color:#93a0b5}.bm-city-panel{padding:25px 23px;display:flex;flex-direction:column}.bm-city-kicker{display:flex;justify-content:space-between;font-size:11px;color:#4e5c70}.bm-city-kicker span{padding:1px 8px;background:#eef4ff;color:#00286e;border-radius:4px}.bm-city-panel>h3{font-size:32px;letter-spacing:.04em;font-weight:500;margin:11px 0 3px}.bm-city-intro{font-size:12px;color:#7a8698;margin:0 0 22px}.bm-progress{height:4px;background:#eef4ff;border-radius:5px;overflow:hidden}.bm-progress>div{background:#00286e;height:100%}.bm-progress-label{display:flex;justify-content:space-between;font-size:10px;color:#7a8698;margin:7px 0 15px}.bm-progress-label strong{color:#00286e;font-size:12px}.bm-type-list>button{width:100%;display:flex;align-items:center;text-align:left;gap:12px;padding:15px 0;border-bottom:1px solid #f7f9fc;background:none;color:var(--bm-ink);border-radius:0}.bm-type-icon{display:grid;place-items:center;width:34px;height:34px;background:#f7f9fc;border-radius:8px;font-size:20px;color:#65728a}.bm-type-list strong{display:block;font-size:13px;font-weight:500}.bm-type-list small{display:block;font-size:10px;color:#7a8698}.bm-type-count{margin-left:auto;font-family:Arial,sans-serif;font-size:24px;text-align:right}.bm-type-count small{font-size:9px;font-family:'Microsoft YaHei',sans-serif}.bm-city-actions{margin-top:22px;display:grid;gap:9px}.bm-primary{background:#00286e!important;color:#fff!important}.bm-city-actions button{width:100%;padding:11px}.bm-city-actions b{margin-left:10px;font-weight:500}.bm-note{font-size:11px;color:#7a8698;line-height:1.8;margin:16px 23px}.bm-city-panel>.bm-note{margin:13px 0 0;font-size:10px}.bm-workspace{margin-bottom:20px}.bm-soft{font-size:12px;font-weight:400;color:#7a8698}.bm-segment{display:flex;gap:2px;background:#f7f9fc;border-radius:7px;padding:3px}.bm-segment button{background:none;color:#65728a;padding:6px 11px;font-size:12px;white-space:nowrap}.bm-segment button.on{background:white;color:#00286e;box-shadow:0 1px 4px #23442e0d}.bm-filterline{display:flex;gap:8px;padding:0 23px 16px;flex-wrap:wrap}.bm-filterline button{background:transparent;border:1px solid #f7f9fc;color:#65728a;border-radius:5px;padding:5px 12px;font-size:11px}.bm-filterline button.on{background:#eef4ff;color:#00286e;border-color:#d7e4f8}.bm-table{min-width:620px}.bm-table th{font-size:11px;background:#f7f9fc;color:#4e5c70;font-weight:400;padding:11px 23px;border:0}.bm-table td{padding:15px 23px;font-size:12px;color:#4e5c70;border-color:#f7f9fc}.bm-table td strong{font-weight:500;color:#00286e}.bm-table small{display:block;color:#93a0b5;font-size:10px;margin-top:4px}.bm-table .selected{background:#eef4ff}.bm-chip{display:inline-flex;border-radius:4px;background:#f7f9fc;color:#4e5c70;padding:2px 7px;font-size:10px}.bm-chip.green{background:#eef4ff;color:#00286e}.bm-row-actions{display:flex;gap:5px;flex-wrap:wrap}.bm-row-actions button,.bm-table td>button{background:transparent;color:#00286e;padding:3px 5px;font-size:11px}.bm-number{font-family:Arial,sans-serif;font-variant-numeric:tabular-nums}.bm-empty{text-align:center;padding:35px!important;color:#7a8698}.bm-module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 23px}.bm-module{display:flex;flex-direction:column;text-align:left;background:#f7f9fc;color:#00286e;border:1px solid #eef4ff;padding:15px!important;border-radius:8px}.bm-module-no{font-size:10px;letter-spacing:.1em;color:#4e5c70;margin-bottom:12px}.bm-module strong{font-size:13px;font-weight:500}.bm-module strong span{float:right;margin-left:12px;color:#4e5c70}.bm-module small{font-size:10px;color:#4e5c70;margin-top:7px;font-weight:400;line-height:1.7}.bm-denominator{color:#4e5c70}.bm-footer{display:flex;justify-content:space-between;gap:15px;color:#4e5c70;font-size:10px;margin-top:16px}.bm-footer button{background:none;color:#4e5c70;font-size:10px;padding:0}.bm-context{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 17px;margin-bottom:16px;background:#eef4ff;border:1px solid #d7e4f8;border-radius:9px;color:#00286e;font-size:13px}.bm-context small{display:block;margin-top:3px;color:#7a8698}.bm-context button{background:white;color:#00286e;font-size:12px}.bm-context div:last-child{display:flex;gap:7px;flex-shrink:0}.bm-modal-content{line-height:1.8;font-size:14px;padding:0 3px}.bm-modal-content h3{margin-top:22px}.bm-modal-content p{color:#4e5c70}.bm-modal-content small{color:#4e5c70}
/* All KPI cards share identical track sizing, padding and inner alignment. */
.bm-stats{grid-auto-rows:1fr;align-items:stretch}
.bm-stats>.bm-stat{box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:148px;margin:0;padding:20px;align-self:stretch;display:grid;grid-template-rows:auto 1fr auto;gap:6px}
.bm-stats>.bm-stat>strong{align-self:center;min-width:0;overflow-wrap:anywhere;margin:0}
.bm-stats>.bm-stat>small{align-self:end;overflow-wrap:anywhere}
@media(max-width:760px){.bm-stats>.bm-stat{padding:14px;min-height:140px}}
@media(min-width:1500px){.bm-svg{max-width:1080px}}
@media(max-width:1050px){.bm-main{grid-template-columns:minmax(0,1fr) 285px;gap:14px}.bm-stat{padding:15px}.bm-stat>strong{font-size:26px}.bm-data-tag{margin-left:0}.bm-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.bm-main{grid-template-columns:1fr}.bm-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bm-heading h2{font-size:25px}.bm-heading{margin:4px 0 17px}.bm-heading h2 span{font-size:11px}.bm-filterbar{gap:9px}.bm-filterbar label{flex:1 1 43%;justify-content:space-between}.bm-filterbar select{width:calc(100% - 46px);max-width:none}.bm-filterbar .bm-data-tag{margin-left:auto}.bm-stat{padding:14px}.bm-stat small{font-size:10px}.bm-stat>strong{font-size:25px}.bm-stat em{font-size:10px;margin-left:5px}.bm-map-caption{font-size:10px;left:10px;bottom:8px}.bm-map-caption small{font-size:8px}.bm-section-title{padding:16px;flex-wrap:wrap}.bm-map-legend{gap:11px;padding:12px 15px}.bm-map-legend small{width:100%;margin:0}.bm-city-panel{padding:19px}.bm-city-panel>h3{font-size:27px}.bm-type-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bm-type-list>button{flex-wrap:wrap;gap:7px}.bm-type-icon{display:none}.bm-type-count{width:100%;text-align:left}.bm-city-actions{grid-template-columns:1fr 1fr;margin-top:13px}.bm-city-actions button{font-size:11px}.bm-city-intro{margin-bottom:14px}.bm-workspace .bm-section-title{align-items:flex-start;flex-direction:column}.bm-workspace .bm-segment{width:100%}.bm-workspace .bm-segment button{flex:1}.bm-filterline{padding:0 16px 14px;gap:5px}.bm-filterline button{padding:5px 8px}.bm-module-grid{padding:0 16px;gap:9px}.bm-table td,.bm-table th{padding-left:16px;padding-right:16px}.bm-footer{flex-direction:column}.bm-footer button{text-align:left}.bm-context{align-items:flex-start;flex-direction:column}}

/* WorkBuddy 深度交互补强（2026-09-12）：统计格可点击 */
.bm-stat[data-action]{cursor:pointer;transition:border-color .15s,transform .15s}
.bm-stat[data-action]:hover{border-color:#00286e;transform:translateY(-2px)}
/* 威海枢纽发射线（2026-09-12 用户拍板）：轨道弧线+循环光点；待开发虚线、已合作实线、hover 品牌红、线可点击 */
.bm-route{fill:none;stroke:#8fb0e8;stroke-width:1;opacity:.55;stroke-dasharray:4 3;cursor:pointer;pointer-events:stroke}
.bm-route.lit{stroke:#00286e;stroke-width:1.3;opacity:.65;stroke-dasharray:none}
.bm-route:hover{stroke:#e60028;opacity:1;stroke-width:1.8;stroke-dasharray:none}
/* 发射流光层：纯 CSS dashoffset 动画（替代 SMIL animateMotion，解决多线并发掉帧）；
   pathLength=100 归一化，10% 亮段从威海流向目标城市，负 delay 打开即处于流动中 */
.bm-flow{fill:none;stroke:#8fb0e8;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:10 90;pointer-events:none;animation:bm-dash 2s linear infinite}
.bm-flow.lit{stroke:#e60028;stroke-width:2.6}
@keyframes bm-dash{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
.bm-hub-halo{fill:#e60028;opacity:.15}
.bm-hub-dot{fill:#e60028;stroke:#fff;stroke-width:2}
.bm-hub text{font-size:12px;font-weight:700;fill:#e60028;paint-order:stroke;stroke:#f7f9fc;stroke-width:3px;pointer-events:none}
.bm-map-legend i.hub{display:inline-block;width:9px;height:9px;border-radius:50%;background:#e60028;vertical-align:middle}
.bm-map-legend i.route{display:inline-block;width:16px;height:2px;background:#00286e;vertical-align:middle}
/* 南海诸岛附图虚线框 + 标签（2026-09-13） */
.bm-jd-box{fill:#f7f9fc;stroke:#8fb0e8;stroke-width:.8;stroke-dasharray:3 2}
.bm-jd-label{font-size:9px;fill:#65728a;text-anchor:middle;font-family:'Microsoft YaHei',sans-serif}
/* 统计卡统一高度细节：em 单位不换行，四格视觉等高 */
.bm-stat>strong em{white-space:nowrap}
