:root{font-family:Inter,"Noto Sans TC","Microsoft JhengHei",system-ui,-apple-system,sans-serif;color:#365354;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#c5eef1}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #6bb7cf;outline-offset:2px}.app-shell{width:100vw;height:100dvh;min-height:620px;display:flex;overflow:hidden;position:relative}.map-stage{flex:1;min-width:0;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 55% 32%,#e0faf5 0%,transparent 42%),linear-gradient(132deg,#b0edee 0%,#c5f4f2 40%,#a8e1eb 100%)}.map-stage:before{content:"";position:absolute;inset:0;opacity:.34;pointer-events:none;background-image:radial-gradient(ellipse at center,#fff 0 1px,transparent 2px);background-size:48px 48px}.sea-gleam{position:absolute;width:85%;height:60%;border-radius:50%;background:radial-gradient(ellipse,#fff9 0%,#fff0 68%);pointer-events:none}.sea-gleam-a{left:-42%;bottom:-25%;transform:rotate(20deg)}.sea-gleam-b{right:-42%;top:-24%}.glass{background:#fffdf2eb;border:1px solid #e5d6bd;box-shadow:0 8px 25px #397b8630,0 2px 0 #d5bea390;backdrop-filter:blur(12px)}.header{position:absolute;z-index:12;display:flex;align-items:center;gap:13px;top:24px;left:26px;border-radius:24px;padding:11px 23px 11px 12px;max-width:min(480px,50%)}.brand-symbol{background:linear-gradient(145deg,#aee477,#50ad9b);border-radius:17px;width:56px;height:56px;flex:none;display:grid;place-items:center;box-shadow:inset 0 2px 0 #fff9,0 3px 10px #75aa945c}.brand-symbol svg{width:37px}.header h1{font-size:clamp(15px,1.4vw,21px);margin:0 0 4px;color:#78543a;font-weight:850;white-space:nowrap}.header h1 span{color:#e1ba83}.header p{font-size:12px;color:#8d8e83;margin:0;white-space:nowrap}.search-wrap{z-index:14;position:absolute;top:31px;right:26px;display:flex;align-items:center;gap:10px;border-radius:40px;width:min(330px,34%);height:50px;padding:0 16px}.search-wrap svg{width:21px;height:21px;flex:none;color:#6c99aa}.search-wrap input{background:transparent;border:0;outline:0;min-width:0;flex:1;font-size:13px;color:#4e6e76}.search-wrap input::placeholder{color:#93a7aa}.search-clear{border:0;background:transparent;font-size:24px;color:#8ca5a4}.search-results{position:absolute;top:calc(100% + 9px);left:0;right:0;border:1px solid #e2d9c6;background:#fffef6;border-radius:16px;box-shadow:0 15px 35px #3c777a40;max-height:350px;overflow:auto;padding:8px}.search-results button{border:0;background:transparent;width:100%;text-align:left;padding:10px 12px;display:flex;align-items:center;gap:10px;border-radius:9px;color:#4d6b65}.search-results button:hover{background:#ebf6e9}.search-results small{display:block;font-size:11px;color:#96a3a0;margin-top:2px}.map-viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;cursor:grab}.map-viewport.dragging{cursor:grabbing}.geo-map{height:100%;width:100%;display:block;user-select:none;overflow:visible;filter:drop-shadow(0 13px 8px #3c9ca126)}.county-shadow{fill:#508f86;opacity:.13}.county-cliff{fill:#d5d9a3;stroke:#e6eed0;stroke-width:2;stroke-linejoin:round}.county-area{fill:url(#countyGreen);stroke:#f8ffdc;stroke-width:3.1;stroke-linejoin:round;cursor:pointer;transition:fill .2s,filter .2s,stroke-width .2s}.county-area:hover{fill:#e7f7a5;filter:brightness(1.025);stroke:#fffdf3;stroke-width:4.5}.county-area.selected{fill:url(#countySelected);stroke:#fff9d8;stroke-width:6;filter:drop-shadow(0 1px 8px #fff4a4)}.county-label{cursor:pointer;filter:url(#markerShadow)}.county-label>rect{fill:#fffef5;stroke:#e1d8c1;stroke-width:1.5}.county-label text{font-size:16px;font-weight:850;fill:#476053}.county-label .label-dot{fill:#69b781}.county-label.selected>rect{stroke:#f5b956;stroke-width:3;fill:#fff9e7}.county-label.selected text{fill:#9b6727}.county-label.selected .label-dot{fill:#f7a449}.county-label:hover>rect{fill:#fffbe2}.map-message{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10;border-radius:18px;background:#fffc;box-shadow:0 10px 40px #4a8e9944;padding:17px 20px;font-weight:750;text-align:center;max-width:340px;font-size:14px;line-height:1.7}.map-message:empty{display:none}.map-message.error{color:#80544d}.spinner{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid #b0d6c4;border-top-color:#308e83;vertical-align:-2px;animation:spin .8s linear infinite;margin-right:6px}@keyframes spin{to{transform:rotate(360deg)}}.cloud{position:absolute;background:#fffdf8;filter:blur(.5px) drop-shadow(0 8px 6px #7fb9c827);opacity:.72;border-radius:100px;pointer-events:none;z-index:1}.cloud:before,.cloud:after{content:"";position:absolute;border-radius:50%;background:inherit}.cloud:before{width:55%;height:145%;left:19%;bottom:5%}.cloud:after{width:38%;height:125%;right:10%;bottom:2%}.cloud-one{width:140px;height:30px;top:19%;left:5%;transform:rotate(-8deg)}.cloud-two{width:160px;height:34px;bottom:22%;right:4%;transform:scale(.75)}.cloud-three{width:90px;height:20px;top:25%;right:38%;opacity:.42}.waves{position:absolute;pointer-events:none;width:140px;height:55px;opacity:.46;background:repeating-radial-gradient(ellipse at center,transparent 0 13px,#fff 14px 15px,transparent 16px 27px);clip-path:ellipse(47% 43% at center)}.waves-left{left:10%;top:50%}.waves-right{right:8%;bottom:11%;transform:rotate(13deg)}.map-controls{position:absolute;right:23px;bottom:103px;z-index:8;border-radius:18px;display:flex;flex-direction:column;overflow:hidden}.map-controls button{width:44px;height:43px;background:#fff6;border:0;border-bottom:1px solid #e7decf;color:#447a8a;font-size:25px;font-weight:350}.map-controls button:last-child{border:0;font-size:26px}.map-controls button:hover{background:#e9fbf2}.view-hint{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);z-index:7;padding:12px 18px;border-radius:30px;font-size:12px;color:#5e8b8f;white-space:nowrap}.map-legend{position:absolute;bottom:23px;left:24px;z-index:7;display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:20px}.legend-palm{font-size:27px}.map-legend strong{display:block;color:#856140;font-size:15px}.map-legend small{display:block;color:#999a8a;font-size:11px;margin-top:4px}.map-legend button{border:none;background:transparent;font-size:26px;color:#9a9a86;padding:0 5px}.demo-ribbon{position:absolute;left:25px;top:115px;font-size:11px;font-weight:750;color:#487c78;background:#eaf9ecd9;border-radius:30px;padding:6px 12px;z-index:7;border:1px solid #fff9}
.info-panel{width:clamp(370px,34vw,495px);height:100%;flex:none;background:#f9f8f0;z-index:16;display:flex;flex-direction:column;border-left:1px solid #f4efe2;box-shadow:-12px 0 32px #6eafb224;transition:transform .35s ease,width .35s ease}.info-panel.collapsed{transform:translateX(110%);width:0;border:0}.panel-head{flex:none;padding:28px 26px 22px;background:linear-gradient(165deg,#fffaed 0%,#f7f1e3 95%);border-bottom:1px solid #eaddcb}.overline{letter-spacing:.16em;font-size:10px;font-weight:800;color:#9f9f8e}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.panel-heading h2{display:inline-block;color:#83532f;font-size:clamp(27px,2.4vw,36px);letter-spacing:.06em;margin:0 10px 0 0}.panel-heading span{font-size:11px;font-weight:750;color:#8b988c;letter-spacing:.07em}.round-button{width:39px;height:39px;border-radius:50%;border:1px solid #e3ddc8;background:#fffef6;box-shadow:0 3px 0 #e9dfc4;color:#78908d;display:grid;place-items:center;font-size:24px;flex:none}.round-button:hover{background:#e8f8ee}.metric-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.metric-badge{border-radius:30px;background:#fff;border:1px solid #efddba;box-shadow:0 3px 6px #aa99711c;padding:8px 12px;font-size:12px;font-weight:750;color:#8e7545}.metric-badge.mint{color:#527e6b;background:#ebf8df;border-color:#d3e6bf}.tab-bar{display:flex;padding:14px 20px 11px;gap:7px;background:#f9f8f0;border-bottom:1px solid #eee9dc}.tab{flex:1;border:1px solid #e8e6dc;background:#fff;border-radius:12px;padding:12px 4px;font-size:12px;font-weight:750;color:#708080;white-space:nowrap;transition:.2s}.tab:hover{background:#f2f9f0}.tab.active{background:linear-gradient(145deg,#5eb9cf,#3195b5);border-color:#5db6c7;box-shadow:0 5px 10px #71b5c14a;color:#fff}.info-body{min-height:0;flex:1;overflow-y:auto;scrollbar-color:#dacfb7 transparent;scrollbar-width:thin}.panel-content{padding:18px 22px 34px;display:flex;flex-direction:column;gap:14px}.section-mini{font-size:11px;color:#9c9586;font-weight:800;letter-spacing:.05em;margin:2px 0 0}.system-card{background:#fff;border:1px solid #e9e0ce;box-shadow:0 4px 0 #e8dfcf,0 8px 18px #967a4621;border-radius:20px;padding:17px;transition:transform .2s,box-shadow .2s}.system-card:hover{transform:translateY(-2px);box-shadow:0 5px 0 #ded6c7,0 13px 18px #967a462d}.system-top{display:flex;align-items:center;gap:13px}.company-icon{width:47px;height:47px;flex:none;border-radius:15px;display:grid;place-items:center;color:white;font-size:21px;font-weight:850;box-shadow:inset 0 1px 0 #fff8,0 5px 9px #57686d2b}.system-title{min-width:0;flex:1}.system-title h3{font-size:15px;color:#3e5a5c;line-height:1.45;margin:0 0 4px;overflow-wrap:anywhere}.system-title p{color:#8c9894;font-size:11px;margin:0}.details-button,.primary-button{background:#eaf9ff;border:1px solid #b7e1ed;color:#3986a4;border-radius:10px;padding:9px 12px;font-weight:800;font-size:12px;white-space:nowrap}.details-button:hover,.primary-button:hover{background:#d7f3f7}.system-desc{font-size:12px;line-height:1.7;color:#8a928b;margin:11px 0}.system-bottom{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.tag{border-radius:99px;padding:4px 10px;font-weight:800;font-size:10px}.tag-CATV{color:#427ebd;background:#e1eefc}.tag-CM{color:#308c61;background:#ddf5dd}.tag-FTTH{color:#bc659b;background:#fbe2f1}.no-data{background:#fffcf4;border:1px dashed #dcd8c5;border-radius:20px;padding:30px 24px;text-align:center;color:#88958e;line-height:1.8}.no-data .emoji{font-size:35px}.no-data strong{display:block;font-size:16px;color:#5c746c;margin:8px 0}.no-data p{margin:0;font-size:12px}.panel-foot{flex:none;background:#fffdf6;border-top:1px solid #eae5d8;display:flex;align-items:center;gap:7px;padding:12px 18px;color:#96a09b;font-size:11px}.status-dot{width:7px;height:7px;border-radius:50%;background:#5dc4a8}.ghost-action{margin-left:auto;color:#618d91;font-size:11px;background:transparent;border:0;font-weight:800;white-space:nowrap}.panel-open{display:none;position:absolute;top:26px;right:24px;z-index:20;border:1px solid #d6dfd1;background:#fffdf2;padding:13px 18px;border-radius:15px;color:#5b817d;box-shadow:0 5px 16px #32677930;font-weight:750}.info-panel.collapsed~.panel-open{display:block}.company-hero{border-radius:21px;overflow:hidden;border:1px solid #e0ded1;background:linear-gradient(145deg,#def7f1,#fef8e5);padding:22px;position:relative;min-height:185px}.company-hero::after{content:"";position:absolute;width:190px;height:190px;right:-40px;bottom:-100px;border:28px solid #ffffff60;border-radius:50%}.company-hero .hero-icon{font-size:38px}.company-hero h3{font-size:21px;color:#46666a;margin:10px 0}.company-hero p{font-size:12px;color:#8b9b97;line-height:1.7;margin:0}.info-section{background:#fff;border:1px solid #e9e0ce;border-radius:17px;padding:18px}.info-section h4{font-size:13px;color:#4b7371;margin:0 0 11px}.info-section p{line-height:1.85;font-size:12px;color:#82918c;margin:0}.field-row{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:10px 0;border-bottom:1px dashed #ede6d9;font-size:12px}.field-row:last-child{border-bottom:0}.field-row span{color:#94a09c;flex:none}.field-row strong{color:#51716d;text-align:right;font-weight:700}.company-picker{display:flex;flex-direction:column;gap:6px}.company-picker select{background:#fff;padding:13px;border:1px solid #e7dccb;border-radius:12px;color:#537071;width:100%}.slide-thumbnail{position:relative;border-radius:17px;overflow:hidden;background:linear-gradient(140deg,#d6f3ee,#fff5db);border:1px solid #e5decb;min-height:170px;padding:25px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.slide-thumbnail strong{font-size:22px;color:#5d867d}.slide-thumbnail p{font-size:12px;color:#93a8a0}.ppt-actions{display:flex;gap:8px;margin-top:11px}.ppt-actions button{flex:1}.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.stat-box{background:#fff;border:1px solid #e9e3d8;border-radius:16px;padding:17px}.stat-box small{color:#82958e;font-size:11px;display:block}.stat-box strong{font-size:25px;color:#4b7874;display:block;margin:8px 0}.stat-box p{font-size:10px;color:#a0a5a0;margin:0}.warning-line{background:#fff9e5;border:1px solid #f0e2bd;border-radius:12px;padding:13px 15px;color:#9b8351;font-size:11px;line-height:1.8}.modal-backdrop{position:fixed;z-index:100;inset:0;background:#264d52a6;display:grid;place-items:center;padding:24px;backdrop-filter:blur(5px)}.modal-backdrop[hidden]{display:none}.modal-card{width:min(960px,96vw);max-height:92dvh;background:#fffdf5;border-radius:22px;box-shadow:0 25px 80px #143f4666;display:flex;flex-direction:column;overflow:hidden}.modal-header{padding:20px 25px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e9e4d9}.modal-header h3{margin:5px 0 0;color:#4c6e6c}.modal-content{padding:24px;overflow:auto}.slide-preview{aspect-ratio:16/9;background:linear-gradient(124deg,#e2fbf2 0%,#d5eef8 55%,#fff2d1 100%);border-radius:14px;box-shadow:inset 0 0 0 2px #fff9;display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;overflow:hidden;padding:35px;text-align:center}.slide-preview:before{content:"";position:absolute;width:300px;height:300px;border:50px solid #fff6;border-radius:50%;right:-80px;top:-100px}.slide-preview .slide-deco{font-size:52px;z-index:1}.slide-preview h3{z-index:1;font-size:clamp(20px,3vw,36px);color:#547f7a;margin:12px 0}.slide-preview p{z-index:1;color:#7e9a93;font-size:clamp(12px,1.3vw,17px);line-height:1.8}.slide-controls{display:flex;justify-content:center;align-items:center;gap:14px;margin:15px 0}.slide-controls button{border:1px solid #d2e9e4;background:white;padding:9px 16px;border-radius:10px;color:#52867c}.slide-controls span{color:#819b94;font-size:12px;min-width:64px;text-align:center}.pdf-frame{width:100%;height:min(65dvh,600px);border:none;border-radius:10px;background:#fff}.slide-footnote{color:#999f96;font-size:12px;text-align:center}.toast{position:absolute;bottom:80px;left:50%;transform:translateX(-50%) translateY(25px);border:1px solid #d4e9d8;border-radius:12px;background:#fffefa;padding:12px 18px;box-shadow:0 10px 35px #3f727044;z-index:120;color:#536f63;font-size:12px;opacity:0;pointer-events:none;transition:.25s}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:1170px){.header{max-width:50%;padding-right:14px}.header h1{font-size:16px}.header p{font-size:11px}.search-wrap{top:113px;left:26px;right:auto;width:min(340px,55%)}.demo-ribbon{top:176px}.info-panel{width:390px}.view-hint{left:58%;font-size:10px}.map-legend{padding:9px}.map-legend strong{font-size:12px}}
@media(max-width:800px){body{overflow:hidden}.app-shell{min-height:0}.map-stage{height:100%;width:100%}.info-panel{position:absolute;right:0;top:0;bottom:0;width:min(410px,92vw);box-shadow:-12px 0 35px #1e65654d}.info-panel.collapsed{transform:translateX(105%);width:min(410px,92vw)}.panel-open{display:none}.info-panel.collapsed~.panel-open{display:block}.header{top:13px;left:12px;max-width:calc(100% - 24px);padding:9px 12px 9px 8px;gap:8px}.brand-symbol{width:45px;height:45px;border-radius:13px}.header h1{font-size:14px}.header p{font-size:10px}.search-wrap{top:95px;left:12px;width:min(320px,calc(100% - 24px))}.demo-ribbon{top:151px;left:12px}.map-legend{bottom:16px;left:11px}.map-controls{right:12px;bottom:88px}.view-hint{bottom:18px;left:57%;font-size:9px;padding:8px 11px}.panel-head{padding:21px 18px}.panel-content{padding:14px}.tab-bar{padding:11px}.panel-foot{padding:11px}}
@media(max-width:480px){.view-hint{display:none}.map-legend{padding:8px 10px}.legend-palm{font-size:18px}.map-legend strong{font-size:11px}.map-legend small{font-size:9px}.map-controls{bottom:90px}.modal-backdrop{padding:10px}.modal-content{padding:12px}.panel-heading span{display:block;margin-top:2px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* SVG 原生焦點框會沿外接矩形繪製，改以地理輪廓提示鍵盤焦點。 */
.county-area:focus{outline:none}
.group-badge{border-radius:99px;padding:4px 10px;font-size:11px;font-weight:800;background:#e8edf9;color:#425881;border:1px solid #cdd7ed}
.tab-bar{gap:5px;padding-left:12px;padding-right:12px}
.competitor-line{font-size:12px;line-height:1.8;color:#657b75;margin:0 0 12px;overflow-wrap:anywhere}
.competitor-line strong,.system-desc strong{color:#4e7168}
.competitor-line small{display:block;font-size:11px;color:#9b8a67;margin-top:3px}
.wiki-credit{font-size:10px;line-height:1.7;color:#8a907e;margin:0 0 4px}
.wiki-credit a{color:#698a81}
.competitor-line .reference-competitors{color:#98763e}
.info-section a{color:#397e8c;font-size:12px;overflow-wrap:anywhere}
.map-legend{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:185px}
.legend-summary{display:flex;align-items:center;gap:12px}
.legend-summary button{margin-left:auto}
.group-filter{display:flex;flex-direction:column;gap:5px}
.group-filter label{font-family:inherit;font-size:11px;font-weight:750;letter-spacing:.04em;color:#856140}
.group-filter select{appearance:none;width:100%;max-width:220px;border:1px solid #d7d9bd;background-color:#fffdf4;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236c9987' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;border-radius:12px;padding:9px 34px 9px 12px;color:#456353;font:inherit;font-size:13px;font-weight:750;line-height:1.5;box-shadow:inset 0 1px 0 #fff9;cursor:pointer;transition:border-color .2s,background-color .2s}
.group-filter select:hover:not(:disabled){background-color:#f7fff0;border-color:#92bca0}
.group-filter select:focus-visible{outline:3px solid #6c9987;outline-offset:2px}
.group-filter select:disabled{opacity:.6;cursor:wait}
.group-filter option{font:inherit;color:#456353;background:#fffdf4}
@media(max-width:800px){.map-legend{min-width:160px}}
.label-leader{stroke:#527f75;stroke-width:1.2;stroke-dasharray:3 3;opacity:.65}
.county-area:focus-visible{stroke:#28758c;stroke-width:6;filter:none}

/* 柔和動態細節：地理資料是真實 SVG 邊界，動畫僅用於視覺裝飾。 */
@keyframes cloudDrift{0%,100%{translate:0 0}50%{translate:17px -8px}}
.cloud-one{animation:cloudDrift 9s ease-in-out infinite}.cloud-two{animation:cloudDrift 13s ease-in-out infinite reverse}.cloud-three{animation:cloudDrift 11s ease-in-out infinite}
@keyframes pinPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.4);opacity:.65}}
.county-label.selected .label-dot{transform-origin:center;transform-box:fill-box;animation:pinPulse 1.6s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.cloud,.county-label.selected .label-dot{animation:none}}

.source-credit{position:absolute;bottom:175px;left:26px;z-index:7;font-size:10px;color:#477e7e;background:#e9fff0b8;border:1px solid #e5fcef;padding:6px 10px;border-radius:12px;backdrop-filter:blur(5px)}
@media(max-width:800px){.source-credit{left:11px;bottom:160px;max-width:calc(100% - 95px);font-size:9px}}

/* 經營資訊統一標籤寬度，換行從內容起點對齊。 */
.system-card .system-desc,.system-card .competitor-line,.source-details .system-desc,.source-details .competitor-line{position:relative;padding-left:88px;margin:10px 0;font-size:12px;line-height:1.85;overflow-wrap:anywhere}
.system-card .system-desc>strong,.system-card .competitor-line>strong,.source-details .system-desc>strong,.source-details .competitor-line>strong{position:absolute;left:0;top:0;width:84px;font-weight:700;white-space:nowrap}
.source-details{margin:10px 0 14px}
.field-row{line-height:1.8}
.field-row strong{min-width:0;overflow-wrap:anywhere}
.stat-grid>.stat-box:only-child{grid-column:1/-1}
.data-note{margin:14px 22px 0;color:#77857e;font-size:11px;line-height:1.8}
.data-note summary{cursor:pointer;font-weight:700}
.data-note p{margin:6px 0 0}
.data-difference{padding:9px 11px;border-radius:9px;background:#fff2d8;color:#876a37}
.contact-source{font-size:11px;line-height:1.8;overflow-wrap:anywhere;color:#77857e}
/* Align labels and multiline values consistently across cards and company details. */
.system-card .system-desc,.system-card .competitor-line,.source-details .system-desc,.source-details .competitor-line{display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:8px;padding-left:0;line-height:1.9;color:#687f77;word-break:normal;overflow-wrap:break-word}
.system-card .system-desc>strong,.system-card .competitor-line>strong,.source-details .system-desc>strong,.source-details .competitor-line>strong{position:static;width:auto;font-weight:700;color:#52746c}
.field-row{display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:12px;align-items:start;line-height:1.85}
.field-row strong{text-align:left;font-weight:600;word-break:normal;overflow-wrap:anywhere}
.field-row span{font-weight:500;color:#7c8e87}
.system-title h3{line-height:1.6;letter-spacing:.01em}
.system-title p{line-height:1.7}
.info-section .scope-text{margin-bottom:8px;color:#58746b;font-size:13px;line-height:1.9}
.info-section .scope-meta,.info-section .contact-source{font-size:11px;line-height:1.85;color:#7b8c84}
.data-note a{color:#5b847b;overflow-wrap:anywhere}
.data-note p+p{margin-top:8px}
.map-stage{background:radial-gradient(ellipse at 56% 37%,#e8f6e9 0%,transparent 52%),linear-gradient(140deg,#bce5e2 0%,#d5eeE5 43%,#a6d7dc 100%)}
.county-area{fill:var(--county-fill,url(#countyGreen));stroke:#f7f5dc;stroke-width:2.4}
.county-cliff{fill:#bbca9c;stroke:#dae2bc;stroke-width:1.4}
.county-shadow{opacity:.1}
.county-label>rect{fill:#fffdf4;stroke:#d7d9bd;stroke-width:1.3}
.county-label text{font-size:15px;font-weight:750;fill:#456353}
.county-label:focus{outline:none}
.county-label:focus-visible>rect{stroke:#387f88;stroke-width:3}
.label-leader{stroke:#6c9987;stroke-dasharray:2 5;opacity:.42}
.label-leader.selected{stroke:#ceaa61;stroke-dasharray:none;opacity:.7}
.map-viewport{z-index:2}
.source-credit{max-width:240px;line-height:1.5}
/* Keep the complete island as context while highlighting matching counties. */
.county-area.filter-muted{fill:#dbe4d7;stroke:#f0f3e5;opacity:.68;filter:none;pointer-events:none;cursor:default}
.county-area.filter-match:not(.selected){fill:#a1d5a5;stroke:#fff8d8;opacity:1;filter:drop-shadow(0 0 4px #93bd8e50)}
.county-area.filter-match:not(.selected):hover{fill:#b5e4ac;stroke:#fffdf0}
.county-cliff.filter-muted{fill:#ccd7bf;opacity:.72}
.county-shadow.filter-muted{opacity:.045}
.county-label.filter-match:not(.selected)>rect{fill:#f7fff0;stroke:#92bca0}
/* County → district exploration, using the existing cream and green palette. */
#districtLayer{display:none}
.district-mode #districtLayer{display:block}
.district-mode #countyShapes,.district-mode #landCliffs,.district-mode #landShadows,.district-mode #countyLabels{display:none}
.district-toolbar{position:absolute;z-index:9;left:24px;top:154px;max-width:calc(100% - 48px);border-radius:16px;padding:10px 12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#456353}
.district-toolbar[hidden]{display:none}
.district-toolbar strong{font-size:14px;color:#856140}
.district-back{font:inherit;font-size:12px;font-weight:750;border:1px solid #d7d9bd;border-radius:10px;background:#fffdf4;color:#456353;padding:7px 10px}
.district-back:hover{background:#ebf6e9}
.district-toolbar select{font:inherit;font-size:12px;font-weight:700;color:#456353;background:#fffdf4;border:1px solid #d7d9bd;border-radius:10px;padding:7px;max-width:150px}
.district-status{flex-basis:100%;font-size:11px;line-height:1.5;color:#658372}
.district-area{fill:var(--district-fill);stroke:#fffdf0;stroke-width:1.6;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .2s}
.district-area:hover{fill:#e9f3c0}
.district-area.selected{fill:#f4d888;stroke:#c99944;stroke-width:2.5}
.district-area:focus-visible{outline:none;stroke:#387f88;stroke-width:3}
.district-label text{font-family:inherit;font-size:12px;font-weight:750;fill:#456353;paint-order:stroke;stroke:#fffdf0;stroke-width:3px;stroke-linejoin:round}
.district-label{cursor:pointer}
.slide-controls button:disabled{opacity:.45;cursor:default}
.demo-launch{background:#edf6e7;border-color:#d3e6bf;color:#456353;margin:0 6px 8px 0}
.slide-controls{flex-wrap:wrap;gap:10px}
.modal-card:fullscreen,.modal-card.demo-expanded{width:100vw;height:100dvh;max-height:none;border-radius:0}
.modal-card.demo-expanded{position:fixed;inset:0}
.modal-card:fullscreen #modalContent,.modal-card.demo-expanded #modalContent{flex:1;min-height:0;overflow:auto}
.modal-card:fullscreen [data-demo-slide],.modal-card.demo-expanded [data-demo-slide]{height:100%;display:flex;flex-direction:column}
.modal-card:fullscreen .slide-preview,.modal-card.demo-expanded .slide-preview{flex:1;min-height:0;aspect-ratio:auto}
.demo-label{font-size:11px;font-weight:750;color:#527e6b;z-index:1}
.slide-preview .demo-metric{font-size:clamp(26px,4vw,46px);font-weight:850;color:#456353;margin:6px 0}
.slide-preview{overflow-y:auto}
.geo-map:focus,.district-area:focus,.district-label:focus,.operator-pin:focus{outline:none}
.operator-pin{cursor:pointer;animation:operatorAppear .35s ease-out both}
.operator-pin rect{fill:#fffdf4;stroke:#92bca0;stroke-width:1}
.operator-pin:hover rect,.operator-pin:focus-visible rect{fill:#eaf7e5;stroke:#387f88;stroke-width:2}
.operator-pin:focus-visible{outline:none}
.operator-pin text{font-family:inherit;font-size:11px;font-weight:750;fill:#456353}
.operator-beacon{fill:#61a77b;animation:operatorPulse 1.8s ease-in-out infinite}
.district-selection{font-size:13px;color:#856140;font-weight:750;line-height:1.7;margin:0}
.district-data-note{font-size:11px;color:#718577;line-height:1.8;margin:0}
@keyframes operatorAppear{from{opacity:0}to{opacity:1}}
@keyframes operatorPulse{0%,100%{opacity:1}50%{opacity:.35}}
@media(max-width:1170px){.district-toolbar{top:205px}}
@media(max-width:800px){.district-toolbar{top:182px;left:12px;max-width:calc(100% - 24px);gap:8px;padding:8px 10px}.district-toolbar strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){.operator-pin,.operator-beacon{animation:none}.district-area{transition:none}}

/* ===== Cozy island theme (2026-11-04)：原創溫馨島嶼風格，只覆寫視覺，不改資料與互動。 ===== */
:root{--sea:#86d3cf;--sea-deep:#5fbcc3;--paper:#fffaf0;--paper-2:#fbf1da;--edge:#f0dfb8;--edge-shadow:#e3cc9a;--bark:#6b4a2b;--leaf:#78c27c;--leaf-deep:#56a25c;--ink:#4f5d46;font-family:Huninn,"jf open 粉圓","Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:var(--ink)}
body{background:var(--sea)}
.map-stage{background:radial-gradient(ellipse at 50% 45%,#b5ece2 0%,transparent 55%),linear-gradient(160deg,#9ee0d8 0%,var(--sea) 45%,var(--sea-deep) 100%)}
.map-stage:before{opacity:.5;background-image:radial-gradient(ellipse 14px 3px at 50% 50%,#ffffff70 0 60%,transparent 70%);background-size:84px 46px;animation:seaDrift 14s linear infinite}
@keyframes seaDrift{to{background-position:84px 0}}
.glass{background:#fffaf0f2;border:2.5px solid var(--edge);box-shadow:0 5px 0 var(--edge-shadow),0 14px 26px #2f7c802b;backdrop-filter:none}
.header{border-radius:30px}.header h1{color:var(--bark);letter-spacing:.03em}.header h1 span{color:var(--leaf)}.header p{color:#9b8a6a}
.brand-symbol{background:linear-gradient(150deg,#9edb7c,var(--leaf-deep));border-radius:22px;box-shadow:inset 0 -4px 0 #00000018,0 3px 0 #4f8f52}
.search-wrap{border-radius:30px}
/* 地形：草地 + 土崖 + 沙灘 */
.county-cliff{fill:#c9a17a;stroke:#f4e4b5;stroke-width:9;stroke-linejoin:round;paint-order:stroke}
.county-shadow{fill:#2f7f86;opacity:.16}
.county-area{stroke:#fbf6dc;stroke-width:2.6}
.county-area:hover{filter:brightness(1.06)}
.county-area.selected{fill:#f7dc85;stroke:#fffbe6;stroke-width:5}
.county-label>rect{fill:#fff8e3;stroke:#d9b98a;stroke-width:2}
.county-label text{fill:var(--bark);font-weight:700}
.county-label .label-dot{fill:var(--leaf)}
.label-leader{stroke:#8a6a45}
/* 側欄：紙張與手帳感 */
.info-panel{background:var(--paper-2) radial-gradient(circle,#efdcb44d 1.2px,transparent 1.6px) 0 0/18px 18px;border-left:3px solid var(--edge)}
.panel-head{background:#f7e6bd;border-bottom:0;position:relative;padding-bottom:28px}
.panel-head:after{content:"";position:absolute;left:0;right:0;bottom:-10px;height:12px;background:radial-gradient(circle at 10px 0,#f7e6bd 9.5px,transparent 10px) 0 0/20px 12px repeat-x}
.panel-heading h2{color:var(--bark)}
.overline{color:#a9925f}
.metric-badge{border:2px solid var(--edge);box-shadow:0 3px 0 var(--edge-shadow)}
.tab-bar{background:transparent;border-bottom:0;padding-top:20px}
.tab{border:2px solid var(--edge);background:var(--paper);border-radius:999px;color:#8a7650;box-shadow:0 3px 0 var(--edge-shadow)}
.tab.active{background:var(--leaf);border-color:var(--leaf);color:#fff;box-shadow:0 3px 0 var(--leaf-deep)}
.tab:active,.details-button:active,.primary-button:active,.round-button:active,.coverage-item:active,.district-back:active{transform:translateY(2px);box-shadow:none}
.system-card,.info-section,.stat-box{background:var(--paper);border:2.5px solid var(--edge);border-radius:24px;box-shadow:0 5px 0 var(--edge-shadow)}
.system-card{transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .2s}
.system-card:hover{transform:translateY(-3px);box-shadow:0 7px 0 var(--edge-shadow)}
.system-title h3{color:var(--bark)}
.company-icon{border-radius:50%;box-shadow:inset 0 -3px 0 #0000001c}
.details-button,.primary-button{background:#fff0c2;border:0;color:#7a5426;border-radius:999px;box-shadow:0 3px 0 #e2c27e;transition:transform .15s}
.details-button:hover,.primary-button:hover{background:#ffe8a3}
.round-button{border:2px solid var(--edge);box-shadow:0 3px 0 var(--edge-shadow)}
.group-badge{background:#e3f3dc;color:#457a4a;border:0}
.panel-foot{background:var(--paper);border-top:2.5px solid var(--edge)}
.map-controls button{background:transparent;color:var(--bark)}
.source-credit{background:#fffaf0d9;border:2px solid var(--edge);color:#7a6a4a}
.district-toolbar strong{color:var(--bark)}
.district-back,.district-toolbar select{border:2px solid var(--edge);border-radius:999px;box-shadow:0 2px 0 var(--edge-shadow)}

/* ===== 行政區經營區上色 ===== */
.district-ground{fill:#c9a17a;stroke:#f4e4b5;stroke-width:9px;vector-effect:non-scaling-stroke;stroke-linejoin:round;paint-order:stroke}
.district-area{stroke:#fffaf0;stroke-width:1.8;transition:filter .2s,opacity .2s}
.district-area:hover{fill:var(--district-fill);filter:brightness(1.07)}
.district-area.coverage-muted{filter:saturate(.2) brightness(1.15);opacity:.55}
.district-area.coverage-hit{stroke:#fff;stroke-width:2.6}
.district-area.selected{fill:var(--district-fill);stroke:var(--bark);stroke-width:3.4;filter:drop-shadow(0 0 5px #fff8)}
.district-label text{fill:#4a3a26;stroke:#fffaf0;stroke-width:3.5px}
.operator-pin rect{fill:#fffaf0;stroke:#d9b98a;stroke-width:1.5}
.operator-beacon{stroke:#fff;stroke-width:1.5}
.coverage-legend{position:absolute;z-index:9;right:24px;top:100px;width:236px;max-height:calc(100% - 300px);overflow:auto;border-radius:24px;padding:13px 12px 11px;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin}
.coverage-legend[hidden]{display:none}
.coverage-head strong{display:block;color:var(--bark);font-size:14px}
.coverage-head small{display:block;color:#9b8a6a;font-size:10.5px;margin-top:2px;line-height:1.5}
.coverage-items{display:flex;flex-direction:column;gap:5px}
.coverage-item{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;border:2px solid transparent;background:transparent;border-radius:14px;padding:6px 8px;text-align:left;color:var(--ink);font-size:12.5px;transition:background .15s,border-color .15s}
.coverage-item:hover,.coverage-item.active{background:#fff2c6;border-color:#f0d58e}
.coverage-item[aria-pressed="true"]{border-color:var(--bark)}
.coverage-swatch{width:18px;height:18px;border-radius:50%;border:2.5px solid #fff;box-shadow:0 1px 0 #0002}
.coverage-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.coverage-item small{color:#9b8a6a;font-size:11px}
.coverage-key{display:flex;gap:12px;font-size:10.5px;color:#8a7a5a;padding:2px 4px}
.coverage-key i{display:inline-block;width:14px;height:10px;border-radius:3px;margin-right:4px;vertical-align:-1px}
.key-stripe{background:repeating-linear-gradient(45deg,#f6b26b 0 3px,#7cc4e8 3px 6px)}
.key-unknown{background:repeating-linear-gradient(45deg,#e4e9d3 0 3px,#cfd9bb 3px 5px)}
.coverage-unknown{margin:0;font-size:10.5px;line-height:1.6;color:#8a7a5a;padding:0 4px}
.system-card.has-coverage{box-shadow:inset 7px 0 0 var(--coverage),0 5px 0 var(--edge-shadow);padding-left:22px}
.system-card.coverage-linked{border-color:var(--coverage);transform:translateY(-3px)}
@media(max-width:1170px){.coverage-legend{top:24px}}
@media(max-width:800px){.coverage-legend{left:12px;right:12px;width:auto;top:auto;bottom:138px;max-height:none;overflow:visible;padding:6px;border-radius:18px}.coverage-head,.coverage-key,.coverage-full,.coverage-unknown{display:none}.coverage-items{flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:2px;scrollbar-width:none}.coverage-item{flex:none;grid-template-columns:14px auto auto;padding:4px 8px}.coverage-swatch{width:14px;height:14px}.coverage-unknown{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.district-mode .source-credit{bottom:200px}.district-mode .map-controls{bottom:200px}}
@media(prefers-reduced-motion:reduce){.map-stage:before{animation:none}.system-card,.district-area{transition:none}}
.coverage-full{margin:0;font-size:10.5px;line-height:1.6;color:#8a7a5a;padding:0 4px}
/* PM 責任區圖層（2026-11-04）：資料只從本機檔案讀入 */
.layer-switch{display:flex;gap:4px;background:#f3efd9;border-radius:14px;padding:3px}
.layer-switch[hidden]{display:none}
.layer-switch button{flex:1;border:0;background:transparent;border-radius:11px;padding:6px 10px;font-size:12px;font-weight:750;color:#8a7a5a}
.layer-switch button[aria-pressed="true"]{background:#fffdf4;color:var(--bark,#6b4f32);box-shadow:0 2px 0 #0000001a}
.pm-layer .county-area{fill:#e3e8d6}
.pm-layer .county-area.pm-owned,.pm-layer .county-area.pm-owned.selected{fill:var(--pm-fill)}
.pm-layer .county-area.selected{stroke:#fffbe6;stroke-width:5}
.pm-layer .county-area.pm-dim{opacity:.35}
.pm-layer .county-label.pm-owned>rect{stroke:var(--pm);stroke-width:3}
.pm-layer .county-label.pm-owned .label-dot{fill:var(--pm)}
.pm-panel[hidden],.district-mode .pm-panel{display:none}
.pm-panel{max-height:calc(100% - 200px)}
.pm-card{border:2px solid transparent;border-radius:18px;padding:9px 9px 8px;background:#fffdf4;box-shadow:inset 5px 0 0 var(--pm);cursor:pointer;transition:border-color .15s}
.pm-card:hover,.pm-card.active{border-color:var(--pm)}
.pm-title{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;padding-left:4px}
.pm-title strong{font-size:14px;color:var(--ink,#365354)}
.pm-title small,.pm-total small{color:#9b8a6a;font-size:11px}
.pm-total{display:flex;align-items:baseline;gap:6px;margin:6px 0 4px 4px}
.pm-total b{font-size:20px;color:var(--bark,#6b4f32)}
.pm-systems{display:flex;flex-direction:column;gap:3px}
.pm-system{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;border:0;background:transparent;border-radius:10px;padding:5px 6px 5px 8px;text-align:left;font-size:12.5px;color:var(--ink,#365354)}
.pm-system:hover{background:#fff2c6}
.pm-system span{font-weight:700}
.pm-system small{color:#9b8a6a;font-size:11px}
.pm-system em{font-style:normal;font-size:11.5px;color:#6b8a7a;min-width:58px;text-align:right}
.pm-clear{align-self:flex-start;border:0;background:transparent;color:#a0805a;font-size:11px;text-decoration:underline;padding:2px 4px}
.pm-badge{border-radius:99px;padding:4px 10px;font-size:11px;font-weight:800;background:var(--pm);color:#fff;text-shadow:0 1px 0 #0003}
.key-pm-none{background:#e9ecda;border:1px solid #d5dbc2}
@media(max-width:800px){.pm-panel{left:12px;right:12px;width:auto;top:auto;bottom:150px;max-height:38%}}
.map-stage .source-credit{bottom:218px}
.map-stage.district-mode .source-credit{bottom:243px}
@media(max-width:800px){.map-stage .source-credit,.map-stage.district-mode .source-credit{bottom:200px}.pm-panel{top:190px;bottom:auto;max-height:calc(100% - 430px)}}
.layer-switch button{white-space:nowrap}
@media(max-width:800px){.pm-panel .pm-systems,.pm-panel .coverage-full,.pm-panel .coverage-head small{display:none}.pm-panel{max-height:none;overflow:visible}.layer-switch button{padding:6px 8px}}
.special-badge{border-radius:99px;padding:4px 10px;font-size:11px;font-weight:800;background:#fde7c8;color:#9a5a12;border:1px dashed #e0a458}
.pm-agents{display:flex;gap:10px;margin:5px 0 0 4px;font-size:12px;color:var(--ink,#365354);font-weight:700}
.pm-agents span{display:flex;gap:5px;align-items:baseline}
.pm-agents small{color:#9b8a6a;font-size:10.5px;font-weight:600}
.pm-panel{width:236px}
@media(max-width:800px){.pm-panel{width:auto}}
.pm-system span,.pm-system small,.pm-system em,.pm-title strong,.pm-title small,.pm-total small,.pm-agents span{white-space:nowrap}
.pm-system span{overflow:hidden;text-overflow:ellipsis}
.pm-agents{flex-wrap:wrap;row-gap:2px}
.pm-panel .pm-system{gap:6px;padding:5px 4px 5px 6px}
.pm-panel .pm-system em{min-width:0}
.pm-panel .pm-card{padding:9px 7px 8px}
/* 11 位 PM：卡片預設精簡，點開才列系統台 */
.pm-panel .pm-card .pm-systems{display:none}
.pm-panel .pm-card.open .pm-systems{display:flex;margin-top:4px}
.pm-panel .pm-card{padding:7px 7px 6px}
.pm-panel .pm-total{margin:3px 0 0 4px}
.pm-panel .pm-total b{font-size:16px}
.pm-panel{gap:6px}
.pm-system{grid-template-columns:minmax(0,1fr) auto auto;row-gap:0}
.pm-system i{grid-column:1/-1;font-style:normal;font-size:10.5px;color:#9b8a6a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:800px){.pm-panel{max-height:30%;overflow:auto}.pm-panel .pm-card.open .pm-systems{display:flex}}
@media(max-width:800px){
 .pm-panel{flex-direction:row;align-items:flex-start;overflow-x:auto;overflow-y:hidden;max-height:none;padding:6px;gap:6px;scrollbar-width:none}
 .pm-panel .coverage-head,.pm-panel .coverage-full{display:none}
 .pm-panel .pm-card{flex:none;width:168px}
 .pm-panel .pm-title{grid-template-columns:14px minmax(0,1fr)}
 .pm-panel .pm-title small{grid-column:1/-1}
 .pm-panel .pm-card.open{width:240px}
 .pm-panel .pm-card.open .pm-systems{max-height:150px;overflow-y:auto}
}
@media(max-width:800px){.pm-panel .pm-total small:last-child{display:none}}
/* PM 圖層 v3：預設不上色，點選 PM 才亮起範圍；縣市畫面也用 PM 面板 */
.pm-layer .county-area,.pm-layer .county-area.selected{fill:var(--county-fill,url(#countyGreen))}
.pm-layer .county-area.selected{fill:#f7dc85}
.pm-layer.pm-focus .county-area:not(.pm-owned){fill:#e3e8d6}
.pm-layer .county-area.pm-owned,.pm-layer .county-area.pm-owned.selected{fill:var(--pm-fill)}
.pm-layer .county-area.pm-dim{opacity:.6}
.district-mode .pm-panel:not([hidden]){display:flex}
.pm-layer.district-mode .coverage-legend:not(.pm-panel){display:none}
.pm-card.open{border-color:var(--pm)}
@media(max-width:800px){.district-mode .pm-panel{top:auto;bottom:138px}}
/* 版面：右側面板關閉時按鈕不壓搜尋欄；PM 面板不蓋縮放鈕；說明不換行 */
@media(min-width:801px){.app-shell:has(.info-panel.collapsed) .search-wrap{right:200px}}
@media(min-width:801px) and (max-width:1170px){.app-shell:has(.info-panel.collapsed) .search-wrap{right:auto}}
@media(min-width:801px){.pm-panel{top:100px;max-height:calc(100% - 350px)}}
@media(min-width:801px) and (max-width:1170px){.pm-panel{top:186px;max-height:calc(100% - 480px)}}
.pm-foot{display:flex;flex-direction:column}
.pm-foot span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-panel{overflow-x:hidden}
/* PM 單人檢視 */
.pm-back{align-self:flex-start;border:2px solid #e8dcb8;background:#fffdf4;border-radius:14px;padding:6px 12px;font-size:12.5px;font-weight:800;color:var(--bark,#6b4a2b);box-shadow:0 3px 0 #e8dcb8;white-space:nowrap}
.pm-back:hover{background:#fff2c6}
.pm-back:active{transform:translateY(2px);box-shadow:none}
.pm-detail .pm-card{cursor:default}
@media(max-width:800px){.pm-panel.pm-detail{flex-direction:column}.pm-panel.pm-detail .pm-card,.pm-panel.pm-detail .pm-card.open{width:auto}}
/* PM 列表精簡版（2026-11-04）：不推地圖，列表縮小並放在台灣東側海面 */
@media(min-width:801px){
 .pm-panel{top:41%;width:196px;max-height:calc(59% - 240px);min-height:0;padding:10px 8px 8px;gap:4px}
 .pm-panel .coverage-head strong{font-size:13px}
 .pm-panel .coverage-head small{font-size:10px}
 .pm-panel:not(.pm-detail) .pm-card{padding:5px 6px;box-shadow:inset 4px 0 0 var(--pm);border-radius:12px;border-width:1.5px}
 .pm-panel:not(.pm-detail) .pm-total,.pm-panel:not(.pm-detail) .pm-foot{display:none}
 .pm-panel:not(.pm-detail) .pm-title{grid-template-columns:12px minmax(0,1fr) auto;gap:6px;padding-left:2px}
 .pm-panel:not(.pm-detail) .pm-title .coverage-swatch{width:12px;height:12px;border-width:2px}
 .pm-panel:not(.pm-detail) .pm-title strong{font-size:13px}
 .pm-panel:not(.pm-detail) .pm-title small{font-size:10.5px}
 .pm-panel.pm-detail{width:236px}
}
@media(min-width:801px) and (max-width:1170px){.pm-panel{top:41%;max-height:calc(59% - 240px)}}
/* 更窄更密的 PM 列表，讓它塞得進臺北／基隆／宜蘭標籤右側 */
@media(min-width:801px){
 .pm-panel:not(.pm-detail){width:170px;padding:8px 6px 6px;gap:3px}
 .pm-panel:not(.pm-detail) .pm-card{padding:3px 5px}
 .pm-panel:not(.pm-detail) .pm-title{gap:5px}
 .pm-panel:not(.pm-detail) .pm-title strong{font-size:12.5px}
 .pm-panel:not(.pm-detail) .pm-title small{font-size:10px;letter-spacing:-.02em}
 .pm-panel:not(.pm-detail) .coverage-head small{display:none}
}
/* 單人檢視與列表同寬（170px），系統台改兩行：名稱＋訂戶數／縣市＋代理人 */
@media(min-width:801px){
 .pm-panel.pm-detail{width:170px;padding:8px 6px 6px}
 .pm-panel.pm-detail .pm-card{padding:6px 5px 5px}
 .pm-panel.pm-detail .pm-title{grid-template-columns:12px minmax(0,1fr);gap:5px}
 .pm-panel.pm-detail .pm-title .coverage-swatch{width:12px;height:12px;border-width:2px}
 .pm-panel.pm-detail .pm-title strong{font-size:13px}
 .pm-panel.pm-detail .pm-title small{grid-column:2;font-size:10px}
 .pm-panel.pm-detail .pm-total{flex-wrap:wrap;column-gap:4px;row-gap:0;margin:2px 0 2px 2px}
 .pm-panel.pm-detail .pm-total small:first-child{flex-basis:100%;font-size:10px}
 .pm-panel.pm-detail .pm-total b{font-size:16px}
 .pm-panel.pm-detail .pm-total small:last-child{font-size:10px}
 .pm-panel.pm-detail .pm-system{grid-template-columns:minmax(0,1fr) auto;column-gap:4px;padding:4px 3px 4px 5px;font-size:12px}
 .pm-panel.pm-detail .pm-system span{grid-column:1;grid-row:1}
 .pm-panel.pm-detail .pm-system em{grid-column:2;grid-row:1;font-size:11px}
 .pm-panel.pm-detail .pm-system small{grid-column:1/-1;grid-row:2;font-size:10px;overflow:hidden;text-overflow:ellipsis}
 .pm-panel.pm-detail .pm-system i{grid-column:1/-1;grid-row:3;font-size:10px}
 .pm-panel.pm-detail .pm-foot span{font-size:9.5px}
 .pm-back{font-size:12px;padding:5px 10px}
}
/* 系統台分布圖層（2026-11-05）：圖釘＝經營區位置，顏色＝集團；奶油紙張面板 */
.layer-switch button{padding:6px 7px}
.dist-layer .county-area,.dist-layer .county-area.selected{fill:#d9ecc4}
.dist-layer .county-area:hover{fill:#e7f4d2}
#systemPins{display:none}
.dist-layer:not(.district-mode) #systemPins{display:inline}
.system-pin{cursor:pointer}
.system-pin .pin-shadow{fill:#4f6b47;opacity:.28}
.system-pin .pin-dot{fill:var(--pin);stroke:#fffdf4;stroke-width:2.4;transition:r .12s}
.system-pin .pin-core{fill:#fffdf4}
.system-pin:hover .pin-dot,.system-pin:focus-visible .pin-dot{r:8.4;stroke:#fff6c8}
.system-pin:focus{outline:none}
.system-pin.ghost{cursor:default;pointer-events:none}
.system-pin.ghost .pin-dot{fill:#fffdf4;stroke:var(--pin);stroke-width:2;opacity:.75}
.system-pin.ghost .pin-shadow{opacity:.08}
.dist-layer:not(.district-mode) .county-label{opacity:.9}
.pin-tip{position:absolute;z-index:20;pointer-events:none;display:flex;flex-direction:column;gap:2px;background:#fffdf4;border:1.5px solid #e5d6bd;border-radius:14px;padding:8px 11px;box-shadow:0 6px 18px #397b8633,0 2px 0 #d5bea3;font-size:11.5px;color:#7d6b4c;white-space:nowrap}
.pin-tip[hidden]{display:none}
.pin-tip strong{font-size:13.5px;color:var(--bark,#6b4f32)}
.pin-tip .tip-group{display:flex;align-items:center;gap:5px}
.pin-tip .tip-group i{width:10px;height:10px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #0001}
.pin-tip .tip-client{color:#3f8f63;font-weight:800}
.pin-tip .tip-other{color:#a39478}
.dist-panel[hidden],.district-mode .dist-panel{display:none}
.dist-panel{width:196px;padding:10px 9px 9px;gap:7px;overflow-x:hidden}
.dist-panel .coverage-head strong{font-size:13.5px}
.dist-toggle{display:flex;gap:3px;background:#f3efd9;border-radius:13px;padding:3px}
.dist-toggle button{flex:1;border:0;background:transparent;border-radius:10px;padding:5px 4px;font-size:12px;font-weight:800;color:#8a7a5a;white-space:nowrap}
.dist-toggle button[aria-pressed="true"]{background:#fffdf4;color:var(--bark,#6b4f32);box-shadow:0 2px 0 #0000001a}
.dist-toggle button:disabled{opacity:.45;cursor:not-allowed}
.dist-share{background:#fff7da;border:1.5px solid #f0deaa;border-radius:16px;padding:8px 10px 9px}
.dist-share small{display:block;font-size:10.5px;color:#9b8a6a;font-weight:700}
.dist-share div:not(.dist-bar){display:flex;align-items:baseline;gap:3px;margin-top:1px}
.dist-share b{font-size:26px;line-height:1.1;color:var(--bark,#6b4f32)}
.dist-share span{font-size:12px;color:#9b8a6a;font-weight:700}
.dist-share em{margin-left:auto;font-style:normal;font-size:17px;font-weight:850;color:#3f8f63}
.dist-bar{height:9px;border-radius:9px;background:#efe6c8;margin-top:6px;overflow:hidden;box-shadow:inset 0 1px 0 #0000000d}
.dist-bar i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#8fd18a,#4fb08a)}
.dist-groups{display:flex;flex-direction:column;gap:2px}
.dist-group{display:grid;grid-template-columns:14px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:6px;row-gap:3px;align-items:center;border:1.5px solid transparent;background:transparent;border-radius:11px;padding:4px 6px;text-align:left;color:var(--ink,#365354)}
.dist-group:hover{background:#fff2c6}
.dist-group.active{border-color:var(--pin);background:#fffdf4}
.dist-group .coverage-swatch{width:13px;height:13px;border-width:2px;background:var(--pin)}
.dist-name{font-size:12px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dist-group small{font-size:11px;color:#8a7a5a;font-weight:700}
.dist-mini{grid-column:2/-1;height:5px;border-radius:5px;background:#efe6c8;overflow:hidden}
.dist-mini i{display:block;height:100%;background:var(--pin);border-radius:5px}
.dist-foot{display:flex;flex-direction:column}
.dist-foot span{font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:800px){.dist-panel{left:12px;right:12px;width:auto;top:190px;bottom:auto;max-height:calc(100% - 430px);overflow:auto}.dist-panel .coverage-head small,.dist-panel .dist-foot{display:none}.dist-groups{display:grid;grid-template-columns:1fr 1fr}}
/* 集團列：一行，客戶比例以淡色底條表示 */
.dist-group{grid-template-columns:12px minmax(0,1fr) auto;grid-template-rows:auto;padding:3px 7px;border-radius:9px;background:linear-gradient(90deg,color-mix(in srgb,var(--pin) 24%,#fffdf4) var(--share),#f7f1dc var(--share))}
.dist-group:hover{background:linear-gradient(90deg,color-mix(in srgb,var(--pin) 34%,#fffdf4) var(--share),#fff2c6 var(--share))}
.dist-group .coverage-swatch{width:11px;height:11px}
.dist-groups{gap:3px}
.dist-groups:has(.dist-group.active) .dist-group:not(.active){opacity:.55}
.dist-share b{font-size:24px}
.dist-share{padding:7px 10px 8px}
/* 與 PM 列表同寬（170px），寬螢幕能停在臺北／基隆／宜蘭標籤右側 */
@media(min-width:801px){.dist-panel{width:170px;padding:9px 7px 8px;gap:6px}.dist-panel .coverage-head small{font-size:10px}.dist-share b{font-size:22px}.dist-share em{font-size:15px}.dist-name{font-size:11.5px}.dist-group small{font-size:10.5px}.dist-group{column-gap:5px;padding:3px 6px}}

/* 公司總部標記（震江總部） */
.hq-marker{cursor:pointer}
.hq-marker:focus{outline:none}
.hq-marker .hq-halo{fill:#e5533d;opacity:.22;animation:hqPulse 2.2s ease-out infinite;transform-origin:0 0}
.hq-marker .hq-dot{fill:#e5533d;stroke:#fffdf4;stroke-width:2.6}
.hq-marker .hq-pole{stroke:#b8442f;stroke-width:2;stroke-linecap:round}
.hq-marker .hq-flag rect{fill:#e5533d;stroke:#fffdf4;stroke-width:2;filter:url(#markerShadow)}
.hq-marker .hq-flag text{fill:#fffdf4;font-size:12px;font-weight:700;letter-spacing:.5px}
.hq-marker:hover .hq-flag rect,.hq-marker:focus-visible .hq-flag rect{fill:#c9412c;stroke:#fff6c8}
@keyframes hqPulse{0%{transform:scale(.6);opacity:.35}100%{transform:scale(1.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.hq-marker .hq-halo{animation:none}}

/* 客戶維運簡報（內部資料，2026-11-09） */
.deck-frame{display:block;width:100%;aspect-ratio:16/10;min-height:420px;border:0;border-radius:14px;background:#c5f4f2}
.modal-card.demo-expanded .deck-frame,.modal-card:fullscreen .deck-frame{height:calc(100vh - 140px);aspect-ratio:auto}
.deck-login{display:flex;flex-direction:column;align-items:center;gap:10px;padding:34px 12px;text-align:center}
.deck-login input{width:min(280px,100%);padding:10px 14px;border:2px solid #e5d6bd;border-radius:12px;font:inherit;background:#fffdf4}
.deck-login input:focus{outline:none;border-color:#4bafbf}
.deck-error{min-height:1.2em;margin:0;color:#b4574c;font-size:13px}
