/* TarkovFlip Atlas. Map geometry is independent of the interface and its labels. */
body.atlas-page { --map-ground:#edf1e8; --map-line:#d8e1e0; }
body.atlas-page .catalog-main { max-width:1680px; padding:0 24px 32px; }
body.atlas-page .map-page { padding:0; border:0; border-radius:0; background:transparent; }
.atlas-page button,.atlas-page select,.atlas-page input { font:inherit; }
.atlas-page [hidden] { display:none!important; }
.atlas-page svg { flex-shrink:0; }
.atlas-page button { cursor:pointer; }
.atlas-page button:disabled { opacity:.45; cursor:default; }
.atlas-page select { color:var(--ink); background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:10px 30px 10px 12px; min-height:42px; max-width:100%; }
.atlas-eyebrow { font-size:12px; color:var(--muted); letter-spacing:.08em; text-transform:uppercase; margin:0 0 5px; }
.atlas-heading { display:flex; align-items:center; gap:28px; margin-bottom:18px; min-height:56px; }
.atlas-heading-title { display:flex; align-items:center; gap:14px; }
.atlas-page .atlas-heading h1 { font-size:28px; margin:0; line-height:1.2; letter-spacing:-.8px; }
.atlas-back { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--border); border-radius:10px; color:var(--muted); }
.atlas-back svg { width:19px; height:19px; }
.atlas-heading-meta { display:flex; align-items:center; gap:22px; color:var(--muted); font-size:14px; }
.atlas-heading-meta span { display:flex; align-items:center; gap:7px; }
.atlas-heading-meta svg { width:16px; height:16px; }
.atlas-map-picker { display:flex; gap:10px; align-items:center; margin-left:auto; font-size:13px; color:var(--muted); }
.atlas-map-picker select { min-width:180px; font-size:14px; }
.atlas-workspace { display:grid; grid-template-columns:282px minmax(0,1fr); border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--panel); height:var(--atlas-height,720px); min-height:440px; }
.atlas-sidebar-slot { min-height:0; overflow:auto; border-right:1px solid var(--border); }
.atlas-sidebar { padding:18px 16px; min-width:0; font-size:14px; }
.atlas-search { display:flex; align-items:center; gap:9px; border:1px solid var(--border); border-radius:9px; padding:0 11px; min-height:44px; background:var(--bg); color:var(--muted); }
.atlas-search:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-tint); }
.atlas-search svg { width:18px; height:18px; }
.atlas-search input { border:0; outline:0!important; width:100%; min-width:0; background:transparent; color:var(--ink); font-size:14px; box-shadow:none; padding:11px 0; }
.atlas-search input::placeholder { color:var(--muted); }
.atlas-search-hint { font-size:12px; line-height:1.45; color:var(--muted); margin:8px 0 16px; }
.atlas-sidebar-tabs { display:flex; border-bottom:1px solid var(--border); gap:16px; margin-bottom:16px; }
.atlas-sidebar-tabs button { position:relative; display:flex; align-items:center; gap:7px; padding:0 2px 12px; background:none; border:0; color:var(--muted); font-size:14px; }
.atlas-sidebar-tabs button[aria-selected=true] { color:var(--accent-text); font-weight:600; }
.atlas-sidebar-tabs button[aria-selected=true]::after { content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--accent); }
#atlas-points-count { font-size:12px; background:var(--bg-soft); padding:1px 5px; border-radius:4px; }
.atlas-presets { display:flex; gap:5px; padding:3px; border-radius:8px; background:var(--bg-soft); }
.atlas-presets button { flex:1; padding:8px 4px; font-size:12px; border:0; border-radius:6px; color:var(--muted); background:transparent; }
.atlas-presets button[aria-pressed=true] { background:var(--panel); color:var(--ink); box-shadow:0 1px 3px #15293212; }
.atlas-count-hint { color:var(--muted); font-size:12px; line-height:1.5; margin:13px 0 9px; }
.atlas-layer-list { display:flex; flex-direction:column; gap:1px; }
.atlas-layer-row { display:flex; align-items:center; gap:10px; min-height:44px; font-size:13px; cursor:pointer; border-radius:7px; padding:4px 5px; }
.atlas-layer-row:hover { background:var(--bg); }
.atlas-layer-row[data-kind=loose] { margin-top:10px; border-top:1px solid var(--border); border-radius:0; padding-top:12px; }
.atlas-layer-icon { display:grid; place-items:center; color:var(--marker-color); width:25px; height:25px; flex-shrink:0; }
.atlas-layer-icon svg { width:28px; height:28px; }
.atlas-layer-count { margin-left:auto; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.atlas-layer-row input { appearance:none; width:27px; height:16px; border:0; background:#c8ced5; border-radius:12px; position:relative; flex-shrink:0; margin:0; cursor:pointer; }
.atlas-layer-row input::before { content:''; position:absolute; width:12px; height:12px; border-radius:50%; background:white; left:2px; top:2px; }
.atlas-layer-row input:checked { background:var(--accent); }
.atlas-layer-row input:checked::before { left:13px; }
.atlas-value-filter { display:flex; flex-direction:column; gap:7px; font-size:12px; color:var(--muted); margin-top:18px; }
.atlas-value-filter select { width:100%; font-size:14px; }
.atlas-map-column { min-width:0; min-height:0; display:flex; flex-direction:column; }
.atlas-map-toolbar { display:flex; align-items:center; gap:18px; padding:10px 16px; border-bottom:1px solid var(--border); min-height:65px; }
.atlas-map-toolbar label { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; }
.atlas-map-toolbar select { border-color:transparent; background:var(--bg); font-size:13px; min-height:38px; padding:8px 26px 8px 10px; }
.atlas-icon-button { display:grid; place-items:center; min-width:42px; height:42px; padding:9px; border:1px solid var(--border); border-radius:8px; background:var(--panel); color:var(--muted); }
.atlas-icon-button svg { width:19px; height:19px; }
#atlas-expand { margin-left:auto; }
.atlas-mobile-actions { display:none; }
.atlas-pane { position:relative; flex:1; min-height:0; overflow:hidden; background:var(--map-ground); touch-action:none; -webkit-user-select:none; user-select:none; cursor:grab; display:flex; align-items:center; justify-content:center; }
.atlas-pane.dragging { cursor:grabbing; }
.atlas-canvas { flex-shrink:0; position:relative; transform-origin:50% 50%; --z:1; }
.atlas-map-base,.atlas-map-floor,.atlas-zones,#atlas-landmarks,#atlas-room-labels,#atlas-markers,#atlas-clusters { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.atlas-map-floor { display:none; }
.atlas-map-floor.is-on { display:block; }
.atlas-canvas.has-floor .atlas-map-base { opacity:.24; }
.atlas-zone-union,.atlas-zone-sources polygon { fill:url(#atlas-danger-hatch); stroke:#bf6268; stroke-width:calc(.13px / var(--z,1)); }
.atlas-zone-sources polygon { display:none; }
.atlas-zone-sources[data-zone-fallback="true"] polygon,.atlas-zone-sources polygon.is-selected { display:inline; }
.atlas-zones polygon.is-selected { fill:#c23d3d24; stroke:#a82929; stroke-width:3; vector-effect:non-scaling-stroke; }
/* Road signs: warning triangles, service plates and explicit faction exits. */
.atlas-landmark { position:absolute; transform:translate(-50%,-50%) rotate(var(--label-angle,0deg)) scale(calc(1 / var(--z))); font-size:11px; line-height:1.2; color:#243b48; font-weight:650; padding:3px 6px; border:1px solid #89999f; outline:1px solid #fff; border-radius:1px; background:#fffffff2; white-space:nowrap; pointer-events:none; }
.mk-mixed { --marker-color:#506774; }.mk-extract { --marker-color:#14765d; }.mk-transit,.mk-loose,.mk-cont,.mk-lock,.mk-quest,.mk-spawn,.mk-switch,.mk-gun { --marker-color:#28629b; }.mk-hazard { --marker-color:#c23d3d; }.mk-label { --marker-color:#405463; }
.atlas-marker,.atlas-cluster { position:absolute; display:grid; place-items:center; width:28px; height:28px; padding:0; border-radius:3px; border:0; background:transparent; color:var(--marker-color); transform:translate(-50%,-50%) scale(calc(1 / var(--z))); pointer-events:auto; z-index:2; font-size:12px; }
.atlas-marker > svg { width:100%; height:100%; pointer-events:none; filter:drop-shadow(0 1px 2px #263a4b50); }
.atlas-marker.mk-extract { width:34px; height:34px; border-radius:50%; z-index:5; --marker-color:#526b77; }
.atlas-marker.mk-hazard { width:32px; height:32px; z-index:4; }
.atlas-marker.mk-spawn { border-radius:50%; }
.atlas-marker > .atlas-marker-label { position:absolute; left:calc(100% + 5px); top:50%; transform:translateY(-50%); max-width:190px; font-weight:600; font-size:12px; line-height:1.2; white-space:normal; text-align:left; padding:4px 6px; border:1px solid #8899a1; border-radius:2px; background:#fffffff5; color:#294654; box-shadow:0 0 0 1px white; pointer-events:none; }
.atlas-marker.label-left .atlas-marker-label { left:auto; right:calc(100% + 5px); text-align:right; }
.atlas-marker.label-hidden .atlas-marker-label { display:none; }
.atlas-extract-floor { display:block; margin-top:2px; font-size:11px; font-weight:500; color:#4d606c; }
.atlas-marker:hover,.atlas-marker.is-selected { z-index:30; outline:2px solid #fff; box-shadow:0 0 0 4px var(--marker-color),0 2px 12px #233d4650; }
.atlas-marker.is-selected .atlas-marker-label { display:block; }
.atlas-cluster { display:flex; align-items:center; justify-content:center; gap:1px; height:32px; padding:2px 3px; border:1.5px solid #526b77; border-radius:3px; background:#fff; color:#243c4a; font-weight:750; outline:2px solid white; z-index:3; box-shadow:0 2px 4px #263a4b30; }
.atlas-cluster > svg { width:20px; height:20px; flex-shrink:0; }
.atlas-cluster.mk-mixed > svg { width:17px; height:17px; margin:0 1px; }
.atlas-cluster-count { font-size:12px; font-variant-numeric:tabular-nums; }
.atlas-group-leaders { position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
.atlas-cluster:hover { z-index:25; box-shadow:0 0 0 4px #526b77; }
.atlas-zoom { position:absolute; right:16px; bottom:34px; display:flex; flex-direction:column; border:1px solid #cfdbd8; border-radius:10px; box-shadow:0 2px 10px #17293314; background:#fff; overflow:hidden; z-index:40; }
.atlas-zoom button { display:grid; place-items:center; width:44px; height:44px; padding:11px; border:0; background:#fff; color:#38535f; }
.atlas-zoom button:hover { background:#eef3f2; }.atlas-zoom svg { width:20px; height:20px; }
.atlas-zoom output { color:#647781; font-size:11px; text-align:center; padding:1px 0; }
#atlas-reset { border-top:1px solid #e3e9e6; }
.atlas-map-help { position:absolute; bottom:0; left:0; right:0; padding:5px 12px; font-size:11px; color:#526b73; background:#ffffffb8; pointer-events:none; }
.atlas-map-status { position:absolute; left:14px; top:14px; max-width:calc(100% - 28px); padding:7px 10px; border:1px solid #ffffff; border-radius:7px; background:#fffffff0; color:#48626d; font-size:12px; pointer-events:none; box-shadow:0 1px 4px #1e3a4810; }
.atlas-point-row { display:flex; align-items:center; gap:10px; width:100%; padding:12px 2px; border:0; border-bottom:1px solid var(--border); background:none; color:var(--ink); text-align:left; font-size:13px; line-height:1.4; }
.atlas-point-row:hover { background:var(--bg); }.atlas-point-row>span:last-child { min-width:0; }
.atlas-point-row small { display:block; color:var(--muted); font-size:12px; margin-top:4px; }
#atlas-more { width:100%; padding:12px; margin-top:12px; border:1px solid var(--border); border-radius:8px; background:var(--bg); color:var(--accent-text); font-size:13px; }
.atlas-details-actions { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.atlas-details-actions button { display:flex; align-items:center; justify-content:center; gap:5px; min-height:38px; padding:6px; border:0; background:none; color:var(--muted); font-size:12px; }
.atlas-details-actions svg { width:17px; height:17px; }
.atlas-detail-category { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; margin-bottom:10px; }
.atlas-detail-category svg { width:28px; height:28px; }
.atlas-page #atlas-details h3 { font-size:18px; line-height:1.4; margin:0 0 12px; color:var(--ink); letter-spacing:-.3px; }
#atlas-details h3 a { color:var(--accent-text); text-decoration:none; }
#atlas-details p { font-size:13px; line-height:1.65; margin:12px 0; color:var(--muted); }
.atlas-extract-conditions { margin-top:18px; }
.atlas-extract-conditions h4 { margin:0 0 10px; font-size:13px; font-weight:650; color:var(--ink); }
.atlas-extract-conditions>ul { margin:0; padding-left:18px; font-size:13px; line-height:1.6; color:var(--ink); }
.atlas-extract-conditions>ul li+li { margin-top:8px; }
#atlas-details .atlas-extract-availability { font-size:12px; color:var(--muted); padding-top:12px; border-top:1px solid var(--border); }
#atlas-details .atlas-extract-unconfirmed { padding:9px 10px; background:var(--bg-soft); border-radius:7px; color:var(--ink); }
.atlas-badge { display:inline-flex; padding:3px 8px; border-radius:5px; font-size:12px; color:var(--accent-text); background:var(--accent-tint); }
.atlas-price { display:block; font-size:20px; font-weight:600; margin-top:12px; }
.atlas-prices { margin:16px 0; display:flex; flex-direction:column; gap:12px; }
.atlas-prices dt { font-size:12px; color:var(--muted); }.atlas-prices dd { font-size:20px; color:var(--ink); font-weight:600; margin:4px 0 0; }
#atlas-details .atlas-warning { padding:9px; background:var(--danger-tint); color:var(--danger); border-radius:7px; }
.atlas-nearby { border-top:1px solid var(--border); margin-top:18px; padding-top:12px; }
.atlas-nearby>strong { font-size:13px; }.atlas-result-empty { color:var(--muted); font-size:14px; line-height:1.6; padding:16px 0; }
.atlas-data-note { font-size:13px; color:var(--muted); margin:12px 0; }
.atlas-under-map { display:flex; align-items:flex-start; flex-wrap:wrap; gap:12px 30px; margin-top:16px; }
.atlas-under-map>details { flex:1; min-width:220px; max-width:650px; border-bottom:1px solid var(--border); padding-bottom:12px; font-size:14px; }
.atlas-under-map summary { cursor:pointer; color:var(--text); }.atlas-under-map summary span { margin-left:10px; color:var(--muted); }
.atlas-under-map p { font-size:13px; color:var(--muted); line-height:1.7; margin-top:12px; }
.atlas-under-map ul { padding:12px 0 0; list-style:none; }.atlas-under-map li { display:flex; justify-content:space-between; padding:5px 0; }
.atlas-under-map .atlas-attribution { flex-basis:100%; font-size:12px; margin:0; }.atlas-attribution a { color:var(--muted); }
.atlas-sheet { position:fixed; inset:auto 0 0; margin:auto 0 0; width:100%; max-width:none; max-height:58dvh; padding:0; border:0; border-radius:18px 18px 0 0; background:var(--panel); color:var(--ink); box-shadow:0 -8px 35px #162e4322; }
.atlas-sheet:has(#atlas-details:not([hidden])) { max-height:45dvh; }
.atlas-sheet:has(#atlas-details:not([hidden])) .atlas-search,.atlas-sheet:has(#atlas-details:not([hidden])) .atlas-search-hint,.atlas-sheet:has(#atlas-details:not([hidden])) .atlas-sidebar-tabs { display:none; }
.atlas-sheet #atlas-detail-close { display:none; }
.atlas-sheet::backdrop { background:#192e4926; }
.atlas-sheet-heading { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--panel); z-index:1; }
.atlas-sheet-heading strong { font-size:14px; }.atlas-sheet-heading button { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:8px; background:var(--bg); color:var(--muted); }.atlas-sheet-heading svg { width:20px; height:20px; }
.atlas-workspace.is-expanded { position:fixed; inset:0; z-index:100; height:100dvh!important; border:0; border-radius:0; min-height:0; }
.atlas-index-heading { display:flex; justify-content:space-between; align-items:center; gap:30px; padding:14px 0 22px; }
.atlas-page .atlas-index h1 { font-size:34px; margin:0 0 7px; letter-spacing:-1px; }
.atlas-index-heading p:not(.atlas-eyebrow) { font-size:15px; color:var(--muted); }
.atlas-map-search { width:320px; background:var(--panel); }
.atlas-index-meta { border-top:1px solid var(--border); padding:15px 0; color:var(--muted); font-size:13px; }
.atlas-map-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.atlas-page .atlas-map-card { border:1px solid var(--border); border-radius:12px; background:var(--panel); overflow:hidden; text-decoration:none; transition:transform .15s,border-color .15s; }
.atlas-map-card:hover { transform:translateY(-3px); border-color:var(--accent); box-shadow:0 8px 22px #2331470a; }
.atlas-preview { height:190px; position:relative; overflow:hidden; background:var(--map-ground); border-bottom:1px solid var(--border); padding:12px; }
.atlas-preview svg { width:100%; height:100%; }.atlas-card-number { position:absolute; left:12px; top:12px; color:#3c616b; font-size:11px; background:#ffffffdb; padding:4px 7px; border-radius:4px; }
.atlas-card-body { padding:18px; }.atlas-card-title { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:17px; font-weight:600; color:var(--ink); }.atlas-card-title svg { width:17px; height:17px; color:var(--muted); }
.atlas-card-meta { display:block; color:var(--muted); font-size:13px; margin-top:7px; }
@media(max-width:1100px) { .atlas-workspace { grid-template-columns:260px minmax(0,1fr); }.atlas-map-toolbar { gap:10px; padding:10px; }.atlas-map-toolbar label { gap:5px; flex-direction:column; align-items:flex-start; }.atlas-map-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.atlas-heading { gap:18px; }.atlas-heading-meta { gap:12px; }.atlas-map-picker>span { display:none; } }
@media(max-width:760px) {
 body.atlas-page .catalog-main { padding:0 12px 24px; }
 .atlas-heading { flex-wrap:wrap; gap:10px; margin-bottom:12px; }.atlas-heading-title { gap:9px; }.atlas-back { width:36px; height:36px; }
 .atlas-heading .atlas-eyebrow { display:none; }.atlas-page .atlas-heading h1 { font-size:23px; }
 .atlas-heading-meta { order:3; width:100%; font-size:12px; padding-left:45px; gap:16px; }.atlas-heading-meta svg { width:14px; height:14px; }
 .atlas-map-picker { margin-left:auto; max-width:43%; }.atlas-map-picker select { min-width:0; width:100%; padding:8px 23px 8px 8px; font-size:12px; min-height:36px; }
 .atlas-workspace { display:block; height:var(--atlas-height,620px); min-height:350px; border-radius:11px; }
 .atlas-sidebar-slot { display:none; }.atlas-map-column { height:100%; }.atlas-map-toolbar { flex-wrap:wrap; padding:8px; gap:8px; min-height:0; }
 .atlas-mobile-actions { display:flex; gap:7px; flex:1 1 75%; }.atlas-mobile-actions button { display:flex; align-items:center; justify-content:center; gap:7px; border:1px solid var(--border); border-radius:8px; padding:9px; height:44px; font-size:13px; background:var(--panel); color:var(--text); }.atlas-mobile-actions button:first-child { flex:1; }.atlas-mobile-actions svg { width:17px; height:17px; }
 #atlas-expand { order:0; width:44px; height:44px; min-width:44px; margin:0; }.atlas-map-toolbar>label { order:1; flex:1; flex-direction:row; gap:5px; font-size:11px; }.atlas-map-toolbar>label select { min-width:0; width:100%; min-height:36px; padding:8px 20px 8px 7px; font-size:12px; }
 .atlas-marker::after,.atlas-cluster::after { content:''; position:absolute; width:max(100%,44px); height:max(100%,44px); left:50%; top:50%; transform:translate(-50%,-50%); }
 .atlas-marker-label { max-width:135px; font-size:12px; }.atlas-landmark { font-size:12px; }
 .atlas-zoom { right:10px; bottom:30px; }.atlas-map-help { font-size:10px; }.atlas-map-status { left:8px; top:8px; font-size:11px; padding:6px 8px; }
 .atlas-sidebar { padding:12px 16px 22px; }.atlas-search input { font-size:16px; }
 .atlas-sheet .atlas-search-hint { margin-bottom:12px; }.atlas-layer-row { min-height:44px; font-size:14px; }
 .atlas-workspace.is-expanded .atlas-map-toolbar { padding-top:env(safe-area-inset-top,8px); }
 .atlas-index-heading { flex-direction:column; align-items:stretch; gap:18px; padding-top:4px; }.atlas-page .atlas-index h1 { font-size:29px; }.atlas-map-search { width:100%; }
 .atlas-map-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.atlas-preview { height:125px; padding:8px; }.atlas-card-body { padding:12px; }.atlas-card-title { font-size:14px; }.atlas-card-title svg { display:none; }.atlas-card-meta { font-size:12px; }.atlas-card-number { font-size:10px; left:8px; top:8px; }
 .atlas-under-map { gap:14px; }.atlas-under-map>details { min-width:100%; }.atlas-attribution { line-height:1.7; }
}

/* Approved exit circles use faction color only; text remains in the legend and details. */
.atlas-marker.mk-extract[data-faction=pmc],.atlas-faction-symbol[data-faction=pmc],.atlas-extract-badge[data-faction=pmc] { --marker-color:#2b65a4; }
.atlas-marker.mk-extract[data-faction=scav],.atlas-faction-symbol[data-faction=scav],.atlas-extract-badge[data-faction=scav] { --marker-color:#996018; }
.atlas-marker.mk-extract[data-faction=shared],.atlas-faction-symbol[data-faction=shared],.atlas-extract-badge[data-faction=shared] { --marker-color:#14765d; }
.atlas-extract-token { display:flex; align-items:center; justify-content:center; width:100%; height:100%; border:2.5px solid var(--marker-color); outline:2px solid white; border-radius:50%; background:var(--marker-color); color:white; filter:drop-shadow(0 1px 1px #243e4940); pointer-events:none; }
.atlas-extract-token svg { width:20px; height:20px; flex-shrink:0; stroke-width:2; }
.atlas-label-faction { color:var(--marker-color); font-weight:750; }
.atlas-extract-legend { display:flex; align-items:center; flex-wrap:wrap; gap:9px 18px; padding:8px 16px; border-bottom:1px solid var(--border); font-size:12px; background:var(--panel); color:var(--ink); }
.atlas-legend-caption { color:var(--muted); }
.atlas-legend-entry { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.atlas-faction-symbol { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:28px; height:28px; color:var(--marker-color); }
.atlas-faction-symbol .atlas-extract-token svg { width:18px; height:18px; }
.atlas-extract-hint,.atlas-spawn-hint { margin:4px 5px 12px; font-size:11px; color:var(--muted); line-height:1.5; }
.atlas-extract-badge { color:var(--marker-color); background:color-mix(in srgb,var(--marker-color) 10%,var(--panel)); font-weight:600; }
@media(max-width:760px) {
 .atlas-extract-legend { gap:7px 10px; padding:8px; font-size:11px; }
 .atlas-legend-entry { gap:5px; }.atlas-legend-caption { display:none; }
 .atlas-extract-legend .atlas-faction-symbol { width:28px; height:28px; }
}

.atlas-cluster.atlas-extract-group { display:flex; justify-content:center; gap:7px; height:34px; padding:0; background:transparent; border:0; outline:0; border-radius:0; box-shadow:none; z-index:5; }
.atlas-extract-group .atlas-faction-symbol { width:34px; height:34px; }
.atlas-extract-group .atlas-extract-token svg { width:20px; height:20px; }
.atlas-extract-group:hover .atlas-extract-token { outline-width:3px; }

.atlas-spawn-controls { margin-top:10px; padding-top:6px; border-top:1px solid var(--border); }
.mk-spawn { --marker-color:#6e657b; }
.mk-spawn[data-faction=pmc] { --marker-color:#2b65a4; }
.mk-spawn[data-faction=scav] { --marker-color:#996018; }
.atlas-cluster.mk-spawn { width:28px; height:28px; padding:0; gap:0; border:0; border-radius:50%; background:transparent; outline:0; box-shadow:none; color:var(--marker-color); }
.atlas-cluster.mk-spawn > svg { width:100%; height:100%; pointer-events:none; filter:drop-shadow(0 1px 2px #263a4b50); }
.atlas-cluster.mk-spawn:hover { outline:2px solid #fff; box-shadow:0 0 0 4px var(--marker-color),0 2px 12px #233d4650; }

.atlas-building-controls { margin-top:10px; border-top:1px solid var(--border); padding-top:6px; }
.atlas-building-icon { display:grid; place-items:center; width:25px; height:25px; flex-shrink:0; color:#315f87; }
.atlas-building-icon svg { width:28px; height:28px; }
.atlas-building-list { padding:0 5px 8px 40px; }
.atlas-building-list button { display:flex; align-items:center; justify-content:space-between; gap:6px; width:100%; min-height:36px; padding:4px 0; border:0; background:transparent; font-size:12px; color:#315f87; text-align:left; }
.atlas-building-list button:hover { text-decoration:underline; }
.atlas-building-overlay { position:absolute; inset:0; pointer-events:none; z-index:12; }
.atlas-building-link { position:absolute; inset:0; width:100%; height:100%; overflow:hidden; }
.atlas-building-link line { stroke:#315f87; stroke-width:1.5; stroke-dasharray:4 3; }
.atlas-building-link rect { fill:#427fac16; stroke:#315f87; stroke-width:1.5; rx:3; }
.atlas-building-pin { position:absolute; transform:translate(-50%,-50%); width:30px; height:30px; padding:0; border:0; border-radius:4px; background:transparent; color:#315f87; pointer-events:auto; cursor:pointer; filter:drop-shadow(0 1px 2px #233d4650); }
.atlas-building-pin svg { width:100%; height:100%; }
.atlas-building-pin:hover,.atlas-building-pin.is-active { outline:2px solid white; box-shadow:0 0 0 4px #315f87; }
.atlas-building-card { position:absolute; pointer-events:auto; background:white; border:1px solid #d6dfe5; border-radius:12px; box-shadow:0 5px 20px #1a34431c; color:#243b48; overflow:hidden; -webkit-user-select:text; user-select:text; cursor:auto; }
.atlas-building-card:focus { outline:none; }.atlas-building-card:focus-visible { outline:2px solid #315f87; outline-offset:2px; }
.atlas-building-card header { display:flex; align-items:center; gap:6px; padding:10px 8px 8px 14px; }
.atlas-building-card header>div { flex:1; min-width:0; }.atlas-building-card header small { font-size:10px; color:#667586; }
.atlas-building-card h3 { margin:3px 0 0; font-size:14px; font-weight:650; line-height:1.25; }
.atlas-building-card header button { display:grid; place-items:center; flex-shrink:0; width:36px; height:36px; padding:0; border:0; border-radius:7px; background:#f5f7f9; font-size:24px; color:#627381; }
.atlas-building-floors { display:flex; gap:3px; padding:0 12px 8px; }
.atlas-building-floors button { min-height:30px; flex:1; padding:4px 6px; border:1px solid transparent; border-radius:6px; font-size:11px; background:#f4f6f8; color:#556777; }
.atlas-building-floors button[aria-selected=true] { background:#eaf1f7; border-color:#c6d8e7; color:#244e72; font-weight:650; }
.atlas-building-drawing { margin:0 12px; background:#edf1e8; border:1px solid #e0e6df; border-radius:6px; overflow:hidden; }
.atlas-building-drawing svg { display:block; width:100%; height:186px; }
.atlas-building-card footer { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 12px; font-size:10px; color:#667586; }
.atlas-building-card footer button { min-height:32px; border:0; background:transparent; color:#315f87; padding:4px 0; font-size:11px; }
@media(max-width:760px){
 .atlas-building-card { position:fixed; border-radius:12px; max-height:50dvh; overflow-y:auto; }
 .atlas-building-card header { padding:6px 8px 4px 12px; }
 .atlas-building-card header button { width:44px; height:44px; }
 .atlas-building-card h3 { font-size:13px; }.atlas-building-card header small { font-size:10px; }
 .atlas-building-floors { padding-bottom:6px; }.atlas-building-floors button { min-height:36px; }
 .atlas-building-drawing svg { height:132px; }.atlas-building-card footer { padding:2px 12px; }
 .atlas-building-card footer button { min-height:36px; }
 .atlas-building-pin::after { content:''; position:absolute; width:44px; height:44px; top:50%; left:50%; transform:translate(-50%,-50%); }
 .atlas-pane.has-building-callout .atlas-zoom { bottom:auto; top:8px; flex-direction:row; align-items:center; }
 .atlas-pane.has-building-callout .atlas-zoom button { width:36px; height:36px; padding:9px; }
 .atlas-pane.has-building-callout .atlas-zoom output { display:none; }
 .atlas-pane.has-building-callout #atlas-reset { border:0; border-left:1px solid #e3e9e6; }
 .atlas-pane.has-building-callout .atlas-map-status { max-width:calc(100% - 140px); }
}

/* Native SVG room centres, displayed at a constant readable screen size. */
.atlas-room-label { position:absolute; transform:translate(-50%,-50%) scale(calc(1 / var(--z))); pointer-events:none; color:#263b48; font-size:11px; line-height:1; font-weight:650; font-variant-numeric:tabular-nums; white-space:nowrap; text-shadow:-1px -1px 0 white,1px -1px 0 white,-1px 1px 0 white,1px 1px 0 white; }
.atlas-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.atlas-room-controls { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; padding:8px 14px; border-bottom:1px solid var(--border); background:var(--panel); }
.atlas-room-controls strong { color:var(--muted); font-size:12px; font-weight:500; margin-right:2px; }
.atlas-room-controls button { padding:7px 10px; min-height:34px; border:1px solid var(--border); border-radius:6px; background:var(--panel); color:var(--ink); font-size:12px; }
.atlas-room-controls button:hover { color:var(--accent-text); border-color:var(--accent); background:var(--accent-tint); }
.atlas-room-controls small { color:var(--muted); font-size:11px; }
.atlas-room-controls a { color:var(--muted); font-size:11px; margin-left:auto; text-decoration:none; }
@media(max-width:760px) { .atlas-room-controls { padding:5px 10px; gap:3px 7px; }.atlas-room-controls button { min-height:44px; }.atlas-room-controls small { flex-basis:calc(100% - 60px); }.atlas-room-controls a { margin-left:0; } }

/* Crawlable map references share exit card HTML with the interactive panel. */
.atlas-under-map>.atlas-references { flex-basis:calc(50% - 30px); max-width:none; }
.atlas-references>ul>li { display:block; overflow-wrap:anywhere; }
.atlas-extract-references>ul>li+li { margin-top:18px; padding-top:16px; border-top:1px solid var(--border); }
.atlas-reference-info h3 { margin:0 0 8px; font-size:15px; }
.atlas-reference-info .atlas-extract-conditions>ul { list-style:disc; }
.atlas-reference-info .atlas-extract-conditions li { display:list-item; padding:2px 0; }
.atlas-key-references>ul { columns:2; column-gap:24px; }
.atlas-key-references li { break-inside:avoid; }
@media(max-width:760px) { .atlas-key-references>ul { columns:1; } }
