.topbar nav{flex-wrap:wrap;gap:4px}.topbar nav a{padding:10px 14px}.dungeon-controls{display:flex;align-items:end;gap:30px;margin:0 0 24px}.dungeon-controls label{display:grid;gap:6px;min-width:280px}.dungeon-controls select,.dungeon-sidebar input{background:#101b2c;color:#e6edf7;border:1px solid #526985;border-radius:8px;padding:12px;width:100%}.dungeon-controls h3{margin:0;font-size:23px}.dungeon-controls p{margin:4px 0}.dungeon-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.dungeon-map-area{min-width:0}.map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}.map-zoom{display:flex;gap:7px}.map-viewport{position:relative;contain:layout paint;width:100%;aspect-ratio:var(--map-ratio);min-height:320px;max-height:76vh;background:#070d14;border:1px solid #526985;border-radius:10px;overflow:hidden}.map-raster,.dungeon-map{position:absolute;inset:0;width:100%;height:100%;display:block}.map-raster{pointer-events:none}.dungeon-map{touch-action:none;cursor:grab}.dungeon-map:active{cursor:grabbing}.dungeon-map image{pointer-events:none}.dungeon-map [data-grid-lines]{pointer-events:none}.dungeon-map [data-grid-lines] line{stroke:#dbe9fd;stroke-opacity:.3;vector-effect:non-scaling-stroke}.dungeon-map [data-grid-lines] text{fill:#fff;paint-order:stroke;stroke:#080d15;stroke-width:3px;stroke-linejoin:round}.map-marker{cursor:pointer;outline:none}.map-marker .map-dot{fill:#e2bf76;stroke:#080d15;stroke-width:2px;vector-effect:non-scaling-stroke}.map-marker text{fill:#080d15;font-weight:800;pointer-events:none}.map-marker:hover .map-dot,.map-marker:focus-visible .map-dot{stroke:#fff;stroke-width:3px}.map-marker.selected .map-dot{fill:#8dc4ec;stroke:#fff;stroke-width:3px}.map-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#c1d0e5;font-size:12px;margin:8px 0}.dungeon-sidebar{min-width:0}.dungeon-sidebar>label{display:grid;gap:6px}.dungeon-mob-list{max-height:55vh;overflow:auto;overscroll-behavior:contain}.dungeon-mob{display:block;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid #344962;padding:12px;color:#e6edf7}.dungeon-mob strong,.dungeon-mob small{display:block}.dungeon-mob small{color:#c1d0e5;margin-top:3px}.dungeon-mob:hover,.dungeon-mob.active{background:#253a53}.selected-dungeon-mob{padding:16px 0;margin:12px 0;border-top:1px solid #526985;border-bottom:1px solid #526985}.selected-dungeon-mob h4{font-size:18px;margin:0 0 8px}.selected-dungeon-mob p{margin:5px 0}.map-position{font-variant-numeric:tabular-nums}.map-unavailable{padding:40px 24px;background:#142136;border:1px solid #526985}.dungeon-context{padding:12px;background:#1c2e45}.item-dungeons a{text-decoration:underline;text-underline-offset:3px}.dungeon-view .hero{display:none}.dungeon-view .shortcut{display:none}@media(max-width:900px){.dungeon-layout{grid-template-columns:1fr}.dungeon-controls{align-items:stretch;flex-direction:column;gap:14px}.dungeon-controls label{min-width:0}.dungeon-mob-list{max-height:340px}.map-viewport{min-height:260px;max-height:65vh}.map-toolbar{align-items:start}.topbar{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.dungeon-map{scroll-behavior:auto}}

.dungeon-sidebar [data-map-filter]{display:grid;gap:12px;margin-bottom:16px}.dungeon-sidebar [data-map-filter] label{display:grid;gap:5px}.dungeon-sidebar select{background:#101b2c;color:#e6edf7;border:1px solid #526985;border-radius:8px;padding:10px;width:100%}.map-filter-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.map-filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.drop-search-results{max-height:240px;overflow:auto}.drop-search-results button{display:block;width:100%;text-align:left;background:#20344d;border:1px solid #526985;color:#e6edf7;padding:10px}.drop-search-results button:hover{background:#2b4667}.drop-search-results small{color:#c1d0e5}.entity-map-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:12px}.entity-map-controls label{display:grid;gap:5px}.entity-map-controls select{max-width:100%;background:#101b2c;border:1px solid #526985;color:#e6edf7;padding:10px;border-radius:8px}#entity-map .map-viewport{min-height:240px;max-height:360px}.entity-map-positions{display:flex;gap:5px;flex-wrap:wrap;max-height:180px;overflow:auto}.entity-map-positions button{font-variant-numeric:tabular-nums}.npc-detail{max-width:1000px;margin:auto;background:#142136;border:1px solid #526985;border-radius:12px;padding:24px}.npc-detail h2{margin-top:16px}@media(max-width:600px){.npc-detail{padding:16px}.entity-map-controls{align-items:stretch}.entity-map-controls>label{max-width:100%}}
.dungeon-map{user-select:none;-webkit-user-select:none}.map-viewport.is-panning .map-marker{pointer-events:none}[data-type-status]:empty{display:none}

.map-marker .map-hit{fill:transparent;stroke:none}.map-marker.resource .map-dot{fill:#8fd7a6}.map-marker.resource.selected .map-dot{fill:#8dc4ec}.dungeon-sidebar [data-resource-options][hidden]{display:none}.selected-dungeon-mob{max-height:440px;overflow:auto;overscroll-behavior:contain}

.spider-leg{stroke:#dbe9fd;stroke-width:1;stroke-opacity:.8;pointer-events:none;vector-effect:non-scaling-stroke}
.treasure-target{pointer-events:none;stroke:#ff744e;stroke-width:2;fill:none}.treasure-target rect{fill:#ff744e30;stroke-width:1}.treasure-target circle{stroke:#fff1cf;stroke-width:3}
.map-point-tooltip{position:absolute;z-index:4;display:flex;flex-direction:column;width:300px;max-width:calc(100% - 16px);max-height:calc(100% - 16px);box-sizing:border-box;padding:12px;background:#101d2e;color:#edf4ff;border:1px solid #d5b674;border-radius:8px;box-shadow:0 6px 20px #0009;font-size:12px;line-height:1.45;cursor:default}
.map-point-tooltip[hidden],.map-fan-pages[hidden]{display:none}
.map-point-tooltip>strong{display:block;flex:none;color:#ffe1a0;font-size:13px}
.map-point-tooltip p{margin:5px 0 0}.map-tooltip-coordinates{color:#c7d9ee;font-variant-numeric:tabular-nums}
.map-point-tooltip>p{flex:none}.map-point-tooltip ul{list-style:none;flex:0 1 auto;min-height:0;padding:0;margin:9px 0 0;max-height:210px;overflow:auto;overscroll-behavior:contain}
.map-point-tooltip li{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid #354c65}
.map-point-tooltip li>span:last-child{min-width:0}.map-point-tooltip b{overflow-wrap:anywhere}.map-point-tooltip small{display:block;color:#c7d9ee;font-variant-numeric:tabular-nums}
.map-mini-icon{display:inline-block;width:18px;height:18px;flex:0 0 18px;background-repeat:no-repeat}
.map-tooltip-hint{padding-top:7px;color:#ffe1a0}.map-point-tooltip:focus-visible{outline:2px solid #fff1ba;outline-offset:-4px}
.map-fan-pages{position:absolute;z-index:3;top:8px;left:8px;display:flex;align-items:center;gap:8px;padding:4px;background:#101d2ef5;border:1px solid #526985;border-radius:8px;color:#edf4ff;font-size:12px}
.map-fan-pages button{padding:6px 10px;min-height:32px}.map-marker .map-dot{stroke-width:1}.map-marker.selected .map-dot{stroke:#fff1ba;stroke-width:2}

.map-layer-control{display:flex;align-items:center;gap:8px;color:#d4e4f6;flex-wrap:wrap}.map-layer-control select{max-width:100%;background:#101b2c;border:1px solid #526985;color:#e6edf7;padding:8px 12px;border-radius:8px}.map-layer-status{margin:8px 0 12px;color:#ffe1a0}.map-layer-status button{font-size:inherit}
