*{box-sizing:border-box}
body{margin:0;font:14px system-ui,sans-serif;background:#0b1220;color:#e8ecf3;height:100vh;display:flex;flex-direction:column}
header{display:flex;justify-content:space-between;align-items:center;padding:10px 20px;border-bottom:1px solid #223}
h1{font-size:18px;margin:0}
.legend{display:flex;gap:8px;align-items:center;font-size:12px}
.bar{width:160px;height:10px;border-radius:5px}
main{flex:1;display:flex;min-height:0}
#globe-wrap{flex:1;position:relative;min-width:0}
#globe{width:100%;height:100%;cursor:grab}
#globe:active{cursor:grabbing}
#hint{position:absolute;bottom:10px;left:0;right:0;text-align:center;color:#8a96ad;font-size:12px;pointer-events:none}
#tip{position:absolute;background:#000c;padding:4px 8px;border-radius:4px;pointer-events:none;font-size:12px}
.country{stroke:#0b1220;stroke-width:.4;cursor:pointer}
.country:hover{stroke:#fff;stroke-width:1}
.country.selected{stroke:#fff;stroke-width:1.5}
.country.nodata{cursor:not-allowed}
#panel{width:380px;background:#121a2e;border-left:1px solid #223;padding:16px;overflow-y:auto;position:relative}
#close{position:absolute;top:8px;right:10px;background:none;border:0;color:#aab;font-size:22px;cursor:pointer}
#panel h2{margin:0 0 12px}
textarea,input,select{background:#0b1220;color:inherit;border:1px solid #334;border-radius:4px;padding:6px;font:inherit}
textarea{width:100%;height:70px;resize:vertical}
.row{display:flex;gap:6px;margin-top:6px}
.row input{flex:1;min-width:0}
button[type=submit],.resolve{background:#2f6fed;color:#fff;border:0;border-radius:4px;padding:6px 12px;cursor:pointer}
.toggle{display:block;margin:12px 0;color:#9aa6bd}
ul{list-style:none;padding:0;margin:0}
li{border:1px solid #223;border-left-width:4px;border-radius:4px;padding:8px;margin-bottom:8px}
li.low{border-left-color:#4caf50}li.medium{border-left-color:#f5c542}li.high{border-left-color:#e5453a}
li.resolved{opacity:.55}
li .meta{color:#8a96ad;font-size:12px;margin-top:4px;display:flex;justify-content:space-between;align-items:center}
li p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.resolve{background:#2a8a4a;padding:3px 8px;font-size:12px}
#error{color:#ff7b72}
@media(max-width:800px){main{flex-direction:column}#panel{width:100%;max-height:50vh}}
.user{font-size:12px;color:#9aa6bd}.user a{color:#7aa7ff;margin-left:8px}
.country.dot{stroke:#0b1220;stroke-width:1}
.country.dot:hover,.country.dot.selected{stroke:#fff;stroke-width:1.5}
