*{box-sizing:border-box}body{margin:0;background:#f3f6f3;color:#223e35;font:14px system-ui,"PingFang SC",sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #c5d2c9;border-radius:6px;padding:9px 13px;background:white;color:#234d3b}button.primary{background:#285d46;color:white}input,select{padding:9px;border:1px solid #c5d2c9;border-radius:5px}header{height:78px;background:#214b39;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 25px}header h1{margin:0;font-size:23px;letter-spacing:2px}header small{color:#c0d8c8}header button{margin-left:10px}.toolbar{padding:17px 24px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:white}.stats{display:flex;gap:30px;margin-right:auto}.stats strong{font-size:25px;display:block}.stats small{color:#708278}.workspace{display:grid;grid-template-columns:294px minmax(0,1fr)}.sidebar{padding:20px;overflow:auto;border-right:1px solid #d4ddd7}.sidebar h3{margin:0 0 12px;font-size:14px}.filters{padding-bottom:20px;border-bottom:1px solid #d4ddd7}.filters label{display:inline-flex;align-items:center;margin:5px 10px 5px 0;gap:5px}.filters input{width:auto}.filters input[type=search]{width:100%;margin:10px 0}.muted,small{color:#728278}.risk-item{display:block;width:100%;text-align:left;margin:9px 0;padding:12px;background:white}.risk-item.selected{border-color:#285d46;background:#e1ece3}.risk-item strong{display:block;margin-bottom:5px}.risk-item small{display:block;line-height:1.8}.map-shell{position:relative}#map{height:100%;background:#e5ebe5}.detail{position:fixed;z-index:2000;top:95px;right:20px;bottom:25px;width:400px;max-width:calc(100vw - 30px);overflow:auto;background:white;box-shadow:0 10px 50px #17392744;border-radius:10px;padding:22px}.detail h2{padding-right:30px}.detail h3{border-top:1px solid #e0e5e1;padding-top:18px;font-size:15px}.close{float:right}.tag{display:inline-block;background:#edf2ee;color:#506959;padding:4px 8px;font-size:12px;border-radius:4px}.notice{background:#f1f5ef;padding:12px;font-size:12px;line-height:1.8}.camera{border:1px solid #dce5dc;padding:12px;margin:10px 0;border-radius:6px}.camera small{display:block;margin:8px 0}.camera input{width:100%}.photos img{max-width:100%;max-height:200px}.login{max-width:400px;margin:15vh auto;background:white;padding:35px;border-radius:10px}.login input,.login button{width:100%;margin:8px 0}.error{color:#a33d34}#message{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#214b39;color:white;padding:14px;z-index:5000;border-radius:8px}.imagery{background:white;padding:12px;max-height:260px;overflow:auto;width:250px;box-shadow:0 2px 8px #0002}.imagery label{display:block;font-size:12px;line-height:1.9}.imagery input[type=range]{width:100px;padding:0}.imagery small{display:block;font-size:10px}.leaflet-div-icon{border:0;background:transparent}.risk-pin{background:#285d46;width:18px;height:18px;border:3px solid white;border-radius:50%;box-shadow:0 1px 5px #0006}.position-pin{background:#e8ac4e;width:12px;height:12px;border:2px solid white;border-radius:3px}@media(max-width:800px){.workspace{grid-template-columns:230px 1fr}.toolbar{padding:12px}.stats{gap:12px}.stats strong{font-size:20px}header{padding:0 12px}header h1{font-size:18px}}@media(max-width:550px){.workspace{grid-template-columns:150px 1fr}.sidebar{padding:10px}.stats{gap:10px}.toolbar select{max-width:170px}.toolbar .stats small{font-size:10px}.toolbar{gap:8px}header small{display:none}}
.map-tile-status{position:absolute;z-index:500;left:15px;bottom:42px;max-width:70%;border-radius:5px}.shanhe-map-source-row{display:flex}.shanhe-map-source-row button{border-radius:0;font-size:12px;padding:7px}.shanhe-map-source-row .active{background:#285d46;color:white}.ndrp-amap-background{z-index:0}.map-shell .leaflet-control-attribution{max-width:80%}
.product-head{background:#214e3e;color:#fff;display:flex;align-items:center;gap:22px;padding:14px 24px}.product-head span{flex:1;font-size:13px}.modules{display:flex;gap:6px;background:#fff;border-bottom:1px solid #dce5df;padding:10px 24px;overflow:auto}.modules button{white-space:nowrap}.modules button.active{background:#285d46;color:#fff}.managed-content{max-width:1400px;margin:auto;padding:24px}.list-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0}.list-tools input{max-width:340px}.table-scroll{overflow:auto}table{border-collapse:collapse;background:#fff;width:100%}th,td{text-align:left;padding:14px;border-bottom:1px solid #dce5df}th{background:#edf3ef}.pagination{display:flex;gap:16px;align-items:center;justify-content:center;margin:20px}.fields{display:grid;grid-template-columns:140px 1fr;gap:12px}.fields dt{color:#617068}.fields dd{margin:0;overflow-wrap:anywhere}.management-detail{width:min(680px,96vw);max-width:96vw}.management-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:#f1f5f2;padding:12px}.management-detail textarea{width:100%;box-sizing:border-box}.management-detail label{display:block;margin:14px 0}.management-detail input:not([type=checkbox]),.management-detail select{width:100%;box-sizing:border-box}.management-detail article{border-bottom:1px solid #ddd;padding:12px 0}.detail-actions{display:flex;gap:10px;flex-wrap:wrap}.record-card{display:flex;justify-content:space-between;width:100%;text-align:left;padding:18px;margin:10px 0}.record-card span{font-size:13px;color:#617068}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px}.metric-grid button{padding:24px;display:flex;flex-direction:column;gap:10px}.metric-grid strong{font-size:30px}.prewrap{white-space:pre-wrap}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #cf972f;outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed}#mobile-map-toggle{display:none}@media(max-width:760px){.product-head{padding:12px;gap:8px;flex-wrap:wrap}.product-head span{display:none}.modules{padding:8px}.managed-content{padding:14px}.record-card{display:block}.record-card span{display:block;margin-top:8px}.fields{grid-template-columns:110px 1fr}#mobile-map-toggle{display:block}.workspace.mobile-list .map-shell{display:none}.workspace.mobile-list .sidebar{display:block;width:100%}.workspace.mobile-map .sidebar{display:none}.workspace.mobile-map .map-shell{display:block;width:100%}}



.product-head small{color:#dcebe0}

.camera-layer-control{padding:9px 12px;background:#fff;border:1px solid #c6d5cb;border-radius:5px;box-shadow:0 1px 5px #0002;max-width:240px}.camera-layer-control label{margin:0;display:flex;align-items:center;gap:7px}.camera-layer-control small{display:block;margin-top:5px}.camera-pin{display:grid;place-items:center;width:32px;height:32px;background:#006ba6;color:#fff;border:2px solid #fff;outline:1px solid #17344c;border-radius:5px;box-shadow:0 2px 5px #0005}.customer-camera-marker{background:transparent;border:0}

.camera-layer-control input{width:auto}

.camera-pin svg{display:block;flex-shrink:0}

/* The home map owns the space left by the product header and module navigation. */
#app:has(>.customer-map-page){height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#app:has(>.customer-map-page)>.product-head,#app:has(>.customer-map-page)>.modules{flex:none}
.product-head{min-height:58px;padding:10px 20px;gap:16px}.product-head>b{margin-right:auto}.product-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}.product-head button{padding:8px 12px}.product-head select{max-width:min(360px,35vw);padding:7px;background:#fff;color:#234d3b}
.modules{padding:8px 20px;gap:7px}.modules button{padding:8px 13px}
.customer-map-page{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.map-summary{display:flex;align-items:center;gap:14px;flex:none;background:#fff;border-bottom:1px solid #dce5df;padding:10px 20px}
.map-summary .stats{gap:0;margin:0;align-items:center}.map-summary .stats>div{display:flex;align-items:baseline;gap:9px;padding:0 24px;border-right:1px solid #e3eae5}.map-summary .stats>div:first-child{padding-left:0}.map-summary .stats>div:last-child{border-right:0}.map-summary .stats strong{font-size:24px;line-height:1.3}.map-summary .stats small{font-size:12px;white-space:nowrap}
.customer-map-page .workspace{flex:1;min-height:0;height:auto;grid-template-columns:294px minmax(0,1fr)}
.customer-map-page .sidebar{padding:18px 16px;background:#f5f8f5;min-height:0;overscroll-behavior:contain}.customer-map-page .map-shell{min-width:0;min-height:0}.customer-map-page .filters{padding-bottom:14px}.customer-map-page .filters h3{margin-bottom:10px}.customer-map-page .filters input[type=search]{margin:12px 0 8px;background:#fff}.more-filters summary{cursor:pointer;color:#516f5e;font-size:12px;padding:6px 0}.more-filters[open] summary{margin-bottom:5px}.more-filters label{font-size:12px}.customer-map-page #result-count{font-size:12px;margin:14px 0 10px}.customer-map-page .risk-item{margin:0 0 9px;padding:12px;line-height:1.5}.customer-map-page .risk-item small{line-height:1.7}.customer-map-page .risk-meta{display:block}
@media(max-width:1000px){.product-head{gap:10px}.product-actions{gap:8px}.product-head>b{font-size:13px}.product-head select{max-width:250px}.customer-map-page .workspace{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:760px){.product-head{padding:10px 12px;flex-wrap:wrap;min-height:0}.product-head>b{font-size:13px}.product-head select{max-width:100%;flex:1;min-width:150px;order:3}.product-actions{gap:7px}.product-actions small{display:none}.product-head button{font-size:12px;padding:6px 9px}.modules{padding:7px 12px}.modules button{padding:7px 11px;font-size:12px}.map-summary{padding:9px 12px;gap:10px;justify-content:space-between}.map-summary .stats>div{display:block;padding:0 14px}.map-summary .stats strong{font-size:20px}.map-summary .stats small{font-size:11px}.customer-map-page .workspace{display:block}.customer-map-page .workspace .sidebar,.customer-map-page .workspace .map-shell{height:100%;width:100%}.customer-map-page .workspace.mobile-map .sidebar{display:none}.customer-map-page .workspace.mobile-list .map-shell{display:none}.customer-map-page .workspace.mobile-list .sidebar{display:block}.customer-map-page .sidebar{padding:14px 16px}.camera-layer-control{padding:7px 9px;max-width:190px}.map-tile-status{max-width:calc(100% - 30px)}}

.customer-map-page .map-tile-status{bottom:14px;left:14px}.customer-map-page .workspace .sidebar,.customer-map-page .workspace .map-shell{max-height:none}
