:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#183b3a;font-size:14px;line-height:24px;--green:#167864;--muted:#708781;--line:rgba(255,255,255,.88)}
*{box-sizing:border-box}[hidden]{display:none!important}html,body{width:100%;height:100%;margin:0;padding:0;overflow:hidden;background:#e8f0eb}button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{opacity:.48;cursor:not-allowed}h1,h2,p{margin:0}h1,h2{font-weight:600}a{color:inherit}svg{display:block;flex-shrink:0}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}:focus-visible{outline:2px solid var(--green);outline-offset:4px}.glass{background:rgba(248,253,250,.88);border:1px solid var(--line);box-shadow:0 8px 32px rgba(32,73,60,.1);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
#workspace,#map{position:absolute;inset:0}#map{z-index:0;background:#e3ece6;font:inherit}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:12px 16px;border:1px solid transparent;border-radius:12px;font-size:12px;line-height:20px;text-decoration:none}.primary{background:var(--green);color:white}.primary:hover:not(:disabled){background:#105c4e}.secondary{background:rgba(255,255,255,.72);border-color:#d2e0d8}.icon-btn{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;padding:0;border:1px solid transparent;border-radius:12px;background:transparent;text-decoration:none}.icon-btn:hover:not(:disabled){background:#e2eee6}.text-button{padding:4px 8px;min-height:32px;border-radius:8px;background:transparent;color:var(--green);font-size:12px;line-height:20px}.text-button:hover{background:#e4efe7}.spinner{display:inline-block;flex-shrink:0;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.topbar{position:absolute;z-index:500;top:16px;left:16px;right:16px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;pointer-events:none}.topbar>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:8px;height:48px;padding:4px 12px;border-radius:20px}.brand-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:12px;background:var(--green);color:white}.brand h1{font-size:16px;line-height:20px}.brand p{font-size:10px;line-height:16px;color:var(--muted)}.toolbar{display:flex;align-items:center;gap:8px;height:48px;padding:4px;border-radius:20px}.toolbar .btn{min-height:36px;height:36px;padding:4px 16px}.toolbar .icon-btn{width:36px;height:36px}.user-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;padding:0 4px}
.icon-btn.small{width:32px;height:32px;border-radius:8px}.small .icon{width:16px;height:16px}.import-progress{position:absolute;z-index:600;left:50%;top:100px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);padding:12px 16px;border-radius:16px;font-size:12px;line-height:20px}.import-progress>span:nth-child(2){min-width:0}.import-progress .text-button{flex-shrink:0}
.empty-panel{position:absolute;z-index:400;left:50%;top:50%;transform:translate(-50%,-50%);width:min(400px,calc(100% - 32px));padding:28px;border-radius:24px;text-align:center}.empty-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:20px;margin:0 auto 20px;background:#e0eee6;color:var(--green)}.empty-icon .icon{width:28px;height:28px}.empty-panel h2{font-size:20px;line-height:28px;margin-bottom:12px}.empty-panel>p{font-size:12px;line-height:24px;color:var(--muted)}.format-example{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid #d8e5dc;border-radius:12px;margin:20px 0;overflow:hidden;font-size:12px;line-height:24px}.format-example>*{padding:4px 8px}.format-example span{background:rgba(225,238,230,.72);font-weight:500}.format-example code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.empty-panel .btn{width:100%}.empty-panel small{display:block;margin-top:12px;font-size:10px;line-height:16px;color:var(--muted)}.empty-panel .error{margin-top:16px;padding:8px 12px;background:#fae9e4;border-radius:12px;color:#aa5143;font-size:12px;line-height:20px}
.map-tools{position:absolute;z-index:500;right:16px;bottom:80px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;border-radius:20px}.zoom-button{font-size:24px;line-height:32px}.tool-divider{width:24px;height:1px;background:#d0e0d5;margin:4px 0}.statusbar{position:absolute;z-index:500;bottom:16px;left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;padding:8px 16px;border-radius:12px;font-size:10px;line-height:16px;pointer-events:none}.status-data{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0}.status-data button{pointer-events:auto}.status-data .text-button{font-size:10px;min-height:24px;padding:0 4px}.status-data .icon-btn{width:24px;height:24px}.status-hint{display:flex;align-items:center;gap:4px;white-space:nowrap;color:var(--muted)}.status-hint i{width:8px;height:8px;background:var(--green);border-radius:50%}.tile-warning{position:absolute;z-index:550;left:50%;bottom:80px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100% - 112px);padding:8px 12px;border-radius:12px;background:rgba(255,246,231,.96);font-size:12px;line-height:20px;color:#91673c}.tile-warning .text-button{flex-shrink:0}.toast{position:fixed;z-index:3000;bottom:80px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 48px);padding:12px 20px;border-radius:16px;font-size:12px;line-height:20px;text-align:center}
.boot{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:radial-gradient(ellipse at 0 0,#d5eadd,transparent 70%),#edf3f1;z-index:4000}.boot h1{font-size:20px;line-height:28px}.boot p{max-width:320px;padding:0 16px;text-align:center;font-size:12px;line-height:20px;color:var(--muted)}.boot>div{display:flex;gap:12px}
dialog{inset:0;margin:auto;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:0;color:inherit;border:1px solid var(--line);border-radius:24px;background:rgba(247,252,249,.96);box-shadow:0 24px 80px rgba(24,59,58,.2);overflow:hidden}dialog::backdrop{background:rgba(24,48,40,.28);backdrop-filter:blur(8px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-bottom:1px solid #dce7df}.dialog-header h2{font-size:16px;line-height:24px}.dialog-body{padding:20px;overflow:auto;font-size:12px;line-height:24px;max-height:calc(100dvh - 144px);scrollbar-width:thin;scrollbar-color:#b8cec0 transparent}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.report-dialog{width:min(560px,calc(100% - 32px))}#report-list{list-style:none;margin:12px 0 0;padding:0}#report-list li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:8px 0;border-top:1px solid #e0e9e3}#report-list span:first-child{color:var(--green)}
.cluster-icon{background:transparent;border:0}.cluster-bubble{display:grid;place-items:center;width:100%;height:100%;border:4px solid rgba(255,255,255,.72);border-radius:50%;background:#167864;color:white;font-size:14px;line-height:20px;box-shadow:0 4px 16px rgba(14,80,59,.22);font-weight:600}.cluster-bubble.large{background:#10584c;font-size:16px}.point-icon{background:transparent;border:0}.point-pin{display:grid;place-items:center;width:32px;height:32px;border:4px solid white;border-radius:50%;background:#167864;box-shadow:0 4px 12px rgba(15,73,53,.24);color:white;font-size:10px;line-height:16px}.point-camera{display:none;width:24px;height:24px;background:var(--green);-webkit-mask:url("../assets/icons/lucide/cctv.svg") center/contain no-repeat;mask:url("../assets/icons/lucide/cctv.svg") center/contain no-repeat}.point-popup{font-size:12px;line-height:20px}.point-popup-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#edf6ef;border-bottom:1px solid #dfe9e1}.point-popup-head h2{font-size:14px;line-height:24px;margin:0}.point-popup-body{padding:12px 16px}.point-popup-body p{margin:0 0 8px!important;font-size:12px;line-height:20px}.point-popup-body dl{display:grid;grid-template-columns:40px minmax(0,1fr);gap:4px 12px;margin:12px 0}.point-popup-body dt{color:var(--muted)}.point-popup-body dd{margin:0;overflow-wrap:anywhere;user-select:all;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.source-rows{max-height:80px;overflow:auto;overflow-wrap:anywhere;font-size:10px;line-height:16px;color:var(--muted);scrollbar-width:thin}.point-popup .text-button{padding:4px 0}.user-dot{display:grid;place-items:center;width:36px;height:36px;border:2px solid white;border-radius:50%;background:#f8fbff;color:#247ae5;box-shadow:0 0 0 8px rgba(56,134,216,.12),0 4px 16px rgba(22,73,128,.24)}.navigation-icon{display:block;flex-shrink:0;width:24px;height:24px;background:currentColor;-webkit-mask:url("../assets/icons/lucide/navigation.svg") center/contain no-repeat;mask:url("../assets/icons/lucide/navigation.svg") center/contain no-repeat}
#map .leaflet-control-attribution{font-size:10px;line-height:16px;padding:0 4px;margin:0 16px 56px;border-radius:4px;background:rgba(255,255,255,.8)}#map .leaflet-popup-content-wrapper{padding:0;overflow:hidden;border-radius:16px;background:rgba(249,253,250,.98)}#map .leaflet-popup-content{margin:0;font-size:12px;line-height:20px}#map .leaflet-popup-tip-container{margin-top:0}#map .leaflet-popup-tip{width:16px;height:16px;margin:-8px auto 0;padding:0}#map .leaflet-popup{margin-bottom:20px}#map .leaflet-tooltip{padding:4px 8px;border-radius:8px;font-size:12px}
#map.is-detail .point-pin{position:relative;padding:4px;border:0;border-radius:8px;background:white}#map.is-detail .point-camera{display:block}#map.is-detail .point-pin:not(.multiple) .point-count{display:none}#map.is-detail .point-pin.multiple .point-count{position:absolute;top:-8px;right:-8px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border:2px solid white;border-radius:8px;background:var(--green);font-size:10px;line-height:16px}
@media(max-width:760px){.topbar{top:12px;left:12px;right:12px;gap:8px;align-items:stretch}.brand{padding:4px 12px;gap:8px;border-radius:16px}.brand-icon{width:32px;height:32px}.brand h1{font-size:14px;line-height:20px}.brand p{font-size:10px;line-height:16px}.toolbar{padding:4px;gap:4px;border-radius:16px}.toolbar .btn{padding:4px 12px}.user-name,.records-link,.desktop-hint{display:none}.import-progress{top:84px;max-width:calc(100% - 24px);width:max-content}.empty-panel{left:50%;width:calc(100% - 32px);max-width:400px;padding:20px}.empty-panel h2{font-size:16px;line-height:24px}.empty-icon{width:48px;height:48px;margin-bottom:16px}.format-example{font-size:10px;margin:16px 0}.format-example>*{padding:4px}.map-tools{right:12px;bottom:96px;padding:4px;border-radius:16px}.map-tools>:not(#locate){display:none}.map-tools #locate{width:44px;height:44px}.statusbar{left:12px;right:12px;bottom:12px;padding:8px 12px}.tile-warning{bottom:96px;max-width:calc(100% - 24px);font-size:10px;line-height:16px}.toast{bottom:96px}#map .leaflet-control-attribution{margin-right:12px;margin-bottom:72px}}
@media(max-width:380px){.brand{padding:4px 8px}.brand-icon{display:none}.toolbar .btn{padding:4px 8px}.empty-panel{padding:16px}.empty-panel>p{font-size:10px;line-height:20px}}
@media(max-height:600px){.empty-panel{padding:16px}.empty-icon{display:none}.empty-panel h2{margin-bottom:8px}.format-example{margin:12px 0}.empty-panel small{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
