#kwm-app{--kwm-green:#247a56;--kwm-dark:#174a39;--kwm-pale:#eef6ef;--kwm-line:#d6e2db;--kwm-grey:#e7ece9;--kwm-text:#203c32;padding-bottom:72px;color:var(--kwm-text)}
.kwm-preview-notice{background:#f4f0df;color:#5b5133;border-left:4px solid #aa944c;padding:12px 18px!important;margin-top:28px;font-size:14px}
#kwm-app button,#kwm-app select{font-family:inherit;font-size:14px;line-height:1.5}
#kwm-app button{cursor:pointer}
#kwm-app button:focus-visible,#kwm-app select:focus-visible{outline:3px solid #185ab5;outline-offset:3px}
.kwm-panel{border:1px solid var(--kwm-line);background:#fff;border-radius:20px;padding:30px;margin-bottom:42px}
.kwm-panel-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.kwm-panel-header h2{font-size:28px;line-height:1.4;margin:4px 0 8px!important;font-weight:700}
.kwm-panel-header p{margin:0;color:#51665c;font-size:14px;line-height:1.8}
.kwm-kicker{font-size:11px!important;letter-spacing:.16em;color:var(--kwm-green)!important;font-weight:700}
.kwm-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:0 0 26px;gap:0;border:1px solid var(--kwm-line);border-radius:12px;background:var(--kwm-pale)}
.kwm-stats>div{padding:18px 20px;border-right:1px solid var(--kwm-line)}
.kwm-stats>div:last-child{border-right:0}
.kwm-stats dt{font-size:12px;font-weight:400;color:#4e6658;margin:0 0 5px}
.kwm-stats dd{margin:0;font-size:28px;font-weight:700;line-height:1.3;color:var(--kwm-dark)}
.kwm-stats dd small{font-size:13px;font-weight:400;margin-left:5px}
.kwm-explorer{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(255px,1fr);gap:28px;align-items:start}
.kwm-map-pane{position:relative;background:#f7faf8;border-radius:14px;border:1px solid #e5eee8;padding:12px}
.kwm-map-stage{height:auto;max-height:660px;overflow:auto;overscroll-behavior:contain}
.kwm-map-stage svg{display:block;width:100%;max-width:none;height:auto;min-width:280px}
.kwm-map-stage path{fill:var(--kwm-grey);stroke:#fbfdfb;stroke-width:1.6;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .12s}
.kwm-map-stage path.has-records{fill:#398a62}
.kwm-map-stage path:hover{fill:#8ba997}
.kwm-map-stage path.has-records:hover{fill:#205c42}
.kwm-map-stage path[aria-pressed=true]{fill:#133f33;stroke:#d69e25;stroke-width:3}
.kwm-map-stage path:focus-visible{outline:none;stroke:#185ab5;stroke-width:4}
.kwm-map-stage text{fill:#496055;font-size:40px;font-weight:600;pointer-events:none;text-anchor:middle;paint-order:stroke;stroke:#f7faf8;stroke-width:2}
.kwm-map-stage text.has-records{fill:#fff;stroke:#398a62}
.kwm-zoom-controls{display:flex;justify-content:flex-end;align-items:center;gap:7px;margin-bottom:4px}
.kwm-zoom-controls button{background:white;border:1px solid #c8d5ce;border-radius:6px;min-width:40px;min-height:40px;padding:6px 10px;color:var(--kwm-dark)}
.kwm-zoom-controls span{font-size:12px;min-width:40px;text-align:center}
.kwm-map-caption{font-size:11px;color:#60756a;padding:8px 5px 0;margin:0;line-height:1.8}
.kwm-map-caption a{color:inherit;text-decoration:underline}
.kwm-legend{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;font-size:12px;line-height:1.6;margin:6px 0 16px}
.kwm-legend span{display:flex;align-items:center;gap:7px}
.kwm-swatch{display:inline-block;width:13px;height:13px;border-radius:3px;background:#398a62}
.kwm-swatch.grey{background:var(--kwm-grey);border:1px solid #b7c7be}
.kwm-swatch.selected{background:#133f33;border:2px solid #d69e25}
.kwm-control-pane label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}
#kwm-prefecture-select{width:100%;min-height:46px;background:white;color:var(--kwm-dark);border:1px solid #b9cfc1;border-radius:8px;padding:8px 12px}
.kwm-filter-buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.kwm-filter-button{padding:8px 12px;min-height:40px;background:white;border:1px solid #c6d7cb;border-radius:7px;color:var(--kwm-dark)}
.kwm-filter-button[aria-pressed=true]{background:var(--kwm-dark);color:white;border-color:var(--kwm-dark)}
#kwm-selection{padding:12px 14px;border-radius:8px;background:var(--kwm-pale);font-size:14px;font-weight:700;margin:16px 0}
.kwm-prefecture-list{margin-top:18px}
.kwm-prefecture-list summary{cursor:pointer;font-size:13px;font-weight:700;line-height:1.6;padding:6px 0;margin-bottom:10px}
.kwm-prefecture-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-height:343px;overflow:auto;padding:4px}
.kwm-prefecture-button{padding:6px 5px;background:#fff;color:#4f6258;border:1px solid #d7e1da;border-radius:7px;min-height:49px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px!important;white-space:nowrap}
.kwm-prefecture-button.has-records{border-color:#8dbca1;color:#195d40;background:#f3faf4}
.kwm-prefecture-button.has-records .kwm-prefecture-name:before{content:'●';font-size:8px;color:var(--kwm-green);margin-right:3px}
.kwm-prefecture-count{font-size:10px;font-weight:400;color:inherit}
.kwm-prefecture-button[aria-pressed=true]{background:var(--kwm-dark);color:white;border:2px solid #d69e25}
.kwm-prefecture-button[aria-pressed=true] .kwm-prefecture-name:before{color:#9bd2ad}
.kwm-scope{padding-top:20px;margin:22px 0 0;border-top:1px solid #e2eae5;font-size:12px;line-height:1.85;color:#5d7066}
.kwm-results-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:22px}
.kwm-results-heading h2{font-size:24px;margin:5px 0 0}
#kwm-result-count{font-size:13px;font-weight:600;color:var(--kwm-green);margin:0}
#kwm-empty{padding:36px 24px;background:#f4f7f4;border:1px dashed #b9cabb;line-height:1.9;border-radius:12px}
#kwm-app [hidden]{display:none!important}
#kwm-app .water-grid{margin-top:0}
#kwm-app .water-card{min-width:0}
#kwm-app .water-card h2{overflow-wrap:anywhere}
#kwm-app .water-specs dd{overflow-wrap:anywhere}
.kwm-noscript{padding:10px;background:#fff4d9;font-size:13px}
@media(max-width:900px){.kwm-panel{padding:22px}.kwm-explorer{gap:18px;grid-template-columns:minmax(0,1.2fr) minmax(230px,1fr)}.kwm-map-stage{height:auto;max-height:660px}.kwm-stats>div{padding:15px}.kwm-prefecture-buttons{grid-template-columns:repeat(3,1fr);max-height:260px}}
@media(max-width:700px){.kwm-panel{padding:18px 14px;border-radius:14px}.kwm-panel-header h2{font-size:23px}.kwm-explorer{grid-template-columns:1fr;gap:20px}.kwm-map-stage{height:auto;max-height:430px}.kwm-map-pane{padding:8px}.kwm-stats{grid-template-columns:repeat(2,1fr);gap:0}.kwm-stats>div{padding:12px 14px}.kwm-stats>div:nth-child(2){border-right:0}.kwm-stats>div:nth-child(-n+2){border-bottom:1px solid var(--kwm-line)}.kwm-stats dd{font-size:25px}.kwm-prefecture-buttons{grid-template-columns:repeat(4,1fr);max-height:270px}.kwm-prefecture-button{min-height:52px}.kwm-results-heading{align-items:start;flex-direction:column;gap:10px}.kwm-legend{gap:10px;font-size:11px}.kwm-scope{font-size:11px}#kwm-app{padding-bottom:36px}}
@media(prefers-reduced-motion:reduce){.kwm-map-stage path{transition:none}}
