html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Dimension colors identify the destination; orange remains the active map-tool color. */
:root { --atlas-overworld: #6ca888; --atlas-nether: #c48762; --atlas-end: #aa87d7; --atlas-dimension-ink: #17212b; }
[data-dimension="Overworld" i] { --atlas-dimension-color: var(--atlas-overworld); }
[data-dimension="Nether" i] { --atlas-dimension-color: var(--atlas-nether); }
[data-dimension="End" i] { --atlas-dimension-color: var(--atlas-end); }
.rz-layout .atlas-dimension-action,
.rz-layout .loc-dimension-switch button.active,
.rz-layout .group-detail-page .group-map-dimension.active,
.rz-layout .group-detail-page .atlas-dimension-action {
    --rz-primary: var(--atlas-dimension-color);
    --rz-on-primary: var(--atlas-dimension-ink);
    background: var(--atlas-dimension-color);
    border-color: var(--atlas-dimension-color);
    color: var(--atlas-dimension-ink);
    box-shadow: none;
}
.rz-layout .atlas-dimension-action:hover { filter: brightness(1.08); }
.rz-layout :is(button, a, input, select, textarea, summary, [role="button"]):focus-visible {
    outline: 2px solid var(--atlas-link-color, #94c1ff);
    outline-offset: 2px;
}
.rz-layout .atlas-dimension-action:focus-visible { outline-color: var(--atlas-dimension-color); }
.rz-layout .loc-header-actions > .rz-button { min-height: 40px; border-radius: 7px; }
@media (pointer: coarse), (max-width: 700px) {
    .rz-layout .loc-header-actions > .rz-button,
    .rz-layout .loc-dimension-switch button,
    .rz-layout .group-map-dimension,
    .rz-layout .group-map-open { min-height: 44px; }
}

/* Shared by the full map, location/group insets and render previews. Higher
   specificity than Leaflet's vendor CSS, including its touch-device rules. */
.leaflet-container {
    --atlas-map-surface: var(--ctrl-bg, var(--rz-base-background-color, #171a21));
    --atlas-map-ink: var(--ctrl-fg, var(--rz-text-color, #e6e9ef));
    --atlas-map-border: var(--panel-border, var(--rz-base-400, #414954));
    --atlas-map-hover: var(--ctrl-hover, var(--rz-base-200, #252b35));
    font-family: inherit;
}
.leaflet-container.atlas-block-zoom .leaflet-tile { image-rendering: pixelated; }
.map-theme-light .map-coords .coord-alt { color: #a02f32; }
.leaflet-container .leaflet-control-zoom.leaflet-bar {
    border: 1px solid var(--atlas-map-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px #0004;
}
.leaflet-container .leaflet-control-zoom.leaflet-bar a {
    width: 36px;
    height: 36px;
    line-height: 36px;
    border: 0;
    border-radius: 0;
    background: var(--atlas-map-surface);
    color: var(--atlas-map-ink);
    font: 24px/36px system-ui, sans-serif;
    text-decoration: none;
}
.leaflet-container .leaflet-control-zoom.leaflet-bar a + a { border-top: 1px solid var(--atlas-map-border); }
.leaflet-container .leaflet-control-zoom.leaflet-bar a:hover,
.leaflet-container .leaflet-control-zoom.leaflet-bar a:focus { background: var(--atlas-map-hover); color: var(--atlas-map-ink); }
.leaflet-container .leaflet-control-zoom.leaflet-bar a.leaflet-disabled {
    background: var(--atlas-map-surface);
    color: var(--rz-text-disabled-color, #79818a);
    cursor: default;
}
.leaflet-container .leaflet-control-zoom.leaflet-bar a:focus-visible { outline: 2px solid var(--rz-primary); outline-offset: -3px; }
.leaflet-container .leaflet-tooltip {
    border-color: var(--atlas-map-border);
    background: var(--atlas-map-surface);
    color: var(--atlas-map-ink);
    box-shadow: 0 2px 6px #0003;
}
.leaflet-container .leaflet-tooltip-top:before { border-top-color: var(--atlas-map-border); }
.leaflet-container .leaflet-tooltip-bottom:before { border-bottom-color: var(--atlas-map-border); }
.leaflet-container .leaflet-tooltip-left:before { border-left-color: var(--atlas-map-border); }
.leaflet-container .leaflet-tooltip-right:before { border-right-color: var(--atlas-map-border); }
.map-ctrl:focus-visible, .loc-ctrl:focus-visible, .map-coords button:focus-visible {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}
.loc-map-wrap .loc-map-ctrls, .group-map-wrap .loc-map-ctrls {
    max-height: calc(100% - 20px);
    overflow-y: auto;
    padding: 2px;
}
.loc-map-wrap .loc-ctrl, .group-map-wrap .loc-ctrl {
    flex-shrink: 0;
    border-color: var(--rz-base-400);
    background: var(--rz-base-background-color);
    color: var(--rz-text-color);
}
.loc-map-wrap .loc-ctrl:hover, .group-map-wrap .loc-ctrl:hover { background: var(--rz-base-200); }
.map-ctrl.active:not(:disabled), .loc-map-wrap .loc-ctrl.active, .group-map-wrap .loc-ctrl.active {
    background: #ffab40;
    border-color: #ffab40;
    color: #1a1a1a;
}
/* Match the embedded BlueMap skin for controls hosted by Atlas itself. */
.loc-map-wrap.loc-show-3d {
    --atlas-viewer-surface: #202428;
    --atlas-viewer-hover: #30363d;
    --atlas-viewer-border: #515b65;
    --atlas-viewer-ink: #edf1f5;
    --atlas-viewer-muted: #b4bec8;
    --atlas-viewer-accent: #ffab40;
}
.light-theme .loc-map-wrap.loc-show-3d {
    --atlas-viewer-surface: #fff;
    --atlas-viewer-hover: #edf1f5;
    --atlas-viewer-border: #b8c1ca;
    --atlas-viewer-ink: #20262d;
    --atlas-viewer-muted: #53616f;
}
.loc-map-wrap.loc-show-3d .loc-ctrl {
    box-sizing: border-box;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--atlas-viewer-border);
    border-radius: 6px;
    background: var(--atlas-viewer-surface);
    color: var(--atlas-viewer-ink);
    font: 500 13px/1.4 system-ui, sans-serif;
    box-shadow: none;
}
.loc-map-wrap.loc-show-3d .loc-ctrl:hover:not(:disabled) { background: var(--atlas-viewer-hover); }
.loc-map-wrap.loc-show-3d .loc-ctrl.active {
    background: var(--atlas-viewer-accent);
    border-color: var(--atlas-viewer-accent);
    color: #1a1a1a;
}
.loc-map-wrap.loc-show-3d .loc-ctrl:focus-visible { outline: 2px solid var(--atlas-viewer-accent); outline-offset: 2px; }
/* Safari on iPhone does not expose the Fullscreen API for an iframe. */
html.atlas-viewer-expanded, html.atlas-viewer-expanded body { overflow: hidden !important; }
html.atlas-viewer-expanded .rz-notification { z-index: 2147483001 !important; }
.atlas-viewer-ancestor { transform: none !important; filter: none !important; perspective: none !important; contain: none !important; overflow: visible !important; }
.loc-map-wrap.atlas-expanded-viewer {
    position: fixed !important; inset: 0 !important; z-index: 2147483000 !important;
    width: 100% !important; height: 100vh !important; height: 100dvh !important;
    margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-sizing: border-box;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: var(--atlas-viewer-surface, #202428);
}
.atlas-expanded-viewer .loc-3d-view { height: 100% !important; min-height: 0 !important; border-radius: 0 !important; }
.atlas-expanded-viewer .loc-3d-frame { width: 100% !important; min-height: 0 !important; }
.atlas-expanded-viewer .loc-3d-control-wrap { bottom: calc(10px + env(safe-area-inset-bottom)); left: calc(10px + env(safe-area-inset-left)); }
@media (pointer: coarse), (max-width: 700px) {
    .leaflet-container .leaflet-control-zoom.leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
    .map-view .map-ctrl, .loc-map-wrap .loc-ctrl, .group-map-wrap .loc-ctrl { min-width: 44px; min-height: 44px; }
    .map-view .map-coords .coord-copy { width: 36px; height: 36px; }
}

h1:focus {
    outline: none;
}

.navigation-loading {
    display: none;
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2100;
    align-items: center;
    gap: .65rem;
    padding: .65rem 1rem;
    border: 1px solid var(--rz-base-400);
    border-radius: .5rem;
    background: var(--rz-base-background-color);
    color: var(--rz-text-color);
    box-shadow: 0 3px 12px #0003;
    white-space: nowrap;
    pointer-events: none;
}

html[data-atlas-restoring] .navigation-loading {
    display: flex;
}

@media (prefers-reduced-motion: reduce) {
    .navigation-loading * {
        animation: none !important;
    }
}

.rz-layout { --atlas-link-color: #94c1ff; --atlas-accent-ink: #92cc52; --rz-link-color: var(--atlas-link-color); }
.rz-layout.light-theme { --atlas-link-color: #155cbd; --atlas-accent-ink: #47751d; }
a, .btn-link { color: var(--atlas-link-color, var(--rz-link-color, #155cbd)); }

/* Small text and icons need a darker green against the light theme. */
.light-theme :is(.directory-intro-icon, .location-select, .location-coordinates .rzi) { color: var(--atlas-accent-ink); }
.light-theme .about-page :is(.about-eyebrow, .about-section-heading > span, .about-stat strong, .about-card-icon, .about-link-card .rzi, .pipeline-number, .pipeline-details summary, .credit-icon, .credit-kicker) { color: var(--atlas-accent-ink); }
.light-theme .about-page .about-button:hover, .light-theme .about-page .about-button:focus-visible { color: var(--atlas-accent-ink); border-color: var(--atlas-accent-ink); }
.light-theme .about-page .about-button.primary { background: #47751d; border-color: #47751d; color: #fff; }
.light-theme .about-page .about-button.primary:hover { background: #385d17; }

/* Keep the icon inside a compact Radzen chip's remove button. */
.rz-chip .rz-button.rz-button-xs.rz-button-icon-only { min-width: 24px; width: 24px; height: 24px; padding: 0; }
.rz-chip .rz-button.rz-button-xs .rzi { font-size: 18px; line-height: 1; }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* World Pulse tiles are inserted by Leaflet, outside Razor CSS isolation. */
.nocom-world-pulse {
    transition: opacity 120ms ease-out;
}

.atlas-coordinate-menu {
    position: absolute;
    z-index: 2000;
    margin: 0;
    width: 258px;
    max-width: calc(100% - 8px);
    max-height: calc(100% - 8px);
    overflow: auto;
    padding: 8px;
    border: 1px solid #657588;
    border-radius: 8px;
    background: #171d24;
    color: #edf3fa;
    box-shadow: 0 5px 20px #0007;
    font: 13px/1.4 system-ui, sans-serif;
}
.atlas-coordinate-menu strong { display: block; padding: 4px 6px 8px; overflow-wrap: anywhere; }
.atlas-coordinate-menu button {
    display: block; width: 100%; text-align: left; padding: 7px 8px;
    border: 0; border-radius: 4px; background: transparent; color: inherit;
    cursor: pointer; font: inherit;
}
.atlas-coordinate-menu button:hover, .atlas-coordinate-menu button:focus-visible { background: #304964; outline: 2px solid #91beff; outline-offset: -2px; }
.atlas-coordinate-menu small { display: block; color: #a8caff; font: 12px/1.5 ui-monospace, monospace; }
.atlas-coordinate-status { padding: 7px 6px 3px; color: #b8c4d2; font-size: 11px; }
.atlas-coordinate-menu input { width: 100%; margin-top: 6px; }
/* Highway directory and detail pages share the Atlas theme. */
.highway-directory,.highway-detail{max-width:1280px;margin:0 auto;padding:28px clamp(16px,3vw,40px);color:var(--rz-text-color)}
.highway-directory header,.highway-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}
.highway-directory h1,.highway-detail h1{font-size:clamp(1.9rem,4vw,2.8rem);line-height:1.15;margin:10px 0 14px}
.highway-eyebrow{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;opacity:.7}
.highway-directory a,.highway-detail a,.highway-details-link{color:var(--rz-primary);text-decoration:none}
.highway-directory a:hover,.highway-detail a:hover{text-decoration:underline}
.highway-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.highway-filters .highway-search{flex:1;min-width:220px}.highway-filters .rz-dropdown{min-width:180px;max-width:100%}
.highway-route-count{font-size:.85rem;opacity:.7}
.highway-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:18px}
.highway-card{padding:0;height:100%;overflow:hidden;display:flex;flex-direction:column;transition:border-color .15s}.highway-card-link{display:block;min-width:0}
.highway-card-link:hover{text-decoration:none!important}.highway-card-link:hover .highway-card{border-color:var(--rz-primary)}.highway-card-link:focus-visible{outline:3px solid var(--rz-primary);outline-offset:3px}
.route-preview{display:block;width:100%;height:150px;color:var(--rz-primary);background:color-mix(in srgb,var(--rz-primary) 5%,transparent);padding:16px}
.highway-card-body{padding:20px;color:var(--rz-text-color)}.highway-card h2{font-size:1.25rem;margin:8px 0 14px}.highway-card small,.highway-card span{display:block;opacity:.75;font-size:.8rem}.highway-card p{font-size:.9rem;margin:0 0 14px}
.highway-hero{margin-top:28px}.highway-hero .route-preview{width:260px;border-radius:12px;flex-shrink:0}
.highway-page-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.highway-facts{display:flex;flex-wrap:wrap;gap:14px;margin:28px 0}.highway-facts>div{padding:16px 22px;border:1px solid var(--rz-border-color, #80808040);border-radius:10px;min-width:145px}.highway-facts dt{font-size:.8rem;opacity:.65;font-weight:400}.highway-facts dd{margin:6px 0 0;font-weight:600}
.highway-description{white-space:pre-wrap;line-height:1.75;max-width:850px;overflow-wrap:anywhere;margin-bottom:32px}
.highway-detail h2{font-size:1.15rem}.highway-credits{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 30px}.highway-credits a{padding:16px;border:1px solid var(--rz-border-color, #80808040);border-radius:10px}.highway-credits span,.highway-credits small{display:block;margin-top:6px;color:var(--rz-text-color);opacity:.7}
.highway-detail footer{display:flex;flex-wrap:wrap;gap:24px;margin-top:32px;padding-top:20px;border-top:1px solid var(--rz-border-color, #80808040);font-size:.8rem;opacity:.7}
.highway-details-link{display:block;margin:12px 0}.map-panel{overflow-wrap:anywhere}
@media(max-width:650px){.highway-directory header,.highway-hero{align-items:flex-start;flex-direction:column}.highway-hero .route-preview{width:100%;height:120px}.highway-facts>div{flex:1;min-width:125px}}

/* Compact pagination fits map popups and touch screens without hiding page counts. */
.atlas-paging{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;margin:12px 0;max-width:100%;font:12px/1.4 system-ui}
.atlas-paging label{display:flex;align-items:center;gap:4px;white-space:nowrap;margin:0;font:inherit}
.atlas-paging input[type=number]{box-sizing:border-box;width:52px!important;min-width:0;height:36px;margin:0!important;padding:4px!important;text-align:center;font:16px system-ui;color:var(--theme-fg,var(--rz-text-color,#222));background:var(--theme-bg,var(--rz-base-background-color,#fff));border:1px solid var(--theme-bg-light,var(--rz-base-500,#888));border-radius:5px;appearance:textfield}
.atlas-paging input::-webkit-inner-spin-button,.atlas-paging input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.atlas-paging button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:32px!important;min-width:32px!important;height:36px;min-height:36px;padding:0!important;font-size:20px!important;border-radius:5px;background:var(--theme-bg,var(--rz-base-background-color,#fff));color:var(--theme-fg,var(--rz-text-color,#222));border:1px solid var(--theme-bg-light,var(--rz-base-500,#888));cursor:pointer}
.atlas-paging button:disabled{opacity:.4;cursor:default}.atlas-paging :focus-visible{outline:2px solid #ffad33;outline-offset:2px}
@media(pointer:coarse){.atlas-paging button,.atlas-paging input[type=number]{height:44px;min-height:44px}}

/* Compact pagination fits map popups and touch screens without hiding page counts. */
.atlas-paging{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;margin:12px 0;max-width:100%;font:12px/1.4 system-ui}
.atlas-paging label{display:flex;align-items:center;gap:4px;white-space:nowrap;margin:0;font:inherit}
.atlas-paging input[type=number]{box-sizing:border-box;width:52px!important;min-width:0;height:36px;margin:0!important;padding:4px!important;text-align:center;font:16px system-ui;color:var(--theme-fg,var(--rz-text-color,#222));background:var(--theme-bg,var(--rz-base-background-color,#fff));border:1px solid var(--theme-bg-light,var(--rz-base-500,#888));border-radius:5px;appearance:textfield}
.atlas-paging input::-webkit-inner-spin-button,.atlas-paging input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.atlas-paging button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:32px!important;min-width:32px!important;height:36px;min-height:36px;padding:0!important;font-size:20px!important;border-radius:5px;background:var(--theme-bg,var(--rz-base-background-color,#fff));color:var(--theme-fg,var(--rz-text-color,#222));border:1px solid var(--theme-bg-light,var(--rz-base-500,#888));cursor:pointer}
.atlas-paging button:disabled{opacity:.4;cursor:default}.atlas-paging :focus-visible{outline:2px solid #ffad33;outline-offset:2px}
@media(pointer:coarse){.atlas-paging button,.atlas-paging input[type=number]{height:44px;min-height:44px}}

.atlas-paging-limit{flex-basis:100%;text-align:center;font:12px/1.4 system-ui}
/* Narrow map popups keep the page field above a full row of touch targets. */
.nocom-popup-content .atlas-paging{display:grid;grid-template-columns:repeat(4,minmax(32px,1fr));gap:4px}
.nocom-popup-content .atlas-paging label{grid-column:1/-1;grid-row:1;justify-content:center}
.nocom-popup-content .atlas-paging button{display:flex;align-items:center;justify-content:center;text-align:center;width:100%!important}
.nocom-popup-content .atlas-paging-limit{grid-column:1/-1}

/* On-demand capture browsing also works without loading the 3D renderer. */
.loc-capture-browser-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.capture-browser{color:var(--rz-text-color);min-width:0;--panel-fg:var(--rz-text-color);--panel-input-bg:var(--rz-base-background-color);--panel-border:var(--rz-base-500)}
.capture-browser-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.capture-browser-toolbar>label{flex:1;min-width:160px;max-width:100%;font-size:12px}
.capture-browser-search select,.capture-browser-search input,.capture-browser .atlas-paging input{min-width:0;max-width:100%;padding:9px;border:1px solid var(--rz-base-500);border-radius:6px;background:var(--rz-base-background-color);color:var(--rz-text-color);font:inherit;min-height:44px;box-sizing:border-box}
.capture-selector{display:flex;width:100%;max-width:100%;margin-top:4px;min-height:44px;font-size:14px}
.capture-selector .rz-dropdown-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.capture-object-date{display:flex;gap:4px;align-items:center;margin-top:6px}.capture-object-date .rzi{font-size:15px}
.capture-browser-tabs,.capture-art-filters{display:flex;gap:4px}
.capture-browser-tabs button,.capture-art-filters button,.capture-object-actions>a,.capture-object-actions>button,.capture-object-detail button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--rz-base-500);border-radius:6px;background:var(--rz-base-background-color);color:var(--rz-text-color);font:inherit;padding:7px 10px;min-height:38px;box-sizing:border-box;cursor:pointer;text-decoration:none}
.capture-browser-tabs [aria-pressed=true],.capture-art-filters [aria-pressed=true]{background:#ffad33;color:#201600;border-color:#ffad33}
.capture-art-filters{margin-top:12px}.capture-art-filters button{font-size:13px}
.capture-browser-search{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.capture-browser-search input{flex:1 1 190px}.capture-browser-search select{flex:1 1 150px}.capture-browser-search .rz-button{min-height:44px}
.capture-browser-status{display:flex;gap:8px;align-items:center;font-size:13px;margin:12px 0;min-height:22px}.capture-browser-error{padding:12px;border:1px solid var(--rz-danger);border-radius:6px}
.capture-object-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.capture-art-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.capture-browser-paging:has(.atlas-paging){position:sticky;bottom:-24px;z-index:2;margin:12px 0 -24px;padding:8px 0 16px;background:var(--rz-dialog-background-color,var(--rz-base-background-color));border-top:1px solid var(--rz-base-500)}
.capture-browser-paging .atlas-paging{margin:0}
@media(max-width:760px){.groups-page .groups-toolbar .rz-selectbar{display:flex;width:100%;gap:4px;flex-wrap:nowrap}.groups-page .groups-toolbar .rz-selectbar .rz-button{flex:1;min-width:0;min-height:44px;margin:0!important;padding:6px 4px!important;border-radius:6px!important;font-size:12px}}
.capture-object-card{min-width:0;padding:12px;border:1px solid var(--rz-base-500);border-radius:8px;overflow-wrap:anywhere}.capture-object-card>strong{display:block;font-size:15px;margin-top:8px}.capture-object-card small{font-size:12px;color:var(--rz-text-secondary-color)}.capture-object-excerpt{font-size:13px;margin:6px 0;white-space:pre-wrap}.capture-object-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.capture-object-actions>a,.capture-object-actions>button{font-size:12px;padding:6px 8px}.capture-object-actions .rzi{font-size:17px}
.capture-art-thumb{display:flex;position:relative;align-items:center;justify-content:center;width:100%;height:160px;background:color-mix(in srgb,var(--rz-text-color) 5%,transparent);color:var(--rz-text-color);border:0;border-radius:6px;cursor:pointer}.capture-art-thumb img{max-width:100%;max-height:150px;object-fit:contain;image-rendering:pixelated}.capture-art-thumb[aria-busy=true] img{opacity:0}.capture-art-thumb .capture-loading-spinner{position:absolute}
.capture-loading-spinner{display:inline-block;box-sizing:border-box;flex:none;width:22px;height:22px;border:2px solid color-mix(in srgb,currentColor 25%,transparent);border-top-color:#ffad33;border-radius:50%;animation:capture-spin .8s linear infinite}
@keyframes capture-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.capture-loading-spinner{animation:none}}
.capture-object-detail{margin-top:12px;padding-top:10px;border-top:1px solid var(--rz-base-500)}.capture-object-detail blockquote{white-space:pre-wrap;margin:6px 0 12px;padding:12px;background:#c9aa73;color:#251a0a;border-radius:5px;text-align:center;font-family:monospace}
.capture-artwork img{display:block;max-width:100%;max-height:70dvh;margin:auto;object-fit:contain;image-rendering:pixelated}.capture-artwork .capture-image-loading{position:absolute;opacity:0;pointer-events:none}.capture-artwork-loading{display:flex;min-height:220px;align-items:center;justify-content:center;gap:12px}.capture-artwork-loading .capture-loading-spinner{width:32px;height:32px}
.capture-browser :focus-visible,.atlas-clipboard-dialog :focus-visible{outline:2px solid var(--rz-primary);outline-offset:2px}
.atlas-clipboard-dialog{box-sizing:border-box;width:460px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px;border:1px solid var(--rz-base-500);border-radius:10px;background:var(--rz-base-background-color,#202428);color:var(--rz-text-color,#fff)}.atlas-clipboard-dialog::backdrop{background:#0008}.atlas-clipboard-dialog h2{font-size:18px;margin:0 44px 18px 0}.atlas-clipboard-dialog>button{float:right}.atlas-clipboard-dialog>div{display:flex;gap:8px}.atlas-clipboard-dialog input{min-width:0;width:100%;font-size:16px;padding:8px;background:var(--rz-base-background-color);color:inherit;border:1px solid var(--rz-base-500);border-radius:6px}.atlas-clipboard-dialog button{min-width:44px;min-height:44px;padding:7px 12px;background:var(--rz-base-background-color);color:inherit;border:1px solid var(--rz-base-500);border-radius:6px;cursor:pointer}.atlas-clipboard-dialog p{font-size:13px;margin:12px 0 0}
.atlas-clipboard-toast{position:absolute;z-index:100000;left:50%;bottom:60px;transform:translateX(-50%);padding:12px 16px;border-radius:8px;background:var(--rz-base-background-color);color:var(--rz-text-color);border:1px solid var(--rz-base-500);box-shadow:0 4px 16px #0005;font:14px system-ui}
@media(max-width:600px){.capture-object-grid{grid-template-columns:1fr}.capture-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.capture-object-card{padding:8px}.capture-art-thumb{height:130px}.capture-art-thumb img{max-height:120px}.capture-browser-toolbar{gap:8px}.capture-browser-tabs{width:100%}.capture-browser-tabs button{flex:1}.capture-browser-search input{flex-basis:100%}.capture-object-actions>a,.capture-object-actions>button,.capture-art-filters button,.capture-browser-tabs button{min-height:44px}}
