*{box-sizing:border-box}body{margin:0;background:linear-gradient(125deg,#fffaf3,#f1e6d9 45%,#fffdf6);color:#473328;font:18px/1.55 'KaiTi','Kaiti SC','Microsoft YaHei',sans-serif}main{padding:24px;max-width:1800px;margin:auto;min-width:0}h1{margin:4px 0;font-size:34px}header p{margin:4px 0 18px}small,footer,.note{color:#745e4c}button,input,select{font:inherit;min-height:46px;border:1px solid #cdb8a3;border-radius:8px;padding:8px 12px;background:#fffdf8;color:inherit;max-width:100%}button{cursor:pointer}button:hover{background:#f4e4d1}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a56445}#search{display:flex;gap:10px;flex-wrap:wrap}#query{flex:1;min-width:min(240px,100%)}#results button{display:block;width:100%;text-align:left;margin:5px 0}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.toolbar label{display:flex;align-items:center;gap:6px;min-width:0}input[type=checkbox]{min-height:22px;width:22px}#status{min-height:28px;margin:12px 0}#map-wrap{position:relative;isolation:isolate;border:2px solid #b99775;border-radius:14px;overflow:hidden;height:650px}#map{height:100%;background:#ded9cc}.leaflet-tooltip{font:15px/1.5 sans-serif}details p,.note,footer{font-size:15px}footer a{color:inherit}
#annotations{position:absolute;inset:0;width:100%;height:100%;z-index:650;pointer-events:none;touch-action:none;user-select:none;-webkit-user-select:none;overflow:hidden}#annotations [data-object]{cursor:move;touch-action:none}#annotations [data-action^="corner-"],#annotations [data-action^="edge-"]{cursor:nwse-resize}#annotations [data-action="rotate"]{cursor:grab}#annotations:focus-visible{outline:2px solid #ffd743;outline-offset:-3px}.annotation-help{font-size:15px;max-width:1000px}#annotation-select{max-width:220px}#copy-map{background:linear-gradient(140deg,#fff2b5,#deb34f 50%,#b98528);color:#4b3517}.capturing{pointer-events:none!important}#map-export{max-width:min(96vw,1200px);max-height:94vh;padding:18px;border:1px solid #b99775;border-radius:14px;background:#fffaf3;color:#473328}#map-export::backdrop{background:#0009}#map-export-preview{display:block;max-width:100%;height:auto;border-radius:8px}.export-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.export-heading h2{margin:0 0 12px;font-size:23px}#map-download{padding:10px 16px;border:1px solid #b99775;border-radius:8px;color:#473328}#map-save-note{font-size:15px}
.map-angle-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,1.2fr);gap:12px;align-items:stretch;border:1px solid #b99775;border-radius:12px;background:#fffaf0;padding:12px;margin:0 0 10px}.map-angle-card>label,.map-angle-card>div{display:flex;flex-direction:column;gap:5px;min-width:0}.map-angle-card>label>span:first-child,.map-angle-card>div>span{font-size:14px;line-height:1.4;white-space:nowrap}.angle-entry{display:flex;align-items:center;gap:1px;min-width:0}.map-angle-card input{appearance:none;min-width:0;width:100%;padding:7px 5px;font:18px/1.3 sans-serif;font-variant-numeric:tabular-nums}.map-angle-card select{width:100%;padding:7px 6px;min-width:0}.map-angle-card input[aria-invalid=true]{border-color:#b62820;background:#fff2ee}.map-angle-card output{display:flex;align-items:center;justify-content:center;min-height:46px;font-size:20px;font-weight:bold;color:#b84c0b;background:#fff;border:1px solid #d4ba8e;border-radius:7px}.map-recenter{position:absolute;right:10px;top:10px;z-index:700;width:42px;height:42px;min-height:42px;padding:0;background:#fffaf1e8;font:30px/1 sans-serif;box-shadow:0 1px 4px #0004}.map-center-coordinates{position:absolute;right:8px;bottom:48px;z-index:650;background:#fff;color:#252525;border:1px solid #cabca6;border-radius:4px;padding:5px 8px;font:12px/1.4 sans-serif;pointer-events:none;max-width:calc(100% - 16px);box-sizing:border-box}#annotations [data-action="move-center"]{cursor:grab}#annotations [data-action="move-center"]:active{cursor:grabbing}
@media(max-width:650px){main{padding:10px}#map-wrap{height:560px}h1{font-size:28px}.toolbar{gap:7px}.toolbar button,.toolbar label{font-size:15px}.map-angle-card{padding:7px 5px;gap:5px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,1.1fr)}.map-angle-card>label>span:first-child,.map-angle-card>div>span{font-size:11px;letter-spacing:-.3px}.map-angle-card input{font-size:15px;padding:8px 3px;min-height:44px}.angle-entry>span{font-size:13px}.map-angle-card select{font-size:15px;padding:6px 2px;min-height:44px}.map-angle-card output{font-size:17px;min-height:44px}.annotation-toolbar label{max-width:100%}}

/* V154: a full outlet reading needs room; retain the three editable fields together. */
.map-angle-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,2fr)}
.map-angle-card .life-cell output{justify-content:flex-start;align-items:center;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:18px;line-height:1.5;padding:7px 10px;min-height:46px}
@media(max-width:650px){.map-angle-card{grid-template-columns:repeat(3,minmax(0,1fr))}.map-angle-card .life-cell{grid-column:1/-1}.map-angle-card .life-cell output{font-size:17px;min-height:44px}.map-angle-card input{font-size:17px}}

/* V155: both coordinate formats stay legible above the provider attribution. */
.map-center-coordinates{white-space:pre-line;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;line-height:1.45;background:#fffef7ed}
.water-point-info{font:14px/1.6 sans-serif;overflow-wrap:anywhere;min-width:190px;color:#252525}.water-point-info strong{display:block;margin-bottom:5px}
@media(max-width:450px){.map-center-coordinates{font-size:11px;bottom:54px;right:6px;padding:4px 6px;max-width:calc(100% - 12px)}}

.water-point-info{min-width:0}

/* Point info is a direct map wrapper card, above SVG controls and outside map-pane transforms. */
.water-point-card{position:absolute;left:10px;top:84px;width:calc(100% - 20px);max-width:320px;max-height:calc(100% - 220px);overflow:auto;z-index:750;box-sizing:border-box;background:#fffef8;color:#252525;border:1px solid #cbb99c;border-radius:10px;padding:12px 42px 12px 12px;box-shadow:0 3px 12px #0003;pointer-events:auto}
.water-point-card .water-point-info{min-width:0;overflow-wrap:anywhere}
.water-point-close{position:absolute;top:6px;right:6px;min-height:28px;min-width:28px;width:28px;height:28px;padding:0;border-radius:50%;font:22px/1 sans-serif;background:#fffaf0;color:#5b4632;border:1px solid #d8c6ac}
.water-point-close:focus-visible{outline:2px solid #a56c32;outline-offset:2px}

/* V156: optional transparent names and selected search labels. */
.map-label-options{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin:8px 0 12px;font:15px/1.5 sans-serif}
.map-label-options label{display:flex;align-items:center;gap:7px;cursor:pointer}
#map-label-status{color:#705a46}
.water-place-pin{background:transparent;border:0}
.water-place-pin span{display:block;width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:#c16a19;box-shadow:0 1px 5px #0009}
.leaflet-tooltip.water-place-label{max-width:230px;white-space:normal;overflow-wrap:anywhere;background:#fffaf0;color:#382514;border:1px solid #aa772c;font-weight:bold}
@media(max-width:450px){.map-label-options{font-size:14px}.leaflet-tooltip.water-place-label{max-width:180px}}

.leaflet-tooltip.water-place-label{width:min(230px,calc(100vw - 88px));max-width:calc(100vw - 88px);white-space:normal;line-height:1.4}
