.atlas{color:var(--text);--atlas-bg:var(--surface);--atlas-line:var(--line-strong);--atlas-green:var(--accent-text);font:inherit}
.atlas *{box-sizing:border-box}
.atlas-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1rem}
.atlas-head h1{margin:0;font-size:clamp(1.5rem,3vw,2.2rem)}
.atlas-head p,.atlas-rendered{color:var(--text-soft);font-size:.85rem;margin:0}
.atlas-world-label{display:flex;align-items:center;gap:.65rem;font-weight:650;min-width:0}
.atlas-world{min-width:0;max-width:100%;padding:.55rem .7rem;border:1px solid var(--atlas-line);border-radius:8px;background:var(--atlas-bg);color:var(--text);font:inherit}
.atlas [hidden]{display:none!important}
.atlas-layout{display:grid;grid-template-columns:minmax(230px,290px) minmax(0,1fr);gap:1rem}
.atlas-side,.atlas-detail{background:var(--atlas-bg);border:1px solid var(--atlas-line);border-radius:12px;padding:1rem}
.atlas-side{max-height:760px;overflow:auto}
.atlas-search-label{display:block;font-size:.82rem;color:var(--text-soft)}
.atlas-search{display:block;width:100%;margin:.35rem 0 .8rem;background:var(--surface-raised);color:#fff;border:1px solid var(--muted-dim);border-radius:8px;padding:.7rem}
.atlas-check,.atlas-layer{display:flex;align-items:center;gap:.55rem;font-size:.85rem;padding:.25rem 0;cursor:pointer}
.atlas-check input,.atlas-layer input{accent-color:var(--atlas-green)}
.atlas-layer span{flex:1}.atlas-layer b{font-size:.75rem;color:var(--text-soft)}
.atlas-layer-actions,.atlas-pagination{display:flex;gap:.5rem;margin:.8rem 0}
.atlas button{background:var(--line);border:1px solid var(--muted-dim);color:var(--text);border-radius:7px;padding:.45rem .65rem;font:inherit;cursor:pointer}
.atlas button:hover,.atlas button:focus-visible{border-color:var(--atlas-green);outline:none}
.atlas button:disabled{opacity:.4;cursor:default}
.atlas-layers{border-block:1px solid var(--atlas-line);padding:.5rem 0;max-height:245px;overflow:auto}
.atlas-group{border-bottom:1px solid var(--atlas-line);padding:.25rem 0}.atlas-group summary{cursor:pointer;font-weight:650;padding:.3rem 0}.atlas-group summary small{color:var(--text-soft);font-weight:400;margin-left:.3rem}.atlas-group .atlas-layer{padding-left:.65rem}
.atlas-found{color:var(--atlas-green);font-size:.8rem;margin:.8rem 0}
.atlas-list{display:grid;gap:.25rem}.atlas-list-item{display:flex;flex-direction:column;text-align:left;width:100%;gap:.15rem}
.atlas-list-item small{color:var(--text-soft)}.atlas-list-item.is-selected{border-color:var(--atlas-green)}
.atlas-empty{color:var(--text-soft);font-size:.85rem}.atlas-pagination{align-items:center;justify-content:space-between}
.atlas-center{min-width:0}.atlas-map{position:relative;aspect-ratio:1.55;min-height:400px;max-height:720px;overflow:hidden;background:var(--surface-raised);border:1px solid var(--atlas-line);border-radius:12px;touch-action:none}
.atlas-map:focus-visible{outline:2px solid var(--atlas-green)}
.atlas-svg{display:block;width:100%;height:100%;touch-action:none;user-select:none;cursor:grab}
.atlas-svg:active{cursor:grabbing}.atlas-marker{cursor:pointer}.atlas-marker circle{fill:var(--accent-text);stroke:var(--surface-raised);stroke-width:4;vector-effect:non-scaling-stroke}
.atlas-marker.is-selected circle{fill:#fff;stroke:var(--accent-text);stroke-width:6}
.atlas-cluster circle{fill:var(--line-strong);stroke:var(--accent-text)}.atlas-marker text{fill:#fff;font-weight:700;pointer-events:none}
.atlas-map-actions{position:absolute;right:1rem;top:1rem;display:flex;gap:.35rem;flex-wrap:wrap;max-width:70%;justify-content:end}
.atlas-map-actions button{background:#141416ed}.atlas-detail{margin-top:1rem}
.atlas-region{background:#141416ed;color:var(--text);border:1px solid var(--muted-dim);border-radius:7px;padding:.45rem;max-width:190px;font:inherit}
.atlas-detail h3{margin:.1rem 0 .4rem}.atlas-detail p{color:var(--text-soft);margin:.2rem 0 .8rem}.atlas-detail dl{display:grid;grid-template-columns:110px 1fr;gap:.4rem;font-size:.85rem;margin:0}.atlas-detail dt{color:var(--text-soft)}.atlas-detail dd{margin:0;overflow-wrap:anywhere}
@media(max-width:760px){.atlas-layout{grid-template-columns:1fr}.atlas-side{max-height:none}.atlas-map{min-height:350px;aspect-ratio:1.15}.atlas-head{align-items:start}.atlas-rendered{display:none}}

.atlas .atlas-toggle{display:none}
.atlas-marker[data-kind="fishing"] circle{fill:#59c6e8}
.atlas-marker[data-kind="waypoint"] circle{fill:#b9b0ff}
.atlas-marker[data-kind="monster"] circle{fill:#d58a67}
.atlas-marker[data-kind="field_boss"] circle,.atlas-marker[data-kind="archboss"] circle{fill:#f0bb61}
.atlas-marker[data-kind="client_boss"] circle{fill:#f0bb61}
.atlas-loot-heading{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin:1rem 0 .7rem;flex-wrap:wrap}.atlas-loot-heading h4{margin:0;font-size:1rem}
.atlas-loot-heading select{background:var(--surface-raised);color:var(--text);border:1px solid var(--atlas-line);padding:.4rem;max-width:100%;border-radius:4px}
.atlas-loot-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.5rem}
.atlas .atlas-loot-item{display:flex;align-items:center;gap:.7rem;text-align:left;background:var(--surface-raised);padding:.45rem;font-size:.85rem;min-width:0}
.atlas-loot-item .item-icon{width:48px;height:48px;flex:0 0 48px;border-radius:4px;object-fit:contain}.atlas-loot-item span{overflow-wrap:anywhere}
.acquisition-map-link{margin:.2rem 0 .6rem}.acquisition-configurations{margin-bottom:.7rem;font-size:.85rem}
.atlas-marker[data-kind="codex_collection"] circle{fill:#e7cbd7}
.atlas-marker[data-kind="codex_collection"]:not(.atlas-cluster) text{fill:#251a20}
.atlas-marker[data-kind="client_region"] circle,.atlas-marker[data-kind="territory"] circle{fill:var(--muted)}
.atlas-marker[data-kind="client_dungeon"] circle{fill:#c58bea}
.atlas-marker.is-selected circle,.atlas-marker:focus-visible circle{fill:white;stroke:var(--accent-text)}
.atlas-marker.is-visited{opacity:.5}
.atlas-layer::before{content:"";width:7px;height:7px;background:var(--accent-text);border-radius:50%;flex-shrink:0}
.atlas-layer[data-kind="fishing"]::before{background:#59c6e8}.atlas-layer[data-kind="waypoint"]::before{background:#b9b0ff}
.atlas-layer[data-kind="monster"]::before{background:#d58a67}.atlas-layer[data-kind="client_dungeon"]::before{background:#c58bea}
@media(max-width:760px){.atlas .atlas-toggle{display:block;white-space:nowrap}.atlas-head{flex-wrap:wrap}.atlas-side{display:none}.atlas.filters-open .atlas-side{display:block;max-height:430px}.atlas-map-actions{right:.5rem;top:.5rem;max-width:90%;font-size:.8rem}.atlas-map{min-height:350px}.atlas-detail dl{grid-template-columns:85px 1fr}.atlas-detail-actions{flex-wrap:wrap}}

.atlas-map{width:100%;min-width:0}
.atlas-map{touch-action:auto}
.atlas-stack{position:absolute;left:12px;bottom:12px;width:min(350px,calc(100% - 24px));max-height:min(70%,360px);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line-strong);border-radius:7px;box-shadow:0 8px 28px #0009;z-index:2;overflow:hidden;touch-action:pan-y}
.atlas-stack[hidden]{display:none}
.atlas-stack-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;border-bottom:1px solid var(--line)}
.atlas-stack-head strong{font-size:14px}.atlas .atlas-stack-head button{padding:0;width:32px;height:32px;font-size:23px;line-height:1;background:transparent}
.atlas-stack-list{display:grid;gap:5px;padding:8px;overflow:auto;overscroll-behavior:contain}.atlas-stack-list .atlas-list-item{padding:10px;font-size:13px;background:var(--surface-raised)}
.atlas-stack-list .atlas-list-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
