@media (min-width: 768px) {
    #map-root:has(.skyrp-sidebar-content.is-open) .skyrp-map-status {
        left: calc(50% + 219px);
    }
}

/* Disable native text-selection hit tests only while Leaflet is dragging the map. */
body.leaflet-dragging .skyrp-map-page .blazor-leaflet-map {
    -webkit-user-select: none;
    user-select: none;
}

/* At the highest grid zoom, skip offscreen SVG marker subtrees without unmounting them. */
.blazor-leaflet-map[data-map-zoom="5"] .leaflet-marker-icon {
    content-visibility: auto;
}

.skyrp-map-page :is(button, a, input, select, textarea):focus-visible {
    outline: 1px solid var(--atlas-accent);
    outline-offset: 2px;
}

.skyrp-map-page * {
    scrollbar-width: thin;
    scrollbar-color: var(--atlas-border) transparent;
}

.skyrp-map-page *::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.skyrp-map-page *::-webkit-scrollbar-track {
    background: transparent;
}

.skyrp-map-page *::-webkit-scrollbar-thumb {
    background: var(--atlas-border);
    border-radius: 0;
}

#map-sidebar-rail .skyrp-rail-tab {
    transition: opacity 0.18s ease;
}

#map-sidebar-rail .skyrp-rail-tab:hover,
#map-sidebar-rail .skyrp-rail-tab:focus-visible,
#map-sidebar-rail .skyrp-rail-tab:active,
#map-sidebar-rail .skyrp-rail-tab.is-active,
#map-sidebar-rail .skyrp-rail-tab.is-active:hover,
#map-sidebar-rail .skyrp-rail-tab.is-active:focus-visible {
    background: transparent !important;
    color: var(--atlas-text) !important;
}

#map-sidebar-rail .skyrp-rail-tab:hover {
    opacity: 0.76;
}

/* Sidebar surfaces follow the same flat editorial treatment as Home. */
#map-sidebar-content {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

#map-sidebar-content > div {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: auto !important;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

/* The browser and editor own their inner scrollports below their headers. */
#map-sidebar-content
    > .skyrp-sidebar-content__body:has(.skyrp-sidebar-content__view[data-active-tab="map-tab-objects"]),
#map-sidebar-content
    > .skyrp-sidebar-content__body:has(.skyrp-sidebar-content__view[data-active-tab="map-tab-editor"]) {
    overflow: clip;
    scrollbar-gutter: auto;
}

#map-sidebar-content .skyrp-sidebar-state {
    padding: 16px 14px 22px;
    color: var(--atlas-text);
}

#map-sidebar-content .skyrp-muted {
    color: var(--atlas-text-muted) !important;
}

#map-sidebar-content .skyrp-editor-shell {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--atlas-surface);
}

#map-sidebar-content .skyrp-panel-title,
#map-sidebar-content .skyrp-editor-actions {
    flex: 0 0 auto;
    padding: 16px 14px;
    border-bottom: 1px solid var(--atlas-border);
    background: var(--atlas-surface);
}

#map-sidebar-content .skyrp-editor-actions {
    border-top: 1px solid var(--atlas-border);
    border-bottom: 0;
    display: grid;
    gap: 8px;
}

#map-sidebar-content .skyrp-editor-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

#map-sidebar-content .skyrp-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 16px 0 22px;
}

#map-sidebar-content .skyrp-editor label {
    margin-top: 4px;
    color: var(--atlas-text);
}

#map-sidebar-content .skyrp-editor small,
#map-sidebar-content .skyrp-editor .skyrp-muted {
    color: var(--atlas-text-muted) !important;
}

#map-sidebar-content .skyrp-editor-submit {
    border-color: var(--atlas-accent) !important;
    background: var(--atlas-surface-active) !important;
    color: var(--atlas-text) !important;
}

#map-sidebar-content .skyrp-sidebar-state--editor > div,
#map-sidebar-content .skyrp-sidebar-state--history > div,
#map-sidebar-content .skyrp-sidebar-state--about > div,
#map-sidebar-content .skyrp-sidebar-settings-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--atlas-text) !important;
}

#map-sidebar-content .skyrp-sidebar-settings-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#map-sidebar-content .skyrp-sidebar-settings-section__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0.75rem 0 0.25rem;
    color: var(--atlas-text);
    font-family: var(--atlas-font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-align: center;
    text-transform: none;
}

#map-sidebar-content .skyrp-sidebar-settings-section__heading::before,
#map-sidebar-content .skyrp-sidebar-settings-section__heading::after {
    content: "";
    flex: 1 1 0;
    min-width: 0.5rem;
    height: 1px;
    background: var(--atlas-border);
}

#map-sidebar-content select {
    appearance: none;
    -webkit-appearance: none;
    padding-inline-end: 2.5rem !important;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--atlas-text) 50%),
        linear-gradient(135deg, var(--atlas-text) 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}

#map-sidebar-content select:focus,
#map-sidebar-content select:open {
    border-color: var(--atlas-accent) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--atlas-accent) 18%, transparent) !important;
}

#map-sidebar-content .skyrp-check__input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
    border: 1px solid var(--atlas-border) !important;
    background: transparent !important;
    cursor: pointer;
}

#map-sidebar-content .skyrp-check__input:checked {
    border-color: var(--atlas-accent) !important;
    background: var(--atlas-accent) !important;
}

#map-sidebar-content .skyrp-check__input:checked::after {
    position: absolute;
    inset: 2px 3px 3px 3px;
    content: "";
    border-right: 2px solid var(--atlas-accent-ink);
    border-bottom: 2px solid var(--atlas-accent-ink);
    transform: rotate(45deg);
}

#map-sidebar-content .skyrp-check__input:focus-visible {
    outline: 2px solid var(--atlas-focus-ring);
    outline-offset: 2px;
}

#map-sidebar-content .skyrp-action,
#map-sidebar-content .skyrp-field,
#map-sidebar-content .skyrp-field.skyrp-field--select,
#map-sidebar-content input,
#map-sidebar-content select,
#map-sidebar-content textarea {
    border: 1px solid var(--atlas-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--atlas-text) !important;
    box-shadow: none !important;
}

#map-sidebar-content .skyrp-action {
    min-height: 40px;
}

#map-sidebar-content .skyrp-action:hover {
    background: color-mix(in srgb, var(--atlas-text) 5%, transparent) !important;
    color: var(--atlas-text) !important;
}

#map-sidebar-content .skyrp-field:focus,
#map-sidebar-content .skyrp-field.skyrp-field--select:focus,
#map-sidebar-content input:focus,
#map-sidebar-content select:focus,
#map-sidebar-content textarea:focus {
    border-color: var(--atlas-accent) !important;
    outline: none;
}

#map-sidebar-content .skyrp-field::placeholder {
    color: var(--atlas-text-muted);
    opacity: 0.78;
}

#object-tabpanel {
    overflow: hidden !important;
}

#object-tabpanel .skyrp-object-browser-scroll {
    overflow-x: hidden !important;
    overscroll-behavior: contain;
}

#object-tabs .skyrp-object-tab {
    transition:
        color 0.18s ease,
        opacity 0.18s ease;
}

#object-tabs .skyrp-object-tab:hover:not(.active),
#object-tabs .skyrp-object-tab:focus-visible:not(.active) {
    color: var(--atlas-text) !important;
    opacity: 0.72;
}

#object-tabs .skyrp-object-tab.active,
#object-tabs .skyrp-object-tab.active:hover,
#object-tabs .skyrp-object-tab.active:focus-visible {
    color: var(--atlas-text) !important;
    opacity: 1;
    box-shadow: none;
}

#object-tabpanel .skyrp-secondary-icon,
#object-tabpanel .skyrp-category-row__icon {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    box-shadow: none !important;
}

#object-tabpanel .skyrp-secondary-icon {
    background-color: var(--atlas-icon-color) !important;
}

#object-tabpanel .skyrp-group-header__collapse,
#object-tabpanel .skyrp-group-header__visibility,
#object-tabpanel .skyrp-category-row__select,
#object-tabpanel .skyrp-category-row__visibility {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    cursor: pointer;
    color: var(--atlas-text) !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

#object-tabpanel .skyrp-user-markers-row .skyrp-category-row__select {
    flex: 0 0 2.875rem;
    width: 2.875rem;
    max-width: 2.875rem;
}

#object-tabpanel .skyrp-user-markers-row .skyrp-category-row__visibility {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    max-width: 2.75rem;
}

#object-tabpanel .skyrp-group-header__collapse:hover,
#object-tabpanel .skyrp-category-row__select:hover {
    background: transparent !important;
    opacity: 0.72;
}

/* Category icons are foreground images: do not paint button backgrounds on hover. */
#map-sidebar-content #object-tabpanel .skyrp-category-row__select:hover,
#map-sidebar-content #object-tabpanel .skyrp-category-row__select:focus-visible {
    background: transparent !important;
}

#object-tabpanel .skyrp-group-header__visibility:hover,
#object-tabpanel .skyrp-category-row__visibility:hover {
    background: transparent !important;
    opacity: 1;
}

#object-tabpanel .skyrp-group-header__collapse:focus,
#object-tabpanel .skyrp-group-header__visibility:focus,
#object-tabpanel .skyrp-category-row__select:focus,
#object-tabpanel .skyrp-category-row__visibility:focus {
    outline: 0 !important;
    box-shadow: none !important;
}

/* Explicit masks also cover category rows rendered inside nested component scopes. */
#object-tabpanel .skyrp-category-row__visibility-icon {
    display: block;
    width: 2rem;
    height: 2rem;
    background-color: var(--atlas-icon-color) !important;
    mask: url("/_content/SkyrpMap.UI/assets/img/hide.webp") center / contain no-repeat;
    -webkit-mask: url("/_content/SkyrpMap.UI/assets/img/hide.webp") center / contain no-repeat;
}

#object-tabpanel .skyrp-category-row__visibility-icon.is-hidden {
    mask-image: url("/_content/SkyrpMap.UI/assets/img/hiden.webp");
    -webkit-mask-image: url("/_content/SkyrpMap.UI/assets/img/hiden.webp");
}

#object-tabpanel .skyrp-category-row.is-selected .skyrp-category-row__name {
    color: var(--atlas-accent) !important;
}

/* Category pinning must remain crisp on hover and show a theme-aware outline. */
#map-sidebar-content #object-tabpanel .skyrp-category-row__select:hover,
#map-sidebar-content #object-tabpanel .skyrp-category-row__select:focus-visible,
#map-sidebar-content #object-tabpanel .skyrp-category-row.is-selected .skyrp-category-row__select {
    opacity: 1 !important;
    outline: 2px solid var(--atlas-focus) !important;
    outline-offset: -2px !important;
}

#map-root .leaflet-container {
    background: var(--app-page) !important;
}

/* Without a painted CustomGrid canvas, keep the marker-heavy map pane composited. */
#map-root.is-map-pane-promoted .leaflet-map-pane {
    will-change: transform;
}

/* Во время перетаскивания вершины метка обязана следовать за указателем 1:1.
   «Марширующая» обводка и переходы краски перерисовывали движущуюся иконку
   каждый кадр и добавляли заметное отставание. */
.skyrp-map-page .skyrp-map-editing-drag .skyrp-marker-taxi-black,
.skyrp-map-page .skyrp-map-editing-drag .skyrp-map-editing-displacement-stripe {
    animation: none !important;
}

.skyrp-map-page .skyrp-map-editing-drag .skyrp-map-editing-handle,
.skyrp-map-page .skyrp-map-editing-drag .skyrp-map-editing-handle--point .skyrp-marker-svg path {
    transition: none !important;
}

/* При переносе тяжёлой области её хэндлы и сохранённые вершины скрыты: они не
   участвуют в жесте и синхронизируются один раз после mouseup. У обычных форм
   контрольные точки видны и двигаются вместе с контуром каждый кадр. */
.skyrp-map-page .skyrp-map-area-drag .skyrp-map-editing-handle,
.skyrp-map-page .skyrp-map-area-drag .skyrp-map-geometry-vertex {
    display: none !important;
}

/* Пока палитра присылает серию оттенков, заливка меняется без перехода:
   каждый новый цвет иначе перезапускал 180-мс анимацию и метка отставала. */
.skyrp-map-page
    .skyrp-map-editing-recolor
    .skyrp-map-editing-handle--point
    .skyrp-marker-svg
    path[fill]:not(.skyrp-marker-taxi-stripe) {
    transition: none !important;
}

/* Keep the vertical MudBlazor map zoom track visible in Edge and Firefox. */
#map-tools #map-zoom-slider::-webkit-slider-runnable-track {
    height: 3px;
    border: 0;
    border-radius: 0;
    background: var(--atlas-text-muted);
}

#map-tools #map-zoom-slider::-moz-range-track {
    height: 3px;
    border: 0;
    border-radius: 0;
    background: var(--atlas-text-muted);
}

/* Swap fullscreen glyphs whenever the document enters or exits fullscreen. */
#map-tools .skyrp-map-fullscreen-exit {
    display: none;
}

:root:fullscreen #map-tools .skyrp-map-fullscreen-enter {
    display: none;
}

:root:fullscreen #map-tools .skyrp-map-fullscreen-exit {
    display: inline-flex;
}

/* Controls are intentionally flat and quiet; the map remains primary. */
#map-tools button {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

#map-tools button:hover,
#map-tools button:focus-visible,
#map-tools button:active {
    background: transparent !important;
}

#map-search::placeholder {
    color: var(--atlas-text-muted);
    opacity: 0.78;
}

#map-error-status .skyrp-action {
    border-radius: 0;
    border-color: var(--atlas-border);
    background: transparent;
    color: inherit;
}

@media (max-width: 767.98px) {
    #map-sidebar-content {
        left: 0 !important;
        inset-inline: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-right: 0;
    }

    #map-sidebar-content > div {
        padding-left: 56px;
    }

    #map-sidebar-rail {
        z-index: 26 !important;
    }

    #map-searchbar {
        top: 10px !important;
    }

    #map-zoom-control {
        top: auto !important;
        bottom: 12px !important;
        right: 12px !important;
        transform: none !important;
    }

    #map-zoom-slider {
    }

    #map-about-panel {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skyrp-map-page *,
    .skyrp-map-page *::before,
    .skyrp-map-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    /* Preserve Leaflet's spatial zoom timing for tiles and their accompanying map layers. */
    .skyrp-map-page .leaflet-zoom-anim .leaflet-zoom-animated {
        transition-duration: 0.25s !important;
    }
}

/* The map deliberately renders markers and popups without Leaflet drop shadows. */
.skyrp-map-page .leaflet-marker-shadow {
    display: none !important;
}

.skyrp-map-popup .leaflet-popup-content-wrapper,
.skyrp-map-popup .leaflet-popup-tip {
    background: var(--app-surface);
    color: var(--app-text);
    border: 1px solid var(--app-line);
    box-shadow: none;
}

.skyrp-map-popup .leaflet-popup-tip-container {
    box-shadow: none;
}

.skyrp-map-popup .leaflet-popup-content-wrapper {
    font-family: var(--app-font-ui) !important;
}

.skyrp-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: var(--app-radius-lg);
}

.skyrp-map-popup .leaflet-popup-content {
    margin: 0;
    width: 360px !important;
    max-width: min(360px, calc(100vw - 48px));
    color: var(--app-text);
    font-family: var(--app-font-ui) !important;
}

.skyrp-map-popup,
.skyrp-map-popup .leaflet-popup-content-wrapper,
.skyrp-map-popup .leaflet-popup-content {
    pointer-events: auto;
}

.skyrp-map-popup__content {
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    color: var(--app-text);
    pointer-events: auto;
}

.skyrp-map-popup__content > * {
    pointer-events: auto;
}

.skyrp-map-popup__loading {
    min-height: 88px;
    align-items: center;
    justify-content: center;
}

.skyrp-map-popup__loading-indicator {
    width: 22px;
    height: 22px;
    border: 2px solid var(--app-line);
    border-top-color: var(--app-text);
    border-radius: 50%;
    animation: skyrp-map-popup-spin 0.7s linear infinite;
}

@keyframes skyrp-map-popup-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .skyrp-map-popup__loading-indicator {
        animation: none;
    }
}

.skyrp-map-popup__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    pointer-events: auto;
}

.skyrp-map-popup__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.skyrp-map-popup__header > .skyrp-map-popup__tools-toggle,
.skyrp-map-popup__top-right-controls > button {
    pointer-events: auto;
}

.skyrp-map-popup__top-right-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    gap: 6px;
    pointer-events: auto;
}

.skyrp-map-popup__close,
.skyrp-map-popup__tools-toggle,
.skyrp-map-popup__actions-toggle,
.skyrp-map-popup__tool,
.skyrp-map-popup__action {
    border: 1px solid var(--app-line);
    background: transparent;
    color: var(--app-text);
    border-radius: var(--app-radius-sm);
    min-width: 32px;
    min-height: 32px;
    padding: 4px 7px;
    pointer-events: auto;
}

.skyrp-map-popup__close:hover,
.skyrp-map-popup__tools-toggle:hover,
.skyrp-map-popup__actions-toggle:hover,
.skyrp-map-popup__tool:hover,
.skyrp-map-popup__action:hover {
    background: transparent;
    color: var(--app-text);
}

.skyrp-map-popup__close,
.skyrp-map-popup__tools-toggle {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 0;
    font-size: 1.1rem;
    line-height: 1;
}

/* The compact tool strip opens horizontally above the popup and remains keyboard-accessible. */
.skyrp-map-popup__tools-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.5rem);
    top: auto;
    z-index: 40;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.2rem;
    width: max-content;
    max-width: min(90vw, 24rem);
    padding: 0.25rem;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
    pointer-events: auto;
}

.skyrp-map-popup__tools-menu[hidden] {
    display: none;
}

.skyrp-map-popup__tool {
    display: inline-flex;
    flex: 0 0 auto;
    width: 2.2rem;
    height: 2.2rem;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    text-align: center;
}

.skyrp-map-popup__copy-notice {
    display: block;
    margin: 0.375rem 0;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--atlas-accent);
    background: var(--atlas-surface);
    color: var(--atlas-fg);
    font-size: 0.8rem;
    text-align: center;
}

.skyrp-map-popup__tool svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
}

.skyrp-map-popup__tool[aria-checked="true"] {
    background: transparent;
    color: var(--app-accent);
}

.skyrp-map-popup .skyrp-map-popup__tool:disabled,
.skyrp-map-popup .skyrp-map-popup__tool:disabled:hover,
.skyrp-map-popup .skyrp-map-popup__tool:disabled:focus {
    color: var(--app-muted-text);
    border-color: var(--app-line);
    cursor: default;
    opacity: 0.45;
    pointer-events: none;
}

.skyrp-map-popup__edit-tool-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.skyrp-map-popup__edit-tool-wrap:focus-visible {
    outline: 2px solid var(--app-focus-ring);
    outline-offset: 2px;
}

.skyrp-map-popup__edit-hint {
    position: absolute;
    right: 0;
    bottom: 100%;
    z-index: 50;
    box-sizing: border-box;
    width: min(270px, calc(100vw - 28px));
    padding: 10px 12px;
    border: 1px solid var(--app-line);
    background: var(--app-surface);
    color: var(--app-text);
    font-family: var(--app-font-ui);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    box-shadow: var(--app-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skyrp-map-popup__edit-tool-wrap:hover .skyrp-map-popup__edit-hint,
.skyrp-map-popup__edit-tool-wrap:focus-within .skyrp-map-popup__edit-hint {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.skyrp-map-popup__edit-hint a {
    color: var(--app-accent-strong);
    text-decoration: underline;
}

.skyrp-map-popup__edit-hint a:hover,
.skyrp-map-popup__edit-hint a:focus-visible {
    color: var(--app-accent);
}

/* Keep popup action backgrounds transparent even under shared hover/active button styles. */
.skyrp-map-popup .skyrp-map-popup__close,
.skyrp-map-popup .skyrp-map-popup__tools-toggle,
.skyrp-map-popup .skyrp-map-popup__actions-toggle,
.skyrp-map-popup .skyrp-map-popup__tool,
.skyrp-map-popup .skyrp-map-popup__action {
    background: transparent !important;
}

.skyrp-map-popup__actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-right: 90px;
    padding-bottom: 2px;
    pointer-events: auto;
}

.skyrp-map-popup__preview-button {
    display: grid;
    place-items: center;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    padding: 0;
    border: 1px solid transparent;
    background: var(--app-surface-muted);
    cursor: zoom-in;
    transition: border-color 0.18s ease;
}

.skyrp-map-popup__preview-button:hover,
.skyrp-map-popup__preview-button:focus-visible {
    border-color: var(--atlas-accent);
}

.skyrp-map-popup__preview {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.skyrp-map-popup__preview-error {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem;
    background: var(--app-surface-muted);
    color: var(--app-muted-text);
    font-size: 0.85rem;
    line-height: 1.35;
    text-align: center;
    pointer-events: none;
}

.skyrp-map-popup__preview-error svg {
    width: 2rem;
    height: 2rem;
}

.skyrp-map-popup__preview-button.is-error {
    cursor: default;
}

.skyrp-map-popup__preview-button.is-error .skyrp-map-popup__preview {
    visibility: hidden;
}

.skyrp-map-popup__preview-button.is-error .skyrp-map-popup__preview-error {
    display: flex;
}

.skyrp-map-popup__description {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.skyrp-map-popup__parameters {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 5px 10px;
    margin: 0;
    font-size: 0.82rem;
}

.skyrp-map-popup__parameters dt {
    font-weight: 600;
    color: var(--app-muted);
}

.skyrp-map-popup__parameters dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.skyrp-map-popup__note[hidden] {
    display: none;
}

.skyrp-map-popup__note {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 2px;
    pointer-events: auto;
}

.skyrp-map-popup__note label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 600;
}
.skyrp-map-popup__note:not([hidden]) label {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 4px;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.skyrp-map-popup__note-input {
    width: 100%;
    min-height: 40px;
    max-height: 240px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
    color: var(--app-text);
    font: inherit;
    line-height: 1.45;
    field-sizing: content;
    overflow: hidden;
    resize: none;
    pointer-events: auto;
    transition:
        border-color 0.12s ease,
        background-color 0.12s ease,
        padding 0.12s ease;
}

.skyrp-map-popup__note-input::placeholder {
    color: var(--app-muted);
    opacity: 0.72;
}

.skyrp-map-popup__note-input:focus {
    outline: 2px solid var(--app-focus-ring);
    outline-offset: 1px;
}

.skyrp-map-popup__note-input[aria-invalid="true"] {
    border-color: var(--app-danger);
}

.skyrp-map-popup__note-validation {
    color: var(--app-danger);
    font-size: 0.75rem;
}
.skyrp-map-popup__footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--app-line-soft);
    color: var(--app-muted);
    font-size: 0.75rem;
}

.skyrp-map-popup__content button:focus-visible {
    outline: 2px solid var(--app-focus-ring);
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .skyrp-map-popup .leaflet-popup-content {
        width: min(320px, calc(100vw - 36px)) !important;
    }
}

.skyrp-pinned-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 12px;
}

.skyrp-pinned-drop-slot {
    position: relative;
    min-width: 0;
}

/* Split the drag hover surface at the card midpoint, like the sidebar rail. */
.skyrp-pinned-drop-target {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    z-index: 3;
    pointer-events: none;
}

/* Зоны вставки принимают указатель только во время перетаскивания карточки,
   поэтому в покое не перехватывают клики, кнопки действий и прокрутку. */
.skyrp-pinned-list.is-dragging .skyrp-pinned-drop-target {
    pointer-events: auto;
}

.skyrp-pinned-drop-slot:has(.skyrp-pinned-card.is-drag-source) .skyrp-pinned-drop-target {
    pointer-events: none;
}

.skyrp-pinned-drop-target--before {
    top: 0;
}

.skyrp-pinned-drop-target--after {
    bottom: 0;
}

.skyrp-pinned-drop-indicator {
    position: absolute;
    top: -0.45rem;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    height: 3px;
    border-radius: 999px;
    background: var(--atlas-accent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.skyrp-pinned-drop-indicator.is-active {
    opacity: 1;
}

.skyrp-pinned-drop-end {
    position: relative;
    height: 12px;
    flex: 0 0 12px;
    margin-top: -0.65rem;
}

.skyrp-pinned-drop-end::before {
    position: absolute;
    top: 5px;
    left: 0.5rem;
    right: 0.5rem;
    height: 3px;
    border-radius: 999px;
    background: var(--atlas-accent);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.skyrp-pinned-drop-end.is-active::before {
    opacity: 1;
}

.skyrp-pinned-card {
    width: 100%;
    cursor: grab;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
    overflow: hidden;
    transition:
        border-color 0.15s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}

.skyrp-pinned-card.is-expanded {
    border-color: var(--app-line);
}

.skyrp-pinned-card:hover,
.skyrp-pinned-card:focus-within {
    border-color: var(--atlas-accent, var(--app-accent));
}

/* Перетаскиваемая карточка остаётся в списке приглушённым placeholder'ом,
   пока подсвечиваются зоны вставки. */
.skyrp-pinned-card.is-drag-source {
    border-color: var(--atlas-accent, var(--app-accent));
    cursor: grabbing;
    opacity: 0.55;
}

.skyrp-pinned-card__row {
    display: flex;
    width: 100%;
}

.skyrp-pinned-card__drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    border: 0;
    border-right: 1px solid var(--app-line);
    background: var(--app-surface-muted);
    color: var(--app-muted-text);
    cursor: grab;
    font-size: 1rem;
    letter-spacing: -2px;
}

.skyrp-pinned-card.is-drag-source .skyrp-pinned-card__drag-handle {
    cursor: grabbing;
}

.skyrp-pinned-card__content {
    min-width: 0;
    flex: 1;
}

.skyrp-pinned-card__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 8px;
}

.skyrp-pinned-card__title {
    min-width: 0;
    flex: 1;
    color: var(--app-text);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.skyrp-pinned-card__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
}

.skyrp-pinned-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 0 14px 12px;
    color: var(--app-muted-text);
    font-size: 0.76rem;
    line-height: 1.35;
}

.skyrp-pinned-card__footer span + span::before {
    content: none;
}

.skyrp-pinned-card__details {
    border-top: 1px solid var(--app-line);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skyrp-pinned-card__preview {
    display: block;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
}

.skyrp-pinned-card__details p {
    margin: 0;
    line-height: 1.45;
}

.skyrp-pinned-card__tags {
    color: var(--app-muted-text);
    font-size: 0.8rem;
}

.skyrp-pinned-card__details dl {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 5px 10px;
}

.skyrp-pinned-card__details dt {
    font-weight: 600;
}

.skyrp-pinned-card__details dd {
    margin: 0;
}

/* Explicit select state indicator */
.skyrp-sidebar-content select.skyrp-field--select,
select.atlas-control.skyrp-field--select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--atlas-icon) 50%),
        linear-gradient(135deg, var(--atlas-icon) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

.skyrp-sidebar-content select.skyrp-field--select:open,
select.atlas-control.skyrp-field--select:open {
    background-image:
        linear-gradient(135deg, transparent 50%, var(--atlas-icon) 50%),
        linear-gradient(45deg, var(--atlas-icon) 50%, transparent 50%);
}

/* Built-in Leaflet zoom control replaces the custom slider. */
.leaflet-bottom.leaflet-right .leaflet-control-zoom {
    margin-right: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--atlas-border);
    border-radius: 0.4rem;
    overflow: hidden;
}

.leaflet-control-zoom a {
    color: var(--atlas-text);
    background: var(--atlas-surface);
}

.leaflet-control-zoom a:hover {
    color: var(--atlas-text);
    background: var(--atlas-surface-raised);
}
/* Accessible full-viewport image preview above Leaflet and sidebar panes. */
.skyrp-map-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow: hidden;
    background: color-mix(in srgb, var(--atlas-surface-active) 94%, transparent);
    cursor: zoom-out;
}
.skyrp-map-image-lightbox__content {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    grid-auto-rows: max-content;
    justify-items: center;
    gap: 0.65rem;
    width: min(96vw, 100%, 1600px);
    /* Высота берётся от фиксированной подложки, поэтому не зависит от поддержки dvh. */
    height: 100%;
    min-height: 0;
    max-height: 100%;
    cursor: default;
}
.skyrp-map-image-lightbox__viewport {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--atlas-text-muted);
    box-shadow: inset 0 0 0 1px var(--atlas-border);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.skyrp-map-image-lightbox__viewport.is-dragging {
    cursor: grabbing;
}

/* Изображение позиционируется от padding-box вьюпорта: так проценты max-width/max-height
 * ограничивают его и по высоте, а не только по ширине, и кадр не обрезается. */
.skyrp-map-image-lightbox__content img {
    position: absolute;
    inset: 0;
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    transform: translate(var(--popup-pan-x, 0px), var(--popup-pan-y, 0px)) scale(var(--popup-zoom, 1));
    transform-origin: center;
}

.skyrp-map-image-lightbox__carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.15rem 0.5rem;
    color: var(--atlas-text);
    background: var(--atlas-surface);
    border: 1px solid var(--atlas-border);
}

.skyrp-map-image-lightbox__carousel > span {
    min-width: 3rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.skyrp-map-image-lightbox__zoom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: min(19rem, 88vw);
    padding: 0.35rem 0.5rem;
    color: var(--atlas-text);
    background: var(--atlas-surface);
    border: 1px solid var(--atlas-border);
}

.skyrp-map-image-lightbox__zoom .mud-slider {
    flex: 1;
}
.skyrp-map-image-lightbox__close {
    position: absolute !important;
    z-index: 1;
    top: 0.25rem;
    right: 0.25rem;
    color: var(--atlas-text) !important;
    background: transparent !important;
}

/* На узких экранах превью занимает всю доступную область, а управление выносится
 * в отдельные строки сетки, чтобы кнопки закрытия и зума не перекрывали изображение. */
@media (max-width: 640px) {
    .skyrp-map-image-lightbox {
        padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.5rem, env(safe-area-inset-right, 0px))
            max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px));
    }

    .skyrp-map-image-lightbox__content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        grid-template-rows: max-content minmax(0, 1fr) max-content max-content;
        gap: 0.5rem;
    }

    .skyrp-map-image-lightbox__close {
        position: static !important;
        justify-self: end;
        margin: -0.25rem -0.25rem -0.25rem 0;
    }

    .skyrp-map-image-lightbox__viewport {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
    }

    .skyrp-map-image-lightbox__content img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .skyrp-map-image-lightbox__carousel {
        max-width: 100%;
    }

    .skyrp-map-image-lightbox__zoom {
        width: 100%;
        max-width: 22rem;
    }
}

.skyrp-map-popup__tools-toggle svg,
.skyrp-map-popup__close svg {
    width: 1.3rem;
    height: 1.3rem;
}
#map-sidebar-content .skyrp-panel-title strong,
#map-sidebar-content .skyrp-sidebar-panel-header h2,
#object-tabs .skyrp-object-tab {
    font-family: var(--atlas-font-ui);
}
#map-sidebar-rail .skyrp-rail-tab:active,
#map-sidebar-rail .skyrp-rail-tab:focus:not(:focus-visible),
#map-sidebar-rail .skyrp-rail-tab.is-active {
    background: transparent !important;
}
/* Pinned cards span the available sidebar width while keeping drag order. */
#map-sidebar-content .skyrp-sidebar-state--pinned {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
}

#map-sidebar-content .skyrp-pinned-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
#map-sidebar-content .skyrp-pinned-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Перетаскивание начинается только с ручки; тело карточки остаётся обычным. */

#map-sidebar-content .skyrp-pinned-card:hover,
#map-sidebar-content .skyrp-pinned-card:focus-within {
    border-color: var(--atlas-accent);
}

#map-sidebar-content .skyrp-pinned-card__drag-handle {
    display: grid;
    place-items: center;
    width: 1.75rem;
    min-width: 1.75rem;
    flex-basis: 1.75rem;
    padding: 0;
    background: transparent;
    color: var(--atlas-text-muted);
    font-size: 1.1rem;
    cursor: grab;
}

#map-sidebar-content .skyrp-pinned-card:hover .skyrp-pinned-card__drag-handle,
#map-sidebar-content .skyrp-pinned-card:focus-within .skyrp-pinned-card__drag-handle {
    background: color-mix(in srgb, var(--atlas-text) 8%, transparent);
    color: var(--atlas-text);
}

#map-sidebar-content .skyrp-pinned-card.is-drag-source {
    border-color: var(--atlas-accent) !important;
    opacity: 0.6;
}

#map-sidebar-content .skyrp-pinned-card.is-drag-source,
#map-sidebar-content .skyrp-pinned-card.is-drag-source .skyrp-pinned-card__content,
#map-sidebar-content .skyrp-pinned-card.is-drag-source .skyrp-pinned-card__drag-handle {
    cursor: grabbing;
}
#map-sidebar-content .skyrp-pinned-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.35rem;
    padding: 0.55rem 0.4rem 0.3rem;
}
#map-sidebar-content .skyrp-pinned-card__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    font: 600 0.87rem/1.3 var(--atlas-font-ui);
    overflow-wrap: anywhere;
    word-break: normal;
}
#map-sidebar-content .skyrp-pinned-card__mini-icon {
    display: block;
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 1.4rem;
    object-fit: contain;
}
#map-sidebar-content .skyrp-pinned-card__mini-icon--fallback {
    color: var(--atlas-text-muted);
    font-size: 1.4rem;
}
#map-sidebar-content .skyrp-pinned-card__title-text {
    min-width: 0;
}

#map-sidebar-content .skyrp-pinned-card__actions {
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    margin-inline-start: auto;
    flex-wrap: nowrap;
    gap: 1px;
}
#map-sidebar-content .skyrp-pinned-card__actions .mud-button-root,
#map-sidebar-content .skyrp-pinned-card__actions .mud-icon-button {
    flex: 0 0 1.45rem;
    width: 1.45rem;
    min-width: 1.45rem;
    height: 1.45rem;
    min-height: 1.45rem;
    padding: 0;
    border: 1px solid var(--atlas-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--atlas-icon) !important;
    cursor: pointer;
}
#map-sidebar-content .skyrp-pinned-card__actions .mud-button-root:not(:disabled):hover,
#map-sidebar-content .skyrp-pinned-card__actions .mud-icon-button:not(:disabled):hover,
#map-sidebar-content .skyrp-pinned-card__actions .mud-button-root:focus-visible,
#map-sidebar-content .skyrp-pinned-card__actions .mud-icon-button:focus-visible {
    border-color: var(--atlas-text) !important;
    background: transparent !important;
    color: var(--atlas-text) !important;
}

#map-sidebar-content .skyrp-pinned-card__actions .mud-button-root:disabled,
#map-sidebar-content .skyrp-pinned-card__actions .mud-icon-button:disabled {
    opacity: 0.35;
    cursor: default;
}
#map-sidebar-content .skyrp-pinned-card__actions .mud-icon-root {
    font-size: 1rem;
}
#map-sidebar-content .skyrp-pinned-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: baseline;
    column-gap: 0.5rem;
    row-gap: 0.2rem;
    padding: 0.2rem 0.4rem 0.6rem;
    font: 400 0.73rem/1.4 var(--atlas-font-ui);
}

#map-sidebar-content .skyrp-pinned-card__object-type {
    grid-column: 1 / -1;
}

#map-sidebar-content .skyrp-pinned-card__audit-detail {
    min-width: 0;
    overflow-wrap: anywhere;
}

#map-sidebar-content .skyrp-pinned-card__object-type {
    color: var(--atlas-text);
    font-weight: 700;
}
#map-sidebar-content .skyrp-pinned-card__details {
    padding: 0.75rem;
}
/* Expanded pinned cards keep core metadata readable even without media. */
#map-sidebar-content .skyrp-pinned-card__metadata {
    display: grid;
    grid-template-columns: minmax(0, 4.75rem) minmax(0, 1fr);
    gap: 0.25rem 0.5rem;
    margin: 0 0 0.65rem;
    font: 400 0.77rem/1.45 var(--atlas-font-ui);
}
#map-sidebar-content .skyrp-pinned-card__metadata dt {
    color: var(--atlas-text-muted);
}
#map-sidebar-content .skyrp-pinned-card__metadata dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Reserve the border width at rest so zoom controls never shift on hover. */
#map-tools #map-zoom-in,
#map-tools #map-zoom-out {
    border: 1px solid transparent;
}

/* Native disabled state is also set by wheel zoom, without a Blazor rerender. */
#map-tools #map-zoom-in:disabled,
#map-tools #map-zoom-out:disabled {
    color: var(--atlas-text-muted);
    opacity: 0.45;
    cursor: default;
}

#map-tools #map-zoom-slider-slot {
    border-inline: 1px solid transparent;
}

/* A single outer border for all map controls, including keyboard focus.
   Do not use an inset outline or :focus-within on the search bar:
   the search input retains focus after the pointer leaves. */
#map-tools #map-toggle-fullscreen:hover:not(:disabled),
#map-tools #map-toggle-fullscreen:focus-visible,
#map-tools #map-fit-bounds:hover:not(:disabled),
#map-tools #map-fit-bounds:focus-visible,
#map-tools #map-add-object:hover:not(:disabled),
#map-tools #map-add-object:focus-visible,
#map-tools #map-zoom-in:hover:not(:disabled),
#map-tools #map-zoom-in:focus-visible,
#map-tools #map-zoom-out:hover:not(:disabled),
#map-tools #map-zoom-out:focus-visible,
#map-tools #map-zoom-slider-slot:hover,
#map-tools #map-zoom-slider-slot:focus-within {
    border-color: var(--atlas-icon);
}

/* The same border is the keyboard-focus indicator for these buttons. */
#map-tools #map-toggle-fullscreen:focus-visible,
#map-tools #map-fit-bounds:focus-visible,
#map-tools #map-add-object:focus-visible,
#map-tools #map-zoom-in:focus-visible,
#map-tools #map-zoom-out:focus-visible {
    outline: none;
}
/* Search field and arrow have independent inset 1px frames.
   The outer search-card border never changes on hover or input focus. */
#map-tools #map-search-field:hover,
#map-tools #map-search-results-toggle:hover:not(:disabled),
#map-tools #map-search-results-toggle:focus-visible {
    border-color: var(--atlas-icon);
}

#map-tools #map-search-results-toggle:focus-visible {
    outline: none;
}

/* Reserve space for the map tool column when the sidebar reduces the canvas width. */
@media (min-width: 768px) and (max-width: 1100px) {
    #map-root:has(#map-sidebar-content.is-open) #map-searchbar {
        left: calc(50% - 24px);
        right: auto;
        width: min(24rem, calc(100% - 92px));
        transform: translateX(-50%);
    }

    #map-root:has(#map-sidebar-content.is-open) .skyrp-map-popup .leaflet-popup-content {
        width: min(24rem, calc(100vw - 510px)) !important;
        max-width: calc(100vw - 510px);
    }

    #map-root:has(#map-sidebar-content.is-open) .skyrp-map-popup__tools-menu {
        max-width: min(17rem, calc(100vw - 510px));
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    #map-root:has(#map-sidebar-content.is-open) .skyrp-map-popup__actions {
        padding-right: 0;
        flex-wrap: wrap;
    }
}

/* The share dialog is rendered in MudBlazor's portal, outside #map-root.
   Keep its spacing scoped and let the active Atlas palette supply the colors. */
.skyrp-personal-share-dialog .skyrp-personal-share__form {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.skyrp-personal-share-dialog .skyrp-personal-share__modes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .skyrp-personal-share-dialog .mud-dialog-actions {
        flex-wrap: wrap;
    }
}
