:root{font-family:system-ui,'Microsoft JhengHei',sans-serif;color:#233443;background:#f3f6f8;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:0;border-radius:9px;padding:9px 13px;background:#087d69;color:#fff;cursor:pointer;font-weight:650}button:hover{filter:brightness(.95)}button:disabled{opacity:.4;cursor:not-allowed}.ghost{color:#255262;background:#e9f0f2}header{height:72px;background:#087a68;color:white;display:flex;justify-content:space-between;align-items:center;padding:12px 24px}header strong{font-size:20px;letter-spacing:.5px}header strong span{font-weight:400;opacity:.75}header small{display:block;font-size:12px;opacity:.75;margin-top:3px}.headright{display:flex;align-items:center;gap:12px;font-size:12px}.headright .ghost{background:#ffffff24;color:white}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px 20px}.stats>div{background:white;border:1px solid #e3e9ee;border-radius:13px;padding:14px 18px}.stats small{display:block;color:#71808b}.stats strong{display:block;font-size:27px;margin-top:4px}.green{color:#07895d}.red{color:#de4b57}main{padding:0 20px 20px;display:grid;grid-template-columns:290px minmax(300px,1fr) 320px;gap:12px;height:calc(100dvh - 187px);min-height:500px}aside,.maparea{background:#fff;border:1px solid #e1e8ee;border-radius:14px;overflow:hidden}.asidehead{display:flex;justify-content:space-between;align-items:center;padding:15px 13px 6px;gap:6px}h2{font-size:17px;margin:0}.asidehead button{font-size:12px;padding:8px}#search{display:block;width:calc(100% - 26px);margin:9px 13px;border:1px solid #d9e2e8;background:#f8fafb;padding:11px;border-radius:8px}.legend{display:flex;justify-content:space-between;font-size:11px;color:#66737a;padding:5px 13px 11px}.site-list{overflow:auto;height:calc(100% - 128px)}.siteitem{width:100%;border-radius:0;display:flex;gap:9px;align-items:center;text-align:left;background:#fff;color:#243942;border-bottom:1px solid #edf1f4;padding:13px}.siteitem:hover,.siteitem.selected{background:#ecf7f3}.dot{flex:none;width:12px;height:12px;border-radius:50%;background:#b7c1c9;display:inline-block}.dot.online{background:#0ba56c}.dot.offline{background:#e94d5d}.dot.unknown{background:#abb7c1}.siteitem .sub{display:block;margin-top:4px;color:#7b8993;font-size:11px}.maparea{position:relative}#map{height:100%;width:100%;z-index:1}.maphint{position:absolute;z-index:500;bottom:15px;left:15px;background:#fffffff0;box-shadow:0 2px 12px #182c3e20;padding:9px 11px;border-radius:9px;color:#576b76;font-size:11px;line-height:1.5;pointer-events:none}.pin{width:20px;height:20px;background:#b2bbc5;border:3px solid white;box-shadow:0 0 0 3px #a6b2bd66,0 2px 7px #0003;border-radius:50%}.pin.online{background:#08a870;box-shadow:0 0 0 4px #00a46f44}.pin.offline{background:#ef5060;box-shadow:0 0 0 4px #ef506044}.details{padding:18px;overflow:auto}.details .empty{color:#8b98a2;display:grid;place-content:center;text-align:center;min-height:300px;line-height:2}.muted{color:#7b8894;font-size:12px}.dev{display:flex;gap:9px;align-items:center;padding:12px 0;border-bottom:1px solid #ecf0f2}.dev .devmain{flex:1;min-width:0}.devname{font-weight:650}.devsmall{display:block;color:#87939a;font-size:11px;margin-top:5px;overflow-wrap:anywhere}.label{font-size:11px;color:#798794;white-space:nowrap}.section-title{font-weight:750;margin:20px 0 9px}.toolbar{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.toolbar button{font-size:12px;padding:8px}.detailtitle{font-size:19px;line-height:1.4}.emptyhint{font-size:12px;color:#89949c;padding:14px 2px}.external{color:#087a68;text-decoration:none;font-size:12px;display:inline-block;margin-top:8px}dialog{border:1px solid #e1e7eb;border-radius:16px;box-shadow:0 15px 70px #1c30464a;width:min(460px,calc(100% - 28px));padding:22px}dialog::backdrop{background:#18333a91}dialog h2{margin-bottom:16px}.field{display:block;margin-bottom:13px;font-size:12px;color:#50616a}.field input,.field textarea,.field select{display:block;margin-top:6px;width:100%;padding:10px 11px;border:1px solid #cfdce2;border-radius:8px;background:white;color:#283a43}.field textarea{min-height:60px;resize:vertical}.coordtip{font-size:12px;color:#697783;background:#f2f7f8;padding:8px;border-radius:8px;margin-bottom:13px}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}#toast{position:fixed;z-index:4000;bottom:24px;right:24px;background:#213947;color:#fff;padding:10px 16px;border-radius:9px;display:none;box-shadow:0 8px 25px #1114}.tiny{font-size:12px}.leaflet-container{font-family:inherit}@media(max-width:1020px){main{grid-template-columns:240px minmax(200px,1fr);height:auto;min-height:700px}.details{grid-column:1/-1;min-height:240px}.maparea{min-height:520px}.stats{padding:12px}.stats>div{padding:10px}}@media(max-width:650px){header{padding:10px 13px}header strong{font-size:16px}.headright{gap:5px}.headright #user{display:none}.stats{grid-template-columns:repeat(2,1fr)}main{padding:0 10px 15px;display:flex;flex-direction:column;gap:9px}.site-list{max-height:240px}.maparea{min-height:380px}.details{min-height:160px}.maphint{font-size:10px}}

.loginbody{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#eef3f2;padding:22px}.loginpanel{background:white;border-radius:16px;box-shadow:0 14px 40px #122a3020;width:min(430px,100%);padding:32px}.loginpanel button{width:100%;margin-top:18px}.loginpanel .brand{margin-bottom:22px}.brand strong{font-size:24px}.brand span{color:#168c74}.loginpanel #loginerror{color:#be3535;min-height:24px}.userpanel{width:min(560px,90vw);padding:15px}.userrow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-bottom:1px solid #ddd;padding:10px}.userrow span{flex:1;min-width:190px}#users-dialog,#password-dialog{max-height:85vh;overflow:auto}#password-dialog form{min-width:min(380px,82vw);padding:18px}.headright{flex-wrap:wrap}
