.atlas-page { --atlas-gold: #d5b778; }
.atlas-shell [hidden] { display: none !important; }
.atlas-page .site-header { position: relative; background: var(--night); }
.atlas-page .header-inner { max-width: 1600px; }
.atlas-heading { max-width: 1560px; margin: auto; padding: 20px 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.atlas-heading .eyebrow { font-size: 11px; letter-spacing: .2em; margin-bottom: 10px; }
.atlas-heading h1 { font: 34px/1.25 var(--display); }
.atlas-heading h1 em { color: var(--violet); font-weight: 400; }
.atlas-heading p:last-child { color: var(--ink-soft); font-size: 14px; margin-top: 10px; }
.atlas-guide-link { font-size: 13px; white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.atlas-shell { display: grid; grid-template-columns: 288px minmax(0,1fr); margin: 0 auto; width: calc(100% - 56px); max-width: 1504px; min-height: 700px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); box-shadow: var(--shadow), 0 0 0 5px color-mix(in srgb,var(--panel) 40%,transparent); overflow: hidden; }
.atlas-shell button { font-family: var(--body); cursor: pointer; }
.atlas-sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: var(--panel); }
.atlas-side-head { padding: 24px 22px 20px; display: flex; align-items: center; justify-content: space-between; }
.atlas-kicker { display: block; font-size: 9px; letter-spacing: .19em; font-weight: 900; color: var(--ink-soft); }
.atlas-side-head h2 { font: 24px/1.5 var(--display); }
.atlas-compass-small { font: 48px/1 Georgia,serif; color: var(--atlas-gold); }
.atlas-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 16px; padding: 9px 12px; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 9px; }
.atlas-search>span { font-size: 26px; line-height: 1; color: var(--ink-soft); }
.atlas-search input { background: none; border: 0; min-width: 0; width: 100%; color: var(--ink); font: 700 12px var(--body); padding: 4px 0; }
.atlas-search input::placeholder { color: var(--ink-soft); opacity: 1; }
.atlas-search kbd { border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--ink-soft); font: 11px var(--body); }
.atlas-tabs { display: flex; padding: 0 16px; gap: 16px; border-bottom: 1px solid var(--line); }
.atlas-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0; color: var(--ink-soft); font-size: 12px; font-weight: 900; }
.atlas-tabs button[aria-pressed=true] { color: var(--tide); border-color: var(--tide); }
.atlas-results { height: 0; min-height: 120px; flex: 1; overflow: auto; overscroll-behavior: contain; padding: 8px 12px 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.atlas-results h3 { font: 900 10px var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); margin: 20px 10px 10px; }
.atlas-map-row,.atlas-entity-row { width: 100%; display: flex; gap: 11px; align-items: center; padding: 11px 10px; text-decoration: none; border-radius: 9px; border: 1px solid transparent; color: var(--ink); background: none; text-align: left; }
.atlas-map-row:hover,.atlas-entity-row:hover { background: var(--panel-soft); border-color: var(--line); }
.atlas-map-row[aria-current=page] { background: color-mix(in srgb,var(--tide) 9%,var(--panel)); border-color: color-mix(in srgb,var(--tide) 35%,var(--line)); }
.atlas-map-row strong,.atlas-entity-row strong { font-size: 13px; font-weight: 800; line-height: 1.3; display: block; }
.atlas-map-row small,.atlas-entity-row small { display: block; color: var(--ink-soft); font-size: 10px; margin-top: 4px; }
.atlas-map-row>span:nth-child(2),.atlas-entity-row>span:nth-child(2) { flex: 1; }
.atlas-thumb { width: 42px; height: 42px; border-radius: 9px; background: #19404e; object-fit: cover; border: 1px solid #b7af8a55; }
.atlas-row-arrow { color: var(--ink-soft); font-size: 14px; }
.atlas-side-foot { padding: 15px 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.atlas-live-dot { width: 5px; height: 5px; display: inline-block; background: var(--crystal); border-radius: 50%; margin-right: 6px; }
.atlas-main { min-width: 0; position: relative; }
.atlas-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 24px; height: 81px; }
.atlas-location h2 { font: 25px/1.5 var(--display); }
.atlas-toolbar-actions { display: flex; gap: 8px; }
.atlas-button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 12px; font-weight: 800; min-height: 40px; }
.atlas-button:hover { background: var(--panel-soft); }
.atlas-layerbar { display: flex; align-items: center; gap: 17px; min-height: 48px; padding: 9px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel-soft); flex-wrap: wrap; }
.atlas-layerbar label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; cursor: pointer; }
.atlas-layerbar input { width: 13px; height: 13px; accent-color: var(--tide); margin: 0 3px 0 0; }
.layer-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #54bd9b; flex-shrink: 0; }
.layer-dot.boss { background: #e6b658; transform: rotate(45deg); border-radius: 1px; }
.layer-dot.npc { background: #61bdec; }
.layer-dot.portal { background: #be8bf6; box-shadow: 0 0 0 2px #be8bf633; }
#legend-toggle { margin-left: auto; color: var(--ink-soft); border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; font-size: 11px; padding: 5px; }
.atlas-viewport { position: relative; height: 570px; min-height: 360px; overflow: hidden; isolation: isolate; background: var(--map-background, #19404e); cursor: grab; touch-action: none; color: #e7edda; }
.atlas-viewport:active { cursor: grabbing; }
.atlas-viewport:focus-visible { outline-offset: -4px; }
#map-canvas,#map-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
#map-markers { pointer-events: none; }
.atlas-map-caption { pointer-events: none; position: absolute; top: 28px; left: 28px; display: grid; gap: 4px; text-shadow: 0 2px 8px #071e26; }
.atlas-map-caption>span { font-size: 8px; letter-spacing: .26em; color: #c9d5cb; }
.atlas-map-caption strong { font: 28px var(--display); color: #f1dfb3; }
.atlas-map-caption i { font: italic 12px Georgia,serif; color: #d1d6c6; }
.atlas-compass { pointer-events: none; position: absolute; right: 18px; top: 18px; width: 74px; opacity: .8; text-align: center; color: #e5c98e; }
.atlas-compass b { font: 11px Georgia,serif; display: block; margin-bottom: -8px; }
.atlas-compass svg { fill: none; stroke: currentColor; stroke-width: .6; }
.atlas-compass .compass-fill { fill: #e5c98e30; stroke-width: 1; }
.atlas-zoom { position: absolute; right: 22px; bottom: 24px; display: grid; width: 42px; background: #102d39ed; border: 1px solid #b5c6bb66; border-radius: 9px; overflow: hidden; box-shadow: 0 4px 15px #071e2655; }
.atlas-zoom button { color: #f1dfb3; background: none; border: 0; font: 24px var(--body); height: 42px; }
.atlas-zoom button:hover:not(:disabled) { background: #ffffff18; }
.atlas-zoom button:disabled { opacity: .4; cursor: default; }
.atlas-zoom span { color: #cbd8d1; font-size: 9px; text-align: center; padding: 2px; }
#fit-map { border-top: 1px solid #b5c6bb44; }
.atlas-legend { pointer-events: none; position: absolute; bottom: 24px; left: 24px; background: #102d39ec; padding: 14px 17px; border: 1px solid #b5c6bb44; border-radius: 9px; display: grid; gap: 6px; box-shadow: 0 4px 15px #071e2655; }
.atlas-legend strong { color: #f1dfb3; font: 13px var(--display); margin-bottom: 3px; }
.atlas-legend>span { font-size: 10px; color: #dce6df; display: flex; align-items: center; gap: 9px; }
.atlas-legend small { max-width: 150px; font-size: 9px; color: #adc4c2; margin-top: 4px; }
.atlas-status { display: flex; justify-content: space-between; gap: 12px; padding: 10px 22px; background: var(--panel-soft); color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; }
.atlas-pin { pointer-events: auto; position: absolute; transform: translate(-50%,-50%); border: 2px solid #d0eddd; border-radius: 50%; background: #164f42; color: #e5fff3; width: 29px; height: 29px; padding: 0; box-shadow: 0 2px 8px #041c25aa; font: 900 9px var(--body); transition: box-shadow .15s; }
.atlas-pin:hover,.atlas-pin:focus-visible { z-index: 20; box-shadow: 0 0 0 5px #ffffff35,0 2px 9px #031922; }
.atlas-pin[data-kind=boss] { background: #745024; color: #ffedbb; border-color: #f4cd79; width: 33px; height: 33px; border-radius: 9px; }
.atlas-pin[data-kind=npc] { background: #24597c; border-color: #16366b; color: #ecf8ff; border-radius: 9px; }
.atlas-pin[data-kind=portal] { background: #5a3683; color: #f7e7ff; border-color: #d8adff; width: 33px; height: 33px; font-size: 20px; }
.atlas-pin.cluster { width: 35px; height: 35px; font-size: 11px; border-style: double; border-width: 3px; }
.atlas-pin.selected { z-index: 15; box-shadow: 0 0 0 5px #f8e6b488,0 0 22px #f8e6b4; }
.atlas-pin[data-kind=monster] { background: var(--pin-color,#164f42); border-color: #f2a0a0; }
.atlas-pin.spawn-region { border-style: dashed; }
.atlas-pin.has-portrait .pin-symbol { display: block; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.atlas-marker-portrait { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.atlas-pin[data-kind=npc].has-portrait { border-radius: 50%; border-color: #16366b; }
.atlas-preview-portrait[data-kind=npc],.atlas-detail-portrait[data-kind=npc] { border-color: #16366b; }
.atlas-preview-portrait[data-kind=monster],.atlas-detail-portrait[data-kind=monster] { border-color: #f2a0a0; }
#map-markers[data-identification=close] .atlas-pin:is([data-kind=monster],[data-kind=boss],[data-kind=npc]):not(.cluster):not(.atlas-farm-pin) { width: var(--creature-size); height: var(--creature-size); border-width: 2px; }
.atlas-pin-description { display: grid; gap: 4px; text-align: left; }
.atlas-pin-description strong { font: 800 13px/1.35 var(--body); }
.atlas-pin-description small { font: 500 11px/1.4 var(--body); color: #c3dbdf; }
.atlas-preview-portrait { display: block; flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border: 1px solid #b3cfbe; border-radius: 9px; }
.layer-dot.region { background: transparent; border: 1px dashed #75c7a7; }
.atlas-breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; font-size: 11px; color: var(--ink-soft); margin-bottom: 7px; }
/* Keep terrain readable at overview scale. The transparent button retains a
   usable hit area; its small central dot is the only painted part. */
#map-markers[data-detail=overview] .atlas-pin[data-kind=monster] { width: 28px; height: 28px; border: 0; background: transparent; box-shadow: none; }
#map-markers[data-detail=overview] .atlas-pin[data-kind=monster]::before { content: ''; position: absolute; width: 6px; height: 6px; inset: 50% auto auto 50%; transform: translate(-50%,-50%); background: #a6e5bd; border: 1px solid #f2a0a0; border-radius: 50%; box-shadow: 0 1px 3px #041c2577; }
#map-markers[data-detail=overview] .atlas-pin[data-kind=monster].cluster::before { width: 11px; height: 11px; background: #74c7a7; border-color: #f2a0a0; }
#map-markers[data-detail=overview] .atlas-pin[data-kind=monster] .pin-symbol { display: none; }
#map-markers[data-detail=overview] .atlas-pin[data-kind=monster]:is(:hover,:focus-visible,.selected)::before { width: 25px; height: 25px; background: var(--pin-color,#164f42); border: 1px solid #f2a0a0; }
#map-markers[data-detail=overview] .atlas-pin[data-kind=monster]:is(:hover,:focus-visible,.selected) .pin-symbol { display: block; position: relative; z-index: 1; }
#map-markers[data-detail=overview] .atlas-pin[data-kind=boss] { width: 21px; height: 21px; border-width: 1px; border-radius: 6px; font-size: 7px; }
#map-markers[data-detail=overview] .atlas-pin[data-kind=npc] { width: 18px; height: 18px; border-width: 1px; border-radius: 5px; font-size: 8px; }
#map-markers[data-detail=overview] .atlas-pin[data-kind=portal] { width: 24px; height: 24px; border-width: 1px; font-size: 15px; }
#map-markers[data-detail=regional] .atlas-pin[data-kind=monster] { width: 20px; height: 20px; border-width: 1px; font-size: 7px; }
#map-markers[data-detail=regional] .atlas-pin[data-kind=monster].cluster { width: 24px; height: 24px; font-size: 9px; }
.atlas-pin-label { position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 190px; border-radius: 5px; background: #0b2432f2; padding: 5px 8px; font: 800 10px var(--body); color: #fff3d6; pointer-events: none; display: none; }
.atlas-pin:hover .atlas-pin-label,.atlas-pin:focus-visible .atlas-pin-label,.atlas-pin.selected .atlas-pin-label { display: block; }
.atlas-pin:is(:hover,:focus-visible,.selected) .atlas-pin-label.has-preview { display: flex; align-items: center; gap: 10px; width: 255px; max-width: 255px; padding: 9px; box-sizing: border-box; }
#map-markers .atlas-pin.selected:is([data-kind=monster],[data-kind=boss],[data-kind=npc]) .atlas-pin-label { display: none; }
.atlas-town { position: absolute; transform: translate(-50%,-50%); font: 13px var(--display); color: #fff0c9; text-shadow: 0 1px 3px #031922,0 0 6px #031922; pointer-events: none; white-space: nowrap; }
.atlas-loading { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: #133846dd; font: 19px var(--display); padding: 40px; z-index: 40; }
.atlas-loading button { margin: 16px auto 0; }
.atlas-filter { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); background: #fff1cc; color: #43280a; border: 1px solid #d4a752; border-radius: 30px; padding: 6px 7px 6px 14px; font-size: 11px; font-weight: 900; box-shadow: 0 3px 16px #0004; display: flex; align-items: center; gap: 10px; max-width: 65%; }
.atlas-filter button { background: #43280a10; color: inherit; border: 0; border-radius: 50%; font-size: 20px; width: 28px; height: 28px; }
.atlas-detail { position: absolute; right: 80px; bottom: 65px; width: 295px; max-height: 425px; overflow: auto; padding: 22px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 12px 36px #071e2666; z-index: 30; }
.atlas-detail h3 { font: 19px/1.35 var(--display); padding-right: 20px; margin: 8px 0; }
.atlas-detail-heading { display: flex; align-items: center; gap: 12px; }
.atlas-detail-heading>div { min-width: 0; }
.atlas-detail-portrait { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--line); border-radius: 12px; }
.atlas-close { position: absolute; right: 9px; top: 9px; border: 0; background: var(--panel-soft); color: var(--ink); border-radius: 6px; width: 28px; height: 28px; font-size: 18px; }
.atlas-detail p { font-size: 11px; color: var(--ink-soft); margin: 9px 0; }
.atlas-detail dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.atlas-detail dl>div { background: var(--panel-soft); padding: 9px 10px; border-radius: 7px; }
.atlas-detail dt { font-size: 9px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.atlas-detail dd { margin: 2px 0 0; font-size: 13px; font-weight: 900; }
.atlas-detail .atlas-button { width: 100%; margin-top: 7px; text-decoration: none; }
.atlas-detail .atlas-button.primary { background: var(--tide); color: var(--panel); }
.atlas-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; font: 900 11px var(--body); color: hsl(var(--hue,155) 65% 22%); background: hsl(var(--hue,155) 45% 87%); border: 1px solid hsl(var(--hue,155) 35% 65%); }
.atlas-badge.has-portrait { position: relative; overflow: hidden; border-width: 2px; }
.atlas-badge.has-portrait[data-kind=monster] { border-color: #f2a0a0; }
.atlas-badge.has-portrait[data-kind=boss] { border-color: #f4cd79; }
.atlas-badge.has-portrait[data-kind=npc] { border-color: #16366b; }
.atlas-badge-portrait { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.atlas-muted { font-size: 12px; color: var(--ink-soft); margin: 18px 10px; }
.atlas-farm-intro { font-size: 11px; line-height: 1.6; color: var(--ink-soft); margin: 8px 10px 14px; }
.atlas-results .atlas-button { margin: 8px 10px; }
.atlas-announcement { font-size: 12px; color: var(--ink-soft); max-width: 1504px; margin: 12px auto 0; min-height: 20px; padding: 0 28px; }
.atlas-guide { max-width: 1280px; padding: 44px 28px 38px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.atlas-guide h2 { font: 29px var(--display); margin: 10px 0 16px; }
.atlas-guide h3 { font: 19px var(--display); margin: 7px 0 16px; }
.atlas-guide p { color: var(--ink-soft); font-size: 13px; }
.atlas-guide .eyebrow { font-size: 10px; }
.atlas-guide .atlas-data-note { margin-top: 15px; font-size: 11px; }
.atlas-reference { max-width: 1224px; padding: 0 28px 40px; margin: auto; font-size: 12px; }
.atlas-reference summary { cursor: pointer; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 800; }
.atlas-directory { display: flex; gap: 10px 20px; flex-wrap: wrap; padding: 16px 0 24px; }
.atlas-catalog { columns: 3 220px; padding: 0; list-style: none; }
.atlas-catalog li { padding: 6px 0; break-inside: avoid; }
.atlas-catalog span,.atlas-catalog small { color: var(--ink-soft); }
.atlas-catalog small { display: block; font-size: 11px; }
.atlas-reference h3 { margin-top: 20px; }
.atlas-footer { display: flex; justify-content: space-between; gap: 20px; background: var(--night); color: var(--night-soft); padding: 25px max(28px,calc((100vw - 1450px)/2)); font-size: 11px; }
.atlas-footer a { text-decoration: none; color: var(--moon); }
.atlas-noscript { padding: 20px; text-align: center; }
.atlas-shell:fullscreen { width: 100%; max-width: none; border-radius: 0; height: 100dvh; }
.atlas-shell:fullscreen .atlas-viewport { height: calc(100dvh - 166px); }
.atlas-shell:fullscreen .atlas-results { height: calc(100dvh - 240px); }
@media(min-width:1650px) { .atlas-viewport { height: 660px; } }
@media(max-width:1050px) { .atlas-shell { grid-template-columns: 240px minmax(0,1fr); width: calc(100% - 32px); }.atlas-layerbar { gap: 10px; padding-inline: 16px; }.atlas-legend { padding: 12px; left: 16px; }.atlas-detail { right: 70px; width: 270px; }.atlas-heading { padding-inline: 20px; } }
@media(max-width:760px) { .atlas-heading { padding: 26px 16px 22px; }.atlas-heading h1 { font-size: 26px; }.atlas-heading p:last-child { font-size: 12px; }.atlas-guide-link { display: none; }.atlas-shell { display: flex; flex-direction: column; width: calc(100% - 24px); }.atlas-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }.atlas-side-head { padding: 14px 16px 8px; }.atlas-side-head h2 { font-size: 20px; }.atlas-kicker { font-size: 8px; }.atlas-compass-small { font-size: 30px; }.atlas-search { margin-bottom: 6px; }.atlas-results { height: 170px; max-height: 240px; flex: auto; }.atlas-results h3 { margin-top: 10px; }.atlas-side-foot { display: none; }.atlas-map-row,.atlas-entity-row { padding: 7px 10px; }.atlas-thumb { width: 32px; height: 32px; }.atlas-toolbar { padding: 12px 16px; height: 72px; }.atlas-location h2 { font-size: 22px; }.atlas-layerbar { gap: 10px 12px; padding: 9px 12px; }.atlas-layerbar label { font-size: 10px; }.atlas-layerbar input { width: 15px; height: 15px; }.atlas-viewport { height: 480px; }.atlas-map-caption { left: 16px; top: 16px; }.atlas-map-caption strong { font-size: 23px; }.atlas-legend { bottom: 15px; }.atlas-legend small { display: none; }.atlas-zoom { right: 14px; bottom: 15px; }.atlas-status { font-size: 9px; padding: 8px 12px; }.atlas-status #map-scale { display: none; }.atlas-guide { grid-template-columns: 1fr; gap: 24px; padding: 30px 22px; }.atlas-detail { position: relative; inset: auto; width: 100%; max-height: 400px; border-radius: 0; box-shadow: none; border-width: 1px 0 0; }.atlas-filter { top: 100px; max-width: 90%; }.atlas-footer { flex-wrap: wrap; }.atlas-shell:fullscreen { overflow: auto; }.atlas-shell:fullscreen .atlas-viewport { height: 60dvh; }.atlas-shell:fullscreen .atlas-results { height: 150px; }}
@media(prefers-reduced-motion:reduce) { .atlas-page * { scroll-behavior: auto; transition: none !important; } }

/* Research controls stay in the sidebar; the terrain remains the main focus. */
.atlas-search { margin-bottom: 6px; }
.atlas-search-hint { font-size: 10px; color: var(--ink-soft); margin: 0 18px 12px; }
.atlas-filters { border-block: 1px solid var(--line); margin-bottom: 3px; }
.atlas-filters summary { padding: 11px 20px; cursor: pointer; font-size: 12px; font-weight: 800; }
#filter-count:not(:empty) { display: inline-grid; place-items: center; margin-left: 6px; width: 18px; height: 18px; background: var(--tide); color: var(--panel); border-radius: 50%; font-size: 10px; }
.atlas-filter-fields { padding: 0 18px 14px; display: grid; gap: 12px; }
.atlas-filter-fields label,.atlas-route-start,.atlas-save-form label { display: grid; gap: 5px; font-size: 11px; font-weight: 800; }
.atlas-filter-fields .atlas-check { display: flex; align-items: center; gap: 7px; }
.atlas-check input { accent-color: var(--tide); width: 16px; height: 16px; }
.atlas-filter-fields fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.atlas-filter-fields legend { font-size: 11px; font-weight: 800; margin-bottom: 5px; }
.atlas-level-range { display: flex; gap: 9px; align-items: end; }.atlas-level-range label { flex: 1; min-width: 0; font-size: 10px; color: var(--ink-soft); }.atlas-level-range>span { padding-bottom: 9px; }
.atlas-filter-fields input[type=number],.atlas-filter-fields select,.atlas-route-start select,.atlas-save-form input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-soft); color: var(--ink); font: 12px var(--body); padding: 8px; min-height: 38px; }
.atlas-field-note { font-size: 10px; color: var(--ink-soft); margin: 0; }
.atlas-text-button { border: 0; background: none; color: var(--tide); font: 800 11px var(--body); padding: 5px 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.atlas-results>.atlas-text-button { margin: 12px 10px; }
.atlas-status { align-items: center; }.atlas-status .atlas-text-button { font-size: 10px; padding: 0; }
.atlas-saved-row { display: flex; align-items: center; gap: 2px; }.atlas-saved-row .atlas-entity-row { min-width: 0; }.atlas-saved-row strong { overflow-wrap: anywhere; }
.atlas-remove { background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); min-width: 32px; height: 32px; font-size: 18px; }
.atlas-recent { display: block; background: none; border: 0; border-radius: 6px; text-align: left; width: 100%; padding: 10px; color: var(--ink); font: 700 12px var(--body); }.atlas-recent:hover { background: var(--panel-soft); }
.atlas-save-form { display: grid; gap: 8px; }.atlas-save-form input { font-size: 14px; }
.atlas-route-title { font: 18px/1.4 var(--display); margin: 8px 10px 15px; overflow-wrap: anywhere; }
.atlas-route-start { margin: 0 10px 14px; }.atlas-route-start select { margin-top: 3px; }
.atlas-route-steps { list-style: decimal; margin: 0 0 0 30px; padding: 0 5px 0 0; color: var(--atlas-gold); }
.atlas-route-steps>li { padding: 0 0 14px 3px; font-size: 12px; font-weight: 800; }.atlas-route-steps p { font-size: 10px; font-weight: 400; color: var(--ink-soft); margin: 7px 0; }
.atlas-route-step { display: grid; gap: 5px; background: var(--panel-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; text-align: left; padding: 10px; width: 100%; }
.atlas-route-step strong { font-size: 12px; }.atlas-route-step span,.atlas-route-step small { font-size: 10px; color: var(--ink-soft); }
.atlas-overview { position: absolute; top: 18px; right: 18px; width: 154px; border: 1px solid #b5c6bb66; border-radius: 9px; background: #102d39ed; color: #f1dfb3; overflow: hidden; box-shadow: 0 3px 15px #071e2655; }
.atlas-overview summary { padding: 8px 10px; cursor: pointer; font: 800 10px var(--body); }.atlas-overview summary span { float: right; }
#overview-canvas { display: block; width: 140px; height: 112px; margin: 0 6px; cursor: crosshair; border-radius: 3px; touch-action: manipulation; }
.atlas-overview small { display: block; font-size: 9px; padding: 5px 10px 8px; color: #bfd1cc; }
.atlas-services { font-weight: 800; }
.atlas-search-tools { display: flex; align-items: center; gap: 6px; }
.atlas-search-tools .atlas-search { flex: 1; min-width: 0; }
#explorer-toggle { display: none; }
.atlas-explorer { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.atlas-search-kinds { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 14px 12px; }
.atlas-search-kinds button { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 20px; padding: 6px 9px; font-size: 10px; font-weight: 800; }
.atlas-search-kinds button[aria-pressed=true] { color: var(--panel); background: var(--tide); border-color: var(--tide); }
.atlas-result-location { color: var(--ink) !important; }
.atlas-pin[data-kind=monster]:not(.cluster) { font-size: 7px; }
#map-markers[data-detail=spawns] .atlas-pin[data-kind=monster] { width: 17px; height: 17px; border-width: 1px; font-size: 5.5px; }
.atlas-badge { font-size: 9px; }
.atlas-farm-row[aria-pressed=true] { background: var(--panel-soft); border-color: var(--atlas-gold); }
.atlas-farm-method { margin: 8px 10px 14px; font-size: 11px; color: var(--ink-soft); }
.atlas-farm-method summary { cursor: pointer; color: var(--tide); }
.atlas-farm-method p { margin-top: 8px; }
#map-markers .atlas-farm-pin { width: 32px !important; height: 32px !important; border: 2px solid #ffe3a2 !important; border-radius: 9px !important; background: #183e41 !important; color: #fff3ce !important; font-size: 12px !important; box-shadow: 0 2px 8px #041c25aa !important; }
#map-markers .atlas-farm-pin::before { display: none; }
#map-markers .atlas-farm-pin.selected { background: #e7ce8e !important; color: #19343b !important; box-shadow: 0 0 0 4px #fff3ce55 !important; }
.atlas-map-notice { position: absolute; z-index: 25; top: 62px; left: 16px; max-width: min(420px,calc(100% - 32px)); padding: 13px 16px; display: flex; gap: 8px 14px; flex-wrap: wrap; background: var(--panel); color: var(--ink); border: 1px solid var(--atlas-gold); border-radius: 10px; box-shadow: 0 4px 20px #06172555; font-size: 12px; }
.atlas-map-notice strong { width: 100%; }
.atlas-map-notice .atlas-text-button { min-height: 30px; }
.atlas-teleport-menu { display: grid; gap: 7px; margin-top: 16px; }
.atlas-destination { width: 100%; display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 3px 8px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-soft); color: var(--ink); text-align: left; }
.atlas-destination>span { grid-row: span 2; align-self: center; color: var(--atlas-gold); font-size: 21px; }
.atlas-destination strong { font-size: 12px; }.atlas-destination small { font-size: 10px; color: var(--ink-soft); }
.atlas-destination:hover,.atlas-destination:focus-visible { border-color: var(--atlas-gold); background: color-mix(in srgb,var(--atlas-gold) 12%,var(--panel)); }
.atlas-main:has(.atlas-detail:not([hidden])) .atlas-overview,.atlas-main:has(.atlas-detail:not([hidden])) .atlas-legend { visibility: hidden; }
.atlas-viewport:has(.atlas-map-notice:not([hidden])) .atlas-overview { visibility: hidden; }
@media(max-width:760px) { .atlas-results.show-route { height: 280px; max-height: 340px; } }
@media(min-width:761px) { .atlas-shell { height: 744px; }.atlas-main { min-height: 0; }.atlas-viewport { height: 570px; }.atlas-side-head { padding-block: 16px 12px; }.atlas-shell:fullscreen .atlas-sidebar { min-height: 0; } }
@media(min-width:1650px) { .atlas-shell { height: 834px; }.atlas-viewport { height: 660px; } }
@media(max-width:1050px) and (min-width:761px) { .atlas-status #map-help { display: none; }.atlas-toolbar { padding-inline: 14px; }.atlas-toolbar-actions { gap: 5px; }.atlas-toolbar-actions span { display: none; } }
@media(max-width:760px) { .atlas-shell { min-height: 0; height: auto; }.atlas-results { height: 170px; min-height: 120px; max-height: 240px; flex: auto; }.atlas-filters summary { padding-block: 9px; }.atlas-filter-fields { grid-template-columns: 1fr 1fr; gap: 10px 12px; }.atlas-filter-fields .atlas-check,.atlas-filter-fields .atlas-field-note { grid-column: 1/-1; }.atlas-toolbar-actions { gap: 5px; }.atlas-toolbar-actions .atlas-button { padding: 8px 10px; }.atlas-toolbar-actions span { display: none; }.atlas-status #map-help { display: none; }.atlas-overview { top: 12px; right: 12px; width: 112px; }#overview-canvas { width: 100px; height: 80px; margin: 0 5px; }.atlas-overview small { font-size: 8px; padding: 4px 7px 7px; }.atlas-map-caption strong { max-width: 190px; font-size: 20px; }.atlas-map-caption i { display: none; }.atlas-level-range input { font-size: 16px!important; }.atlas-save-form input { font-size: 16px; } }

/* Short desktop windows still keep the working map and controls together. */
@media(min-width:761px) and (max-height:900px) {
 .atlas-heading { padding-block: 12px; }
 .atlas-heading h1 { font-size: 28px; }
 .atlas-heading p { display: none; }
 .atlas-shell { height: calc(100dvh - 142px); min-height: 500px; }
 .atlas-toolbar { height: 66px; padding-block: 10px; }
 .atlas-viewport { height: calc(100dvh - 305px); min-height: 340px; }
 .atlas-detail { max-height: min(425px,calc(100dvh - 340px)); }
}
/* Compact map-first layout; the explorer becomes a deliberate mobile drawer. */
@media(max-width:760px) {
 .atlas-heading { padding: 12px 14px; align-items: center; }
 .atlas-heading h1 { font-size: 22px; }
 .atlas-heading p { display: none; }
 .atlas-guide-link { display: block; font-size: 11px; }
 .atlas-shell { width: calc(100% - 16px); }
 .atlas-side-head,.atlas-search-hint { display: none; }
 .atlas-search-tools { padding: 8px; }
 .atlas-search-tools .atlas-search { margin: 0; padding: 7px 8px; }
 .atlas-search input { font-size: 16px; }
 .atlas-search kbd { display: none; }
 #explorer-toggle { display: inline-flex; padding: 8px; font-size: 11px; min-width: 65px; }
 .atlas-explorer { display: none; max-height: 52dvh; overflow: auto; }
 .explorer-open .atlas-explorer { display: flex; }
 .atlas-explorer .atlas-results { flex: 1 0 170px; min-height: 170px; height: auto; max-height: 30dvh; }
 .atlas-search-kinds { padding: 4px 10px 9px; }
 .atlas-search-kinds button { min-height: 36px; padding-inline: 10px; }
 .atlas-toolbar { height: 58px; padding: 8px 12px; gap: 8px; }
 .atlas-location h2 { font-size: 20px; }
 .atlas-location .atlas-kicker { display: none; }
 .atlas-toolbar-actions .atlas-button { min-width: 35px; min-height: 36px; padding: 7px; }
 .atlas-layerbar { gap: 8px 10px; padding: 8px 10px; }
 .atlas-viewport { height: clamp(320px,calc(100svh - 285px),620px); min-height: 320px; }
 .atlas-detail { position: absolute; left: 8px; right: 8px; bottom: 40px; width: auto; max-height: min(42dvh,340px); padding: 16px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px #071e2666; }
 .atlas-detail h3 { font-size: 17px; margin-top: 2px; }
 .atlas-detail dl { margin-block: 10px; }
 .atlas-filter { top: 12px; left: 12px; transform: none; max-width: calc(100% - 24px); font-size: 10px; }
 .atlas-map-notice { top: 61px; left: 12px; max-width: calc(100% - 24px); }
 .atlas-status #map-scale { display: block; font-size: 8px; }
 .atlas-status { gap: 5px; min-height: 34px; flex-wrap: wrap; }
 .atlas-close { width: 34px; height: 34px; }
 .atlas-shell:fullscreen .atlas-viewport { height: calc(100dvh - 205px); }
}

.atlas-route-heading { margin: 22px 10px 10px; color: var(--ink); font-size: 14px; }
.atlas-route-gap { margin: 10px; padding: 10px; border-left: 2px solid var(--atlas-gold); color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
